:root {
  color-scheme: light;
  --ink: #182524;
  --deep: #005c57;
  --deep-2: #073b38;
  --amber: #8f5d1f;
  --amber-soft: #fff2dc;
  --ivory: #f5f7f5;
  --card: #ffffff;
  --line: #d4ded9;
  --muted: #4f5f5b;
  --sage: #e5f0ec;
  --pale: #eef7f4;
  --focus: #0b6b73;
  --max: 1120px;
  --article: 700px;
  --about: 660px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: Inter, "Segoe UI", -apple-system, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--deep);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

a:hover {
  color: var(--deep-2);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4,
.site-header,
.eyebrow,
.num,
.site-nav,
.button,
.button-secondary,
.notice,
.strip,
.toc,
.source-link,
.steps,
.q,
.plain,
.tag,
.small,
.source-meta,
.link-list {
  font-family: Inter, "Segoe UI", -apple-system, system-ui, sans-serif;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 0 0 .75rem;
  overflow-wrap: break-word;
}

h1 {
  color: var(--deep-2);
  font-size: clamp(2.1rem, 5.5vw, 3.25rem);
  font-weight: 720;
  letter-spacing: 0;
  max-width: 20ch;
}

h2 {
  color: var(--deep);
  font-size: clamp(1.55rem, 3.3vw, 2.05rem);
  font-weight: 720;
  margin-bottom: 1rem;
}

h3 {
  color: var(--deep-2);
  font-size: 1.16rem;
  font-weight: 700;
  margin-top: 1.55rem;
}

h4 {
  color: var(--deep-2);
  font-size: 1rem;
  font-weight: 750;
}

ul,
ol {
  margin: .5rem 0 1.15rem;
  padding-left: 1.35rem;
}

li {
  margin: .35rem 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  background: var(--deep-2);
  color: #fff;
  padding: .7rem 1rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: .8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: var(--deep-2);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem .35rem;
  justify-content: flex-end;
  min-width: 0;
}

.site-nav a {
  align-items: center;
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: .82rem;
  font-weight: 700;
  min-height: 44px;
  padding: .52rem .76rem;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--sage);
  color: var(--deep);
}

.hero,
.page-hero {
  background: var(--pale);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.hero-grid,
.page-hero-inner,
.section-inner,
.footer-inner,
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.hero-grid,
.page-hero-inner {
  padding-top: 3rem;
  padding-bottom: 2.6rem;
}

.hero-grid {
  max-width: var(--max);
}

.page-hero-inner {
  max-width: 860px;
}

.eyebrow {
  color: var(--deep);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  margin-bottom: 1.05rem;
  text-transform: uppercase;
}

.dek,
.lede {
  color: #374845;
  font-family: Inter, "Segoe UI", -apple-system, system-ui, sans-serif;
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  line-height: 1.62;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.6rem;
}

.hero-trust {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 700;
  margin: 1rem 0 0;
}

.button,
.button-secondary {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: .92rem;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: .68rem 1rem;
  text-decoration: none;
}

.button {
  background: var(--deep);
  border: 0;
  color: #ffffff;
  cursor: pointer;
}

.button:hover {
  background: var(--deep-2);
  color: #ffffff;
}

.button-secondary {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--deep);
}

.button-secondary:hover {
  background: var(--sage);
  color: var(--deep-2);
}

.notice,
.strip {
  background: var(--amber-soft);
  border-bottom: 1px solid var(--line);
  color: #6a4a20;
}

.notice {
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 1.6rem;
  padding: 1rem 1.1rem;
}

.notice strong,
.strip strong {
  color: #513514;
}

