:root {
    --porcelain: #F6F7F5;
    --ink: #172A3F;
    --ink-soft: #4A5A6B;
    --celadon: #6E9C8C;
    --celadon-deep: #3F6F60;
    --line: #D5DDD9;
    --surface: #FFFFFF;
    color-scheme: light;
    --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
    --body: "Newsreader", Georgia, "Times New Roman", serif;
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --porcelain: #101B27;
      --ink: #E8EEEB;
      --ink-soft: #A8B6B0;
      --celadon: #8DBBAA;
      --celadon-deep: #A9D2C3;
      --line: #263646;
      --surface: #16232F;
      color-scheme: dark;
    }
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--porcelain);
    color: var(--ink);
    font-family: var(--body);
    font-size: 1.1875rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; }
  a:focus-visible, button:focus-visible { outline: 3px solid var(--celadon); outline-offset: 3px; border-radius: 2px; }
  .wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
  .measure { max-width: 34em; }

  /* Nav */
  header.site {
    display: flex; align-items: center; justify-content: space-between;
    padding: 28px 0; gap: 24px; flex-wrap: wrap;
  }
  .name { font-family: var(--display); font-weight: 600; font-size: 1.05rem; text-decoration: none; letter-spacing: -0.01em; }
  nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; flex-wrap: wrap; }
  nav a { font-family: var(--display); font-size: 0.95rem; text-decoration: none; color: var(--ink-soft); }
  nav a:hover { color: var(--ink); }

  /* Hero */
  .hero {
    display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center;
    padding: 72px 0 96px;
  }
  .hero h1 {
    font-family: var(--display); font-weight: 700;
    font-size: clamp(2.4rem, 5.2vw, 4.2rem);
    line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 28px;
  }
  .hero p { color: var(--ink-soft); margin: 0 0 36px; font-size: 1.3rem; line-height: 1.5; }
  .actions { display: flex; gap: 14px; flex-wrap: wrap; }
  .btn {
    font-family: var(--display); font-weight: 600; font-size: 1rem;
    padding: 14px 22px; border-radius: 999px; text-decoration: none; display: inline-block;
  }
  .btn-primary { background: var(--ink); color: var(--porcelain); }
  .btn-primary:hover { background: var(--celadon-deep); }
  .btn-quiet { border: 1.5px solid var(--line); }
  .btn-quiet:hover { border-color: var(--ink); }

  /* System diagram: the one memorable element */
  .system svg { width: 100%; height: auto; display: block; }
  .system .node { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
  .system .node-end { fill: var(--celadon); stroke: none; }
  .system text { font-family: var(--display); font-size: 17px; fill: var(--ink); }
  .system .node-end-text { fill: #fff; font-weight: 600; }
  .system .sub { font-family: var(--body); font-size: 14px; fill: var(--ink-soft); font-style: italic; }
  .system .flow { fill: none; stroke: var(--celadon); stroke-width: 2; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1.1s ease-out forwards; }
  .system .flow.f2 { animation-delay: 0.9s; }
  .system .late { opacity: 0; animation: appear 0.6s ease-out forwards; }
  .system .late.l1 { animation-delay: 0.7s; }
  .system .late.l2 { animation-delay: 1.6s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes appear { to { opacity: 1; } }
  @media (prefers-reduced-motion: reduce) {
    .system .flow { animation: none; stroke-dashoffset: 0; }
    .system .late { animation: none; opacity: 1; }
  }

  /* Sections */
  section { padding: 88px 0; border-top: 1px solid var(--line); }
  h2 {
    font-family: var(--display); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.3rem);
    letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 28px;
  }
  .two { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; }
  .two p { margin: 0 0 18px; }

  /* Path: a real sequence, so it gets an order */
  .path { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
  .path li { padding: 26px 26px 0 0; border-top: 2px solid var(--ink); position: relative; }
  .path li::before {
    content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px;
    border-radius: 50%; background: var(--porcelain); border: 2px solid var(--ink);
  }
  .path li:last-child::before { background: var(--celadon); border-color: var(--celadon); }
  .path .when { font-family: var(--display); font-weight: 600; font-size: 1.05rem; display: block; margin-bottom: 6px; }
  .path .what { color: var(--ink-soft); }

  .topics { list-style: none; margin: 0; padding: 0; }
  .topics li { padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 1.3rem; line-height: 1.4; }
  .topics li:first-child { padding-top: 0; }

  .for-you blockquote {
    margin: 0; font-family: var(--display); font-weight: 400;
    font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.3; letter-spacing: -0.02em; max-width: 26em;
  }
  .for-you p { color: var(--ink-soft); margin-top: 24px; }

  .start { background: var(--ink); color: var(--porcelain); border-top: none; }
  .start h2 { color: var(--porcelain); }
  .start p { color: color-mix(in srgb, var(--porcelain) 75%, transparent); margin: 0 0 32px; }
  .start .btn-primary { background: var(--celadon); color: #fff; }
  .start .btn-primary:hover { background: var(--celadon-deep); color: var(--ink); }
  .start .btn-quiet { border-color: color-mix(in srgb, var(--porcelain) 35%, transparent); color: var(--porcelain); }
  .start .btn-quiet:hover { border-color: var(--porcelain); }

  .belief { text-align: left; }
  .belief .big {
    font-family: var(--display); font-weight: 700; letter-spacing: -0.04em; line-height: 1;
    font-size: clamp(2.6rem, 7vw, 5.6rem); margin: 0 0 24px;
  }
  .belief p { color: var(--ink-soft); }

  footer { padding: 40px 0 56px; border-top: 1px solid var(--line); font-family: var(--display); font-size: 0.95rem; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
  footer a { text-decoration: none; }
  footer a:hover { color: var(--ink); }
  footer ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; flex-wrap: wrap; }

  @media (max-width: 820px) {
    .hero { grid-template-columns: 1fr; padding: 40px 0 64px; gap: 40px; }
    .two { grid-template-columns: 1fr; gap: 8px; }
    .path { grid-template-columns: 1fr; gap: 28px; }
    .path li { padding-right: 0; }
    section { padding: 64px 0; }
    nav ul { gap: 18px; }
  }

/* Story pages */
.page-head { padding: 72px 0 40px; }
.page-head h1 {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05;
  font-size: clamp(2.4rem, 5vw, 3.8rem); margin: 0 0 18px; max-width: 16em;
}
.page-head .lede { color: var(--ink-soft); font-size: 1.3rem; font-style: italic; margin: 0; }
.prose { max-width: 34em; padding-bottom: 88px; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { margin-top: 64px; }
.prose .pull {
  font-family: var(--display); font-weight: 600; font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  line-height: 1.3; letter-spacing: -0.02em; margin: 48px 0; padding-left: 22px;
  border-left: 3px solid var(--celadon);
}
.prose ul { padding-left: 1.1em; margin: 0 0 1.4em; }
.prose li { margin-bottom: 0.5em; }
.work-group { padding: 40px 0; border-top: 1px solid var(--line); }
.work-group h2 { margin: 0 0 8px; }
.work-group .note { color: var(--ink-soft); font-style: italic; margin: 0 0 22px; }
.work-list { list-style: none; padding: 0; margin: 0; }
.work-list li { padding: 14px 0; }
.work-list strong { font-family: var(--display); font-weight: 600; display: block; font-size: 1.1rem; }
.work-list span { color: var(--ink-soft); }
.tag { font-family: var(--display); font-size: 0.8rem; font-weight: 600; color: var(--celadon-deep); margin-left: 8px; }
.next { padding: 48px 0 88px; border-top: 1px solid var(--line); }
.next a { font-family: var(--display); font-weight: 600; font-size: 1.3rem; text-decoration: none; border-bottom: 2px solid var(--celadon); }
nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--celadon); text-underline-offset: 6px; text-decoration-thickness: 2px; }
