/* Ladybug Luck Woodworks */
@font-face {
  font-family: "Archivo Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"), url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Literata Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("../fonts/literata-latin-standard-normal.woff2") format("woff2-variations"), url("../fonts/literata-latin-standard-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Literata Variable";
  font-style: italic;
  font-display: swap;
  font-weight: 200 900;
  src: url("../fonts/literata-latin-standard-italic.woff2") format("woff2-variations"), url("../fonts/literata-latin-standard-italic.woff2") format("woff2");
}

:root {
  /* Paper-white shop, walnut ink, ladybug red for actions. The woods supply every other color.
     Layout: left-aligned columns on a 1200px frame; the sample chip is the recurring object. */
  --paper: #fdfcfa;
  --panel: #eef0ee;
  --ink: #2a201b;
  --ink-soft: #5f5651;
  --line: #dcd8d2;
  --ladybug: #c8301f;
  --ladybug-deep: #a3261a;
  --brass: #c29a4b;
  --food-ideal: #1f5c36;
  --food-good: #3a7347;
  --food-serving: #855512;
  --food-no: #8e2a20;
  --font-display: "Archivo Variable", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Literata Variable", "Literata", Georgia, "Times New Roman", serif;
  --frame: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 3.2vw, 2.6rem);
  --step-4: clamp(2.3rem, 4.4vw, 3.55rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.62;
  font-optical-sizing: auto;
}
img, canvas, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--ladybug); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: 118%;
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-stretch: 108%; font-weight: 700; letter-spacing: 0; line-height: 1.2; }
h4 { font-size: 1rem; font-stretch: 100%; font-weight: 700; letter-spacing: 0; }
:focus-visible { outline: 3px solid var(--ladybug); outline-offset: 3px; border-radius: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 10; font-family: var(--font-display); }
.skip:focus { top: 12px; }