.strip .wrap {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.strip .mark {
  color: var(--amber);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  padding-top: .08rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.strip p {
  font-size: .95rem;
  margin: 0;
}

.toc {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.toc .wrap {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  padding-top: .65rem;
  padding-bottom: .65rem;
}

.toc-label {
  color: var(--deep-2);
  flex: 0 0 auto;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  margin-right: .4rem;
  text-transform: uppercase;
}

.toc a {
  border-radius: 999px;
  color: var(--muted);
  flex: 0 0 auto;
  font-size: .82rem;
  font-weight: 700;
  min-height: 38px;
  padding: .35rem .75rem;
  text-decoration: none;
  white-space: nowrap;
}

.toc a:hover {
  background: var(--sage);
  color: var(--deep);
}

.section {
  border-bottom: 1px solid var(--line);
}

.section:nth-child(odd) {
  background: #fbfcfb;
}

.section-inner {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, var(--article)) 300px;
  gap: 3rem;
  align-items: start;
}

.article,
.article-wide,
.plain-panel,
.link-list,
.key-points {
  max-width: var(--article);
}

.article section + section {
  margin-top: 3.1rem;
}

.article section {
  scroll-margin-top: 112px;
}

.section-lead {
  color: var(--muted);
  font-family: Inter, "Segoe UI", -apple-system, system-ui, sans-serif;
  font-size: 1.02rem;
  max-width: var(--article);
}

.num {
  color: var(--deep);
  display: block;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
  margin-bottom: .65rem;
  text-transform: uppercase;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 1rem;
}

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

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

.card,
.callout,
.source-item,
.checklist,
.plain-panel,
.time-thread,
.key-points,
.action-box,
.home-note {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.card,
.source-item {
  border-color: #dde7e2;
}

.card h3,
.callout h2,
.callout h3,
.checklist h3,
.source-item h2,
.time-thread h3,
.key-points h2,
.key-points h3,
.action-box h2,
.action-box h3,
.home-note h2,
.home-note h3 {
  margin-top: 0;
}

.card p:last-child,
.callout p:last-child,
.checklist p:last-child,
.plain-panel p:last-child,
.time-thread p:last-child,
.key-points p:last-child,
.key-points ul:last-child,
.action-box p:last-child,
.action-box ol:last-child,
.action-box ul:last-child,
.home-note p:last-child {
  margin-bottom: 0;
}

.card-accent {
  border-left: 4px solid var(--deep);
}

.card-accent.clay {
  border-left-color: var(--amber);
}

.card-accent.sage,
.card-accent.blue {
  border-left-color: var(--deep);
}

.callout,
.time-thread {
  background: #f8fbf9;
  border: 0;
  border-left: 3px solid #a7c8c0;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.45rem 0;
}

.key-points {
  background: #f2f8f5;
  border: 1px solid var(--line);
  border-top: 4px solid var(--deep);
  margin: 0 0 2rem;
}

.key-points h2,
.key-points h3,
.action-box h2,
.action-box h3 {
  border: 0;
  color: var(--deep-2);
  font-size: 1.05rem;
  margin-bottom: .75rem;
  padding: 0;
}

.key-points ul,
.action-box ul,
.action-box ol {
  margin-bottom: 0;
}

.action-box {
  background: var(--amber-soft);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  border-left-color: var(--amber);
  margin: 1.45rem 0;
}

.time-thread .label {
  color: var(--amber);
  font-family: Inter, "Segoe UI", -apple-system, system-ui, sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  margin-bottom: .45rem;
  text-transform: uppercase;
}

.plain-panel {
  margin-top: 1.25rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  color: var(--deep-2);
  display: block;
  font-weight: 750;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  display: block;
  font: inherit;
  margin-top: .35rem;
  padding: .68rem .75rem;
  width: 100%;
}

.contact-form textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--focus);
  outline: 3px solid rgba(11, 107, 115, .2);
}

.form-note {
  color: var(--muted);
  font-size: .92rem;
  margin-top: .2rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .25rem;
}

.form-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.link-list {
  display: grid;
  gap: .75rem;
}

.link-list a {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: block;
  padding: 1rem 1.1rem;
  text-decoration: none;
}

.link-list a:hover {
  border-color: #b8d0cb;
}

.link-list strong,
.link-list span {
  display: block;
}

.link-list strong {
  color: var(--deep-2);
}

.link-list span {
  color: var(--muted);
  margin-top: .2rem;
}

.landing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: start;
}

.intro-copy {
  max-width: var(--article);
}

.home-note {
  border-top: 4px solid var(--deep);
}

.home-note h2 {
  border: 0;
  color: var(--deep-2);
  font-size: 1.05rem;
  padding: 0;
}

.route-list {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.route-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--deep);
  border-radius: var(--radius);
  color: var(--ink);
  display: block;
  min-height: 138px;
  padding: 1rem;
  text-decoration: none;
}

.route-card:hover {
  border-color: #9fc5bd;
  color: var(--ink);
}

.route-card.featured {
  background: #f8fbf9;
}

.route-card strong,
.route-card span {
  display: block;
}

.route-card strong {
  color: var(--deep-2);
  font-size: 1rem;
  line-height: 1.25;
}

.route-card span {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
  margin-top: .45rem;
}

.aside {
  position: sticky;
  top: 110px;
}

