/* Shed World — shared styles
   Palette: lichen paper, creosote ink, shed green, carpenter's-pencil yellow, gravel grey */
:root {
  --paper: #ECEFE6;
  --board: #FBFBF7;
  --ink: #2A231D;
  --ink-soft: #4E463E;
  --shed: #24503C;
  --shed-deep: #1A3B2C;
  --pencil: #F2B33D;
  --pencil-soft: #F8DDA0;
  --gravel: #86837B;
  --rule: #C9CDBF;

  --display: "Zilla Slab", "Rockwell", Georgia, serif;
  --body: "Public Sans", "Segoe UI", system-ui, sans-serif;

  /* type scale ~1.333 on an 18px base */
  --t-sm: 0.875rem;
  --t-base: 1.125rem;
  --t-md: 1.375rem;
  --t-lg: 1.75rem;
  --t-xl: 2.375rem;
  --t-xxl: clamp(2.5rem, 5.2vw, 4.25rem);

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-base);
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--shed); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--pencil); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: var(--t-xxl); }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-md); }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--pencil); color: var(--ink); padding: 0.5rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; }
.brand svg { width: 2.1rem; height: 2.1rem; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--gravel); }
.nav a[aria-current="page"] { border-bottom-color: var(--shed); }
.nav .btn { border-bottom: 0; padding: 0.6rem 1.1rem; }
.nav-toggle { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font: 700 1rem/1.2 var(--body); cursor: pointer;
  background: var(--pencil); color: var(--ink); border: 2px solid var(--ink);
  padding: 0.85rem 1.4rem; border-radius: 4px; text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink); transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-plain { background: transparent; box-shadow: none; border-color: currentColor; }
.btn-plain:hover { box-shadow: none; transform: none; background: rgba(0,0,0,0.05); }

/* ---------- tape measure strip (used once per page, under the hero) ---------- */
.tape {
  height: 30px; background-color: var(--pencil);
  background-image:
    repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 100px),
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 50px),
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 10px);
  background-size: 100% 18px, 100% 12px, 100% 7px;
  background-repeat: no-repeat;
  background-position: 0 0, 0 0, 0 0;
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
}

/* ---------- home hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero h1 { max-width: 12ch; }
.hero .lede { font-size: var(--t-md); line-height: 1.5; color: var(--ink-soft); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem 1.25rem; align-items: center; margin-top: 1.75rem; }
.hero-actions .quiet { font-weight: 700; }

.drawing { position: relative; }
.drawing svg { width: 100%; height: auto; overflow: visible; }
.drawing .ln { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.drawing .thin { stroke-width: 1; stroke: var(--gravel); }
.drawing .dim { fill: none; stroke: var(--shed); stroke-width: 1.25; }
.drawing .dimtext { font: 700 15px var(--body); fill: var(--shed); }
.drawing .leader { fill: none; stroke: var(--shed); stroke-width: 1.25; stroke-dasharray: 3 4; }
.drawing .pin { fill: var(--pencil); stroke: var(--ink); stroke-width: 1.5; }
.callout {
  position: absolute; width: 24%; font-size: 0.875rem; line-height: 1.35; color: var(--ink-soft);
}
.callout a { display: block; font-family: var(--display); font-weight: 700; font-size: 1.15rem; line-height: 1.15; color: var(--shed); margin-bottom: 0.2rem; }
.callout.right { text-align: left; }
.c-cost { left: 0; top: 4%; }
.c-roof { right: 0; top: 4%; }
.c-size { left: 0; top: 50%; }
.c-base { right: 0; top: 76%; }
.hero-q { display: none; }

/* draw-on-load: one orchestrated moment */
.drawing .draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .drawing .draw { stroke-dashoffset: 1; animation: draw 1.4s cubic-bezier(.6,.1,.3,1) forwards; }
.js .drawing .d2 { animation-delay: .35s; }
.js .drawing .d3 { animation-delay: .7s; }
.js .drawing .fadein { opacity: 0; animation: fade .6s 1.4s forwards; }
.js .callout { opacity: 0; animation: fade .6s 1.6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .js .drawing .draw, .js .drawing .fadein, .js .callout { animation: none; stroke-dashoffset: 0; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* ---------- sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--ink-soft); max-width: 46ch; }

