/* Burnt & Toast: "The Toast Room" home page. Loads after chrome.css and site.css.
   The rack and the telly (the home page's one game showcase), the proving drawers, the bread bin,
   the promise, the studio and the Journal teaser. The rack, the telly's panels, the drawers and the
   bin are built from products.json by scripts/build-site.mjs; see README "The home page". */

/* Hero: the breakfast table */
.hero { position: relative; padding-top: 4px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "copy" "today" "rack" "telly";
  gap: 14px;
}
.hero-copy { grid-area: copy; }
.hero h1 { font-size: clamp(2.6rem, 11.5vw, 5.75rem); line-height: .92; letter-spacing: -0.045em; max-width: 11ch; }
.hero h1 .line { display: block; }
.hero .support { margin-top: 10px; font-size: clamp(1rem, 1.25vw, 1.25rem); max-width: 34rem; line-height: 1.45; }

/* Today's Hawfold parish: a tear-off calendar leaf */
.today { grid-area: today; display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 14px; align-items: start; max-width: 36rem; }
.today-date {
  display: grid; justify-items: center; align-content: start;
  background: var(--card); border: 2.5px solid var(--ink); border-radius: 10px; overflow: hidden;
  box-shadow: 3px 4px 0 var(--ink); transform: rotate(-3deg); margin-top: 2px;
}
.td-day { width: 100%; text-align: center; background: var(--jam); color: #FFF8EE; font-weight: 800; font-size: .75rem; padding: 2px 0 1px; border-bottom: 2px solid var(--ink); }
.td-num { font-family: var(--display); font-weight: 800; font-size: 1.75rem; line-height: 1.05; padding-top: 2px; letter-spacing: -0.03em; }
.td-month { font-weight: 700; font-size: .75rem; padding-bottom: 4px; }
.today-text { font-size: 1rem; line-height: 1.4; }
.today .btn-row { margin-top: 10px; }

.rack-area { grid-area: rack; position: relative; }
.pick-note {
  position: absolute; right: 0; top: -2px; z-index: 3;
  display: flex; align-items: flex-end; gap: 2px;
  color: var(--burnt); font-size: 1.15rem; transform: rotate(-4deg);
  pointer-events: none;
}
.pick-note svg { width: 36px; height: 34px; margin-bottom: -16px; }
/* The rack holds --slots slices (at most 7; set from the markup and by toast-room.js). Each slot keeps the same size,
   so a shorter rack is simply narrower: 100 drawing units a slot, 210 tall, 680px wide at seven. */
.rack {
  --slots: 7;
  position: relative; width: 100%;
  max-width: calc(680px * var(--slots) / 7);
  aspect-ratio: calc(var(--slots) * 100) / 210;
  margin-top: 22px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  grid-template-rows: 14fr 72fr 14fr;
}
.rack-wires, .rack-handle { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.rack-handle { z-index: 0; }
.rack-wires { z-index: 2; }
.rack::after {
  content: ""; position: absolute; left: 3%; right: 3%; bottom: -3%; height: 9%;
  background: radial-gradient(closest-side, rgba(43, 29, 20, .28), transparent);
  z-index: -1;
}
.slice {
  position: relative; z-index: 1; grid-row: 2; min-width: 0;
  padding: 0; margin: 0; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.slice:focus-visible { outline: none; }
.slice .toast {
  position: absolute; left: 7%; right: 7%; bottom: 0; aspect-ratio: 232 / 218; display: block;
  transition: transform .5s var(--spring);
  animation: drop-in .75s var(--spring) backwards;
  animation-delay: calc(.2s + var(--i, 0) * .09s); /* --i is each slice's place, set by toast-room.js */
}
.slice .toast svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 2px 0 rgba(43, 29, 20, .18)); }
.slice:hover .toast { transform: translateY(-12%) rotate(-2deg); }
.slice[aria-selected="true"] .toast { transform: translateY(-58%); }
.slice:focus-visible .toast { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 12px; }
.slice-name {
  position: absolute; left: 0; right: 0; top: calc(100% + 27%);
  font-size: .75rem; font-weight: 650; line-height: 1.15; text-align: center; color: var(--ink);
}
.slice[aria-selected="true"] .slice-name { font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.steam { position: absolute; left: 50%; bottom: 94%; width: 56%; height: auto; aspect-ratio: 80 / 50; transform: translateX(-50%); opacity: 0; pointer-events: none; }
.slice[aria-selected="true"] .steam { opacity: 1; }
.steam path { fill: none; stroke: rgba(122, 62, 29, .45); stroke-width: 3; stroke-linecap: round; animation: steam 2.6s ease-in-out infinite; }
.steam path:nth-child(2) { animation-delay: .9s; }
.steam path:nth-child(3) { animation-delay: 1.7s; }
@keyframes drop-in { 0% { transform: translateY(-190%) rotate(-8deg); opacity: 0; } 55%, 100% { opacity: 1; } }
@keyframes steam { 0% { opacity: 0; transform: translateY(6px); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }

/* The telly */
.telly-area { grid-area: telly; position: relative; }
.telly-stage { position: relative; padding-top: 24px; }
.antenna { position: absolute; left: 50%; top: 0; width: 92px; height: 34px; transform: translateX(-50%); overflow: visible; }
.telly {
  position: relative;
  background: linear-gradient(160deg, #94522A 0%, #7A3E1D 55%, #6A3317 100%);
  border-radius: 18px 18px 14px 14px;
  padding: 9px;
  box-shadow: inset 0 0 0 2.5px var(--ink), inset 0 3px 0 4px rgba(255, 220, 170, .14), 0 6px 0 var(--ink);
  display: grid; grid-template-columns: minmax(0, 1fr) 30px; gap: 8px;
}
.telly::before, .telly::after { content: ""; position: absolute; bottom: -16px; width: 18px; height: 14px; background: var(--ink); border-radius: 0 0 6px 6px; }
.telly::before { left: 12%; }
.telly::after { right: 12%; }
.screen {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 18px / 16px; background: #1A120C;
  box-shadow: 0 0 0 2.5px var(--ink), inset 0 0 0 1px rgba(0, 0, 0, .3);
}
.screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 4; border-radius: inherit;
  background: radial-gradient(120% 90% at 20% 0%, rgba(255, 255, 255, .16), transparent 45%), radial-gradient(140% 120% at 50% 50%, transparent 62%, rgba(0, 0, 0, .35));
}
.screen.switching .capture { animation: channel .38s ease-out; }
@keyframes channel { 0% { transform: scaleY(.02) scaleX(1.1); filter: brightness(3); } 45% { transform: scaleY(1.04); filter: brightness(1.4); } 100% { transform: none; filter: none; } }
.controls { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 4px; }
.knob { width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FBE3A0, var(--butter) 45%, #C99A2E); box-shadow: 0 0 0 2.5px var(--ink); position: relative; }
.knob::after { content: ""; position: absolute; left: 50%; top: 2px; width: 3px; height: 8px; margin-left: -1.5px; background: var(--ink); border-radius: 2px; transform-origin: 50% 10px; transform: rotate(-30deg); }
.knob + .knob::after { transform: rotate(40deg); }
.grille { flex: 1; width: 18px; min-height: 30px; border-radius: 6px; background: repeating-linear-gradient(0deg, rgba(43, 29, 20, .75) 0 3px, transparent 3px 7px); }

.now-showing { margin-top: 26px; }
.now-showing .hand { color: var(--burnt); font-size: 1.15rem; transform: rotate(-2deg); display: inline-block; }
.now-showing h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); margin-top: 2px; }
.now-showing .np-promise { font-size: 1.0625rem; font-weight: 600; margin-top: 4px; max-width: 36rem; }
.now-showing .btn-row { margin-top: 12px; }

/* Each game's panel under the telly: name, line, status, its best fact, and the ways in.
   All of them are in the page; the script shows the one whose slice is chosen (without it, all show). */
.js .now-showing:not(.is-active) { display: none; }
#games, .telly-area, .drawer { scroll-margin-top: 16px; }
:root:not(.js) .now-showing + .now-showing { margin-top: 28px; padding-top: 22px; border-top: 2px dashed rgba(43, 29, 20, .25); }
.np-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; }
.np-fact { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 12px; margin-top: 14px; max-width: 34rem; }
.np-fig { position: relative; width: 64px; aspect-ratio: 232 / 218; display: grid; place-items: center; transform: rotate(-4deg); }
.np-fig svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(2px 3px 0 rgba(43, 29, 20, .3)); }
.np-fig span { position: relative; padding-top: 14%; font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1; letter-spacing: -0.04em; color: var(--toast-mark); }
.np-fig.is-word span { font-size: .875rem; letter-spacing: -0.02em; }
.np-fact p { font-size: .96875rem; line-height: 1.4; font-weight: 600; }
.np-fact .hand { display: block; color: var(--burnt); font-size: 1.05rem; transform: none; font-weight: 400; margin-bottom: 2px; }
/* Crustbuster's line swaps for the live champion; two lines are held for it so nothing below moves. */
.np-live { display: block; min-height: 2.8em; }
.np-champ { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .08em; }

