/* ==========================================================================
   Slow Coffee Club — shared stylesheet
   Paper & ink. Espresso, terracotta, sage. No web fonts, no external files.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --paper: #f5efe3;
  --paper-2: #ece2cf;
  --paper-3: #e3d6bd;
  --card: #fbf7ee;
  --ink: #2a1c13;
  --ink-soft: #5b4636;
  --ink-faint: #8a7663;
  --espresso: #3d2518;
  --terracotta: #b4552d;
  --terracotta-deep: #93401e;
  --terracotta-soft: #e6ab8b;
  --sage: #6f8462;
  --sage-soft: #cdd7c1;
  --cream: #f9f1e1;
  --rule: #cdbca2;
  --rule-soft: #ddd0b9;
  --shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 10px 30px -18px rgba(61,37,24,.45);
  --noise-opacity: .38;
  --noise-blend: multiply;
  --radius: 4px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052, Georgia, "Times New Roman", serif;
  --display: "Didot", "Bodoni 72", "Bodoni MT", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --measure: 38rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1b130e;
    --paper-2: #241912;
    --paper-3: #2f2118;
    --card: #221812;
    --ink: #f0e5d4;
    --ink-soft: #cbb69e;
    --ink-faint: #9b8670;
    --espresso: #e9d4b8;
    --terracotta: #e0825a;
    --terracotta-deep: #f09a72;
    --terracotta-soft: #7a3a20;
    --sage: #a5b994;
    --sage-soft: #34402c;
    --cream: #2a1d15;
    --rule: #4a3628;
    --rule-soft: #3a2a1f;
    --shadow: 0 10px 30px -18px rgba(0,0,0,.9);
    --noise-opacity: .16;
    --noise-blend: screen;
  }
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--serif);
  font-size: clamp(1.03rem, .98rem + .25vw, 1.15rem);
  line-height: 1.68;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 15% -5%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(ellipse 60% 45% at 105% 105%, rgba(180,85,45,.07), transparent 60%),
    radial-gradient(ellipse 40% 30% at 90% 20%, rgba(111,132,98,.06), transparent 70%),
    var(--paper);
  font-variant-numeric: oldstyle-nums proportional-nums;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@media (prefers-color-scheme: dark) {
  body {
    background:
      radial-gradient(ellipse 80% 50% at 15% -5%, rgba(224,130,90,.08), transparent 60%),
      radial-gradient(ellipse 60% 45% at 105% 105%, rgba(165,185,148,.05), transparent 60%),
      var(--paper);
  }
}

/* Paper grain: an inline SVG noise tile, fixed behind content */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--noise-opacity);
  mix-blend-mode: var(--noise-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Faint long paper fibres */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image:
    repeating-linear-gradient(97deg, transparent 0 46px, rgba(120,90,60,.025) 46px 47px, transparent 47px 113px),
    repeating-linear-gradient(-8deg, transparent 0 71px, rgba(120,90,60,.02) 71px 72px, transparent 72px 160px);
}

img, svg { max-width: 100%; height: auto; }
svg { overflow: visible; }

::selection { background: var(--terracotta-soft); color: var(--ink); }

a {
  color: var(--terracotta-deep);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: color .2s, text-decoration-color .2s;
}
a:hover { color: var(--terracotta); text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px dashed var(--terracotta);
  outline-offset: 3px;
  border-radius: 2px;
}

hr {
  border: 0;
  height: 14px;
  margin: 3rem auto;
  max-width: 14rem;
  background:
    radial-gradient(circle, var(--terracotta) 2px, transparent 2.5px) center / 18px 14px repeat-x;
  opacity: .7;
}

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.12;
  color: var(--espresso);
  margin: 0 0 .5em;
  letter-spacing: -.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 1.6rem + 3.6vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 1.35rem + 1.6vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 1.15rem + .7vw, 1.7rem); }
h4 { font-size: 1.15rem; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--terracotta); }

p { margin: 0 0 1.05em; }
p, li { text-wrap: pretty; hanging-punctuation: first; }

.label, .kicker, dt, th, .smallcaps {
  font-variant-caps: all-small-caps;
  letter-spacing: .12em;
  font-feature-settings: "c2sc", "smcp";
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  color: var(--terracotta);
  font-size: 1.05rem;
  margin-bottom: .6rem;
}
.kicker::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: currentColor;
}
.label { color: var(--ink-soft); font-size: 1rem; }

.lead {
  font-size: 1.22em;
  line-height: 1.55;
  color: var(--ink-soft);
}
.dropcap::first-letter {
  float: left;
  font-family: var(--display);
  font-size: 4.1em;
  line-height: .82;
  padding: .06em .1em 0 0;
  color: var(--terracotta);
}