/* topics */
.topics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.topic { padding: 1.5rem 1.25rem 1.75rem 0; border-right: 1px solid var(--rule); color: var(--ink); text-decoration: none; display: flex; flex-direction: column; gap: 0.6rem; }
.topic + .topic { padding-left: 1.25rem; }
.topic:last-child { border-right: 0; }
.topic svg { width: 56px; height: 56px; }
.topic svg * { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.topic svg .acc { fill: var(--pencil); }
.topic h3 { margin: 0.4rem 0 0; font-size: 1.4rem; color: var(--shed); }
.topic q { font-style: italic; color: var(--ink-soft); quotes: "\201C" "\201D"; }
.topic .count { margin-top: auto; font-size: var(--t-sm); color: var(--gravel); font-weight: 700; }
.topic:hover h3 { text-decoration: underline; text-underline-offset: 0.15em; }

/* guide band */
.guide-band { background: var(--shed); color: var(--board); }
.guide-band .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.guide-band h2 { color: var(--board); }
.guide-band p { color: #D8E2DA; max-width: 52ch; }
.guide-band a { color: var(--pencil-soft); }

.booklet { position: relative; max-width: 300px; margin: 0 auto; transform: rotate(-4deg); }
.booklet .cover {
  aspect-ratio: 210 / 297; background: var(--pencil); border: 2px solid var(--ink); border-radius: 3px 8px 8px 3px;
  box-shadow: 10px 10px 0 var(--shed-deep); padding: 1.4rem 1.25rem; display: flex; flex-direction: column; color: var(--ink);
}
.booklet .cover::before { content: ""; position: absolute; left: 12px; top: 2px; bottom: 2px; width: 2px; background: rgba(42,35,29,0.25); }
.booklet .cover small { font-weight: 700; font-size: 0.8rem; }
.booklet .cover strong { font-family: var(--display); font-size: 2.1rem; line-height: 1; margin-top: 0.4rem; }
.booklet .cover svg { margin-top: auto; }
.booklet .cover span { font-size: 0.8rem; margin-top: 0.6rem; }

.signup { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0.75rem; align-items: end; margin-top: 1.5rem; max-width: 46rem; }
.field label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 0.35rem; }
.field input {
  width: 100%; font: 1rem/1.3 var(--body); padding: 0.85rem 0.9rem; border-radius: 4px;
  border: 2px solid var(--ink); background: var(--board); color: var(--ink);
}
.field input:focus-visible { outline: 3px solid var(--pencil); outline-offset: 1px; }
.field .err { display: block; min-height: 1.3em; font-size: 0.85rem; margin-top: 0.25rem; font-weight: 700; }
.signup .btn { margin-bottom: 1.55rem; }
.guide-band .field .err { color: var(--pencil-soft); }
.form-note { font-size: var(--t-sm); }
.form-done { display: none; padding: 1.25rem 1.4rem; border: 2px solid var(--pencil); border-radius: 4px; margin-top: 1.5rem; max-width: 46rem; }
.form-done h3 { margin-bottom: 0.3rem; }
.is-done .signup { display: none; }
.is-done .form-done { display: block; }

/* latest articles */
.latest { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 4vw, 4rem); }
.feature { color: var(--ink); text-decoration: none; display: block; }
.feature .plate { background: var(--board); border: 2px solid var(--ink); border-radius: 4px; padding: 1.25rem; margin-bottom: 1.25rem; }
.feature h3 { font-size: var(--t-xl); color: var(--shed); margin-bottom: 0.4rem; }
.feature:hover h3 { text-decoration: underline; text-underline-offset: 0.12em; text-decoration-thickness: 2px; }
.feature p { color: var(--ink-soft); max-width: 56ch; }
.meta { font-size: var(--t-sm); color: var(--gravel); font-weight: 700; }
.meta .topic-tag { color: var(--shed); }