/* Captures: video, pause button, the telly's little shows */
.capture { position: relative; width: 100%; height: 100%; overflow: hidden; }
/* The poster picture sits under the video, so the screen shows the game from the first paint. */
.capture > img.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.capture > video { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; }
.anim-toggle {
  position: absolute; right: 10px; bottom: 10px; z-index: 5; min-height: 44px; padding: 4px 14px;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--card); color: var(--ink);
  font: inherit; font-size: .875rem; font-weight: 700; cursor: pointer; box-shadow: 0 2px 0 var(--ink);
}
.anim-toggle:focus-visible { outline-color: var(--ink); }
.cap-sound {
  position: absolute; right: 10px; bottom: 10px; z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(43, 29, 20, .84); color: #FFF8EE; border: 2px solid #FFF8EE; cursor: pointer;
}
.cap-sound svg { width: 20px; height: 16px; }
.cap-sound .i-sound, .has-sound .cap-sound .i-muted { display: none; }
.has-sound .cap-sound .i-sound { display: block; }
.cap-sound:focus-visible { outline-color: var(--butter); }
.cap-toggle {
  position: absolute; left: 10px; bottom: 10px; z-index: 5;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(43, 29, 20, .84); color: #FFF8EE; border: 2px solid #FFF8EE;
  cursor: pointer;
}
.cap-toggle svg { width: 16px; height: 16px; }
.cap-toggle .i-play { display: none; }
.is-paused .cap-toggle .i-play { display: block; }
.is-paused .cap-toggle .i-pause { display: none; }
.is-paused *, .is-offscreen * { animation-play-state: paused !important; }
.cap-toggle:focus-visible { outline-color: var(--butter); }