blockquote {
  margin: 2rem 0;
  padding: 0 0 0 1.4rem;
  border-left: 2px solid var(--terracotta);
  font-style: italic;
  color: var(--ink-soft);
}
blockquote footer, blockquote cite {
  display: block;
  margin-top: .5rem;
  font-style: normal;
  font-variant-caps: all-small-caps;
  letter-spacing: .1em;
  color: var(--ink-faint);
}

.pullquote {
  font-family: var(--display);
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem);
  line-height: 1.25;
  font-style: italic;
  color: var(--espresso);
  border: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 1.4rem 0;
  margin: 2.5rem 0;
  text-align: center;
}
.pullquote::before { content: "\201C"; color: var(--terracotta); }
.pullquote::after { content: "\201D"; color: var(--terracotta); }

small, .fine { font-size: .86em; color: var(--ink-faint); }
.mono { font-family: var(--mono); font-size: .88em; }
abbr[title] { text-decoration: underline dotted; text-underline-offset: .2em; }
.num { font-variant-numeric: lining-nums tabular-nums; }

ul, ol { padding-left: 1.3em; }
li { margin-bottom: .35em; }
li::marker { color: var(--terracotta); }

/* ---------- 4. Layout ---------- */
.wrap {
  width: 100%;
  max-width: 74rem;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.wrap--narrow { max-width: 46rem; }
.prose { max-width: var(--measure); }
.section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section--tight { padding: 2rem 0; }
.section + .section { padding-top: 0; }

.section-head {
  display: grid;
  gap: .3rem;
  margin-bottom: 2rem;
  max-width: 44rem;
}
.section-head p { color: var(--ink-soft); margin: 0; }

.issue-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--ink-faint);
  font-variant-caps: all-small-caps;
  letter-spacing: .16em;
  margin: 0 0 2rem;
}
.issue-rule::before, .issue-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2.25rem); }
.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid--2, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Asymmetric magazine spreads */
.spread { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 900px) {
  .spread { grid-template-columns: 5fr 7fr; }
  .spread--flip { grid-template-columns: 7fr 5fr; }
  .spread--wide { grid-template-columns: 3fr 9fr; }
  .spread--sidebar { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  .spread > .sticky { position: sticky; top: 1.5rem; }
  .offset-down { margin-top: 4rem; }
}

/* ---------- 5. Skip link, masthead & nav ---------- */
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  background: var(--espresso);
  color: var(--paper);
  padding: .55rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip:focus { top: 1rem; color: var(--paper); }

.masthead {
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.masthead::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--rule-soft);
}
.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.5rem;
  padding-top: 1.1rem;
  padding-bottom: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--espresso);
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { color: var(--terracotta); }
.brand__mark { width: 2.4rem; height: 2.4rem; flex: none; }
.brand__name {
  font-family: var(--display);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  font-style: italic;
  line-height: 1;
  white-space: nowrap;
}
.brand__name b { font-weight: 400; font-style: normal; color: var(--terracotta); }
.masthead__tag {
  margin: 0;
  color: var(--ink-faint);
  font-variant-caps: all-small-caps;
  letter-spacing: .12em;
  font-size: .98rem;
  display: none;
}
@media (min-width: 1100px) { .masthead__tag { display: block; } }

.nav-toggle {
  display: none;
  font: inherit;
  font-variant-caps: all-small-caps;
  letter-spacing: .14em;
  background: transparent;
  color: var(--espresso);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: .3rem .95rem .35rem;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--terracotta); color: var(--terracotta); }
.nav-toggle__icon { display: inline-block; width: 1em; margin-right: .3em; }

.site-nav { width: 100%; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: .3rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: .15rem 1.4rem;
  border-top: 1px dotted var(--rule);
}
.site-nav li { margin: 0; }
.site-nav a {
  display: inline-block;
  padding: .35rem 0;
  color: var(--ink-soft);
  text-decoration: none;
  font-variant-caps: all-small-caps;
  letter-spacing: .14em;
  font-size: 1.08rem;
  position: relative;
}
.site-nav a:hover { color: var(--terracotta); }
.site-nav a[aria-current="page"] { color: var(--espresso); }
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .15rem;
  height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 6' preserveAspectRatio='none'%3E%3Cpath d='M1 4 C 12 1, 22 5, 32 3 S 52 1, 59 4' fill='none' stroke='%23b4552d' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* With JS on small screens: collapsible menu */
