:root {
  --ink: #17212b;
  --ink-soft: #58636e;
  --paper: #f6f5ef;
  --paper-deep: #ece9df;
  --line: #d7d5cc;
  --sun: #d8932d;
  --sun-soft: #f4e2bf;
  --teal: #0f6662;
  --white: #ffffff;
  --shadow: 0 12px 32px rgba(23, 33, 43, 0.09);
}

* { 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: 16px;
  line-height: 1.6;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
img { display: block; width: 100%; }
button, input, textarea { font: inherit; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 76px;
  padding: 12px clamp(20px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  gap: 20px;
  background: rgba(246, 245, 239, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; text-decoration: none; letter-spacing: 0; }
.wordmark b { color: var(--sun); }
.wordmark-mark { display: grid; place-items: center; width: 36px; height: 36px; color: var(--paper); background: var(--ink); border-radius: 6px; font-weight: 900; font-size: 14px; }
.site-header nav { display: flex; align-items: center; gap: clamp(12px, 1.9vw, 28px); white-space: nowrap; }
.site-header nav a { position: relative; color: #3e4852; font-size: 14px; font-weight: 700; text-decoration: none; }
.site-header nav a[aria-current="page"] { color: var(--ink); }
.site-header nav a[aria-current="page"]::after { content: ""; position: absolute; right: 0; bottom: -10px; left: 0; height: 2px; background: var(--sun); }
.header-contact { justify-self: end; padding: 9px 14px; border-radius: 6px; background: var(--ink); color: var(--white); font-size: 14px; font-weight: 800; text-decoration: none; }

main { min-height: calc(100vh - 300px); }
.eyebrow { margin: 0 0 13px; color: var(--sun); font-size: 12px; font-weight: 900; letter-spacing: 0; text-transform: uppercase; }
.eyebrow::before { content: ""; display: inline-block; width: 30px; height: 2px; margin: 0 10px 4px 0; background: currentColor; vertical-align: middle; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: 0; line-height: 1.08; }
h1 { max-width: 960px; font-size: clamp(42px, 5vw, 76px); }
h2 { font-size: clamp(28px, 3vw, 46px); }
h3 { font-size: 21px; }
p { margin: 0 0 18px; }

.home-hero, .collection-hero, .simple-hero, .home-hero + .latest-section, .latest-section, .topic-band, .collection-body, .topic-route, .library-grid, .library-filter, .route-directory, .proof-grid, .contact-layout { width: min(1380px, calc(100% - 48px)); margin-right: auto; margin-left: auto; }
.home-hero { min-height: 560px; padding: 92px 0 72px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.6fr); gap: clamp(40px, 8vw, 140px); align-items: center; }
.home-hero > div > p:not(.eyebrow) { max-width: 630px; margin-top: 26px; color: var(--ink-soft); font-size: 20px; }
.primary-link { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 6px; background: var(--sun); color: var(--ink); font-weight: 900; text-decoration: none; }
.home-hero-panel { align-self: stretch; padding: 36px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: repeat(3, minmax(85px, auto)); align-content: center; gap: 8px 20px; background: var(--ink); color: var(--white); border-radius: 8px; box-shadow: var(--shadow); }
.home-hero-panel span { grid-column: 1 / -1; color: #aab6c1; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.home-hero-panel strong { align-self: end; color: var(--sun); font-size: 58px; line-height: 0.9; }
.home-hero-panel p { align-self: end; margin: 0; font-weight: 750; }
.latest-section, .collection-body { padding: 70px 0 90px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.section-heading h2 { max-width: 700px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.guide-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 7px 16px rgba(23, 33, 43, 0.04); }
.card-image { display: block; height: 210px; background: var(--paper-deep); }
.card-image img { height: 100%; object-fit: cover; }
.guide-card > div { padding: 22px; }
.card-kicker { margin-bottom: 10px; color: var(--teal); font-size: 12px; font-weight: 900; letter-spacing: 0; text-transform: uppercase; }
.guide-card h3 { margin-bottom: 12px; font-size: 23px; }
.guide-card h3 a { text-decoration: none; }
.guide-card > div > p:not(.card-kicker) { color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
.text-link { display: inline-flex; gap: 7px; color: var(--ink); font-weight: 850; text-decoration: none; }
.text-link span { color: var(--sun); }
.topic-band { margin-bottom: 110px; padding: 54px; display: grid; grid-template-columns: 1fr minmax(320px, 0.8fr); gap: 50px; background: var(--teal); color: var(--white); border-radius: 8px; }
.topic-band h2 { max-width: 650px; }
.topic-band .eyebrow { color: #d8f0e8; }
.topic-band > div:last-child { display: grid; align-content: center; gap: 1px; }
.topic-band a { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.35); font-weight: 800; text-decoration: none; }
.topic-band a span { color: var(--sun); }

.collection-hero { padding: 72px 0 50px; display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(40px, 7vw, 105px); align-items: center; }
.collection-hero > div > p:not(.eyebrow) { max-width: 610px; margin-top: 24px; color: var(--ink-soft); font-size: 19px; }
.collection-hero img { min-height: 390px; border-radius: 8px; object-fit: cover; box-shadow: var(--shadow); }
.topic-route { margin-bottom: 110px; padding: 52px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; background: var(--ink); color: var(--white); border-radius: 8px; }
.topic-route p:not(.eyebrow) { max-width: 650px; color: #c5ccd2; }
.topic-route .eyebrow { color: #f3c270; }
.topic-route-links { display: grid; gap: 1px; align-content: center; }
.topic-route-links a { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.25); color: var(--white); font-weight: 800; text-decoration: none; }
.topic-route-links span { color: var(--sun); }

.simple-hero { padding: 90px 0 46px; }
.simple-hero > p:not(.eyebrow) { max-width: 740px; margin-top: 22px; color: var(--ink-soft); font-size: 20px; }
.library-filter { margin-bottom: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.library-filter span, .library-filter a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-size: 14px; font-weight: 750; text-decoration: none; }
.library-filter span { border-color: var(--ink); background: var(--ink); color: var(--white); }
.library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding-bottom: 110px; }
.route-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-bottom: 110px; }
.route-directory article { display: grid; grid-template-columns: 185px 1fr; gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.route-directory img { height: 100%; min-height: 280px; object-fit: cover; }
.route-directory article > div { padding: 30px; }
.route-directory h2 { margin-bottom: 16px; font-size: 29px; }
.route-directory p:not(.eyebrow) { color: var(--ink-soft); }
.proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-bottom: 110px; }
.proof-grid article { min-height: 260px; padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.proof-grid h2 { margin-bottom: 16px; font-size: 27px; }
.proof-grid p, .proof-grid li { color: var(--ink-soft); }
.proof-grid ul { padding-left: 20px; }
.proof-grid a { font-weight: 850; }
.contact-layout { display: grid; grid-template-columns: 0.8fr 1fr; gap: 68px; padding: 0 0 110px; }
.contact-layout > div { padding: 30px 0; }
.contact-layout h2 { margin-bottom: 20px; font-size: 42px; }
.contact-layout > div > p:not(.eyebrow) { color: var(--ink-soft); font-size: 18px; }
.contact-layout li { margin-bottom: 10px; }
.brief-form { display: grid; gap: 16px; padding: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: var(--shadow); }
.brief-form label { display: grid; gap: 7px; font-size: 14px; font-weight: 800; }
.brief-form input, .brief-form textarea { width: 100%; padding: 12px; border: 1px solid #b9bdbe; border-radius: 5px; color: var(--ink); background: var(--white); }
.brief-form textarea { min-height: 150px; resize: vertical; }
.brief-form button { min-height: 45px; border: 0; border-radius: 6px; color: var(--ink); background: var(--sun); font-weight: 900; cursor: pointer; }
.form-result { min-height: 1.6em; margin: 0; color: var(--teal); font-weight: 750; }

.article-shell { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; padding-top: 28px; color: var(--ink-soft); font-size: 13px; }
.breadcrumbs a { text-decoration: none; }
.article-header { padding: 36px 0 36px; border-bottom: 1px solid var(--line); }
.article-header h1 { max-width: 1040px; margin-bottom: 23px; font-size: clamp(44px, 5.3vw, 76px); }
.article-deck { max-width: 860px; color: #3f4a54; font-size: clamp(20px, 2.1vw, 27px); font-weight: 650; line-height: 1.45; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; color: var(--ink-soft); font-size: 14px; }
.article-meta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 18px 3px 0; border-radius: 50%; background: var(--sun); }
.editorial-note { display: grid; grid-template-columns: auto 1fr; gap: 13px; margin: 28px 0 0; padding: 15px 18px; border-left: 3px solid var(--teal); background: #e7f0ee; color: #37514f; font-size: 14px; }
.editorial-note strong { color: var(--teal); }
.article-layout { display: grid; grid-template-columns: 230px minmax(0, 770px); justify-content: center; gap: clamp(38px, 7vw, 112px); padding: 44px 0 100px; }
.toc { position: sticky; top: 104px; align-self: start; padding-left: 15px; border-left: 1px solid var(--line); }
.toc > p { margin: 0 0 12px; color: var(--ink); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc li { margin: 0 0 10px; color: var(--ink-soft); font-size: 13px; line-height: 1.35; }
.toc a { text-decoration: none; }
.toc-pillar { display: block; margin-top: 24px; color: var(--teal); font-size: 13px; font-weight: 850; text-decoration: none; }
.article-body { min-width: 0; }
.article-body > h2 { margin: 64px 0 20px; font-size: clamp(30px, 3.1vw, 45px); scroll-margin-top: 110px; }
.article-body > h2:first-child { margin-top: 0; }
.article-body > h3 { margin: 38px 0 12px; font-size: 24px; scroll-margin-top: 110px; }
.article-body > p, .article-body li { color: #303a44; font-size: 18px; }
.article-body strong { color: var(--ink); }
.article-body > ol, .article-body > ul { margin: 0 0 26px; padding-left: 24px; }
.article-body li { margin-bottom: 9px; }
.article-body a { color: var(--teal); font-weight: 700; }
.article-body code { padding: 2px 5px; border-radius: 4px; background: var(--paper-deep); font-size: .9em; }
.article-body pre { overflow-x: auto; padding: 18px; border-radius: 7px; background: var(--ink); color: #f8f8f4; }
.article-figure { margin: 31px 0 36px; }
.article-figure img { max-height: 530px; border-radius: 7px; object-fit: cover; box-shadow: var(--shadow); }
.article-figure figcaption { margin-top: 9px; color: var(--ink-soft); font-size: 13px; }
.table-wrap { overflow-x: auto; margin: 28px 0 32px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
th, td { padding: 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th:last-child, td:last-child { border-right: 0; }
tbody tr:last-child td { border-bottom: 0; }
th { color: var(--ink); background: #efede5; font-weight: 850; }
.route-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 54px 0; }
.route-links a { position: relative; min-height: 144px; padding: 18px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); color: var(--ink); text-decoration: none; }
.route-links span { display: block; margin-bottom: 16px; color: var(--teal); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.route-links strong { display: block; max-width: 160px; font-size: 17px; line-height: 1.25; }
.route-links b { position: absolute; right: 18px; bottom: 15px; color: var(--sun); font-size: 21px; }
.article-cta { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; margin: 62px 0; padding: 35px; border-radius: 8px; background: var(--ink); color: var(--white); }
.article-cta .eyebrow { color: #f3c270; }
.article-cta h2 { max-width: 570px; font-size: clamp(27px, 3vw, 40px); }
.article-cta p:not(.eyebrow) { max-width: 650px; margin: 16px 0 0; color: #c7d1d9; font-size: 16px; }
.article-cta a { align-self: center; padding: 11px 15px; border-radius: 6px; background: var(--sun); color: var(--ink); font-weight: 900; text-decoration: none; white-space: nowrap; }
.article-inquiry { display: grid; grid-template-columns: 0.84fr 1fr; gap: 28px; align-items: start; margin: 62px 0; padding: 34px; border: 1px solid var(--line); border-radius: 8px; background: #f4f5f2; }
.article-inquiry h2 { margin-bottom: 14px; font-size: clamp(28px, 3vw, 39px); }
.article-inquiry > div > p:not(.eyebrow):not(.inquiry-topic) { color: var(--ink-soft); font-size: 17px; }
.article-inquiry .inquiry-topic { margin: 24px 0 0; color: var(--teal); font-size: 13px; font-weight: 850; }
.article-inquiry .brief-form { padding: 24px; box-shadow: none; }
.author-card { display: grid; grid-template-columns: 112px 1fr; gap: 22px; align-items: start; margin: 58px 0; padding: 25px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.author-card img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; }
.author-card h2 { margin-bottom: 4px; font-size: 26px; }
.author-card .eyebrow { margin-bottom: 9px; }
.author-role { margin-bottom: 10px; color: var(--teal); font-size: 14px; font-weight: 800; }
.author-card p:not(.eyebrow):not(.author-role):not(.updated) { margin-bottom: 9px; color: var(--ink-soft); font-size: 15px; }
.updated { margin: 0; color: var(--ink-soft); font-size: 13px; }
.related-section { margin-top: 70px; }
.related-section h2 { font-size: 37px; }
.related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.related-grid .guide-card h3 { font-size: 20px; }
.related-grid .card-image { height: 180px; }
.calculator { display: grid; grid-template-columns: 0.8fr 1fr; gap: 30px; margin: 30px 0 0; padding: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.calculator h2 { margin-bottom: 10px; font-size: 33px; }
.calculator > div > p:not(.eyebrow) { color: var(--ink-soft); }
.calculator form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.calculator label { display: grid; gap: 6px; color: var(--ink-soft); font-size: 13px; font-weight: 750; }
.calculator label span { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; }
.calculator input { min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 5px; }
.calculator output { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px; border-radius: 6px; background: #e7f0ee; color: var(--teal); }
.calculator output strong { font-size: 27px; }
.calculator output span { font-size: 13px; font-weight: 800; }

.site-footer { width: min(1380px, calc(100% - 48px)); margin: 0 auto; padding: 42px 0 48px; display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 35px; border-top: 1px solid var(--line); color: var(--ink-soft); }
.footer-mark { color: var(--ink); }
.site-footer > div > p { margin: 12px 0 0; font-size: 14px; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); align-content: start; gap: 8px 30px; }
.footer-links a { font-size: 14px; text-decoration: none; }
.footer-meta { margin: 0; align-self: end; font-size: 12px; white-space: nowrap; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .site-header nav { display: none; }
  .home-hero, .collection-hero, .topic-band, .topic-route, .contact-layout { grid-template-columns: 1fr; }
  .home-hero { min-height: 0; padding: 70px 0; }
  .home-hero-panel { min-height: 290px; }
  .card-grid, .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-left: 0; }
  .toc ol { columns: 2; }
  .toc-pillar { grid-column: 1 / -1; margin-top: 0; }
  .route-directory { grid-template-columns: 1fr; }
  .article-body { max-width: 780px; }
}

@media (max-width: 680px) {
  body { font-size: 15px; }
  .site-header { min-height: 64px; padding: 10px 20px; }
  .wordmark { font-size: 16px; }
  .wordmark-mark { width: 32px; height: 32px; }
  .header-contact { padding: 8px 10px; font-size: 13px; }
  .home-hero, .collection-hero, .simple-hero { width: min(100% - 40px, 1380px); }
  .latest-section, .collection-body, .topic-band, .library-grid, .library-filter, .route-directory, .proof-grid, .contact-layout { width: min(100% - 40px, 1380px); }
  .home-hero { padding-top: 50px; }
  .home-hero > div > p:not(.eyebrow), .collection-hero > div > p:not(.eyebrow), .simple-hero > p:not(.eyebrow) { font-size: 18px; }
  .home-hero-panel { padding: 25px; }
  .home-hero-panel strong { font-size: 47px; }
  .card-grid, .library-grid, .proof-grid { grid-template-columns: 1fr; }
  .topic-band, .topic-route { margin-bottom: 70px; padding: 30px 24px; }
  .collection-hero img { min-height: 300px; }
  .route-directory article { grid-template-columns: 1fr; }
  .route-directory img { min-height: 210px; max-height: 260px; }
  .contact-layout { padding-bottom: 70px; }
  .article-shell { width: min(100% - 40px, 1280px); }
  .article-header { padding-top: 25px; }
  .article-header h1 { font-size: 43px; }
  .article-deck { font-size: 20px; }
  .article-layout { gap: 30px; padding-top: 30px; }
  .toc { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .article-body > h2 { font-size: 33px; }
  .article-body > p, .article-body li { font-size: 17px; }
  .route-links { grid-template-columns: 1fr; }
  .article-cta, .article-inquiry { grid-template-columns: 1fr; padding: 27px 22px; }
  .article-cta a { justify-self: start; }
  .author-card { grid-template-columns: 86px 1fr; gap: 16px; padding: 20px 0; }
  .author-card img { width: 86px; height: 86px; }
  .related-grid { grid-template-columns: 1fr; }
  .calculator { grid-template-columns: 1fr; padding: 22px; }
  .calculator output { align-items: flex-start; flex-direction: column; }
  .site-footer { width: min(100% - 40px, 1380px); grid-template-columns: 1fr; gap: 22px; }
  .footer-meta { align-self: auto; }
}
