:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --border: #d9e2ec;
  --border-strong: #c7d3e0;
  --text: #142033;
  --muted: #4f6075;
  --accent: #1d5ca8;
  --accent-dark: #174882;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  --container: 1120px;
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(29, 92, 168, 0.08), transparent 32%),
    linear-gradient(180deg, #f7f9fc 0%, #f3f6fb 100%);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 247, 251, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(20, 32, 51, 0.08);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.site-nav a {
  color: var(--muted);
  font-weight: 600;
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.contact-details a:hover,
.contact-details a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--accent);
}

.hero {
  padding: 88px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.hero-copy,
.summary-card,
.panel,
.work-card,
.contact-card {
  background: var(--surface);
  border: 1px solid rgba(20, 32, 51, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 42px;
}

.eyebrow,
.section-label,
.card-label {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3,
h4,
p,
ul,
dl {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 5vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.65rem, 2.8vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 18px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

h4 {
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.intro {
  max-width: 42rem;
  font-size: 1.2rem;
  line-height: 1.72;
  color: var(--text);
}

.supporting-copy,
.muted-copy,
.entry-subtitle,
.entry-date,
.summary-list dd,
.timeline-entry li,
.work-card p,
.work-card li,
.detail-list,
.site-footer,
.prose p {
  color: var(--muted);
}

.supporting-copy,
.prose p,
.work-card p,
.contact-copy {
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 28px;
}

.button,
.text-link {
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: white;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-dark);
}

.button-secondary {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.text-link {
  color: var(--muted);
}

.summary-card {
  padding: 28px;
}

.summary-card h2 {
  margin-bottom: 22px;
  font-size: 1.35rem;
}

.summary-list {
  display: grid;
  gap: 18px;
  margin-bottom: 0;
}

.summary-list div {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.summary-list div:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.summary-list dt {
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--text);
}

.summary-list dd {
  margin: 0;
}

.section {
  padding: 36px 0;
}

.two-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: start;
}

.stack {
  display: grid;
  gap: 28px;
}

.panel {
  padding: 28px;
}

.panel-large {
  padding: 34px;
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading.compact {
  margin-bottom: 12px;
}

.prose p + p {
  margin-top: 18px;
}

.plain-list {
  margin: 0;
  padding-left: 20px;
}

.detail-list {
  display: grid;
  gap: 10px;
}

.section-title-row {
  margin-bottom: 18px;
}

.timeline-entry,
.education-entry {
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid var(--border);
}

.timeline-entry:first-of-type,
.education-entry:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

.entry-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.entry-subtitle,
.entry-date {
  margin-bottom: 0;
}

.entry-date {
  flex-shrink: 0;
  font-weight: 600;
}

.timeline-entry ul,
.work-card ul {
  margin-bottom: 0;
  padding-left: 20px;
}

.work-grid,
.skills-grid {
  display: grid;
  gap: 24px;
}

.work-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-card {
  padding: 28px;
}

.work-card h3 {
  margin-bottom: 14px;
}

.work-card p {
  margin-bottom: 16px;
}

.skills-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.skill-panel {
  min-height: 100%;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
}

.contact-section {
  padding-bottom: 70px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 34px;
}

.contact-details {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.contact-details a {
  font-weight: 600;
  color: var(--muted);
}

.site-footer {
  padding: 0 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid rgba(20, 32, 51, 0.1);
}

@media (max-width: 980px) {
  .hero-grid,
  .two-column-layout,
  .work-grid,
  .skills-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .entry-header,
  .footer-inner {
    flex-direction: column;
  }

  .entry-date {
    align-self: flex-start;
  }

  .site-nav {
    gap: 14px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(var(--container), calc(100% - 32px));
  }

  .site-header {
    position: static;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 18px 0;
  }

  .site-nav {
    gap: 12px 16px;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-copy,
  .summary-card,
  .panel,
  .work-card,
  .contact-card {
    padding: 24px;
  }

  .intro {
    font-size: 1.08rem;
  }
}