@media (max-width: 759px) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0; padding-top: .4rem; }
  .js .site-nav a { padding: .55rem 0; width: 100%; border-bottom: 1px dotted var(--rule-soft); }
}

/* ---------- 6. Hero ---------- */
.hero { padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero__grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 7fr 5fr; gap: 3rem; }
}
.hero h1 { margin-bottom: .35em; }
.hero h1 .line { display: block; }
.hero h1 .indent { padding-left: 1.4em; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.6rem;
  margin-top: 1.6rem;
  color: var(--ink-faint);
  font-variant-caps: all-small-caps;
  letter-spacing: .12em;
}
.hero__art { position: relative; max-width: 30rem; margin: 0 auto; width: 100%; }
.hero__art svg { width: 100%; display: block; }
.hero__caption {
  text-align: center;
  font-style: italic;
  color: var(--ink-faint);
  font-size: .95rem;
  margin-top: .3rem;
}

.page-hero { padding: clamp(2rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.page-hero__grid { display: grid; gap: 1.5rem 3rem; align-items: end; }
@media (min-width: 900px) { .page-hero__grid { grid-template-columns: 7fr 5fr; } }
.page-hero .lead { margin-bottom: 0; }
.page-hero__art { width: 100%; max-width: 16rem; justify-self: center; color: var(--espresso); }
@media (min-width: 900px) { .page-hero__art { justify-self: end; } }

/* ---------- 7. SVG line art ---------- */
.ink-line { fill: none; stroke: var(--espresso); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ink-thin { fill: none; stroke: var(--espresso); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.ink-terra { fill: none; stroke: var(--terracotta); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ink-sage { fill: none; stroke: var(--sage); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fill-paper { fill: var(--card); }
.fill-coffee { fill: var(--espresso); }
.fill-terra { fill: var(--terracotta); }
.fill-terra-soft { fill: var(--terracotta-soft); }
.fill-sage { fill: var(--sage); }
.fill-sage-soft { fill: var(--sage-soft); }
@media (prefers-color-scheme: dark) {
  .fill-coffee { fill: #6b4630; }
}

.steam path {
  fill: none;
  stroke: var(--ink-faint);
  stroke-width: 2;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: steam 4.8s ease-in-out infinite;
  opacity: 0;
}
.steam path:nth-child(2) { animation-delay: 1.4s; }
.steam path:nth-child(3) { animation-delay: 2.8s; }
@keyframes steam {
  0%   { opacity: 0; transform: translateY(10px) scaleX(.9); }
  25%  { opacity: .85; }
  70%  { opacity: .35; }
  100% { opacity: 0; transform: translateY(-26px) scaleX(1.15); }
}
.pour-stream {
  stroke-dasharray: 5 7;
  animation: pour 1.1s linear infinite;
}
@keyframes pour { to { stroke-dashoffset: -24; } }
.drip {
  fill: var(--espresso);
  animation: drip 2.2s ease-in infinite;
  transform-box: fill-box;
}
.drip--2 { animation-delay: 1.1s; }
@keyframes drip {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(60px); opacity: 0; }
}
.sway { transform-box: fill-box; transform-origin: 0% 100%; animation: sway 7s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-2deg); } to { transform: rotate(3deg); } }

/* ---------- 8. Cards, notes, tape ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  padding: clamp(1.15rem, 2.5vw, 1.75rem);
  box-shadow: var(--shadow);
  position: relative;
}
.card h3 { margin-bottom: .35em; }
.card > :last-child { margin-bottom: 0; }

.tape::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 92px;
  height: 22px;
  transform: translateX(-50%) rotate(-3deg);
  background: color-mix(in srgb, var(--sage-soft) 80%, transparent);
  border-left: 1px dashed rgba(0,0,0,.08);
  border-right: 1px dashed rgba(0,0,0,.08);
  opacity: .9;
}
.tape--terra::before { background: color-mix(in srgb, var(--terracotta-soft) 75%, transparent); transform: translateX(-50%) rotate(2.5deg); }

.note {
  background: var(--cream);
  border: 1px dashed var(--rule);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  color: var(--ink-soft);
  font-size: .97em;
}
.note strong { color: var(--espresso); }
.note--sage { background: color-mix(in srgb, var(--sage-soft) 45%, var(--card)); border-color: var(--sage); }
.note--warn { background: color-mix(in srgb, var(--terracotta-soft) 30%, var(--card)); border-color: var(--terracotta); border-style: solid; }

.saturday {
  display: grid;
  gap: 1.5rem;
  border: 1px solid var(--rule);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border-radius: var(--radius);
  position: relative;
}
@media (min-width: 780px) { .saturday { grid-template-columns: 4fr 8fr; } }
.saturday__date {
  border-right: 0;
  display: grid;
  align-content: start;
  gap: .3rem;
}
@media (min-width: 780px) {
  .saturday__date { border-right: 1px dotted var(--rule); padding-right: 1.5rem; }
}
.saturday__day {
  font-family: var(--display);
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem);
  line-height: 1;
  color: var(--terracotta);
  font-style: italic;
}
.stamp {
  display: inline-block;
  transform: rotate(-4deg);
  border: 2px solid var(--sage);
  color: var(--sage);
  padding: .1rem .7rem .2rem;
  border-radius: 3px;
  font-variant-caps: all-small-caps;
  letter-spacing: .16em;
  font-size: .95rem;
  justify-self: start;
  margin-top: .6rem;
}

/* Post list (latest posts) */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li {
  display: grid;
  gap: .2rem 1.5rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--rule-soft);
  margin: 0;
}
.post-list li:last-child { border-bottom: 1px solid var(--rule-soft); }
@media (min-width: 700px) { .post-list li { grid-template-columns: 9rem 1fr; } }
.post-list time { color: var(--ink-faint); font-variant-caps: all-small-caps; letter-spacing: .1em; }
.post-list h3 { font-size: 1.35rem; margin: 0 0 .2rem; }
.post-list h3 a { color: var(--espresso); text-decoration: none; }
.post-list h3 a:hover { color: var(--terracotta); text-decoration: underline; }
.post-list p { margin: 0; color: var(--ink-soft); }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.6rem; }
.feature-list li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; margin: 0; }
.feature-list svg { width: 3.2rem; height: 3.2rem; }
.feature-list h3 { font-size: 1.25rem; margin-bottom: .2rem; }
.feature-list p { margin: 0; color: var(--ink-soft); }

.figures {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
  margin: 0;
}
@media (min-width: 760px) { .figures { grid-template-columns: repeat(4, 1fr); } }
.figures div { background: var(--paper); padding: 1.2rem 1rem; text-align: center; }
.figures dt { color: var(--ink-faint); font-size: .95rem; }
.figures dd {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.9rem, 1.5rem + 1.5vw, 2.6rem);
  color: var(--terracotta);
  font-style: italic;
  font-variant-numeric: lining-nums;
  order: -1;
}
.figures div { display: flex; flex-direction: column; }