.alist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.alist li { border-bottom: 1px solid var(--rule); }
.alist a { display: block; padding: 1.1rem 0; color: var(--ink); text-decoration: none; }
.alist h3 { font-size: 1.3rem; margin: 0.15rem 0 0.3rem; color: var(--ink); }
.alist a:hover h3 { color: var(--shed); text-decoration: underline; text-underline-offset: 0.12em; }
.alist p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* section cross-section drawing (reused) */
.xsec .ln { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.xsec text { font: 700 13px var(--body); fill: var(--ink); }
.xsec .lbl { fill: var(--shed); }

/* ---------- articles page ---------- */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem; }
.page-head h1 { max-width: 16ch; }
.page-head .lede { font-size: var(--t-md); color: var(--ink-soft); max-width: 50ch; line-height: 1.5; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.filters button {
  font: 700 0.95rem/1 var(--body); padding: 0.65rem 1rem; border: 2px solid var(--ink); background: transparent;
  color: var(--ink); border-radius: 999px; cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.filters button:hover { background: rgba(42,35,29,0.08); }
.filters button[aria-pressed="true"]:hover { background: var(--ink); }

.topic-group { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 4vw, 4rem); padding: 2.5rem 0; border-top: 2px solid var(--ink); }
.topic-group[hidden] { display: none; }
.topic-group:last-of-type { border-bottom: 2px solid var(--ink); }
.topic-group .gh svg { width: 64px; height: 64px; margin-bottom: 0.9rem; }
.topic-group .gh svg * { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.topic-group .gh svg .acc { fill: var(--pencil); }
.topic-group .gh h2 { font-size: var(--t-lg); color: var(--shed); }
.topic-group .gh p { color: var(--ink-soft); max-width: 34ch; }
.topic-group .alist { border-top: 0; }
.topic-group .alist li:first-child a { padding-top: 0; }
.badge { display: inline-block; font-size: 0.78rem; font-weight: 700; background: var(--pencil); color: var(--ink); padding: 0.1rem 0.5rem; border-radius: 3px; margin-left: 0.4rem; vertical-align: 0.15em; }
.planned { color: var(--gravel); }

/* ---------- article ---------- */
.crumbs { font-size: var(--t-sm); padding-top: 1.75rem; color: var(--gravel); }
.crumbs a { color: var(--ink-soft); }
.article-head { padding: 1rem 0 2.5rem; }
.article-head h1 { max-width: 18ch; }
.article-head .lede { font-size: var(--t-md); line-height: 1.5; color: var(--ink-soft); max-width: 52ch; }
.article-head .meta { margin-top: 1rem; }

.article-layout { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 44rem); gap: clamp(2rem, 5vw, 5rem); padding-bottom: 4rem; }
.toc { position: sticky; top: 1.5rem; align-self: start; font-size: 0.95rem; }
.toc h2 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
.toc a { display: block; padding: 0.3rem 0 0.3rem 0.9rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--shed); border-left-color: var(--gravel); }
.toc a.on { color: var(--shed); font-weight: 700; border-left-color: var(--shed); }
.toc .btn { margin-top: 1.5rem; font-size: 0.9rem; padding: 0.7rem 1rem; }

.prose { font-size: 1.125rem; }
.prose > * { max-width: 40rem; }
.prose h2 { font-size: var(--t-lg); margin-top: 3rem; padding-top: 0.25rem; scroll-margin-top: 1.5rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.35rem; }

.short-answer { background: var(--board); border: 2px solid var(--ink); border-radius: 4px; padding: 1.25rem 1.5rem; }
.short-answer h2 { font-size: 1.25rem; margin: 0 0 0.4rem; padding: 0; }
.short-answer p:last-child { margin: 0; }

.figure { margin: 2rem 0; background: var(--board); border: 1px solid var(--rule); border-radius: 4px; padding: 1.25rem; }
.figure figcaption { font-size: var(--t-sm); color: var(--ink-soft); margin-top: 0.75rem; }

.checklist { list-style: none; padding: 0 !important; margin: 0 0 1.5rem; border-top: 2px solid var(--ink); }
.checklist li { border-bottom: 1px solid var(--rule); margin: 0 !important; }
.checklist label { display: grid; grid-template-columns: 1.6rem 1fr auto; gap: 0.75rem; align-items: baseline; padding: 0.75rem 0; cursor: pointer; }
.checklist input { width: 1.15rem; height: 1.15rem; accent-color: var(--shed); transform: translateY(2px); }
.checklist .qty { font-weight: 700; color: var(--shed); text-align: right; white-space: nowrap; }
.checklist input:checked ~ .item { text-decoration: line-through; color: var(--gravel); }
.checklist .item small { display: block; color: var(--ink-soft); font-size: 0.9rem; }

