/* Smoke Showing v2 — cream / charcoal / ember */
:root {
  --cream: #f7f1e8;
  --cream-deep: #efe6d8;
  --paper: #fffcf7;
  --ink: #1c1917;
  --ink-soft: #3d3832;
  --muted: #6f675e;
  --line: #e2d5c4;
  --line-strong: #cfbda6;
  --rust: #c2410c;
  --rust-deep: #9a3412;
  --ember: #ea580c;
  --ember-soft: #fff0e4;
  --charcoal: #1c1917;
  --charcoal-2: #292524;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 8px 28px rgba(28, 25, 23, 0.07);
  --shadow-lg: 0 18px 48px rgba(28, 25, 23, 0.12);
  --max: 1120px;
  --read: 40rem; /* ~65ch reading measure */
  --serif: "Iowan Old Style", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  /* Sticky header occupied height (brand row). Extra gap keeps targets fully visible. */
  --header-sticky-height: 4.5rem; /* ~.95rem*2 pad + 40px mark + line */
  --anchor-gap: 0.85rem;
  --anchor-clearance: calc(var(--header-sticky-height) + var(--anchor-gap));
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  /* Applies to ALL fragment navigations (#binder, h2 ids, etc.) */
  scroll-padding-top: var(--anchor-clearance);
}

/* Wrapped header (nav below brand) needs more clearance */
@media (max-width: 720px) {
  :root {
    --header-sticky-height: 7.25rem; /* brand row + wrapped nav + pads */
  }
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 0% -8%, rgba(194,65,12,.09), transparent 55%),
    radial-gradient(700px 420px at 100% 0%, rgba(234,88,12,.07), transparent 50%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
  font-family: var(--sans);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust-deep); }
a:hover { color: var(--rust); }
a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(194,65,12,.45);
  outline-offset: 2px;
}

.wrap { width: min(100% - 1.5rem, var(--max)); margin-inline: auto; }
@media (min-width: 640px) {
  .wrap { width: min(100% - 2.5rem, var(--max)); }
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: .65rem 1rem;
  border-radius: 999px; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  gap: .85rem 1.25rem; flex-wrap: wrap;
  padding: .95rem 0;
}
.site-header.is-sticky {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,241,232,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.site-header.is-sticky:hover,
.site-header.is-sticky:focus-within { border-bottom-color: var(--line); }

.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  text-decoration: none; color: var(--ink); min-width: 0;
}
.brand-mark { width: 40px; height: 40px; flex: 0 0 auto; }
.brand-word {
  font-family: var(--serif); font-weight: 700; font-size: 1.28rem;
  letter-spacing: -.015em; line-height: 1.05;
  white-space: nowrap;
}
.brand-word .showing { color: var(--rust); display: inline; }

.nav {
  display: flex; gap: .25rem .85rem; flex-wrap: wrap; align-items: center;
  max-width: 100%;
}
.nav a {
  color: var(--ink-soft); text-decoration: none; font-size: .92rem; font-weight: 600;
  padding: .25rem 0;
}
.nav a:hover { color: var(--rust); }
.nav .nav-cta {
  background: var(--rust); color: #fff !important;
  padding: .5rem .95rem; border-radius: 999px;
}
.nav .nav-cta:hover { background: var(--rust-deep); }

/* Hero */
.hero {
  display: grid; gap: 1.5rem;
  padding: 1.75rem 0 1rem;
  align-items: stretch;
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 2rem; padding: 2.4rem 0 1.4rem;
  }
}
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  border: 1px solid var(--line-strong);
  background: rgba(255,252,247,.75);
  padding: .35rem .75rem; border-radius: 999px;
  color: var(--muted); font-size: .8rem; font-weight: 650;
}
.badge-dot {
  width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 3px rgba(234,88,12,.18);
}
.hero h1, h1.page {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.8vw, 3.15rem);
  line-height: 1.08; letter-spacing: -.02em;
  margin: .75rem 0 .9rem; color: var(--ink);
  max-width: 18ch;
}
.lede {
  font-size: 1.08rem; color: var(--ink-soft);
  max-width: 38rem; margin: 0;
}
.lede strong { color: var(--ink); font-weight: 650; }

