:root {
  --ink: #172823;
  --ink-soft: #42544e;
  --paper: #f7f4ed;
  --paper-2: #eee9dd;
  --white: #fffefa;
  --sage: #6e897d;
  --sage-deep: #285b4b;
  --moss: #173f34;
  --coral: #e8795b;
  --coral-dark: #b94e36;
  --gold: #d4a84e;
  --line: rgba(23, 40, 35, .14);
  --shadow: 0 18px 60px rgba(22, 48, 40, .10);
  --radius: 1.15rem;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}
a { color: var(--sage-deep); text-underline-offset: .2em; }
a:hover { color: var(--coral-dark); }
img, svg { max-width: 100%; }
button, input { font: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--ink); color: white; padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }
.wrap { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 2rem), 790px); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247,244,237,.93); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; font-weight: 760; letter-spacing: -.02em; }
.brand-mark { width: 39px; height: 39px; color: var(--coral); flex: 0 0 auto; }
.nav-links { display: flex; align-items: center; gap: 1.15rem; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: .9rem; font-weight: 650; }
.nav-links a:hover { color: var(--ink); }
.nav-toggle { display: none; border: 0; background: transparent; padding: .5rem; }
.nav-cta, .button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border-radius: 999px; padding: .78rem 1.15rem; background: var(--ink); color: var(--white) !important; text-decoration: none; font-weight: 720; border: 1px solid var(--ink); transition: transform .2s, background .2s; }
.nav-cta:hover, .button:hover { transform: translateY(-2px); background: var(--moss); }
.button.secondary { color: var(--ink) !important; background: transparent; border-color: var(--line); }
.button.secondary:hover { background: var(--white); }

