/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

/* Self-hosted fonts (files added in Task 5) */
@font-face {
  font-family: "Source Serif Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/source-serif-pro-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif Pro";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/source-serif-pro-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/source-serif-pro-bold.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/inter-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/inter-medium.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/inter-semibold.woff2") format("woff2");
}

  :root {
    --bg: #ffffff;
    --tint: #faf8f3;
    --ink: #1a1a1a;
    --muted: #4a4a4a;
    --soft: #666;
    --hairline: #e6e0d4;
    --accent: #b89060;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    background: var(--bg);
    color: var(--ink);
    font-family: "Source Serif Pro", "Source Serif 4", "Charter", "Iowan Old Style", Georgia, serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; }
  .ui { font-family: "Inter", "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, sans-serif; }
  .container { max-width: 1080px; margin: 0 auto; padding: 0 32px; }

  /* Nav */
  header.site {
    padding: 22px 0;
    border-bottom: 1px solid var(--hairline);
  }
  header.site .row { display: flex; justify-content: space-between; align-items: center; }
  .brand {
    font-family: "Source Serif Pro", Georgia, serif;
    font-size: 19px; letter-spacing: 0.02em; font-weight: 600;
  }
  .brand a { color: inherit; text-decoration: none; }
  nav.top a {
    margin-left: 28px; text-decoration: none;
    font-family: "Inter", sans-serif;
    font-size: 13.5px; color: var(--muted);
    font-weight: 500; letter-spacing: 0.01em;
    white-space: nowrap;
  }
  nav.top a:hover { color: var(--ink); }
  nav.top a.nav-cta {
    color: var(--ink);
    border: 1px solid var(--hairline);
    padding: 7px 14px;
  }
  nav.top a.nav-cta:hover { border-color: var(--accent); }

  /* Hero */
  section.hero { padding: 110px 0 90px; }
  .hero-grid {
    display: grid; grid-template-columns: 1fr; gap: 22px;
    max-width: 820px;
  }
  .kicker {
    font-family: "Inter", sans-serif;
    font-size: 11px; color: var(--soft);
    text-transform: uppercase; letter-spacing: 0.18em; font-weight: 500;
    margin: 0;
  }
  h1 {
    font-size: 54px; font-weight: 400;
    letter-spacing: -0.018em; line-height: 1.05;
    margin: 0;
  }
  .rule {
    width: 64px; height: 1px;
    background: var(--accent);
    border: none; margin: 6px 0 0;
  }
  .lede {
    font-style: italic;
    font-size: 21px; line-height: 1.5;
    color: var(--muted); max-width: 740px;
    margin: 6px 0 16px;
  }
  .cta-row { display: flex; gap: 22px; align-items: center; margin-top: 4px; }
  .cta {
    font-family: "Inter", sans-serif;
    display: inline-block;
    padding: 12px 22px; background: var(--ink); color: var(--bg);
    text-decoration: none;
    font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
  }
  .cta:hover { background: #2a2a2a; }
  .cta-secondary {
    font-family: "Inter", sans-serif;
    font-size: 14px; color: var(--muted); text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
  }
  .cta-secondary:hover { color: var(--ink); }

  /* Sections */
  h2 {
    font-family: "Inter", sans-serif;
    font-size: 12px; font-weight: 600;
    color: var(--soft); text-transform: uppercase;
    letter-spacing: 0.16em; margin: 0 0 14px;
  }
  h2.break { margin-top: 60px; }
  .section-lede {
    font-size: 28px; font-weight: 400;
    letter-spacing: -0.015em; line-height: 1.25;
    max-width: 740px; margin: 0 0 50px;
  }
  .section-lede em { color: var(--ink); }

  /* Pillars */
  section.approach {
    padding: 84px 0; background: var(--tint);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
  }
  .pillars {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  }
  .pillar {
    background: var(--bg); padding: 30px 28px;
    border: 1px solid var(--hairline);
  }
  .pillar .num {
    font-family: "Inter", sans-serif;
    font-size: 11px; color: var(--soft); font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    margin-bottom: 12px;
  }
  .pillar h3 {
    font-size: 21px; font-weight: 400;
    margin: 0 0 12px; letter-spacing: -0.01em;
    line-height: 1.25;
  }
  .pillar p {
    font-size: 15.5px; line-height: 1.6;
    color: var(--muted); margin: 0;
  }

  /* Workflows */
  section.workflows { padding: 90px 0; }
  .wf-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  }
  .wf-card {
    border: 1px solid var(--hairline);
    padding: 30px 28px;
    background: var(--bg);
  }
  .wf-card .num {
    font-family: "Inter", sans-serif;
    font-size: 11px; color: var(--soft); font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    margin-bottom: 12px;
  }
  .wf-card h3 {
    font-size: 23px; font-weight: 400;
    letter-spacing: -0.01em; line-height: 1.25;
    margin: 0 0 14px;
  }
  .wf-card p {
    font-size: 16px; line-height: 1.6;
    color: var(--muted); margin: 0;
  }

  /* Bridge (argument connector between precedents and TAISR's application on /approach) */
  section.bridge {
    padding: 36px 0;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
  }
  section.bridge p {
    max-width: 720px;
    font-size: 17px; line-height: 1.6;
    color: var(--muted); margin: 0;
  }

  /* Precedents (cross-domain pattern evidence on /approach) */
  section.precedents {
    padding: 90px 0;
  }
  section.precedents .pillar a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--accent);
  }
  section.precedents .pillar a:hover { text-decoration-color: var(--ink); }

  /* Pilot */
  section.pilot {
    padding: 90px 0;
    border-top: 1px solid var(--hairline);
    background: var(--tint);
  }
  .pilot-grid {
    display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px;
    align-items: start;
  }
  .pilot-grid h3 {
    font-size: 34px; font-weight: 400;
    letter-spacing: -0.018em; line-height: 1.15;
    margin: 0 0 18px;
  }
  .pilot-grid p {
    font-size: 16px; line-height: 1.6;
    color: var(--muted); margin: 0 0 14px;
  }
  form.pilot-form {
    background: var(--bg); padding: 32px 30px;
    border: 1px solid var(--hairline);
  }
  .pilot-form .hp { position: absolute; left: -9999px; }
  form.pilot-form label {
    font-family: "Inter", sans-serif;
    display: block; font-size: 12.5px; font-weight: 500;
    margin-bottom: 8px; color: var(--ink);
    letter-spacing: 0.02em;
  }
  form.pilot-form input[type="email"], form.pilot-form input[type="text"], form.pilot-form input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    font-family: "Source Serif Pro", Georgia, serif; font-size: 16px;
    background: var(--bg); color: var(--ink);
    border: 1px solid var(--hairline);
    margin-bottom: 16px;
  }
  form.pilot-form input:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
  form.pilot-form button {
    width: 100%;
    font-family: "Inter", sans-serif;
    font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
    padding: 12px 18px;
    background: var(--ink); color: var(--bg);
    border: none; cursor: pointer;
  }
  form.pilot-form button:hover { background: #2a2a2a; }
  .pilot-form .form-note {
    font-family: "Inter", sans-serif;
    font-size: 12px; color: var(--soft);
    margin: 14px 0 0;
  }

  /* Long-form prose paragraphs (e.g. legal/privacy page). */
  p.body { font-size: 16px; line-height: 1.7; max-width: 720px; color: var(--ink); margin: 0 0 16px; }
  p.body a { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); }

  /* Footer */
  footer.site {
    padding: 44px 0;
    font-family: "Inter", sans-serif;
    font-size: 13px; color: var(--soft);
  }
  footer.site .row { display: flex; justify-content: space-between; align-items: center; }
  footer.site a { color: var(--soft); text-decoration: none; margin-left: 22px; }
  footer.site a:hover { color: var(--ink); }