.cta-row {
  display: flex; gap: .65rem; flex-wrap: wrap;
  margin-top: 1.35rem;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .35rem; border-radius: 999px;
  padding: .8rem 1.15rem; text-decoration: none; font-weight: 650;
  border: 1px solid transparent;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  max-width: 100%;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--rust); color: #fff; }
.btn-primary:hover { background: var(--rust-deep); color: #fff; }
.btn-ghost {
  background: rgba(255,252,247,.85);
  border-color: var(--line-strong); color: var(--ink);
}
.btn-ghost:hover { border-color: var(--rust); color: var(--rust-deep); }

.hero-visual {
  margin: 0; border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--charcoal);
  min-height: 220px;
  position: relative;
}
.hero-visual img {
  width: 100%; height: 100%; min-height: 240px;
  object-fit: cover; object-position: center;
}
.hero-visual figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .7rem 1rem;
  background: linear-gradient(transparent, rgba(28,25,23,.78));
  color: #f3e7d8; font-size: .8rem;
}

/* Sections */
.section { padding: 2rem 0; }
@media (min-width: 900px) { .section { padding: 2.6rem 0; } }
.section-head { margin-bottom: 1.15rem; }
.section h2, h2 {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.8vw, 1.95rem);
  margin: 0; letter-spacing: -.015em;
}
.section .sub { color: var(--muted); margin: .4rem 0 0; max-width: 40rem; }

.grid { display: grid; gap: 1rem; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  box-shadow: var(--shadow);
  min-width: 0; /* prevent grid blowout */
}
.card-link {
  text-decoration: none; color: inherit; display: block; height: 100%;
  transition: border-color .15s ease, transform .15s ease;
}
a.card-link:hover {
  border-color: #e0ae80; transform: translateY(-2px); color: inherit;
}
.card h3 {
  font-family: var(--serif); font-size: 1.22rem;
  margin: .15rem 0 .4rem; color: var(--ink);
}
.card p, .muted { color: var(--muted); margin: 0; }
.card .more {
  display: inline-flex; margin-top: .85rem;
  font-weight: 650; color: var(--rust); font-size: .94rem;
}
.pill {
  display: inline-block; font-size: .7rem; text-transform: uppercase;
  letter-spacing: .07em; color: var(--rust); font-weight: 700; margin-bottom: .3rem;
}

.about-band {
  display: grid; gap: 1rem;
  background: var(--charcoal); color: #f5efe6;
  border-radius: 22px; padding: 1.45rem 1.35rem;
  box-shadow: var(--shadow-lg);
  align-items: center;
}
@media (min-width: 800px) {
  .about-band { grid-template-columns: auto 1fr; padding: 1.7rem 1.9rem; gap: 1.4rem; }
}
.about-band .mark { width: 68px; height: 68px; }
.about-band h2 { color: #fff; margin: 0 0 .45rem; }
.about-band p { margin: 0; color: #e4d0bb; max-width: 44rem; }
.about-band strong { color: #fff; }

.signup {
  border: 1px solid #efc7a0;
  background: linear-gradient(180deg, #fff7ee 0%, var(--paper) 100%);
}
.signup h2 { margin: .1rem 0 .5rem; }
.note { font-size: .86rem; color: var(--muted); margin-top: .8rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2.2rem; padding: 2rem 0 2.8rem;
  color: var(--muted); font-size: .9rem;
}
.footer-grid {
  display: grid; gap: 1.4rem;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 1.75rem; }
}
.site-footer strong { color: var(--ink); }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--rust); }
.footer-col h3 {
  font-family: var(--serif); font-size: 1rem; margin: 0 0 .55rem; color: var(--ink);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: .35rem 0; }
.footer-brand {
  display: flex; align-items: center; gap: .55rem; margin-bottom: .65rem;
}
.footer-brand img { width: 36px; height: 36px; }

/* Article layout: reading column + jump nav */
.article-shell {
  display: grid; gap: 1.25rem;
  padding: 1.1rem 0 1.5rem;
}
@media (min-width: 980px) {
  .article-shell {
    grid-template-columns: 13.5rem minmax(0, var(--read));
    column-gap: 2.25rem;
    align-items: start;
    justify-content: center;
  }
}
.jump-nav {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .9rem 1rem;
  box-shadow: var(--shadow);
}
@media (min-width: 980px) {
  .jump-nav { position: sticky; top: var(--header-sticky-height); }
}
.jump-nav h2 {
  font-family: var(--sans); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); margin: 0 0 .5rem; font-weight: 700;
}
.jump-nav ol {
  margin: 0; padding-left: 1.1rem; color: var(--ink-soft); font-size: .9rem;
}
.jump-nav li { margin: .35rem 0; }
.jump-nav a { text-decoration: none; color: var(--ink-soft); }
.jump-nav a:hover { color: var(--rust); }