/* ---------- 9. Buttons & forms ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font: inherit;
  font-variant-caps: all-small-caps;
  letter-spacing: .13em;
  font-size: 1.05rem;
  padding: .45rem 1.15rem .55rem;
  border-radius: 999px;
  border: 1px solid var(--espresso);
  background: var(--espresso);
  color: var(--paper);
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
}
.btn:hover { background: var(--terracotta); border-color: var(--terracotta); color: #fff8ef; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--espresso); border-color: var(--rule); }
.btn--ghost:hover { background: transparent; color: var(--terracotta); border-color: var(--terracotta); }
@media (prefers-color-scheme: dark) {
  .btn { color: #1b130e; }
  .btn--ghost { color: var(--espresso); }
}

.field { display: grid; gap: .3rem; }
.field label, .field .label, legend { font-variant-caps: all-small-caps; letter-spacing: .12em; color: var(--ink-soft); }
input[type="number"], input[type="text"], input[type="search"], select {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: .45rem .7rem;
  width: 100%;
  min-width: 0;
}
input[type="number"] { font-variant-numeric: lining-nums tabular-nums; }
select {
  appearance: none;
  padding-right: 2.2rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 1.05rem) 55%, calc(100% - .7rem) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
input:focus-visible, select:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 1px; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--espresso), var(--terracotta) 50%, var(--terracotta-soft));
}
input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--espresso), var(--terracotta) 50%, var(--terracotta-soft));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  margin-top: -9px;
  border-radius: 50% 50% 46% 54%;
  background: var(--card);
  border: 2px solid var(--espresso);
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--espresso);
}

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block;
  padding: .2rem .85rem .3rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  cursor: pointer;
  font-variant-caps: all-small-caps;
  letter-spacing: .1em;
  color: var(--ink-soft);
  background: var(--paper);
  transition: all .15s;
}
.chip span:hover { border-color: var(--terracotta); color: var(--terracotta); }
.chip input:checked + span { background: var(--espresso); border-color: var(--espresso); color: var(--paper); }
.chip input:focus-visible + span { outline: 2px dashed var(--terracotta); outline-offset: 2px; }

/* ---------- 10. Brew guides ---------- */
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .5rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.toc li { margin: 0; }
.toc a {
  display: inline-block;
  padding: .2rem .8rem .3rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-soft);
  font-variant-caps: all-small-caps;
  letter-spacing: .1em;
  background: var(--card);
}
.toc a:hover { color: var(--terracotta); border-color: var(--terracotta); }