.frame { width: 100%; max-width: calc(var(--frame) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: 40rem; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink); max-width: 36rem; }
.muted { color: var(--ink-soft); }
.small { font-size: var(--step--1); line-height: 1.5; }
.ui { font-family: var(--font-display); font-stretch: 100%; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-head .frame { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: 0 1 auto; min-width: 0; }
.brand img { height: 56px; width: auto; max-width: 100%; }
.nav { display: flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 560; font-size: 0.98rem; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 4px; }
.nav a:hover { background: var(--panel); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--ladybug); text-decoration-thickness: 2px; text-underline-offset: 0.4em; }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; font: 600 1rem var(--font-display); background: none; border: 1px solid var(--line); border-radius: 4px; padding: 8px 12px; color: var(--ink); cursor: pointer; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 18px; z-index: 5; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .btn { margin: 14px 0 0; text-align: center; border-bottom: 0; }
  .site-head { position: relative; }
  .site-head .frame { min-height: 72px; }
  .brand img { height: auto; width: min(300px, calc(100vw - 150px)); }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-stretch: 100%; font-weight: 650; font-size: 1rem; line-height: 1.2;
  padding: 13px 20px; border-radius: 4px; border: 2px solid var(--ink); background: transparent; color: var(--ink);
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--panel); }
.btn-primary { background: var(--ladybug); border-color: var(--ladybug); color: #fff; }
.btn-primary:hover { background: var(--ladybug-deep); border-color: var(--ladybug-deep); }
.nav .btn { padding: 9px 14px; border-width: 2px; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-family: var(--font-display); font-weight: 620; text-decoration: underline; text-decoration-color: var(--ladybug); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }

/* Sections */
.band { padding: clamp(56px, 8vw, 104px) 0; }
.band-panel { background: var(--panel); }
.band-ink { background: var(--ink); color: var(--paper); }
.band-ink a { color: var(--paper); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: 40px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--ink-soft); max-width: 34rem; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* Hero */
.hero { padding: clamp(32px, 5vw, 60px) 0 clamp(40px, 6vw, 64px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px 56px; align-items: end; }
.hero h1 { margin-bottom: 0; }
.hero .lede { margin: 0 0 22px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Board (illustrated plank with color over time) */
.board { margin-top: clamp(28px, 4vw, 44px); }
.board-stage { position: relative; }
.board-face { position: relative; border-radius: 3px 3px 0 0; overflow: hidden; background: var(--board-color, #dcae91); aspect-ratio: 4 / 1; }
.board-face img, .board-face canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.board-face canvas { opacity: 0; transition: opacity 320ms ease; }
.board-face canvas.on { opacity: 1; }
.board-edge { height: clamp(8px, 1.3vw, 14px); background: var(--board-edge, #8a5a44); border-radius: 0 0 3px 3px; transition: background-color 320ms ease; }
.board-shadow { height: 18px; margin: 0 2%; background: radial-gradient(closest-side, rgba(42, 32, 27, 0.28), rgba(42, 32, 27, 0)); }
.board-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: start; margin-top: 8px; }
.board-note { max-width: 40rem; }
.board-note p { margin: 0 0 6px; }
.board-note .ui { font-weight: 650; }
.board-legend { font-family: var(--font-display); font-size: 0.82rem; color: var(--ink-soft); margin-top: 10px; }
.board-controls.single { grid-template-columns: 1fr; }
@media (max-width: 900px) { .board-controls { grid-template-columns: 1fr; } .board-face { aspect-ratio: 3 / 1; } }
@media (max-width: 520px) { .board-face { aspect-ratio: 2.2 / 1; } }

.picker { display: flex; flex-wrap: wrap; gap: 8px; }
.picker button, .stage button {
  font: 600 0.95rem/1.2 var(--font-display); font-stretch: 100%; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 4px; padding: 9px 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.picker button:hover, .stage button:hover { border-color: var(--ink-soft); }
.picker button[aria-pressed="true"], .stage button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.swatch { width: 16px; height: 16px; border-radius: 2px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(42, 32, 27, 0.18); flex: none; }
.stage { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stage-title { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; margin: 0 0 8px; }
.stage-wrap { min-width: 0; }

/* Sample chips */
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 28px 20px; }
.chip { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); }
.chip[hidden] { display: none; }
.chip-link { text-decoration: none; display: block; }
.chip-face { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--wood); overflow: hidden; }
.chip-face img { width: 100%; height: 100%; object-fit: cover; }
.chip-hole { position: absolute; left: 12px; top: 12px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(255, 255, 255, 0.35); }
.chip-body { padding: 12px 14px 0; display: grid; gap: 2px; }
.chip-no { font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.chip-name { font-family: var(--font-display); font-stretch: 108%; font-weight: 720; font-size: 1.12rem; line-height: 1.2; }
.chip-link:hover .chip-name { text-decoration: underline; text-decoration-color: var(--ladybug); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.chip-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 8px; padding: 10px 14px 14px; margin-top: auto; font-family: var(--font-display); font-size: 0.86rem; }
.chip-stats { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.chip-janka { font-variant-numeric: tabular-nums; font-weight: 650; }
.chip-janka .muted { font-weight: 500; }
.chip-food { grid-column: 1 / -1; min-height: 23px; display: flex; align-items: center; }

.save {
  font: 600 0.84rem/1 var(--font-display); color: var(--ink); background: none; border: 1.5px solid var(--line);
  border-radius: 4px; padding: 6px 9px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center;
}
.save svg { width: 12px; height: 12px; }
.save[aria-pressed="true"] { border-color: var(--ladybug); color: var(--ladybug-deep); }
.save[aria-pressed="true"] .dot { fill: var(--ladybug); }

.cost { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.cost .off { color: #cfc9c1; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; font: 650 0.78rem/1 var(--font-display);
  padding: 5px 8px 5px 7px; border-radius: 3px; color: #fff; white-space: nowrap;
}
.badge svg { width: 11px; height: 11px; }
.badge-ideal { background: var(--food-ideal); }
.badge-good { background: var(--food-good); }
.badge-serving { background: var(--food-serving); }
.badge-no { background: var(--food-no); }
.badge-none { background: #8a837d; }

.bars { display: inline-flex; gap: 3px; vertical-align: middle; }
.bars i { width: 9px; height: 9px; background: #e0dad2; border-radius: 1px; }
.bars i.on { background: #8a5a2b; }
.dots { display: inline-flex; gap: 3px; vertical-align: middle; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #e0dad2; }
.dots i.on { background: var(--ink); }

/* Home: what I build, process, work */
.offer { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.offer > div { padding: 22px 24px 8px 0; }
.offer > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.offer h3 { margin-bottom: 8px; }
.offer p { color: var(--ink-soft); margin: 0; }
@media (max-width: 960px) { .offer { grid-template-columns: repeat(2, minmax(0, 1fr)); } .offer > div:nth-child(3) { border-left: 0; padding-left: 0; } .offer > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .offer { grid-template-columns: 1fr; } .offer > div, .offer > div + div { padding-left: 0; border-left: 0; } .offer > div + div { border-top: 1px solid var(--line); } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font: 800 1.15rem/1 var(--font-display); font-stretch: 112%;
  background: var(--paper); border: 2px solid var(--ink);
}
.steps li::after { content: ""; position: absolute; top: 21px; left: 52px; right: -18px; height: 2px; background: repeating-linear-gradient(90deg, var(--ink-soft) 0 6px, transparent 6px 12px); opacity: 0.5; }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-soft); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps li::after { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.work { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 20px 16px; }
.work figure { margin: 0; }
.work img { width: 100%; height: auto; object-fit: cover; border-radius: 2px; }
.work .w-main { grid-row: span 2; display: flex; flex-direction: column; }
.work .w-main img { flex: 1 1 0; min-height: 0; height: 100%; }
.work .w-side img { aspect-ratio: 4 / 3; }
.work figcaption { font-size: var(--step--1); color: var(--ink-soft); margin-top: 8px; line-height: 1.45; }
.work-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .work { grid-template-columns: 1fr; } .work .w-main { grid-row: auto; display: block; } .work .w-main img { height: auto; aspect-ratio: 4 / 3; } }

.deck { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 18px; scroll-snap-type: x proximity; }
.deck a { flex: 0 0 150px; scroll-snap-align: start; text-decoration: none; font-family: var(--font-display); font-weight: 650; font-size: 0.92rem; }
.deck .chip-face { border: 1px solid var(--line); margin-bottom: 8px; }
.deck a:hover span.n { text-decoration: underline; text-decoration-color: var(--ladybug); }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px 64px; align-items: start; }
.about .mark { width: min(100%, 480px); border-radius: 4px; box-shadow: 0 22px 34px -24px rgba(42, 32, 27, 0.55); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

.faq { border-top: 2px solid var(--ink); max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-family: var(--font-display); font-weight: 680; font-size: 1.12rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.6rem; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 14px; max-width: 42rem; }

.cta { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 24px 48px; align-items: center; }
.cta h2 { margin: 0 0 8px; }
.cta p { margin: 0; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: var(--step--1); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.foot-grid h2 { font-size: 1rem; font-stretch: 100%; margin-bottom: 10px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-family: var(--font-display); }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
.foot-brand img { width: 230px; margin-bottom: 12px; }
.foot-legal { margin-top: 32px; color: var(--ink-soft); font-family: var(--font-display); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* Wood guide hub */
.page-head { padding: clamp(36px, 5vw, 64px) 0 28px; }
.crumbs { font-family: var(--font-display); font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 18px; }
.crumbs a { color: var(--ink-soft); }
.topics { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--font-display); font-weight: 600; margin-top: 18px; }
.finder { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); padding: 18px 0; margin-bottom: 28px; display: grid; gap: 14px; }
.finder fieldset { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 8px 16px; align-items: center; }
.finder legend { float: left; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; padding: 0; }
.finder .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.finder label { font: 560 0.92rem/1.2 var(--font-display); }
.finder input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.finder input[type="radio"] + span { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 4px; padding: 7px 11px; cursor: pointer; background: var(--paper); }
.finder input[type="radio"]:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 700; }
.finder input[type="radio"]:focus-visible + span { outline: 3px solid var(--ladybug); outline-offset: 2px; }
.finder-status { font-family: var(--font-display); font-weight: 600; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.finder-status button { font: 600 0.9rem var(--font-display); background: none; border: 0; text-decoration: underline; cursor: pointer; color: var(--ink); padding: 4px; }
@media (max-width: 640px) { .finder fieldset { grid-template-columns: 1fr; } }
.empty { padding: 28px; border: 1px dashed var(--ink-soft); font-family: var(--font-display); }

.table-wrap { overflow-x: auto; border-top: 2px solid var(--ink); }
table.glance { border-collapse: collapse; width: 100%; min-width: 760px; font-family: var(--font-display); font-size: 0.95rem; }
.glance th, .glance td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.glance th { font-weight: 700; font-size: 0.86rem; color: var(--ink-soft); white-space: nowrap; }
.glance th button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.glance th[aria-sort] button { color: var(--ink); }
.glance th[aria-sort="ascending"] button::after { content: "\2191"; }
.glance th[aria-sort="descending"] button::after { content: "\2193"; }
.glance td.num { font-variant-numeric: tabular-nums; font-weight: 650; text-align: right; padding-right: 22px; }
.glance th.num { text-align: right; padding-right: 22px; }
.glance a { text-decoration: none; font-weight: 650; display: inline-flex; align-items: center; gap: 8px; }
.glance a:hover { text-decoration: underline; }
.note { border-left: 3px solid var(--brass); padding: 4px 0 4px 16px; color: var(--ink-soft); max-width: 44rem; }

/* Species page */
.wood-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 40px; align-items: end; }
.wood-num { font-family: var(--font-display); font-weight: 650; color: var(--ink-soft); margin: 0 0 6px; font-variant-numeric: tabular-nums; }
.wood-aka { font-family: var(--font-display); color: var(--ink-soft); margin: -4px 0 10px; }
.tagline { font-style: italic; font-size: var(--step-1); line-height: 1.5; max-width: 44rem; margin: 0; }
.wood-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .wood-head { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); margin: 36px 0 8px; }
.stats > div { padding: 14px 18px 16px 0; font-family: var(--font-display); }
.stats > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.stats dt { font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; }
.stats dd { margin: 0; }
.stat-big { font-size: 1.5rem; font-weight: 780; font-stretch: 110%; font-variant-numeric: tabular-nums; line-height: 1.1; margin-right: 6px; }
.stat-sub { display: block; font-size: 0.86rem; color: var(--ink-soft); margin-top: 6px; line-height: 1.4; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats > div:nth-child(3) { border-left: 0; padding-left: 0; } .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 460px) { .stats { grid-template-columns: 1fr; } .stats > div, .stats > div + div { padding-left: 0; border-left: 0; } .stats > div + div { border-top: 1px solid var(--line); } }

.greatfor { font-family: var(--font-display); margin: 14px 0 0; }
.greatfor strong { font-weight: 700; }

.facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 64px; margin-top: 40px; }
.facts section { margin-bottom: 26px; }
.facts h2 { font-size: 1.1rem; font-stretch: 112%; font-weight: 760; margin-bottom: 8px; }
.facts p { margin: 0; }
.facts .dots { margin-right: 8px; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr; } }
.food-line { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; }
.warning { margin-top: 14px; border: 2px solid var(--food-no); padding: 14px 16px; }
.warning h3 { color: var(--food-no); font-size: 1rem; margin-bottom: 6px; }
.pairs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pairs li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.pairs .swatch { width: 22px; height: 22px; margin-top: 3px; }
.pairs b { font-family: var(--font-display); font-weight: 700; }
.pairs a { font-family: var(--font-display); font-weight: 700; }
.pairs .x { width: 22px; height: 22px; display: grid; place-items: center; font: 700 1rem var(--font-display); color: var(--food-no); }

.shop-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.shop-photos figure { margin: 0; }
.shop-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.shop-photos figcaption { font-size: var(--step--1); color: var(--ink-soft); margin-top: 8px; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--line); padding-top: 22px; font-family: var(--font-display); }
.pager a { text-decoration: none; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.pager a:hover .pn { text-decoration: underline; text-decoration-color: var(--ladybug); }
.pager .next { justify-self: end; text-align: right; grid-template-columns: 1fr auto; }
.pager small { display: block; color: var(--ink-soft); font-size: 0.82rem; }
.pager .pn { font-weight: 700; font-size: 1.05rem; }
.pager .swatch { width: 34px; height: 34px; }

/* Wood 101 */
.toc { font-family: var(--font-display); columns: 2; column-gap: 32px; padding: 0; margin: 18px 0 0; list-style: none; max-width: 36rem; }
.toc li { padding: 4px 0; break-inside: avoid; }
.toc a { font-weight: 620; }
.topic { padding: 44px 0; border-top: 1px solid var(--line); }
.topic:first-of-type { border-top: 0; }
.topic-grid { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 16px 56px; }
.topic-grid h2 { font-size: var(--step-2); }
@media (max-width: 860px) { .topic-grid { grid-template-columns: 1fr; } .toc { columns: 1; } }
.janka-chart { margin: 26px 0 8px; display: grid; gap: 8px; font-family: var(--font-display); }
.janka-row { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 12px; align-items: center; }
.janka-row .lbl { font-weight: 650; font-size: 0.95rem; text-align: right; }
.janka-track { position: relative; height: 26px; }
.janka-bar { height: 100%; background: var(--c, #8a5a2b); border-radius: 0 2px 2px 0; display: flex; align-items: center; justify-content: flex-end; min-width: 3.4rem; }
.janka-bar span { font-weight: 750; font-size: 0.85rem; color: #fff; padding-right: 8px; font-variant-numeric: tabular-nums; }
.janka-bar.light span { color: var(--ink); }
.janka-row .why { grid-column: 2; font-size: 0.84rem; color: var(--ink-soft); margin-top: -2px; }
.janka-axis { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 12px; font-family: var(--font-display); font-size: 0.8rem; color: var(--ink-soft); }
.janka-axis div:last-child { display: flex; justify-content: space-between; border-top: 1px solid var(--ink-soft); padding-top: 4px; }
@media (max-width: 560px) { .janka-row, .janka-axis { grid-template-columns: 1fr; } .janka-row .lbl { text-align: left; } .janka-row .why { grid-column: 1; } .janka-axis div:first-child { display: none; } }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; }
.two-up > div { border-top: 2px solid var(--ink); padding-top: 14px; }
@media (max-width: 760px) { .two-up { grid-template-columns: 1fr; } }
.scale { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-family: var(--font-display); }
.scale li { display: flex; gap: 12px; align-items: center; }
.food-key { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 10px; }
.food-key li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 12px; align-items: baseline; }
@media (max-width: 560px) { .food-key li { grid-template-columns: 1fr; gap: 4px; } }

/* Start a project */
.form-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px 64px; align-items: start; }
@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr; } }
form.project { display: grid; gap: 22px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label, .field legend, .fieldset legend { font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; }
.field .hint { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }
.req { color: var(--ladybug-deep); font-weight: 700; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  font: 400 1rem/1.4 var(--font-body); color: var(--ink); background: #fff; width: 100%;
  border: 1.5px solid #bdb6ae; border-radius: 4px; padding: 11px 12px;
}
textarea { min-height: 150px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--ladybug); outline-offset: 1px; border-color: var(--ink); }
.fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fieldset legend { margin-bottom: 8px; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; font: 560 0.94rem/1.2 var(--font-display); }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices input + span { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid #cfc9c1; border-radius: 4px; padding: 9px 12px; cursor: pointer; background: #fff; }
.choices input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 700; }
.choices input:focus-visible + span { outline: 3px solid var(--ladybug); outline-offset: 2px; }
.choices input:checked + span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ladybug); }
.field-error { color: var(--food-no); font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; margin: 0; }
.aside { border-top: 2px solid var(--ink); padding-top: 16px; }
.aside ol { padding-left: 1.2em; margin: 0 0 22px; }
.aside li { margin-bottom: 8px; }
.result { border: 2px solid var(--ink); padding: 20px; display: grid; gap: 12px; }
.result[hidden] { display: none; }
.result pre { white-space: pre-wrap; font: 400 0.92rem/1.5 var(--font-body); background: var(--panel); padding: 14px; margin: 0; max-height: 280px; overflow: auto; }

/* Shortlist pill */
.shortlist {
  position: fixed; right: 16px; bottom: 16px; z-index: 20; display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper); padding: 10px 12px 10px 16px; border-radius: 6px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5);
}
.shortlist[hidden] { display: none; }
.shortlist .swatches { display: flex; }
.shortlist .swatches i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); margin-left: -5px; background: var(--c); }
.shortlist .swatches i:first-child { margin-left: 0; }
.shortlist a { background: var(--ladybug); color: #fff; text-decoration: none; padding: 7px 10px; border-radius: 4px; }
.shortlist a:hover { background: var(--ladybug-deep); }

/* 404 */
.lost { padding: 96px 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-head nav, .shortlist, .nav-toggle, .board-controls .picker { display: none !important; }
  body { font-size: 11pt; }
}