.aside .toc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: static;
  padding: 1rem 1.1rem;
}

.aside .toc h2 {
  border: 0;
  color: var(--deep-2);
  font-size: 1rem;
  margin-bottom: .35rem;
  padding: 0;
}

.aside .toc a {
  border-top: 1px solid var(--sage);
  border-radius: 0;
  display: block;
  padding: .48rem 0;
}

.source-link {
  font-size: .86em;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.definition {
  background: #fbfcfb;
  border-left: 3px solid var(--line);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.45rem 0;
  padding: 1rem 1.1rem;
}

.checklist {
  background: var(--amber-soft);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.data-strip {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.4rem 0;
}

.metric {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .95rem;
}

.metric strong {
  color: var(--deep);
  display: block;
  font-family: Inter, "Segoe UI", -apple-system, system-ui, sans-serif;
  font-size: 1.65rem;
  line-height: 1;
}

.metric span {
  color: var(--muted);
  display: block;
  font-family: Inter, "Segoe UI", -apple-system, system-ui, sans-serif;
  font-size: .88rem;
  margin-top: .45rem;
}

.steps,
.q,
.plain {
  list-style: none;
  padding-left: 0;
}

.steps li,
.q li {
  border-bottom: 1px solid var(--sage);
  padding: .58rem 0 .58rem 1.9rem;
  position: relative;
}

.steps li:last-child,
.q li:last-child {
  border-bottom: 0;
}

.steps li::before,
.q li::before {
  background: var(--sage);
  border-radius: 50%;
  color: var(--deep);
  content: "?";
  font-size: .72rem;
  font-weight: 800;
  height: 18px;
  left: 0;
  line-height: 18px;
  position: absolute;
  text-align: center;
  top: .74rem;
  width: 18px;
}

.plain li {
  padding: .4rem 0 .4rem 1.55rem;
  position: relative;
}

.plain li::before {
  background: var(--deep);
  border-radius: 50%;
  content: "";
  height: 7px;
  left: .25rem;
  position: absolute;
  top: 1.05rem;
  width: 7px;
}

.source-list {
  display: grid;
  gap: 1rem;
}

.source-item h2 {
  border: 0;
  font-size: 1.08rem;
  margin-bottom: .4rem;
  padding: 0;
}

.source-meta {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: .5rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: .1rem 0 .8rem;
}

.tag {
  background: var(--sage);
  border-radius: 999px;
  color: var(--deep);
  font-size: .72rem;
  font-weight: 800;
  padding: .2rem .55rem;
}

.about-essay {
  max-width: var(--about);
}

.about-essay p {
  margin-bottom: 1.25rem;
}

.about-lead {
  color: var(--deep-2);
  font-size: clamp(1.22rem, 2.6vw, 1.45rem);
  font-weight: 650;
  line-height: 1.45;
}

.closing-note {
  background: var(--amber-soft);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 1.8rem;
  padding: 1rem 1.1rem;
}

.closing-note p:last-child {
  margin-bottom: 0;
}

.site-footer {
  background: #e6eeea;
  color: var(--ink);
}

.footer-inner {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.site-footer a {
  color: var(--deep);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
}

.footer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.3fr .7fr;
}

.small {
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 900px) {
  .nav-wrap,
  .content-grid,
  .landing-grid,
  .footer-grid {
    display: block;
  }

  .site-nav {
    justify-content: flex-start;
    margin-top: .65rem;
  }

  .grid-3,
  .grid-2,
  .data-strip {
    grid-template-columns: 1fr;
  }

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

  .article section {
    scroll-margin-top: 176px;
  }

  .aside {
    margin-top: 2rem;
    position: static;
  }

  .home-note {
    margin-top: 1.5rem;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 2rem;
    max-width: 100%;
  }

  .nav-wrap,
  .hero-grid,
  .page-hero-inner,
  .section-inner,
  .footer-inner,
  .wrap {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-grid,
  .page-hero-inner {
    padding-top: 2.35rem;
    padding-bottom: 2.2rem;
  }

  .button,
  .button-secondary {
    width: 100%;
  }

  .route-list {
    grid-template-columns: 1fr;
  }

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

  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, max-content);
  }

  .site-nav a {
    font-size: .78rem;
    padding-left: .58rem;
    padding-right: .58rem;
  }

  .strip .wrap {
    display: block;
  }

  .strip .mark {
    display: block;
    margin-bottom: .4rem;
  }
}

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