.guide {
  display: grid;
  gap: 1.5rem 3rem;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 1rem;
}
@media (min-width: 900px) {
  .guide { grid-template-columns: 4fr 8fr; }
  .guide:nth-of-type(even) { grid-template-columns: 8fr 4fr; }
  .guide:nth-of-type(even) .guide__side { order: 2; }
}
.guide__num {
  font-family: var(--display);
  font-style: italic;
  font-size: 3.6rem;
  line-height: 1;
  color: var(--terracotta-soft);
  display: block;
  margin-bottom: .4rem;
}
@media (prefers-color-scheme: dark) { .guide__num { color: var(--terracotta); opacity: .55; } }
.guide__art { width: 9rem; height: 9rem; margin: .5rem 0 1rem; }

.spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 0 1rem;
  border-top: 1px solid var(--rule-soft);
}
.spec div { padding: .6rem 0; border-bottom: 1px solid var(--rule-soft); }
.spec div:nth-child(odd) { padding-right: .8rem; border-right: 1px dotted var(--rule-soft); }
.spec div:nth-child(even) { padding-left: .8rem; }
.spec dt { color: var(--ink-faint); font-size: .92rem; line-height: 1.2; }
.spec dd { margin: 0; color: var(--espresso); font-variant-numeric: lining-nums; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 1.2rem; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: .1rem 0 .9rem 3rem;
  margin: 0;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: .05rem;
  width: 2.05rem; height: 2.05rem;
  border: 1px solid var(--terracotta);
  border-radius: 50% 46% 52% 48%;
  display: grid;
  place-items: center;
  color: var(--terracotta);
  font-family: var(--display);
  font-style: italic;
  font-variant-numeric: lining-nums;
  font-size: 1.05rem;
  line-height: 1;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.02rem;
  top: 2.3rem;
  bottom: .25rem;
  border-left: 1px dotted var(--rule);
}
.steps .t { color: var(--ink-faint); font-variant-numeric: lining-nums tabular-nums; font-size: .92em; }

/* Tools: calculator and timer */
.tools { display: grid; gap: 1.75rem; }
@media (min-width: 960px) { .tools { grid-template-columns: 1fr 1fr; } }
.tool {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.15rem, 3vw, 2rem);
  box-shadow: var(--shadow);
  position: relative;
}
.tool h2 { font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); }
.tool__row { display: grid; grid-template-columns: 1fr auto 1fr; gap: .75rem; align-items: end; margin: 1.1rem 0; }
.tool__row .swap { padding-bottom: .55rem; color: var(--terracotta); font-size: 1.4rem; line-height: 1; }
.tool__unit { position: relative; }
.tool__unit input { padding-right: 2rem; font-size: 1.25rem; }
.tool__unit span { position: absolute; right: .7rem; bottom: .55rem; color: var(--ink-faint); }
.ratio-readout {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: .3rem;
}
.ratio-readout output {
  font-family: var(--display);
  font-size: 1.9rem;
  color: var(--terracotta);
  font-style: italic;
  font-variant-numeric: lining-nums;
}
.ratio-scale { display: flex; justify-content: space-between; color: var(--ink-faint); font-size: .85rem; font-variant-caps: all-small-caps; letter-spacing: .1em; }
.calc-summary {
  margin: 1.2rem 0 0;
  padding: .9rem 1rem;
  background: var(--cream);
  border-left: 3px solid var(--sage);
  color: var(--ink-soft);
}

.timer__face {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
  margin: 1rem 0;
}
.timer__dial { width: 7.5rem; height: 7.5rem; }
.timer__dial .track { fill: none; stroke: var(--rule-soft); stroke-width: 6; }
.timer__dial .progress { fill: none; stroke: var(--terracotta); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.timer__clock {
  font-family: var(--display);
  font-size: clamp(2.6rem, 2rem + 2.5vw, 3.6rem);
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1;
  color: var(--espresso);
}
.timer__now { color: var(--terracotta); margin: .4rem 0 0; font-style: italic; min-height: 1.6em; }
.timer__controls { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.timer__steps { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule-soft); }
.timer__steps li {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: .6rem;
  margin: 0;
  padding: .45rem .4rem;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink-soft);
  transition: background .3s, color .3s;
}
.timer__steps li time { font-variant-numeric: lining-nums tabular-nums; color: var(--ink-faint); }
.timer__steps li.is-done { color: var(--ink-faint); text-decoration: line-through; text-decoration-color: var(--rule); }
.timer__steps li.is-now { background: color-mix(in srgb, var(--terracotta-soft) 35%, transparent); color: var(--espresso); }
.timer__steps li.is-now time { color: var(--terracotta); }
.check { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink-soft); font-size: .95rem; cursor: pointer; }
.check input { accent-color: var(--terracotta); width: 1.05rem; height: 1.05rem; }
.no-js-hint { display: none; }
html:not(.js) .needs-js { display: none; }
html:not(.js) .no-js-hint { display: block; }

