/* Self-hosted variable fonts (SIL Open Font License), latin subset. */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f4ee;
  --surface: #fffdf9;
  --ink: #1c2321;
  --muted: #5d6763;
  --line: #ded8cb;
  --accent: #1f5c4a;
  --accent-ink: #ffffff;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1040px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121715;
    --surface: #1a211e;
    --ink: #ece8df;
    --muted: #a1aba6;
    --line: #2c3632;
    --accent: #7fcfb4;
    --accent-ink: #0e1512;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(16px, calc((100vw - var(--wrap)) / 2));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.mark {
  font: 600 20px/1 var(--serif); letter-spacing: .04em; text-decoration: none;
  color: var(--accent-ink); background: var(--accent);
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
}
.site-header nav { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 500; }
.site-header nav a { color: var(--ink); text-decoration: none; }
.site-header nav a:hover { color: var(--accent); }
.site-header .nav-cta { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }

/* Layout */
main > section { max-width: var(--wrap); margin: 0 auto; padding: 72px 16px; }
main > section + section { border-top: 1px solid var(--line); }

.hero { padding-top: 96px; padding-bottom: 80px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
h1 { font-size: clamp(48px, 9vw, 104px); font-weight: 400; letter-spacing: -.02em; }
.lede { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.5; color: var(--muted); max-width: 40em; margin: 28px 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 16px; text-decoration: none;
  border: 1px solid var(--accent);
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: .92; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-top: 48px; padding-bottom: 48px; }
.stats strong { display: block; font: 400 clamp(36px, 4.5vw, 52px)/1 var(--serif); color: var(--accent); margin-bottom: 10px; }
.stats span { font-size: 14.5px; line-height: 1.45; color: var(--muted); display: block; }

/* Two-column sections */
.split { display: grid; grid-template-columns: 220px 1fr; gap: 48px; }
.split > h2, .contact h2 { font-size: 30px; font-weight: 400; }
.split > h2 { position: sticky; top: 96px; align-self: start; }
.prose p { max-width: 38em; }
.prose p:first-child { font-size: 20px; line-height: 1.55; }

.prose .specialties { font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; margin-top: 28px; }
.specialties strong { display: block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 36px 28px; border-left: 1px solid var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -5px; top: 9px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.timeline h3 { font-size: 23px; }
.role { font-size: 14.5px; font-weight: 600; color: var(--accent); margin: 6px 0 10px; }
.timeline p:not(.role) { color: var(--muted); margin: 0; max-width: 40em; }
.timeline p:not(.role) + p { margin-top: 12px; }

/* Cards */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cards article { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.cards h3 { font-size: 22px; margin-bottom: 10px; }
.cards p { color: var(--muted); margin: 0; }

.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.plain li:first-child { padding-top: 0; }
.plain li:last-child { border-bottom: 0; }
.plain strong { color: var(--ink); font-weight: 600; }

/* Contact */
.contact { text-align: center; }
.contact h2 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 16px; }
.contact p { color: var(--muted); max-width: 32em; margin: 0 auto 28px; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.site-footer p { margin: 0; }

@media (max-width: 760px) {
  main > section { padding: 52px 16px; }
  .hero { padding-top: 60px; padding-bottom: 56px; }
  .site-header nav { gap: 14px; font-size: 14px; }
  .site-header nav a:not(.nav-cta) { display: none; }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .split > h2 { position: static; }
  .cards { grid-template-columns: 1fr; }
}

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