:root {
  color-scheme: light;
  --ink: #171512;
  --muted: #625d55;
  --soft: #8a8379;
  --line: rgba(23, 21, 18, 0.13);
  --paper: #f6f0e8;
  --paper-strong: #fffaf2;
  --panel: rgba(255, 252, 246, 0.86);
  --panel-solid: #fffaf2;
  --blue: #285cff;
  --green: #286256;
  --clay: #b96a4c;
  --shadow: 0 18px 50px rgba(45, 35, 25, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23, 21, 18, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #fbf7f0 0%, var(--paper) 42%, #eef3f0 100%);
  background-size: 72px 72px, auto;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.52;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 8%, rgba(185, 106, 76, 0.14), transparent 26rem),
    radial-gradient(circle at 86% 6%, rgba(40, 98, 86, 0.12), transparent 25rem);
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 8px;
  border: 1px solid rgba(23, 21, 18, 0.1);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.86);
  box-shadow: 0 10px 32px rgba(45, 35, 25, 0.1);
  backdrop-filter: blur(16px);
}

.brand,
.header-cta,
nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  padding-left: 8px;
  font-weight: 760;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--ink);
  font-size: 0.7rem;
  letter-spacing: 0;
}

nav {
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(23, 21, 18, 0.055);
}

nav a,
.header-cta {
  border-radius: 999px;
  padding: 0 14px;
  color: rgba(23, 21, 18, 0.72);
  font-size: 0.9rem;
  font-weight: 720;
}

nav a:hover,
.header-cta:hover {
  background: rgba(23, 21, 18, 0.08);
  color: var(--ink);
}

.header-cta {
  justify-self: end;
  color: white;
  background: var(--ink);
}

main,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.hero {
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 386px;
  align-items: center;
  gap: 42px;
  padding: 58px 0 42px;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 840;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  max-width: 830px;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 5.25rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 3.25rem;
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.22rem;
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 780;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

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

.button.primary {
  color: white;
  background: var(--ink);
  box-shadow: 0 16px 36px rgba(23, 21, 18, 0.17);
}

.button.secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
}

.candidate-card,
.fast-read,
.metrics article,
.match-item,
.approach article,
.timeline-item,
.letter-card,
.materials-side {
  border: 1px solid rgba(23, 21, 18, 0.1);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.candidate-card {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.candidate-topline {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 126px;
  align-items: center;
  gap: 14px;
}

.candidate-topline img {
  width: 96px;
  height: 96px;
  border: 1px solid rgba(40, 92, 255, 0.18);
  border-radius: 50%;
  object-fit: cover;
  background: #071525;
}

.candidate-name {
  margin-bottom: 2px;
  font-size: 1.28rem;
  font-weight: 820;
}

.candidate-title {
  margin-bottom: 0;
  color: var(--blue);
  font-weight: 730;
}

.candidate-qr {
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.86);
  transition:
    transform 160ms ease,
    border-color 160ms ease;
}

.candidate-qr:hover {
  transform: translateY(-1px);
  border-color: rgba(40, 98, 86, 0.28);
}

.candidate-qr img {
  display: block;
  width: 112px;
  height: 112px;
  border: 0;
  border-radius: 7px;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.candidate-facts {
  display: grid;
  gap: 12px;
  margin: 0;
}

.candidate-facts div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 0;
  min-width: 0;
}

.text-button {
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.text-button:hover {
  color: var(--blue);
}

.candidate-note {
  margin: 0;
  border-left: 3px solid var(--green);
  padding-left: 12px;
  color: var(--muted);
  font-size: 0.96rem;
}

.fast-read {
  display: grid;
  grid-template-columns: 0.62fr 1fr;
  gap: 36px;
  padding: 34px;
}

.fast-read ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.fast-read li::marker {
  color: var(--green);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.metrics article {
  padding: 22px;
}

.metrics span,
.year,
.match-item span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 840;
  letter-spacing: 0;
  text-transform: uppercase;
}

.metrics strong {
  display: block;
  margin: 18px 0 8px;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 3rem;
  line-height: 0.92;
  letter-spacing: 0;
}

.metrics p,
.match-item p,
.approach p,
.timeline-item p,
.letter-card p,
.section-intro p {
  color: var(--muted);
}

.section-grid,
.approach,
.experience,
.materials {
  margin-top: 72px;
}

.section-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 34px;
  align-items: start;
}

.section-intro {
  position: sticky;
  top: 104px;
}

.match-list,
.timeline {
  display: grid;
  gap: 12px;
}

.match-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 22px;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.approach article {
  padding: 22px;
}

.approach article h3::before {
  content: "";
  width: 34px;
  height: 3px;
  display: block;
  margin-bottom: 18px;
  background: var(--green);
}

.experience {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 34px;
  align-items: start;
}

.timeline-item {
  position: relative;
  padding: 22px;
}

.timeline-item p {
  margin-bottom: 0;
}

.materials {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: 22px;
  align-items: stretch;
  padding-bottom: 42px;
}

.letter-card {
  display: flex;
  min-height: 540px;
  flex-direction: column;
  justify-content: center;
  padding: 46px;
}

.materials-side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 14px;
  overflow: hidden;
}

.resume-preview {
  max-height: 620px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0;
  background: white;
}

.resume-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  border-radius: 999px;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.18);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .hero,
  .section-grid,
  .experience,
  .materials,
  .fast-read {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  h1 {
    font-size: 4.2rem;
  }

  h2 {
    font-size: 2.85rem;
  }

  .candidate-card {
    max-width: 520px;
  }

  .section-intro {
    position: static;
  }

  .metrics,
  .approach-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 22px, 1180px);
  }

  .site-header {
    margin-top: 10px;
  }

  .brand {
    font-size: 0.94rem;
  }

  .header-cta {
    padding: 0 12px;
  }

  .hero {
    gap: 28px;
    padding: 42px 0 30px;
  }

  h1 {
    font-size: 3rem;
    line-height: 1.02;
  }

  h2 {
    font-size: 2.25rem;
  }

  .candidate-facts div,
  .match-item {
    grid-template-columns: 1fr;
  }

  .candidate-topline {
    grid-template-columns: 84px minmax(0, 1fr) 100px;
  }

  .candidate-topline img {
    width: 84px;
    height: 84px;
  }

  .candidate-qr img {
    width: 86px;
    height: 86px;
  }

  .fast-read,
  .candidate-card,
  .metrics article,
  .match-item,
  .approach article,
  .timeline-item,
  .letter-card {
    padding: 18px;
  }

  .metrics,
  .approach-grid {
    grid-template-columns: 1fr;
  }

  .section-grid,
  .approach,
  .experience,
  .materials {
    margin-top: 48px;
  }

  .letter-card {
    min-height: auto;
  }

  .resume-preview {
    max-height: 520px;
  }

  .site-footer {
    display: grid;
  }
}