/* ---------- 11. Beans ---------- */
.bean-tools {
  display: grid;
  gap: 1rem 1.5rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card);
}
@media (min-width: 860px) { .bean-tools { grid-template-columns: 14rem 1fr 12rem; align-items: end; } }
.bean-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem 1rem;
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
}
.bean-status .btn { font-size: .95rem; padding: .25rem .9rem .35rem; }
.flavour-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--sage-soft);
  color: var(--espresso);
  border-radius: 999px;
  padding: .05rem .4rem .1rem .8rem;
}
.flavour-tag button {
  font: inherit;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  width: 1.6rem; height: 1.6rem;
  border-radius: 50%;
}
.flavour-tag button:hover { background: rgba(0,0,0,.08); }

.bean-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .bean-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .bean-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bean {
  background: var(--card);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  position: relative;
}
.bean[hidden] { display: none; }
.bean::after {
  content: "";
  position: absolute;
  top: 1rem; right: 1rem;
  width: 14px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--terracotta);
  background: linear-gradient(100deg, transparent 46%, var(--terracotta) 47% 53%, transparent 54%);
  transform: rotate(25deg);
  opacity: .55;
}
.bean__origin { margin: 0; color: var(--terracotta); padding-right: 1.6rem; }
.bean h3 { font-size: 1.3rem; margin: .15rem 0 .7rem; }
.bean__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .3rem .9rem;
  margin: 0 0 .8rem;
  font-size: .95rem;
}
.bean__facts div { min-width: 0; }
.bean__facts dt { color: var(--ink-faint); font-size: .85rem; line-height: 1.2; }
.bean__facts dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.bean__facts .wide { grid-column: 1 / -1; }
.bean__notes {
  font-style: italic;
  color: var(--espresso);
  font-size: 1.08rem;
  margin: 0 0 .5rem;
  padding-top: .6rem;
  border-top: 1px dotted var(--rule);
}
.bean__comment { color: var(--ink-soft); font-size: .96rem; flex: 1; }
.rating {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: .2rem 0 0;
  font-size: .9rem;
  color: var(--ink-faint);
  font-variant-numeric: lining-nums;
}
.rating__cups {
  --r: 3;
  width: 5.6rem;
  height: 14px;
  flex: none;
  background:
    linear-gradient(90deg, var(--terracotta) calc(var(--r) / 5 * 100%), transparent 0) 0 0 / 100% 100%;
  -webkit-mask: radial-gradient(circle at 7px 7px, #000 5.5px, transparent 6px) 0 0 / 1.12rem 14px repeat-x;
  mask: radial-gradient(circle at 7px 7px, #000 5.5px, transparent 6px) 0 0 / 1.12rem 14px repeat-x;
  background-color: var(--rule);
}
.rating strong { color: var(--espresso); font-weight: 400; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); font-style: italic; }

.wheel-wrap { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .wheel-wrap { grid-template-columns: 7fr 5fr; } }
.wheel { margin: 0; max-width: 36rem; justify-self: center; width: 100%; }
.wheel svg { width: 100%; display: block; }
.wheel .seg { cursor: pointer; transition: opacity .2s, transform .2s; transform-origin: 300px 300px; }
.wheel .seg:hover, .wheel .seg:focus { opacity: .82; outline: none; }
.wheel .seg:focus-visible path { stroke: var(--ink); stroke-width: 2.5; }
.wheel .seg.is-active path { stroke: var(--ink); stroke-width: 2.5; }
.wheel text { pointer-events: none; font-family: var(--serif); }
.wheel .inner-label { fill: #fff8ee; font-size: 13px; letter-spacing: .06em; }
.wheel .outer-label { fill: var(--ink); font-size: 11.5px; }
.wheel__caption { font-style: italic; color: var(--ink-soft); }
.wheel__info {
  min-height: 8rem;
  border-left: 2px solid var(--terracotta);
  padding-left: 1.2rem;
}
.wheel__info h3 { margin-bottom: .3rem; }

/* ---------- 12. Recipes ---------- */
.recipe {
  display: grid;
  gap: 1.25rem 2.5rem;
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 1rem;
}
@media (min-width: 900px) { .recipe { grid-template-columns: 4fr 8fr; } }
.recipe__head p.label { margin: 0 0 .3rem; color: var(--terracotta); }
.recipe__meta { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; color: var(--ink-faint); font-size: .95rem; margin: .5rem 0 1rem; padding: 0; list-style: none; }
.recipe__meta li { margin: 0; }
.recipe__meta li::before { content: "\2022"; color: var(--terracotta); margin-right: .45rem; }
.recipe__meta li:first-child::before { content: none; }
.recipe__body { display: grid; gap: 1.5rem 2rem; }
@media (min-width: 700px) { .recipe__body { grid-template-columns: 5fr 7fr; } }
.ingredients {
  list-style: none;
  padding: 1rem 1.15rem;
  margin: 0;
  background: var(--card);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  align-self: start;
  font-size: .97rem;
}
.ingredients li { padding: .3rem 0; border-bottom: 1px dotted var(--rule-soft); margin: 0; }
.ingredients li:last-child { border-bottom: 0; }
.ingredients b { font-weight: 400; color: var(--terracotta-deep); font-variant-numeric: lining-nums; }
.recipe__art { width: 7.5rem; height: 7.5rem; margin: 1rem 0 0; }

/* ---------- 13. Journal ---------- */
.journal-index { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.journal-index li { margin: 0; }
.entry {
  display: grid;
  gap: .75rem 2.5rem;
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 1rem;
}
@media (min-width: 900px) { .entry { grid-template-columns: 13rem minmax(0, 1fr) 14rem; } }
.entry__date { display: grid; align-content: start; gap: .15rem; }
.entry__day {
  font-family: var(--display);
  font-size: 3rem;
  line-height: .95;
  color: var(--terracotta);
  font-style: italic;
  font-variant-numeric: lining-nums;
}
.entry__month { color: var(--ink-soft); font-variant-caps: all-small-caps; letter-spacing: .14em; }
.entry h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2.1rem); }
.entry__body p:first-of-type { font-size: 1.06em; }
.entry__aside { font-size: .94rem; color: var(--ink-soft); }
.entry__aside h3 { font-size: 1rem; font-family: var(--serif); font-variant-caps: all-small-caps; letter-spacing: .12em; color: var(--ink-faint); margin: 0 0 .4rem; }
.entry__aside ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.entry__aside li { padding: .3rem 0; border-bottom: 1px dotted var(--rule-soft); margin: 0; }
.entry__aside li b { font-weight: 400; color: var(--espresso); }
.year-marker {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(3rem, 2rem + 4vw, 5.5rem);
  color: transparent;
  -webkit-text-stroke: 1px var(--terracotta);
  line-height: 1;
  margin: 2.5rem 0 0;
  font-variant-numeric: lining-nums;
}

/* ---------- 14. Roasting ---------- */
.stages {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 760px) { .stages { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .stages { grid-template-columns: repeat(6, 1fr); } }
.stages li { margin: 0; padding: 1rem; border-bottom: 1px solid var(--rule-soft); background: var(--card); }
@media (min-width: 760px) { .stages li { border-right: 1px solid var(--rule-soft); } }
.stages .swatch { display: block; width: 100%; height: 10px; border-radius: 6px; margin-bottom: .7rem; }
.stages h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.stages p { font-size: .93rem; color: var(--ink-soft); margin: 0; }
.stages .t { display: block; color: var(--terracotta); font-variant-numeric: lining-nums; font-size: .9rem; margin-bottom: .3rem; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card);
  margin: 1.25rem 0;
  -webkit-overflow-scrolling: touch;
}
table { border-collapse: collapse; width: 100%; font-size: .95rem; min-width: 46rem; }
caption { text-align: left; padding: .9rem 1rem; color: var(--ink-soft); font-style: italic; caption-side: top; }
th, td { padding: .6rem .8rem; text-align: left; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
th { color: var(--ink-faint); font-weight: 400; background: var(--paper-2); white-space: nowrap; }
td { font-variant-numeric: lining-nums tabular-nums; }
tbody tr:hover { background: color-mix(in srgb, var(--terracotta-soft) 18%, transparent); }
td .verdict { font-style: italic; color: var(--ink-soft); }

.curve { margin: 1.5rem 0; }
.curve svg { width: 100%; display: block; }
.curve figcaption { color: var(--ink-faint); font-style: italic; font-size: .95rem; }
.curve text { font-family: var(--serif); fill: var(--ink-soft); font-size: 12px; }

/* ---------- 15. About / FAQ ---------- */
details.faq {
  border-top: 1px solid var(--rule-soft);
  padding: .2rem 0;
}
details.faq:last-of-type { border-bottom: 1px solid var(--rule-soft); }
details.faq summary {
  cursor: pointer;
  list-style: none;
  padding: .8rem 2rem .8rem 0;
  position: relative;
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--espresso);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  position: absolute;
  right: .3rem; top: .65rem;
  color: var(--terracotta);
  font-size: 1.4rem;
  transition: transform .2s;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq > div { padding: 0 0 1rem; color: var(--ink-soft); }

.people { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .people { grid-template-columns: repeat(3, 1fr); } }
.people li { margin: 0; display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; align-items: start; }
.people svg { width: 4rem; height: 4rem; }
.people h3 { font-size: 1.15rem; margin-bottom: .1rem; }
.people p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.people .role { color: var(--terracotta); font-variant-caps: all-small-caps; letter-spacing: .1em; font-size: .95rem; }

.letter {
  background: var(--card);
  border: 1px solid var(--rule-soft);
  padding: clamp(1.4rem, 4vw, 2.6rem);
  box-shadow: var(--shadow);
  position: relative;
  border-radius: 2px;
  background-image: repeating-linear-gradient(transparent 0 calc(1.68em - 1px), color-mix(in srgb, var(--rule) 35%, transparent) calc(1.68em - 1px) 1.68em);
  background-position: 0 1.2rem;
}
.signature {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--terracotta);
  transform: rotate(-3deg);
  display: inline-block;
  margin-top: .5rem;
}

/* ---------- 16. 404 ---------- */
.empty-cup { text-align: center; padding: clamp(3rem, 8vw, 6rem) 0; }
.empty-cup svg { width: min(18rem, 70vw); margin: 0 auto 1.5rem; display: block; }
.empty-cup h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); }
.empty-cup .code { font-variant-caps: all-small-caps; letter-spacing: .25em; color: var(--ink-faint); }