.article-hero { margin-bottom: .4rem; }
.article-hero h1 {
  max-width: 22ch;
  font-size: clamp(1.85rem, 4vw, 2.55rem);
}
.prose { max-width: var(--read); min-width: 0; }
.prose h2 {
  font-family: var(--serif); font-size: 1.35rem;
  margin: 1.85rem 0 .5rem; color: var(--ink);
}
.prose h3 {
  font-family: var(--serif); font-size: 1.08rem;
  margin: 1.2rem 0 .35rem; color: var(--ink);
}
.prose p, .prose li { color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin: .38rem 0; }

.callout {
  background: var(--ember-soft);
  border: 1px solid #efd0b4;
  border-left: 4px solid var(--rust);
  border-radius: var(--radius-sm);
  padding: .95rem 1.05rem; margin: 1.15rem 0;
}
.callout, .callout p, .callout a { color: var(--ink-soft); }
.callout strong { color: var(--ink); }

.recipe {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem; margin: 1.2rem 0;
  box-shadow: var(--shadow);
}
.recipe-grid {
  display: grid; gap: 1rem;
}
@media (min-width: 640px) {
  .recipe-grid { grid-template-columns: 1fr 1.15fr; gap: 1.4rem; }
}
.recipe h3 { margin: 0 0 .55rem; font-family: var(--serif); }
.recipe .label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--rust); font-weight: 700; margin: 0 0 .35rem;
}
.recipe ul, .recipe ol { margin: 0; padding-left: 1.15rem; }
.recipe li { margin: .35rem 0; color: var(--ink-soft); }

/* Fragment targets (#binder on .recipe, h2[id], etc.): clearance comes from
   html { scroll-padding-top: var(--anchor-clearance) } — do not also add a full
   scroll-margin-top here or offsets will stack. */


.inline-figure {
  margin: 1.3rem 0; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.inline-figure figcaption {
  padding: .55rem .85rem; font-size: .82rem; color: var(--muted);
  background: var(--paper);
}

table.temps, .prose table {
  width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .92rem;
  background: var(--paper);
}
table.temps th, table.temps td, .prose th, .prose td {
  border: 1px solid var(--line); padding: .5rem .6rem; text-align: left; vertical-align: top;
}
table.temps th, .prose th { background: #f5ebe0; color: var(--ink); }
.sources { font-size: .86rem; color: var(--muted); }
.sources a { word-break: break-word; }

.kit-note {
  font-size: .84rem; color: var(--muted);
  border-top: 1px dashed var(--line); margin-top: 1rem; padding-top: .75rem;
}

@media (max-width: 639px) {
  .brand-word { font-size: 1.12rem; }
  .cta-row .btn { flex: 1 1 calc(50% - .65rem); }
  .cta-row .btn:only-child,
  .cta-row .btn:first-child:nth-last-child(3),
  .cta-row .btn:first-child:nth-last-child(3) ~ .btn { flex: 1 1 100%; }
}

@media print {
  body { background: #fff; }
  .site-header, .nav, .jump-nav, .cta-row, .site-footer, .skip-link, .hero-visual { display: none !important; }
}