/* ---------------------------------------------------------------------------
   Responsive: collapse multi-column grids and tighten hero scale on narrow
   viewports. The desktop layout assumes ≥ ~880px; below that, single-column
   stacking with reduced padding keeps the page legible without horizontal
   overflow.
   --------------------------------------------------------------------------- */

@media (max-width: 880px) {
  .container { padding: 0 22px; }

  h1 { font-size: 38px; line-height: 1.08; }
  .lede { font-size: 17px; }
  .section-lede { font-size: 22px; }

  section.hero { padding: 70px 0 50px; }
  section.approach, section.workflows, section.precedents, section.pilot { padding: 60px 0; }

  .pillars { grid-template-columns: 1fr; gap: 18px; }
  .wf-grid { grid-template-columns: 1fr; gap: 18px; }
  .pilot-grid { grid-template-columns: 1fr; gap: 36px; }

  .pillar { padding: 24px 22px; }
  .wf-card { padding: 24px 22px; }
  form.pilot-form { padding: 24px 22px; }

  /* Header nav: keep on one line but tighten gaps. */
  header.site nav.top a { margin-left: 14px; font-size: 12.5px; }
  header.site nav.top a.nav-cta { padding: 6px 10px; }

  footer.site .row { flex-direction: column; gap: 12px; align-items: flex-start; }
  footer.site a { margin-left: 0; margin-right: 18px; }
}

@media (max-width: 480px) {
  h1 { font-size: 30px; letter-spacing: -0.012em; }
  .lede { font-size: 16px; }
  .section-lede { font-size: 19px; }

  section.hero { padding: 56px 0 40px; }

  /* Compact nav at very small widths — stack brand + nav. */
  header.site .row { flex-direction: column; align-items: flex-start; gap: 10px; }
  header.site nav.top a:first-child { margin-left: 0; }

  .cta-row { flex-direction: column; align-items: flex-start; gap: 14px; }
}