.tv-hawfold { background: #F4EFE2; display: grid; place-items: center; }
.tv-hawfold .parish { height: 88%; width: auto; aspect-ratio: 1; }

.tv-caught { background: #EFF0EE; display: grid; place-items: center; }
.tv-crustbuster { background: #0D0A0C; }
.tv-crustbuster > img.poster { object-position: 0 50%; image-rendering: pixelated; }
.cc-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4%; width: 86%; }
.cc-card {
  position: relative; aspect-ratio: 5 / 7; background: #FFFFFF; border-radius: 8px;
  box-shadow: 0 0 0 1.5px #D3D8E0, 0 6px 14px rgba(27, 31, 59, .12);
  padding: 12% 10%; display: flex; flex-direction: column; gap: 9%;
  animation: deal 9s var(--spring) infinite;
}
.k2, .k2 b { animation-delay: .15s; } .k3, .k3 b { animation-delay: .3s; } .k4, .k4 b { animation-delay: .45s; }
.cc-card i { display: block; height: 6%; border-radius: 3px; background: #D9DCE4; }
.cc-card i:nth-child(2) { width: 82%; }
.cc-card i:nth-child(3) { width: 64%; }
.cc-card b { margin-top: auto; font-size: clamp(7px, 1.2vw, 11px); font-weight: 700; color: #157A55; opacity: 0; animation: source 9s ease infinite; white-space: nowrap; }
.cc-card.fake b { color: #D6392A; }
.cc-stamp {
  position: absolute; left: 38%; top: 42%; z-index: 2;
  padding: 3px 6px; border: 2.5px solid #D6392A; border-radius: 5px;
  color: #D6392A; font-weight: 800; letter-spacing: .04em; font-size: clamp(10px, 2vw, 18px);
  transform: translate(-50%, -50%) rotate(-14deg); background: rgba(255, 255, 255, .7);
  animation: stamp-tv 9s ease-out infinite;
}
@keyframes deal { 0% { transform: translateY(-40%) rotate(-10deg); opacity: 0; } 8%, 90% { transform: none; opacity: 1; } 98%, 100% { transform: translateY(20%); opacity: 0; } }
@keyframes stamp-tv {
  0%, 30% { opacity: 0; transform: translate(-50%, -50%) rotate(-14deg) scale(2.4); }
  34% { opacity: 1; transform: translate(-50%, -50%) rotate(-14deg) scale(.92); }
  37%, 88% { opacity: 1; transform: translate(-50%, -50%) rotate(-14deg) scale(1); }
  96%, 100% { opacity: 0; transform: translate(-50%, -50%) rotate(-14deg) scale(1); }
}
@keyframes source { 0%, 46% { opacity: 0; } 52%, 88% { opacity: 1; } 96%, 100% { opacity: 0; } }

.tv-book { background: radial-gradient(80% 90% at 50% 40%, #2C3D45, #18242B 70%); display: grid; place-items: center; }
.tv-book img { height: 90%; width: auto; animation: drift 16s ease-in-out infinite alternate; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .45)); }
@keyframes drift { 0% { transform: translate(-6%, 2%) rotate(-3deg) scale(1); } 100% { transform: translate(6%, -2%) rotate(2deg) scale(1.08); } }

.tv-still { background: #2B2335; }
.tv-still img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; animation: settle 18s ease-in-out infinite alternate; }
@keyframes settle { 0% { transform: scale(1); } 100% { transform: scale(1.07) translate(-1.5%, 1%); } }

.tv-vertical { background: #2A2620; display: grid; place-items: center; }
.tv-vertical .bg { position: absolute; inset: -10%; background-position: center; background-size: cover; filter: blur(14px) brightness(.55); }
.capture.tv-vertical > video, .capture.tv-vertical > img.poster { position: absolute; top: 0; left: 50%; height: 100%; width: auto; aspect-ratio: 9 / 16; transform: translateX(-50%); object-fit: cover; }
.capture.tv-vertical > video { z-index: 1; }

/* Hawfold's real tutorial parish: the hedge loop draws itself */
.parish text { font-family: var(--body); }
.parish .hedge { stroke-dasharray: 100; stroke-dashoffset: 0; animation: hedge 9s ease-in-out infinite; }
.parish .fields { animation: fields 9s ease-in-out infinite; }
@keyframes hedge { 0% { stroke-dashoffset: 100; opacity: 1; } 60%, 92% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes fields { 0%, 58% { opacity: 0; } 68%, 92% { opacity: 1; } 100% { opacity: 0; } }

/* Still proving: the proving drawer unit. One kitchen drawer per game in the making, stacked in a
   wooden unit with a tea towel thrown over the top. Each drawer is a <details>: the front (summary)
   carries a brass label holder with the game's name, and pulling it opens the drawer to show the
   game inside. Built by scripts/build-site.mjs from products.json. */
.proving { padding-top: 44px; }
.proving:not(:has(.drawer)), .proving[hidden] { display: none; }
.proving-head { display: grid; gap: 6px; margin-bottom: 30px; }
.proving-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); }
.proving-head p { font-size: .9375rem; line-height: 1.45; color: var(--ink-soft); max-width: 30rem; }

.drawer-unit {
  position: relative; display: grid; gap: 14px; padding: 34px 14px 18px;
  background: linear-gradient(180deg, #C98A45, #A86A33);
  border: 3px solid var(--ink); border-radius: 18px 18px 12px 12px;
  box-shadow: inset 0 0 0 6px rgba(255, 220, 170, .18), 6px 7px 0 var(--ink);
}
.drawer-unit::before { /* the worktop */
  content: ""; position: absolute; left: -10px; right: -10px; top: -14px; height: 18px;
  background: repeating-linear-gradient(90deg, #E9C48A 0 46px, #DDB273 46px 48px); border: 3px solid var(--ink); border-radius: 8px;
}
.towel { /* a gingham tea towel thrown over the top edge, with a stitched-on label */
  position: absolute; left: 14px; top: -18px; z-index: 2; width: min(300px, 72%); height: 52px;
  display: grid; place-items: center;
  background-color: #FCF6EA;
  background-image: linear-gradient(90deg, rgba(60, 107, 71, .45) 50%, transparent 50%), linear-gradient(rgba(60, 107, 71, .45) 50%, transparent 50%);
  background-size: 22px 22px;
  border: 2.5px solid var(--ink); border-radius: 6px 6px 10px 14px;
  box-shadow: 0 4px 0 rgba(43, 29, 20, .3);
  transform: rotate(-2deg);
}
.towel::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: -9px; height: 8px; background: repeating-linear-gradient(90deg, var(--hedge) 0 3px, transparent 3px 7px); opacity: .7; }
.towel-label { background: var(--card); border: 1.5px dashed var(--crust); border-radius: 4px; padding: 2px 12px 3px; color: var(--burnt); font-size: 1.35rem; transform: rotate(1.5deg); }
.drawer-unit .towel { top: -30px; left: 22px; z-index: 3; }

.drawer { position: relative; border-radius: 12px; }
.drawer-front {
  position: relative; list-style: none; cursor: pointer;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "plate handle" "hint handle"; align-items: center; gap: 6px 16px;
  min-height: 112px; padding: 16px 18px 14px;
  background: linear-gradient(180deg, #FFF6E4, #F4E5C6);
  border: 3px solid var(--ink); border-radius: 12px;
  box-shadow: inset 0 0 0 5px #FFFBF1, inset 0 0 0 7px rgba(43, 29, 20, .25), 0 4px 0 var(--ink);
  transition: transform .25s var(--spring), box-shadow .25s ease;
}
.drawer-front::-webkit-details-marker { display: none; }
.drawer-front::marker { content: ""; }
.drawer-front:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 5px #FFFBF1, inset 0 0 0 7px rgba(43, 29, 20, .25), 0 7px 0 var(--ink); }
.drawer-front:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.drawer[open] > .drawer-front { transform: translateY(6px); border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; box-shadow: inset 0 0 0 5px #FFFBF1, inset 0 0 0 7px rgba(43, 29, 20, .25), 0 10px 18px rgba(43, 29, 20, .35); z-index: 2; }

/* a warm glow along the drawer's top gap, and a little steam: it is proving */
.drawer-glow { position: absolute; left: 10%; right: 10%; top: -7px; height: 10px; border-radius: 50%; background: radial-gradient(closest-side, rgba(244, 201, 93, .95), rgba(232, 116, 44, .45) 60%, transparent); filter: blur(1px); animation: glow 3.2s ease-in-out infinite alternate; pointer-events: none; }
@keyframes glow { 0% { opacity: .55; } 100% { opacity: 1; } }
.drawer-steam { left: auto; right: 22%; bottom: 100%; width: 54px; opacity: .85; }
.drawer[open] .drawer-steam { opacity: 0; }

/* the brass label holder and its hand-lettered card */
.drawer-plate { grid-area: plate; justify-self: start; display: inline-block; padding: 6px; border-radius: 6px; background: linear-gradient(135deg, #F3D486, #C9952E 55%, #E8C060); border: 2px solid var(--ink); box-shadow: 0 2px 0 rgba(43, 29, 20, .35); }
.drawer-card { display: grid; gap: 2px; padding: 6px 14px 8px; background: #FFFDF6; border: 1.5px solid rgba(43, 29, 20, .45); border-radius: 3px; min-width: 12rem; }
.drawer-name { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; font-size: clamp(1.35rem, 3vw, 1.75rem); letter-spacing: -0.03em; line-height: 1.05; }
.drawer-name svg { flex: none; width: 1.15em; height: 1.15em; overflow: visible; }
.drawer-status { color: var(--burnt); font-size: 1.15rem; }
.drawer-handle { grid-area: handle; width: 22px; height: 76px; border-radius: 11px; background: linear-gradient(90deg, #A97A24, #F3D486 45%, #C9952E); border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 rgba(43, 29, 20, .3); }
.drawer-hint { grid-area: hint; color: var(--crust); font-size: 1.1rem; }
.drawer-hint .when-open, .drawer[open] .drawer-hint .when-closed { display: none; }
.drawer[open] .drawer-hint .when-open { display: inline; }

/* inside the drawer: a linen-lined box */
.drawer-inside {
  display: grid; gap: 0; margin: 0 8px; overflow: hidden;
  background: #FBF4E6 repeating-linear-gradient(0deg, rgba(122, 62, 29, .05) 0 2px, transparent 2px 6px);
  border: 3px solid var(--ink); border-top: 0; border-radius: 0 0 12px 12px;
  box-shadow: inset 0 12px 14px -10px rgba(43, 29, 20, .45);
}
.drawer[open] .drawer-inside { animation: drawer-out .45s var(--spring); }
@keyframes drawer-out { 0% { transform: translateY(-24px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.drawer-inside .dough-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #2B2335; border-bottom: 3px solid var(--ink); }
.drawer-inside .dough-art img { width: 100%; height: 100%; object-fit: cover; }
.dough-art-slot { display: grid; place-items: center; background: radial-gradient(80% 90% at 50% 45%, #22333B, #18242B 72%); }
.dough-art-slot svg { width: 86%; height: auto; }
.drawer-body { display: grid; gap: 10px; align-content: start; padding: 16px 16px 20px; }
.dough-name { display: flex; align-items: center; gap: .25em; font-size: 1.6rem; letter-spacing: -0.03em; }
.dough-name svg { flex: none; width: 1.15em; height: 1.15em; overflow: visible; }
.dough-tag .pill { white-space: normal; }
.dough-line { font-size: 1rem; line-height: 1.5; font-weight: 600; }
.dough-meta { font-size: .9375rem; line-height: 1.45; color: var(--muted); }
.dough-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 4px; }
.drawer .signup label { font-size: .9375rem; }

@media (min-width: 760px) {
  .drawer-unit { padding: 40px 22px 24px; gap: 18px; }
  .drawer-front { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "plate hint handle"; padding: 18px 26px; }
  .drawer-hint { justify-self: end; }
  .drawer-handle { width: 120px; height: 22px; }
  .drawer-inside { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); margin: 0 14px; }
  .drawer-inside .dough-art { aspect-ratio: auto; min-height: 100%; border-bottom: 0; border-right: 3px solid var(--ink); }
  .drawer-inside .dough-art img { position: absolute; inset: 0; }
  .drawer-body { padding: 22px 24px 24px; }
}
@media (min-width: 960px) {
  .proving { padding-top: 56px; }
  .proving-head { grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: 24px; }
}

/* The bread bin: games that have left the rack. A roll-top bin with a crumb tray shelf that wraps to any length. */
.bin { padding-top: 40px; }
.bin[hidden], .bin:not(:has(.bin-shelf > li)) { display: none; }
.bin-box {
  position: relative; background: #EFE3CA;
  border: 3px solid var(--ink); border-radius: 28px 28px 14px 14px;
  box-shadow: 6px 7px 0 var(--ink);
}
.bin-lid { /* the roll-top: slats, a hand-lettered name and a wooden knob */
  position: relative; display: grid; place-items: center; height: 64px;
  border-bottom: 3px solid var(--ink); border-radius: 25px 25px 0 0;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(255, 255, 255, .45), transparent 60%),
    repeating-linear-gradient(180deg, #F6EEDC 0 10px, #DCC9A3 10px 12px);
}
.bin-word { color: var(--jam); font-size: 2rem; line-height: 1; transform: rotate(-3deg) translateY(-4px); }
.bin-knob {
  position: absolute; left: 50%; bottom: -11px; z-index: 2; width: 60px; height: 18px; margin-left: -30px;
  border: 2.5px solid var(--ink); border-radius: 999px;
  background: linear-gradient(180deg, #D9A866, #A86A33);
  box-shadow: 0 3px 0 rgba(43, 29, 20, .35);
}
.bin-inside {
  display: grid; gap: 18px; padding: 30px 16px 20px; border-radius: 0 0 11px 11px;
  background-color: #E8D8B8;
  background-image: /* crumbs */
    radial-gradient(circle at 20% 30%, rgba(122, 62, 29, .22) 0 1.6px, transparent 2.2px),
    radial-gradient(circle at 70% 65%, rgba(122, 62, 29, .18) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 45% 85%, rgba(181, 71, 27, .16) 0 2px, transparent 2.6px);
  background-size: 46px 38px, 30px 34px, 58px 50px;
}
.bin-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); }
.bin-head p { margin-top: 6px; font-size: .9375rem; line-height: 1.45; color: var(--ink-soft); max-width: 24rem; }
.bin-shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; align-items: start; }
.crust {
  display: grid; gap: 2px; text-decoration: none;
  background: #FFFDF8; border: 2.5px solid var(--ink); border-top: 7px solid #C98A45; border-radius: 16px 16px 6px 6px;
  padding: 8px 8px 12px; box-shadow: 3px 4px 0 var(--ink);
  transform: rotate(-1deg); transition: transform .4s var(--spring);
}
.bin-shelf li:nth-child(even) .crust { transform: rotate(1.2deg); }
.crust:hover { transform: rotate(0deg) translateY(-3px); }
.crust:focus-visible { outline-offset: 4px; }
.crust-thumb { display: block; aspect-ratio: 4 / 3; border: 2px solid var(--ink); border-radius: 6px; overflow: hidden; margin-bottom: 8px; background: #1A1B1F; }
.crust-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.crust-name { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 1rem; line-height: 1.15; letter-spacing: -0.015em; }
.crust-name svg { flex: none; width: 26px; height: 26px; overflow: visible; }
.crust-what { font-size: .8125rem; line-height: 1.3; color: var(--muted); }
.crust-when { color: var(--hedge); font-size: 1.05rem; margin-top: 4px; }

@media (min-width: 560px) {
  .bin-shelf { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 20px 18px; }
  .bin-inside { padding: 32px 24px 24px; }
}
@media (min-width: 960px) {
  .bin { padding-top: 56px; }
  .bin-lid { height: 74px; }
  .bin-word { font-size: 2.4rem; }
  .bin-inside { grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: 32px; align-items: start; padding: 36px 32px 30px; }
  .bin-head { padding-top: 8px; }
}

.tablecloth {
  height: 40px; margin-top: 18px; position: relative;
  background-color: #FCF6EA;
  background-image: linear-gradient(90deg, rgba(194, 59, 59, .5) 50%, transparent 50%), linear-gradient(rgba(194, 59, 59, .5) 50%, transparent 50%);
  background-size: 26px 26px;
  border-top: 3px solid var(--ink);
}
.tablecloth::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: repeating-linear-gradient(90deg, var(--jam) 0 6px, transparent 6px 12px); opacity: .6; }

@keyframes stamp { 0% { transform: scale(2.2) rotate(-14deg); opacity: 0; } 100% { transform: scale(1) rotate(-8deg); opacity: 1; } }

.todo {
  position: absolute; left: 26px; top: 26px; z-index: 5; max-width: 13rem;
  background: var(--butter); color: var(--ink); border: 1.5px solid rgba(43, 29, 20, .35);
  padding: 7px 11px; font-size: .95rem; transform: rotate(-2deg); box-shadow: 0 3px 0 rgba(43, 29, 20, .25);
}

/* The No Catch promise: a tea towel */
.promise { background: var(--butter); position: relative; padding-block: 42px 46px; }
.promise::before, .promise::after { content: ""; position: absolute; left: 0; right: 0; height: 16px; background: linear-gradient(var(--jam) 0 4px, transparent 4px 7px, var(--jam) 7px 9px, transparent 9px); }
.promise::before { top: 10px; }
.promise::after { bottom: 10px; transform: scaleY(-1); }
.promise .wrap { display: grid; gap: 20px; padding-top: 14px; }
.promise h2 { font-size: clamp(1.8rem, 3.8vw, 2.75rem); letter-spacing: -0.035em; }
.promise .lede { max-width: 38rem; margin-top: 8px; }
.promise ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 22px; }
.promise li { display: flex; gap: 10px; align-items: flex-start; font-weight: 800; font-size: 1.0625rem; line-height: 1.3; }
.promise li svg { flex: none; width: 26px; height: 26px; margin-top: -1px; }
.promise li span { display: block; font-weight: 500; font-size: .9375rem; margin-top: 2px; }

/* Studio: how toasted */
.studio-grid { display: grid; gap: 40px; }
.studio-story { display: grid; gap: 16px; max-width: 40rem; font-size: 1.125rem; }
.studio-story h2 { font-size: clamp(2.1rem, 5vw, 3.75rem); letter-spacing: -0.04em; }
.studio-story .sig { font-family: var(--hand); font-size: 1.5rem; color: var(--crust); transform: rotate(-2deg); display: inline-block; }
.doneness { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.doneness li { display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: 16px; row-gap: 2px; align-items: start; }
.doneness svg { grid-row: 1 / span 3; width: 100%; max-width: 150px; height: auto; overflow: visible; }
.doneness .lvl { font-family: var(--hand); color: var(--burnt); font-size: 1.15rem; }
.doneness h3 { font-size: 1.35rem; letter-spacing: -0.02em; }
.doneness p { font-size: .9375rem; }

/* Journal */
.journal { background: var(--paper-2); }
.posts { display: grid; gap: 18px; }
.post { background: var(--card); border: 2.5px solid var(--ink); border-radius: var(--radius); padding: 20px 22px 22px; display: grid; gap: 8px; align-content: start; position: relative; }
.post time { font-family: var(--hand); color: var(--burnt); font-size: 1.1rem; }
.post h3 { font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1.12; }
.post h3 a { text-decoration: none; }
.post h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post:hover { background: #FFF6E2; }
.post:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; }
.post h3 a:focus-visible { outline: none; }
.journal-more { margin-top: 20px; }

/* Press + newsletter */
.press { padding-top: clamp(40px, 6vw, 72px); padding-bottom: 0; }
.press-row { display: grid; gap: 18px; align-items: center; border: 2.5px dashed var(--crust); border-radius: var(--radius); padding: 22px; }
.press-row h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 6px; }
.press-row { scroll-margin-top: 24px; }
.press-row h2:focus { outline: none; }
.press-row h2:focus-visible { outline: 3px solid var(--marmalade); outline-offset: 4px; border-radius: 4px; }
.press-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.press-email { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; }
.press-email .text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; overflow-wrap: anywhere; }
.copy-email { min-height: 44px; padding: 6px 16px; font-size: .9375rem; }
.copy-email.is-done { background: var(--butter); }

/* Wider phones and up */

@media (min-width: 760px) {
  .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .press-row { grid-template-columns: minmax(0, 1fr) auto; }
  
  
  
  
  .doneness { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .doneness li { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .doneness svg { grid-row: auto; margin-inline: auto; }
  .doneness .lvl, .doneness h3, .doneness p { text-align: center; }
}

@media (min-width: 960px) {
  .hero { padding-top: 12px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    grid-template-areas: "copy telly" "today telly" "rack telly";
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(36px, 5vw, 80px);
    row-gap: 22px;
    align-items: start;
  }
  .hero h1 { font-size: clamp(4rem, 6.4vw, 6rem); }
  .hero .support { margin-top: 14px; }
  .rack-area { align-self: end; }
  .rack { margin-top: 64px; margin-bottom: 44px; }
  .pick-note { top: -26px; right: auto; left: 64%; font-size: 1.4rem; }
  .telly-area { align-self: center; }
  .telly-stage { padding-top: 34px; }
  .antenna { width: 120px; height: 46px; }
  .telly { grid-template-columns: minmax(0, 1fr) 54px; padding: 16px; gap: 14px; border-radius: 22px 22px 18px 18px; }
  .knob { width: 38px; height: 38px; }
  .knob::after { top: 3px; height: 11px; transform-origin: 50% 13px; }
  .grille { width: 26px; }
  .controls { gap: 10px; padding-top: 6px; }
  .now-showing { margin-top: 30px; }
  .now-showing .hand { font-size: 1.25rem; }
  .now-showing .np-promise { font-size: 1.125rem; }
  .np-fact { grid-template-columns: 78px minmax(0, 1fr); }
  .np-fig { width: 78px; }
  .np-fig span { font-size: 1.6rem; }
  .tablecloth { height: 64px; margin-top: 28px; }
  .studio-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 64px; }
}

@media (max-width: 959px) {
  .slice-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .rack { margin-inline: auto; }
}

/* Narrow phones */
@media (max-width: 380px) {
  .today { grid-template-columns: 54px minmax(0, 1fr); gap: 12px; }
  .td-num { font-size: 1.5rem; }
  
  
  
  
  
  
}
@media (max-width: 480px) {
  .promise ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
  .promise li { flex-direction: column; gap: 6px; font-size: 1rem; }
  .promise li:last-child { grid-column: 1 / -1; }
  
  
  
  
}

/* Reduced motion: everything holds still */
@media (prefers-reduced-motion: reduce) {
  .cc-card b, .cc-stamp { opacity: 1 !important; }
  
  .steam { display: none; }
  .drawer-glow { animation: none; opacity: .8; }
}

/* Free tools: gingham tea towel band, same kitchen language as the rack, with a card for each check */
.ts-b { position: relative; padding-block: clamp(48px, 7vw, 88px); border-block: 3px solid var(--ink);
  background-color: #FCEFD2;
  background-image: linear-gradient(90deg, rgba(232, 116, 44, .13) 50%, transparent 50%), linear-gradient(rgba(232, 116, 44, .13) 50%, transparent 50%);
  background-size: 36px 36px; }
.ts-block { display: grid; gap: 28px; justify-items: start; }
.ts-block-intro { display: grid; gap: 10px; justify-items: start; max-width: 40rem; }
.ts-b .ts-eyebrow { color: var(--burnt); font-size: clamp(1.15rem, 2.4vw, 1.4rem); }
.ts-b h2 { font-size: clamp(2.1rem, 5vw, 3.75rem); letter-spacing: -0.04em; }
.ts-b .ts-lede { font-size: 1.125rem; margin: 0; }
.ts-b .ts-cta { margin: 0; }
.ts-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; width: 100%; }
.ts-cards a { display: flex; flex-direction: column; justify-content: center; gap: 6px; box-sizing: border-box; width: 100%; min-height: 44px; height: 100%; padding: 16px 18px; text-decoration: none; color: var(--ink); background: var(--card); border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: 4px 5px 0 var(--ink); }
.ts-cards a:hover { background: #FFF1D6; }
.ts-cards a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.ts-cards .ts-q { font-weight: 800; font-size: 1.0625rem; line-height: 1.25; }
.ts-cards .ts-note { font-size: .9375rem; line-height: 1.4; color: var(--crust); }
@media (min-width: 640px) { .ts-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .ts-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }

/* From the Journal: shared pieces for the redesigned feed */
.journal-feed h3 a { text-decoration: none; color: inherit; }
.journal-feed h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.journal-feed h3 a:focus-visible { outline: none; }
.journal-feed article:focus-within, .jf-menu a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.jf-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 1px 10px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--t, var(--butter)); color: var(--ink); font-size: .75rem; font-weight: 800; white-space: nowrap; }
.jf-tag.t-deep, .jf-tag.t-well { color: var(--paper); }
.jf-arrow { width: 20px; height: 12px; transition: transform .12s ease; }
.journal-feed article:hover .jf-arrow { transform: translateX(3px); }
.jf-stamp { display: grid; place-items: center; align-content: center; width: 62px; height: 62px; border-radius: 50%; border: 3px double currentColor; font-family: var(--display); line-height: 1; transform: rotate(10deg); }
.jf-stamp b { font-size: 1.45rem; font-weight: 800; }
.jf-stamp i { font-style: normal; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }
.journal .journal-more { margin-top: 30px; }
@media (prefers-reduced-motion: reduce) { .journal-feed *, .journal-feed { transition: none !important; } }

/* Option A: a chalk menu board of today's specials, one lead story and the rest as menu lines */
.jf-board { position: relative; background-color: #24302A; background-image: radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1.2px); background-size: 7px 7px; color: #F3EEE3; border: 12px solid #8A5A2E; border-radius: 14px; box-shadow: inset 0 0 0 2px #2B1D14, 0 0 0 2.5px var(--ink), 6px 8px 0 var(--ink); padding: clamp(16px, 3.5vw, 36px); }
.jf-board-head { margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px dashed rgba(243, 238, 227, .35); }
.jf-board-head .hand { font-size: clamp(1.6rem, 3.6vw, 2.1rem); color: var(--butter); }
.jf-board-grid { display: grid; gap: 22px; }
.jf-lead { position: relative; display: grid; gap: 10px; align-content: start; border-radius: 8px; }
.jf-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; font-size: .875rem; }
.jf-board .jf-meta time { color: var(--butter); font-weight: 700; }
.jf-board .jf-read { color: #CFC8BB; }
.jf-lead h3 { color: #FFF8EC; font-size: clamp(1.55rem, 3.4vw, 2.4rem); letter-spacing: -0.03em; line-height: 1.05; }
.jf-lead .jf-sf { color: #DDD6C9; font-size: 1.0625rem; }
.jf-board .jf-go { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; font-weight: 700; color: var(--butter); }
.jf-board article:focus-within, .jf-board .jf-menu a:focus-visible { outline-color: var(--butter); }
.jf-side-head { margin: 0 0 4px; font-size: 1.3rem; color: rgba(244, 201, 93, .9); }
.jf-menu { list-style: none; margin: 0; padding: 0; }
.jf-menu li + li { border-top: 1.5px dashed rgba(243, 238, 227, .25); }
.jf-menu a { display: flex; align-items: baseline; gap: 10px; min-height: 48px; padding: 12px 2px; color: #F3EEE3; text-decoration: none; font-weight: 700; line-height: 1.25; border-radius: 6px; }
.jf-menu a:hover { color: var(--butter); }
.jf-q { flex: 0 1 auto; min-width: 0; }
.jf-dots { flex: 1 1 18px; min-width: 18px; border-bottom: 2px dotted rgba(243, 238, 227, .4); transform: translateY(-4px); }
.jf-when { flex: none; font-family: var(--hand); color: var(--butter); font-weight: 400; font-size: 1.05rem; }
@media (min-width: 900px) { .jf-board-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 44px; } .jf-side { border-left: 2px dashed rgba(243, 238, 227, .3); padding-left: 32px; } }