.steps { list-style: none; padding: 0 !important; margin: 0; counter-reset: step; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 2rem 4rem; margin: 0 !important; border-left: 2px dashed var(--rule); margin-left: 1.25rem !important; }
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before {
  content: counter(step); position: absolute; left: -1.3rem; top: -0.2rem; width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center; background: var(--pencil); border: 2px solid var(--ink); border-radius: 50%;
  font: 700 1.2rem/1 var(--display);
}
.steps h3 { margin: 0 0 0.4rem; padding-left: 0; font-size: 1.35rem; }
.steps p { margin-bottom: 0.6rem; }
.tip { font-size: 1rem; background: rgba(242,179,61,0.18); border-left: 4px solid var(--pencil); padding: 0.6rem 0.9rem; border-radius: 0 4px 4px 0; }

.table-wrap { overflow-x: auto; max-width: 100%; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; }
caption { text-align: left; font-size: var(--t-sm); color: var(--ink-soft); caption-side: bottom; padding-top: 0.6rem; }
th, td { text-align: left; padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { border-bottom: 2px solid var(--ink); font-family: var(--display); font-size: 1.05rem; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tfoot td, tfoot th { border-top: 2px solid var(--ink); border-bottom: 0; font-weight: 700; }

.calc { background: var(--board); border: 2px solid var(--ink); border-radius: 4px; padding: 1.4rem 1.5rem; margin: 1.5rem 0; }
.calc h3 { margin-top: 0; }
.calc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.calc .field input { padding: 0.65rem 0.7rem; }
.calc output { display: block; margin-top: 1rem; font-size: 1.05rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.calc output strong { font-family: var(--display); font-size: 1.6rem; color: var(--shed); }

.picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0 0.5rem; max-width: none !important; }
.pick { border: 1px solid var(--rule); background: var(--board); border-radius: 4px; padding: 1rem; display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.98rem; }
.pick .ex { font-size: 0.8rem; font-weight: 700; color: var(--gravel); }
.pick h3 { font-size: 1.15rem; margin: 0; }
.pick p { margin: 0; color: var(--ink-soft); }
.pick a { margin-top: auto; font-weight: 700; padding-top: 0.5rem; }

.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 2px solid var(--ink); }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 1.2rem; padding: 1rem 2rem 1rem 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.85rem; font-size: 1.5rem; color: var(--shed); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1rem; }