.hero { padding: clamp(4.5rem, 9vw, 8rem) 0 4.5rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.eyebrow { margin: 0 0 1rem; text-transform: uppercase; letter-spacing: .16em; font-size: .73rem; font-weight: 800; color: var(--sage-deep); }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(3rem, 7vw, 6.6rem); margin: 0 0 1.4rem; }
h2 { font-size: clamp(2rem, 4.4vw, 3.8rem); margin: 0 0 1.1rem; }
h3 { font-size: clamp(1.35rem, 2.1vw, 1.75rem); margin: 0 0 .7rem; }
.hero p { max-width: 660px; font-size: clamp(1.08rem, 2vw, 1.35rem); color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .83rem; }
.trust-row span::before { content: "•"; color: var(--coral); margin-right: .5rem; }
.hero-art { position: relative; min-height: 480px; display: grid; place-items: center; }
.orbit { width: min(100%, 470px); aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; position: relative; animation: rotate 60s linear infinite; }
.orbit::before, .orbit::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid var(--line); inset: 13%; }
.orbit::after { inset: 29%; background: var(--sage-deep); box-shadow: var(--shadow); }
.orbit-dot { position: absolute; width: 72px; height: 72px; border-radius: 50%; background: var(--coral); top: 7%; left: 14%; box-shadow: var(--shadow); }
.orbit-dot.gold { width: 45px; height: 45px; background: var(--gold); top: 66%; left: 81%; }
.orbit-label { position: absolute; inset: 38%; z-index: 2; display: grid; place-items: center; text-align: center; color: white; font-family: Georgia, serif; line-height: 1.1; animation: rotateBack 60s linear infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes rotateBack { to { transform: rotate(-360deg); } }

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section.alt { background: var(--paper-2); }
.section.dark { background: var(--ink); color: var(--white); }
.section.dark p { color: #c9d5d0; }
.section-head { display: grid; grid-template-columns: .7fr 1.3fr; gap: 2rem; align-items: end; margin-bottom: 2.5rem; }
.section-head p { color: var(--ink-soft); max-width: 670px; margin: 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { display: flex; flex-direction: column; padding: 1.45rem; min-height: 225px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: transform .22s, box-shadow .22s, border-color .22s; }
.card:hover { color: var(--ink); transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(40,91,75,.32); }
.card p { color: var(--ink-soft); margin: .35rem 0 1rem; }
.card .arrow { margin-top: auto; font-weight: 750; color: var(--sage-deep); }
.card-number { font-size: .75rem; font-weight: 800; color: var(--coral-dark); letter-spacing: .1em; margin-bottom: 1.4rem; }
.route-card { min-height: 300px; justify-content: flex-end; position: relative; overflow: hidden; }
.route-card::before { content: ""; position: absolute; width: 190px; height: 190px; border-radius: 50%; background: var(--paper-2); right: -70px; top: -65px; }
.route-card:nth-child(2)::before { background: #d9e4de; }
.route-card:nth-child(3)::before { background: #f5d5c8; }

.quote-block { display: grid; grid-template-columns: .65fr 1.35fr; gap: 2rem; align-items: start; }
.quote-block blockquote { margin: 0; font-family: Georgia, serif; font-size: clamp(2rem, 4.5vw, 4rem); line-height: 1.08; letter-spacing: -.035em; }
.quote-block blockquote span { color: var(--coral); }
.callout { border-left: 3px solid var(--coral); padding: .5rem 0 .5rem 1.2rem; color: var(--ink-soft); }

.page-hero { padding: 5.5rem 0 3.5rem; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 950px; font-size: clamp(2.8rem, 6vw, 5.4rem); }
.page-hero .lead { max-width: 760px; font-size: 1.2rem; color: var(--ink-soft); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .8rem; color: var(--ink-soft); margin-bottom: 2rem; }
.breadcrumbs a { color: inherit; }
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 740px); justify-content: center; gap: 4rem; padding: 4rem 0 6rem; }
.toc { position: sticky; top: 105px; align-self: start; font-size: .82rem; }
.toc strong { display: block; margin-bottom: .7rem; }
.toc a { display: block; padding: .35rem 0; color: var(--ink-soft); text-decoration: none; }
.article h2 { margin-top: 3.4rem; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.article h3 { margin-top: 2rem; }
.article p, .article li { color: #2e403a; }
.article li + li { margin-top: .5rem; }
.article .definition { padding: 1.6rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); font-size: 1.12rem; }
.exercise { margin: 2.4rem 0; padding: 1.7rem; background: #e3ece7; border-radius: var(--radius); }
.exercise .eyebrow { margin-bottom: .5rem; }
.source-box { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .9rem; }
.meta-strip { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; margin-top: 1.5rem; color: var(--ink-soft); font-size: .78rem; }
.tag { display: inline-flex; padding: .35rem .65rem; border-radius: 999px; background: var(--paper-2); font-size: .75rem; font-weight: 700; }
.related { margin-top: 3rem; }

.cta-band { background: var(--coral); color: #251d19; border-radius: 1.5rem; padding: clamp(2rem, 5vw, 4rem); display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: center; }
.cta-band h2 { margin: 0; }
.cta-band .button { justify-self: end; }

.site-footer { background: #102d25; color: #dce7e2; padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.footer-grid h3 { color: white; font-family: inherit; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.footer-grid a { display: block; color: #bdd0c8; text-decoration: none; margin: .45rem 0; font-size: .88rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.13); margin-top: 3rem; padding-top: 1.5rem; font-size: .74rem; color: #9fb5ac; }

.filter-bar { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 2rem; }
.filter { border: 1px solid var(--line); border-radius: 999px; padding: .55rem .85rem; background: transparent; color: var(--ink); cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--ink); color: white; }
.library-item[hidden] { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; left: 1rem; right: 1rem; top: 68px; padding: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: 1rem; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .nav-links.open { display: flex; }
  .hero-grid, .section-head, .quote-block, .cta-band, .footer-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 360px; }
  .orbit { max-width: 340px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; padding: 1rem; background: var(--paper-2); border-radius: 1rem; }
  .cta-band .button { justify-self: start; }
}
@media (max-width: 590px) {
  body { font-size: 16px; }
  .brand span { max-width: 190px; line-height: 1.1; }
  .nav-cta { display: none; }
  .grid, .grid.two { grid-template-columns: 1fr; }
  .hero { padding-top: 3.5rem; }
  .hero-art { min-height: 300px; }
  .orbit { max-width: 280px; }
  .trust-row { display: grid; gap: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