/* ---------- 17. Footer ---------- */
.site-foot {
  margin-top: clamp(3rem, 8vw, 6rem);
  border-top: 1px solid var(--rule);
  background: linear-gradient(to bottom, color-mix(in srgb, var(--paper-2) 70%, transparent), var(--paper-2));
  color: var(--ink-soft);
  font-size: .97rem;
  position: relative;
}
.site-foot::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 4px;
  height: 1px;
  background: var(--rule-soft);
}
.foot-grid {
  display: grid;
  gap: 2rem;
  padding-top: 2.5rem;
  padding-bottom: 2rem;
}
@media (min-width: 800px) { .foot-grid { grid-template-columns: 5fr 3fr 4fr; } }
.foot-grid h2 { font-size: 1rem; font-family: var(--serif); font-variant-caps: all-small-caps; letter-spacing: .14em; color: var(--ink-faint); margin-bottom: .6rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 1.5rem; }
.foot-grid li { margin: 0 0 .3rem; }
.foot-grid a { color: var(--ink-soft); }
.foot-grid a:hover { color: var(--terracotta); }
.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .4rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1.5rem;
  border-top: 1px dotted var(--rule);
  font-size: .9rem;
  color: var(--ink-faint);
}
.foot-base p { margin: 0; }

/* ---------- 18. Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.muted { color: var(--ink-soft); }
.terra { color: var(--terracotta); }
.inline-list { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; list-style: none; padding: 0; margin: 0; }
.inline-list li { margin: 0; }

/* ---------- 19. Motion preferences & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .steam path { opacity: .55; transform: none; }
  .drip { opacity: 0; }
  .pour-stream { stroke-dasharray: none; }
}

@media print {
  body::before, body::after, .masthead nav, .nav-toggle, .site-foot nav, .tools, .bean-tools { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; }
  .card, .bean, .tool, .saturday { box-shadow: none; }
}

/* Single-column definition list (glossaries) */
.spec--single { grid-template-columns: 1fr; }
.spec--single div:nth-child(odd), .spec--single div:nth-child(even) { padding: .7rem 0; border-right: 0; }
.spec--single dt { font-size: 1rem; color: var(--terracotta); }
.spec--single dd { color: var(--ink-soft); }

/* Very small phones: keep brand and menu button on one line */
@media (max-width: 420px) {
  .masthead__inner { column-gap: .6rem; }
  .brand { gap: .45rem; }
  .brand__mark { width: 2rem; height: 2rem; }
  .brand__name { font-size: 1.25rem; }
  .nav-toggle { padding: .25rem .7rem .3rem; }
}