.inline-guide { background: var(--shed); color: var(--board); border-radius: 4px; padding: 1.75rem; margin-top: 3rem; display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; }
.inline-guide h2 { color: var(--board); margin: 0 0 0.4rem !important; padding: 0; font-size: 1.5rem; }
.inline-guide p { color: #D8E2DA; margin: 0 0 1rem; }
.mini-cover { width: 84px; aspect-ratio: 210/297; background: var(--pencil); border: 2px solid var(--ink); border-radius: 2px 5px 5px 2px; transform: rotate(-5deg); display: grid; place-items: center; font: 700 0.8rem/1.05 var(--display); color: var(--ink); text-align: center; padding: 0.4rem; box-shadow: 5px 5px 0 var(--shed-deep); }

/* ---------- guide page ---------- */
.guide-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.guide-hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.guide-hero .lede { font-size: var(--t-md); color: var(--ink-soft); max-width: 44ch; line-height: 1.5; }
.form-panel { background: var(--board); border: 2px solid var(--ink); border-radius: 4px; padding: 1.75rem; box-shadow: 6px 6px 0 var(--shed); }
.form-panel h2 { font-size: 1.6rem; }
.form-panel .field { margin-bottom: 0.4rem; }
.form-panel .field .err { color: #9A2B12; }
.form-panel .btn { width: 100%; margin-top: 0.25rem; }
.form-panel .form-note { color: var(--ink-soft); margin: 1rem 0 0; }
.form-panel .form-done { border-color: var(--shed); margin-top: 0; }
.form-panel.is-done form { display: none; }
.form-panel.is-done .form-done { display: block; }

.contents { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 4vw, 4rem); }
.contents h2 { color: var(--shed); }
.chapters { list-style: none; margin: 0; padding: 0; counter-reset: ch; border-top: 2px solid var(--ink); }
.chapters li { counter-increment: ch; display: grid; grid-template-columns: 3rem 1fr auto; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.chapters li::before { content: counter(ch); font: 700 1.6rem/1 var(--display); color: var(--shed); }
.chapters h3 { margin: 0 0 0.25rem; font-size: 1.25rem; }
.chapters p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.chapters .pp { font-size: var(--t-sm); color: var(--gravel); font-weight: 700; white-space: nowrap; }

.sample-page { background: var(--board); border: 2px solid var(--ink); border-radius: 4px; padding: 1.5rem; max-width: 34rem; }
.sample-page .sp-head { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--t-sm); color: var(--ink-soft); margin-bottom: 0.75rem; }
.sample-page h3 { font-size: 1.3rem; }
.score { list-style: none; padding: 0; margin: 0; }
.score li { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px dashed var(--rule); font-size: 0.98rem; }
.boxes { display: flex; gap: 4px; }
.boxes i { width: 18px; height: 18px; border: 1.5px solid var(--ink); border-radius: 2px; }
.boxes i.f { background: var(--pencil); }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.plain-list { padding-left: 1.2rem; }
.plain-list li { margin-bottom: 0.5rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #D9D4CC; padding: 3rem 0 2.5rem; margin-top: 0; font-size: 0.95rem; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr); gap: 2rem; }
.site-footer .brand { color: var(--paper); }
.site-footer .brand svg path, .site-footer .brand svg rect { stroke: var(--paper); }
.site-footer a { color: var(--paper); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer h2 { font-size: 1rem; color: var(--paper); margin-bottom: 0.6rem; }
.site-footer .small { font-size: 0.85rem; color: #A9A397; margin-top: 1rem; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .topics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .topic:nth-child(3) { border-right: 0; }
  .topic:nth-child(4) { padding-left: 0; }
  .topic:nth-child(n+4) { border-top: 1px solid var(--rule); }
  .picks { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero .wrap, .guide-band .wrap, .latest, .guide-hero .wrap, .contents, .two-col, .topic-group { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; background: var(--board); border: 1px solid var(--rule); border-radius: 4px; padding: 1rem 1.25rem; }
  .toc .btn { display: none; }
  .signup { grid-template-columns: 1fr 1fr; }
  .signup .btn { grid-column: 1 / -1; justify-self: start; margin-bottom: 0; }
  .booklet { max-width: 220px; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .callout, .drawing .leader, .drawing .pin { display: none; }
  .hero-q { display: block; list-style: none; padding: 0; margin: 1.25rem 0 0; border-top: 2px solid var(--ink); }
  .hero-q li { border-bottom: 1px solid var(--rule); }
  .hero-q a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; font-weight: 700; text-decoration: none; }
  .hero-q span { color: var(--ink-soft); font-weight: 400; font-size: 0.95rem; text-align: right; }
  .nav-toggle { display: inline-block; font: 700 1rem var(--body); background: none; border: 2px solid var(--ink); border-radius: 4px; padding: 0.5rem 0.8rem; color: var(--ink); cursor: pointer; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 4.5rem; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem var(--gutter) 1.25rem; border-bottom: 2px solid var(--ink); z-index: 20; }
  .nav.open { display: flex; }
  .nav a { padding: 0.8rem 0; border-bottom: 1px solid var(--rule); }
  .nav .btn { margin-top: 0.9rem; text-align: center; border: 2px solid var(--ink); padding: 0.85rem; }
  .site-header { position: relative; }
  .topics { grid-template-columns: 1fr; }
  .topic, .topic + .topic { padding: 1.1rem 0; border-right: 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 48px 1fr; column-gap: 1rem; row-gap: 0.2rem; }
  .topic:first-child { border-top: 0; }
  .topic svg { width: 44px; height: 44px; grid-row: span 3; }
  .topic h3 { margin: 0; }
  .signup { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr 1fr; }
  .picks { grid-template-columns: 1fr; }
  .inline-guide { grid-template-columns: 1fr; }
  .chapters li { grid-template-columns: 2.25rem 1fr; }
  .chapters .pp { grid-column: 2; }
  .steps > li { padding-left: 2.6rem; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  th, td { padding: 0.6rem 0.4rem; }
  .checklist label { grid-template-columns: 1.4rem 1fr; }
  .checklist .qty { grid-column: 2; text-align: left; }
}
