/* brewdoku.app. One stylesheet for every page.
   The site is the café of the game: a striped terracotta awning, a string of lamps, the barista
   behind his counter, painted tables on a walnut tray, chalk slates in light oak frames and a
   stamp card. Colours are the game's own (www/css/app.css): terracotta, cream, chalk green, oak,
   mocha ink, and the ten table colours.
   Type: Fredoka (the game's font) for headings and controls, Atkinson Hyperlegible Next for text.
   Both OFL, self-hosted. Text contrast is at least 7:1 on every surface it sits on
   (measured in LOGBOEK-SITE.md; axe runs the AAA rule in tools/audit.mjs). */

@font-face { font-family: "Fredoka"; src: url("fonts/fredoka.woff2") format("woff2"); font-weight: 300 700; font-stretch: 75% 125%; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("fonts/atkinson-next.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("fonts/atkinson-next-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  --ink: #4a2718;          /* mocha ink: 12.7:1 on cream, 10.9:1 on the deepest hero tone */
  --ink-2: #633a28;        /* secondary text: 9.3:1 on cream, 8.0:1 on the deepest hero tone */
  --cream: #fffaf3;        /* the awning's cream, page paper */
  --wall: #f6ebdd;         /* oat wall */
  --paper: #fffdf8;
  --terra: #d9735a;        /* awning, stamps: decoration only */
  --terra-ink: #8f3420;    /* terracotta as text: 7.5:1 on cream, 7.2:1 on the hero */
  --honey: #f6bf5f;        /* the Play button of the game; ink on honey 7.9:1 */
  --honey-edge: #d99a38;
  --slate: #33463b;        /* chalkboard */
  --chalk: #f6efe1;        /* chalk on slate 8.8:1 */
  --chalk-2: #ece6d9;      /* dimmer chalk 8.0:1 */
  --oak: #e8c9a0;
  --oak-2: #d2ac7c;
  --walnut: #744a2d;
  --walnut-2: #5b3822;
  --sage: #9fbf8f;
  --bad: #b3261e;
  --focus: #1b5fb8;

  /* Table colours, identical to the game (www/css/app.css). */
  --t0: #d39463; --t1: #aad7a1; --t2: #cf5038; --t3: #2d54a1; --t4: #ebd85e;
  --t5: #a774cf; --t6: #ebadda; --t7: #9a3954; --t8: #3da38a; --t9: #6d7177;

  --display: "Fredoka", "Avenir Next", ui-rounded, system-ui, sans-serif;
  --body: "Atkinson Hyperlegible Next", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4.5vw, 44px);
  --section: clamp(64px, 9vw, 128px);
  --soft: 0 1px 1px rgba(91, 53, 38, .06), 0 8px 22px -8px rgba(91, 53, 38, .22);
  --lift: 0 0 0 1px rgba(91, 53, 38, .06), 0 2px 4px rgba(91, 53, 38, .06), 0 24px 44px -20px rgba(74, 39, 24, .38);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--body); font-size: 1.125rem; line-height: 1.62;
  font-kerning: normal; overflow-wrap: break-word; overflow-x: clip;
}
img, video, svg { max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.06; letter-spacing: -.012em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 8.2vw, 4.6rem); }
h2 { font-size: clamp(2.05rem, 5vw, 3.15rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--terra-ink); text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.lede { font-size: clamp(1.18rem, 2.2vw, 1.36rem); line-height: 1.5; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.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; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -100px; z-index: 50; background: var(--ink); color: var(--cream); padding: 12px 18px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; color: var(--cream); }
[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--display); font-weight: 600; font-size: 1.08rem; line-height: 1.1; letter-spacing: .005em;
  text-decoration: none; color: var(--ink); background: var(--paper);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { color: var(--ink); }
.btn:active { transform: translateY(2px); }
/* The honey button of the game: a raised pill with a darker bottom edge. */
.btn-honey { background: var(--honey); box-shadow: 0 4px 0 var(--honey-edge), 0 8px 18px -6px rgba(160, 90, 20, .45); }
.btn-honey:active { box-shadow: 0 2px 0 var(--honey-edge), 0 4px 10px -6px rgba(160, 90, 20, .45); }
.btn-paper { background: var(--paper); box-shadow: 0 0 0 1px rgba(91, 53, 38, .12), 0 3px 0 rgba(91, 53, 38, .12); }
.btn-small { min-height: 44px; padding: 8px 18px; font-size: 1rem; }
.btn-toggle[aria-pressed="true"] { background: var(--slate); color: var(--chalk); box-shadow: 0 3px 0 #22302a; }

/* ---------- awning and header ---------- */
.awning {
  position: relative; height: 46px;
  background:
    linear-gradient(180deg, rgba(80, 30, 15, .16), rgba(80, 30, 15, 0) 38%, rgba(255, 255, 255, .08) 70%, rgba(80, 30, 15, .1)),
    repeating-linear-gradient(90deg, var(--terra) 0 38px, var(--cream) 38px 76px);
  box-shadow: 0 1px 0 rgba(120, 50, 30, .18);
}
.awning-edge {
  position: absolute; left: 0; right: 0; bottom: -17px; height: 18px;
  background:
    radial-gradient(circle at 19px 0, var(--terra) 18px, transparent 19px) 0 0 / 76px 18px repeat-x,
    radial-gradient(circle at 19px 0, var(--cream) 18px, transparent 19px) 38px 0 / 76px 18px repeat-x;
  filter: drop-shadow(0 4px 3px rgba(91, 53, 38, .16));
}
@media (min-width: 900px) {
  .awning { height: 58px; background:
    linear-gradient(180deg, rgba(80, 30, 15, .16), rgba(80, 30, 15, 0) 38%, rgba(255, 255, 255, .08) 70%, rgba(80, 30, 15, .1)),
    repeating-linear-gradient(90deg, var(--terra) 0 48px, var(--cream) 48px 96px); }
  .awning-edge { bottom: -21px; height: 22px; background:
    radial-gradient(circle at 24px 0, var(--terra) 23px, transparent 24px) 0 0 / 96px 22px repeat-x,
    radial-gradient(circle at 24px 0, var(--cream) 23px, transparent 24px) 48px 0 / 96px 22px repeat-x; }
}
.top { position: relative; z-index: 5; background: var(--cream); }
.bar { display: flex; align-items: center; gap: 16px; padding-top: 30px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--display); font-weight: 600; font-size: 1.55rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 40px; height: 40px; }
.brand:hover { color: var(--ink); }
.bar { flex-wrap: wrap; row-gap: 4px; }
.bar-cta { margin-left: auto; }
/* On phones every link stays visible: they sit under the brand and wrap onto a second line. */
.nav { order: 3; flex: 1 0 100%; display: flex; flex-wrap: wrap; margin-left: -10px; }
.nav a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 999px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 1.02rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--wall); }
@media (max-width: 420px) { .bar-cta { padding: 8px 14px; font-size: .95rem; } .brand { font-size: 1.35rem; } .brand img { width: 34px; height: 34px; } }
@media (min-width: 1120px) {
  .bar { flex-wrap: nowrap; }
  .nav { order: 0; flex: 0 1 auto; flex-wrap: nowrap; margin: 0 0 0 18px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; padding: 18px 0 var(--section);
  background: linear-gradient(180deg, var(--cream) 0, #fff4e6 30%, #fde6d2 100%);
}
/* The string of lamps across the shop front (an inline SVG pattern). */
.lamps { display: block; width: 100%; height: 46px; margin: -6px 0 6px; }
.hero-in { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "play" "stall"; }
.hero-copy { grid-area: copy; }
.hero-copy h1 { max-width: 13ch; }
.hero-copy .lede { max-width: 36em; }
.try { font-weight: 700; color: var(--terra-ink); }
.play { grid-area: play; width: 100%; max-width: 520px; margin: 0 auto; }
.stall { grid-area: stall; display: grid; justify-items: center; gap: 18px; text-align: center; }
.stall-copy p { max-width: 26em; margin: 0 auto 14px; color: var(--ink-2); }
.mail-note { max-width: 30em; margin: 14px auto 0; font-size: 1rem; color: var(--ink-2); }
.stall-copy .mail-note { margin-top: 14px; }
@media (min-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); grid-template-areas: "copy play" "stall play"; column-gap: clamp(32px, 5vw, 80px); row-gap: 8px; align-items: start; }
  .hero-copy { padding-top: 24px; }
  .stall { grid-template-columns: 250px 1fr; align-items: end; text-align: left; justify-items: start; }
  .stall-copy p { margin: 0 0 14px; }
  .stall-copy .mail-note { margin: 14px 0 0; }
}

/* The barista at his counter, with a chalk slate on the counter front. */
.stall-art { position: relative; width: min(300px, 70vw); container-type: inline-size; }
.stall-art img { display: block; width: 100%; filter: drop-shadow(0 18px 18px rgba(116, 60, 30, .22)); }
.slate {
  position: absolute; left: 50.5%; top: 73%; transform: translate(-50%, -50%); width: 50%; margin: 0;
  display: grid; justify-items: center; padding: 5cqw 2cqw 4.5cqw; border-radius: 3.4cqw;
  font-family: var(--display); font-weight: 600; line-height: 1.05; color: var(--chalk); text-align: center;
  background-color: var(--slate);
  background-image: radial-gradient(90% 120% at 20% 0%, rgba(255, 255, 255, .12), transparent 60%), radial-gradient(circle at 70% 70%, rgba(246, 239, 225, .06) 0 1px, transparent 1.5px);
  background-size: auto, 7px 7px;
  box-shadow: 0 0 0 1.6cqw var(--oak), 0 0 0 1.9cqw rgba(150, 100, 60, .35), 0 3cqw 4cqw rgba(60, 30, 15, .3), inset 0 -2px 4px rgba(0, 0, 0, .25);
  text-shadow: 0 0 1.5px rgba(246, 239, 225, .5);
}
.slate span:first-child { font-size: 8.4cqw; }
.slate span + span { font-size: 5.6cqw; color: var(--chalk-2); margin-top: 1cqw; }

/* ---------- the tray and its tables (same look as the game) ---------- */
.tray {
  --pad: 3.2%;
  position: relative; width: 100%; aspect-ratio: 1; padding: var(--pad); border-radius: 22px;
  background:
    radial-gradient(120% 90% at 30% 10%, rgba(255, 236, 205, .35), transparent 60%),
    repeating-linear-gradient(92deg, rgba(90, 52, 28, .10) 0 2px, transparent 2px 9px, rgba(255, 225, 190, .08) 9px 11px, transparent 11px 23px),
    linear-gradient(180deg, #8e5d3b, #744a2d);
  box-shadow: 0 16px 34px -8px rgba(91, 53, 38, .38), inset 0 2px 0 rgba(255, 238, 214, .45), inset 0 -3px 0 rgba(80, 45, 20, .25);
}
.cloth { position: absolute; inset: var(--pad); width: calc(100% - 2 * var(--pad)); height: calc(100% - 2 * var(--pad)); overflow: visible; pointer-events: none; }
.cloth .top { fill: var(--c); }
.cloth .edge { fill: color-mix(in srgb, var(--c) 62%, #2a1508); }
.cloth .seam { fill: none; stroke: rgba(50, 25, 10, .2); stroke-width: .02; }
.tbl.t0 { --c: var(--t0); } .tbl.t1 { --c: var(--t1); } .tbl.t2 { --c: var(--t2); } .tbl.t3 { --c: var(--t3); } .tbl.t4 { --c: var(--t4); }
.tbl.t5 { --c: var(--t5); } .tbl.t6 { --c: var(--t6); } .tbl.t7 { --c: var(--t7); } .tbl.t8 { --c: var(--t8); } .tbl.t9 { --c: var(--t9); }
.grid { position: relative; z-index: 1; display: grid; width: 100%; height: 100%; }
.n5 .grid { grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(5, 1fr); }
.n6 .grid { grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(6, 1fr); }
.n7 .grid { grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(7, 1fr); }
.n8 .grid { grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); }
.n9 .grid { grid-template-columns: repeat(9, 1fr); grid-template-rows: repeat(9, 1fr); }
.n10 .grid { grid-template-columns: repeat(10, 1fr); grid-template-rows: repeat(10, 1fr); }
.c {
  position: relative; display: grid; place-items: center; min-width: 0; min-height: 0;
  margin: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; border-radius: 12%;
}
/* Taps, double taps and holds are read by the page (like the game), so the browser must not zoom
   on a double tap or open a callout on a hold. Scrolling past the board keeps working. */
button.c { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
button.c:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; z-index: 3; border-radius: 12%; box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .85); }
.g-x { width: 54%; height: 54%; opacity: 0; transform: scale(.4); transition: opacity .14s ease, transform .18s cubic-bezier(.3, 1.6, .5, 1); }
.c.is-x .g-x { opacity: 1; transform: none; }
/* The cup is the game's piece: a round cream ceramic cup with latte art, no handle, no face. */
.c.is-cup::before {
  content: ""; position: absolute; left: 24%; right: 24%; bottom: 13%; height: 15%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(74, 36, 18, .38), rgba(74, 36, 18, .16) 60%, rgba(74, 36, 18, 0));
}
.c.is-cup::after, .c.is-target-cup::after {
  content: ""; position: absolute; inset: 16%; background: url("/img/cup.webp") center / contain no-repeat;
}
.c.is-cup::after { animation: land .5s cubic-bezier(.25, .8, .3, 1) both; transform-origin: 50% 90%; }
@keyframes land { 0% { opacity: 0; transform: translateY(-30%) scale(.94); } 45% { opacity: 1; transform: translateY(2%) scale(1.05, .9); } 72% { transform: translateY(-1.5%) scale(.98, 1.03); } 100% { transform: none; } }
/* Hints: glowing spots to look at, a dashed ring for "gets an X", a green ring for "cup goes here". */
.c.is-focus { box-shadow: inset 0 0 0 3px #fffaf2, 0 0 14px 4px rgba(255, 196, 84, .95); z-index: 2; }
.c.is-target:not(.is-target-cup)::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 3px dashed #fffaf2; box-shadow: 0 0 0 2px var(--ink); background: url("/img/x-ghost.svg") center / 62% no-repeat; }
.c.is-target-cup::before { content: ""; position: absolute; inset: 10%; border-radius: 50%; border: 4px solid #2f7a44; background: rgba(255, 255, 255, .7); }
.c.is-target-cup::after { opacity: .75; }
.c.is-bad, .c.is-target-bad { box-shadow: inset 0 0 0 3px var(--bad), inset 0 0 0 6px rgba(255, 250, 242, .85); z-index: 2; }
.c.is-bad::after { animation: wobble 2.6s ease-in-out infinite; }
@keyframes wobble { 0%, 30%, 100% { transform: none; } 5% { transform: rotate(-7deg); } 11% { transform: rotate(6deg); } 17% { transform: rotate(-3.5deg); } 23% { transform: rotate(1.5deg); } }
.tray.is-solved .c.is-cup::after { animation: hop .62s cubic-bezier(.3, .7, .4, 1) 2 both; }
@keyframes hop { 0%, 100% { transform: none; } 18% { transform: scale(1.06, .9); } 50% { transform: translateY(-20%) scale(.96, 1.05); } 80% { transform: scale(1.04, .94); } }
.tray.flash .c.is-x .g-x { animation: xin .3s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes xin { from { transform: scale(.3) rotate(-25deg); opacity: 0; } }
/* Patterns (colour blind setting): the game's ten patterns, drawn on the spots over the tables. */
.tray.patterns .c { background-size: 14px 14px; background-clip: content-box; padding: 6%; }
.tray.patterns .c.t0 { background-image: radial-gradient(circle at 50% 50%, rgba(43, 27, 16, .30) 1.8px, transparent 2.3px); }
.tray.patterns .c.t1 { background-image: repeating-linear-gradient(45deg, rgba(43, 27, 16, .22) 0 2px, transparent 2px 8px); }
.tray.patterns .c.t2 { background-image: repeating-linear-gradient(0deg, rgba(43, 27, 16, .22) 0 2px, transparent 2px 7px); }
.tray.patterns .c.t3 { background-image: repeating-linear-gradient(90deg, rgba(255, 246, 232, .3) 0 2px, transparent 2px 7px); }
.tray.patterns .c.t4 { background-image: repeating-linear-gradient(-45deg, rgba(43, 27, 16, .22) 0 2px, transparent 2px 8px); }
.tray.patterns .c.t5 { background-image: repeating-linear-gradient(45deg, rgba(43, 27, 16, .18) 0 1.5px, transparent 1.5px 6px), repeating-linear-gradient(-45deg, rgba(43, 27, 16, .18) 0 1.5px, transparent 1.5px 6px); }
.tray.patterns .c.t6 { background-image: linear-gradient(45deg, rgba(43, 27, 16, .2) 25%, transparent 25% 75%, rgba(43, 27, 16, .2) 75%), linear-gradient(-45deg, rgba(43, 27, 16, .2) 25%, transparent 25% 75%, rgba(43, 27, 16, .2) 75%); }
.tray.patterns .c.t7 { background-image: repeating-linear-gradient(0deg, rgba(255, 246, 232, .24) 0 1.5px, transparent 1.5px 7px), repeating-linear-gradient(90deg, rgba(255, 246, 232, .24) 0 1.5px, transparent 1.5px 7px); }
.tray.patterns .c.t8 { background-image: radial-gradient(circle at 50% 50%, transparent 2.5px, rgba(43, 27, 16, .26) 3px, rgba(43, 27, 16, .26) 4px, transparent 4.5px); }

/* ---------- the playable puzzle ---------- */
.play-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.play-title { font-size: 1.5rem; margin: 0; }
.play-size { font-family: var(--display); font-weight: 500; color: var(--ink-2); }
.play-status { min-height: 3.2em; margin: 14px 0 6px; font-weight: 700; line-height: 1.4; }
.play-tools { display: grid; gap: 12px; }
.tool-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }
.tool-row-2 { grid-template-columns: auto 1fr 1fr; align-items: center; }
.tool-row .btn { padding: 8px 6px; font-size: 1rem; white-space: nowrap; }
@media (max-width: 400px) { .tool-row .btn { font-size: .94rem; } .tool-row { gap: 6px; } }
.size-pick { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; }
.size-pick select { min-height: 44px; padding: 0 10px; border-radius: 12px; border: 1px solid rgba(91, 53, 38, .3); background: var(--paper); color: var(--ink); font: inherit; }
.play-help { margin: 16px 0 4px; font-size: 1rem; color: var(--ink-2); }
.play-note { font-size: 1rem; color: var(--ink-2); }

/* ---------- sections ---------- */
section { position: relative; }
.rules-in, .clip-in, .menu-in, .daily-in, .hints-in, .ads-in, .solo-in { grid-template-columns: minmax(0, 1fr); }
.rules, .menu, .hints, .solo { padding: var(--section) 0; }
.rules { background: var(--cream); }
.rules-in { display: grid; gap: 28px; }
.rules-head .lede { max-width: 34em; }
.rules-board { max-width: 400px; width: 100%; justify-self: center; }
.rule-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.rule-tabs [role="tab"] {
  min-height: 46px; padding: 8px 16px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--display); font-weight: 600; font-size: 1.02rem; color: var(--ink); background: var(--wall);
  box-shadow: inset 0 0 0 1px rgba(91, 53, 38, .14);
}
.rule-tabs [aria-selected="true"] { background: var(--slate); color: var(--chalk); box-shadow: 0 0 0 3px var(--oak); }
.rule-panel h3 { margin-bottom: .3em; }
.rule-left { font-weight: 700; min-height: 1.6em; }
.rule-calm { margin-top: 22px; padding-top: 18px; border-top: 2px dashed rgba(217, 115, 90, .45); color: var(--ink-2); }
@media (min-width: 900px) {
  .rules-in { grid-template-columns: 400px 1fr; grid-template-areas: "head head" "board controls"; column-gap: 64px; align-items: start; }
  .rules-head { grid-area: head; } .rules-board { grid-area: board; } .rules-controls { grid-area: controls; padding-top: 6px; }
}

/* The phone frame for real app screens. */
.phone { margin: 0; width: min(270px, 68vw); padding: 9px; border-radius: 46px; background: #231a15; box-shadow: var(--lift), inset 0 0 0 2px #3b2c24; }
.phone img, .phone video { display: block; width: 100%; height: auto; border-radius: 37px; background: var(--wall); }

/* The clip, on the chalkboard wall. */
.clip {
  padding: var(--section) 0; color: var(--chalk);
  background-color: var(--slate);
  background-image: radial-gradient(70% 60% at 15% 10%, rgba(255, 255, 255, .04), transparent 60%), radial-gradient(60% 50% at 90% 90%, rgba(0, 0, 0, .16), transparent 70%), radial-gradient(circle at 60% 40%, rgba(246, 239, 225, .05) 0 1px, transparent 1.5px);
  background-size: auto, auto, 9px 9px;
  box-shadow: inset 0 10px 0 var(--oak), inset 0 -10px 0 var(--oak);
}
.clip h2 { color: var(--chalk); }
.clip p { color: var(--chalk); font-size: 1.2rem; max-width: 30em; }
.clip a { color: var(--chalk); }
.clip-in { display: grid; gap: 36px; justify-items: center; }
.phone-video { position: relative; width: min(300px, 74vw); }
.clip-btn {
  position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); min-height: 44px; padding: 8px 20px; border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--ink); background: var(--chalk); box-shadow: 0 0 0 3px var(--oak), 0 6px 14px rgba(0, 0, 0, .3);
}
@media (min-width: 900px) { .clip-in { grid-template-columns: auto minmax(0, 1fr); column-gap: 80px; align-items: center; justify-items: start; } }

/* The level menu on a chalkboard in a light oak frame. */
.menu { background: var(--wall); }
.menu-in { display: grid; gap: 40px; justify-items: center; }
.menu-copy { justify-self: stretch; }
.beans { display: flex; gap: 6px; margin-top: 8px; }
.beans img { width: 40px; height: 40px; }
.beans img:nth-child(2) { transform: rotate(14deg); } .beans img:nth-child(3) { transform: rotate(-10deg); }
.frame-oak {
  width: 100%; max-width: 460px; padding: 14px; border-radius: 18px;
  background: repeating-linear-gradient(88deg, rgba(160, 110, 60, .14) 0 2px, transparent 2px 11px, rgba(255, 240, 215, .2) 11px 13px, transparent 13px 27px), linear-gradient(160deg, #efd5ad, var(--oak-2));
  box-shadow: var(--lift), inset 0 2px 0 rgba(255, 245, 225, .7), inset 0 -3px 0 rgba(120, 80, 40, .25);
}
.chalk {
  border-radius: 8px; padding: 22px clamp(16px, 4vw, 26px) 20px; color: var(--chalk);
  background-color: var(--slate);
  background-image: radial-gradient(90% 60% at 20% 0%, rgba(255, 255, 255, .1), transparent 60%), radial-gradient(circle at 70% 70%, rgba(246, 239, 225, .05) 0 1px, transparent 1.5px);
  background-size: auto, 8px 8px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .35);
}
.menu-title { font-family: var(--display); font-weight: 600; font-size: 2.2rem; text-align: center; margin: 0 0 12px; text-shadow: 0 0 2px rgba(246, 239, 225, .45); }
.menu-title::after { content: ""; display: block; width: 90px; height: 2px; margin: 6px auto 0; background: var(--chalk-2); border-radius: 2px; opacity: .8; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { display: grid; grid-template-columns: auto 1fr auto; column-gap: 8px; align-items: baseline; padding: 7px 0; border-bottom: 1px dashed rgba(246, 239, 225, .22); }
.menu-list li:last-child { border-bottom: 0; }
.menu-name { font-family: var(--display); font-weight: 600; font-size: 1.22rem; }
.menu-dots { border-bottom: 2px dotted rgba(246, 239, 225, .5); transform: translateY(-5px); }
.menu-size { font-family: var(--display); font-weight: 500; white-space: nowrap; }
.menu-range { grid-column: 1 / -1; font-size: .95rem; color: var(--chalk-2); line-height: 1.3; }
.menu-art { display: grid; justify-items: center; gap: 36px; width: 100%; }
.menu-range { font-family: var(--display); font-weight: 500; }
/* The chalkboard and the phone stand side by side and never overlap (tools/shots.mjs measures it
   at every width). Below 1000 px they stack. */
@media (min-width: 1000px) {
  .menu-in { grid-template-columns: minmax(0, 1fr); justify-items: stretch; }
  .menu-copy { max-width: 44em; }
  .menu-art { grid-template-columns: minmax(0, 440px) 240px; justify-content: center; align-items: end; column-gap: 56px; }
  .menu-board { max-width: 440px; }
  .menu-phone { width: 240px; transform: rotate(3deg); margin-bottom: 18px; }
}
@media (min-width: 1280px) {
  .menu-in { grid-template-columns: minmax(0, 1fr) auto; column-gap: 56px; align-items: center; }
  .menu-art { grid-template-columns: 420px 220px; column-gap: 40px; }
  .menu-phone { width: 220px; }
}

/* The Daily Brew: a stamp card like the one on Home. */
.daily { padding: var(--section) 0; background: linear-gradient(180deg, #fff4e6, #fde6d2); }
.daily-in { display: grid; gap: 40px; justify-items: center; }
.daily-copy, .daily-phones { justify-self: stretch; }
.daily-copy { max-width: 36em; }
.card-stamps {
  margin: 0; width: 100%; max-width: 460px; padding: 18px 20px 20px; border-radius: 20px 20px 6px 6px; position: relative;
  background: linear-gradient(160deg, #fffdf8, #fbf0e1); box-shadow: var(--lift);
}
.card-stamps::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 10px;
  background: linear-gradient(135deg, #fbf0e1 50%, transparent 50%) 0 0 / 18px 10px repeat-x, linear-gradient(225deg, #fbf0e1 50%, transparent 50%) 0 0 / 18px 10px repeat-x;
}
.card-head { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 2px dashed #f0b9a6; }
.chalk-label {
  font-family: var(--display); font-weight: 600; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--chalk); background: var(--slate); padding: 3px 12px 2px; border-radius: 9px;
  box-shadow: 0 0 0 3px var(--oak), 0 0 0 4px rgba(170, 120, 75, .35), 0 4px 7px rgba(91, 53, 38, .2);
  margin-left: 4px;
}
.card-streak { display: inline-flex; align-items: center; gap: 2px; font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.card-flame { width: 28px; height: 28px; }
.card-title { font-family: var(--display); font-weight: 600; font-size: 1.6rem; margin: 12px 0 10px; }
.stamps {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; align-items: center; margin: 0 0 12px; padding: 8px;
  border-radius: 16px; background: linear-gradient(160deg, #fdf6ec, #f8ead9); box-shadow: inset 0 1px 2px rgba(120, 70, 40, .12);
}
.st { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ecdcc6, #dcc3a4); box-shadow: inset 1px 2px 4px rgba(120, 70, 40, .38), inset -1px -1px 1px rgba(255, 255, 255, .7); }
.st-img { width: 100%; height: 100%; }
.st-stamped { background: none; box-shadow: none; }
.st-stamped .st-img { filter: drop-shadow(0 2px 2px rgba(120, 55, 35, .3)); }
.r1 { transform: rotate(-8deg); } .r2 { transform: rotate(5deg); } .r3 { transform: rotate(-3deg); } .r4 { transform: rotate(9deg); } .r5 { transform: rotate(-6deg); }
.st-today { box-shadow: inset 1px 2px 3px rgba(120, 70, 40, .2), 0 0 0 3px #eaa63a, 0 0 10px rgba(234, 166, 58, .5); }
.st-gift { background: radial-gradient(circle at 35% 30%, #eef3e8, #d9e4cf); }
.st-gift .st-img { width: 80%; height: 80%; opacity: .75; }
.card-stamps figcaption { color: var(--ink-2); font-size: 1rem; }
.daily-phones { position: relative; display: flex; justify-content: center; padding: 10px 0 20px; }
.daily-phones .phone { width: min(240px, 56vw); }
.phone-back { margin-left: -28%; transform: rotate(5deg) translateY(26px); z-index: 0; }
.phone-front { z-index: 1; transform: rotate(-3deg); }
@media (min-width: 1000px) {
  .daily-in { grid-template-columns: minmax(0, 1fr) 520px; grid-template-areas: "copy phones" "card phones"; column-gap: 64px; row-gap: 32px; align-items: start; }
  .daily-copy { grid-area: copy; } .card-stamps { grid-area: card; } .daily-phones { grid-area: phones; }
  .daily-phones .phone { width: 260px; }
}

/* Hints: a real hint from the engine, told by the barista. */
.hints { background: var(--cream); }
.hints-in { display: grid; gap: 40px; justify-items: center; }
.hints-copy { justify-self: stretch; max-width: 40em; }
.hint-example { margin: 0; width: 100%; max-width: 440px; }
.tip { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px 16px; border-radius: 18px; background: var(--paper); box-shadow: var(--soft); }
.tip img { width: 56px; height: 56px; flex: none; }
.tip-title { margin: 0 0 2px; font-family: var(--display); font-weight: 600; font-size: .92rem; letter-spacing: .06em; text-transform: uppercase; color: var(--terra-ink); }
.hint-example .note { margin-top: 10px; font-size: 1rem; color: var(--ink-2); }
@media (min-width: 1000px) {
  .hints-in { grid-template-columns: minmax(0, 1fr) 440px; grid-template-areas: "copy example" "phone example"; column-gap: 72px; row-gap: 40px; align-items: start; justify-items: start; }
  .hints-copy { grid-area: copy; } .hint-example { grid-area: example; } .hints-phone { grid-area: phone; width: 250px; transform: rotate(-2deg); }
}

/* Ads, in plain words: a printed card on the wall. */
.ads { padding: var(--section) 0; background: var(--wall); }
.ads-in { display: grid; gap: 36px; }
.ads-head .lede { max-width: 30em; }
.ads-list { margin: 0; padding: 8px clamp(18px, 4vw, 34px); border-radius: 20px; background: var(--paper); box-shadow: var(--lift); }
.ads-list div { display: grid; gap: 2px; padding: 16px 0; border-bottom: 2px dashed rgba(217, 115, 90, .35); }
.ads-list div:last-child { border-bottom: 0; }
.ads-list dt { font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--terra-ink); }
.ads-list dd { margin: 0; }
.easy h3 { margin-bottom: .6em; }
.easy p { margin: 0 0 .7em; }
@media (min-width: 900px) {
  .ads-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-areas: "head list" "easy list"; column-gap: 64px; align-items: start; }
  .ads-head { grid-area: head; } .ads-list { grid-area: list; } .easy { grid-area: easy; }
  .ads-list div { grid-template-columns: 140px 1fr; gap: 16px; align-items: baseline; }
}

/* A note from the maker. */
.solo { background: var(--cream); }
.solo-in { display: grid; gap: 24px; justify-items: center; }
.solo-panda { width: min(240px, 60vw); filter: drop-shadow(0 14px 16px rgba(116, 60, 30, .2)); }
.solo-copy { max-width: 34em; padding: clamp(22px, 4vw, 36px); border-radius: 6px; background: var(--paper); box-shadow: var(--lift); }
.solo-copy h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.sign { font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--terra-ink); margin-top: 18px; }
@media (min-width: 900px) { .solo-in { grid-template-columns: 280px minmax(0, 34em); justify-content: center; column-gap: 56px; align-items: center; } .solo-panda { width: 280px; } }

/* Coming soon, under the awning again. */
.soon { background: linear-gradient(180deg, #fde6d2, #fbd9c2); padding-bottom: var(--section); text-align: center; }
.soon-in { display: grid; justify-items: center; gap: 6px; padding-top: calc(var(--section) * .7); }
.soon-icon { width: 128px; height: 128px; border-radius: 28px; box-shadow: var(--lift); margin-bottom: 18px; }
.soon p { max-width: 32em; margin: 0 auto 22px; }
.soon .mail-note { margin: 18px auto 0; }

/* ---------- footer: the walnut of the tray ---------- */
.foot {
  color: var(--cream); padding: 56px 0 44px;
  background: repeating-linear-gradient(92deg, rgba(40, 20, 10, .14) 0 2px, transparent 2px 10px, rgba(255, 225, 190, .05) 10px 12px, transparent 12px 26px), linear-gradient(180deg, var(--walnut), var(--walnut-2));
}
.foot a { color: var(--cream); }
.foot a:hover { color: #ffe3c2; }
.foot-in { display: grid; gap: 26px; }
.foot .brand { color: var(--cream); }
.foot-brand p { margin: 6px 0 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 6px; font-family: var(--display); font-weight: 500; font-size: 1.08rem; }
.foot-legal p { margin: 0 0 4px; font-size: 1rem; }
.foot-legal a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 900px) { .foot-in { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; } }

/* ---------- subpages ---------- */
.sub-head { padding: 40px 0 28px; background: linear-gradient(180deg, var(--cream), #fff4e6); }
.sub-head .lede { max-width: 36em; }
.sub-body { padding: 16px 0 var(--section); }
.sub-body h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); margin-top: 1.6em; }
.prose ul, .steps { padding-left: 1.3em; }
.prose li, .steps li { margin-bottom: .5em; }
.note-card { padding: 18px 22px; border-radius: 18px; background: var(--paper); box-shadow: var(--soft); }
.note-card h2 { margin-top: 0; }
.effective { font-weight: 700; }
.placeholder { display: block; padding: 12px 16px; border-radius: 12px; background: #fff3c4; border: 2px dashed #b0741a; font-weight: 700; }
.faq-list { display: grid; gap: 10px; margin-top: 12px; }
details { border-radius: 16px; background: var(--paper); box-shadow: var(--soft); }
summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 18px; font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--terra-ink); }
details[open] summary::after { content: "\2212"; }
details p { padding: 0 18px 16px; margin: 0; }
.nf { text-align: center; padding: 64px 0 var(--section); }
.nf .lede { margin: 0 auto 24px; }
.nf-panda { width: 120px; height: 120px; margin: 0 auto 12px; display: block; }

/* Press */
.press-grid { display: grid; gap: 32px; }
.press-short { font-size: 1.24rem; }
.press-facts { padding: 22px 24px; border-radius: 18px; background: var(--paper); box-shadow: var(--soft); align-self: start; }
.press-facts h2 { margin-top: 0; }
.press-facts dl { margin: 0; }
.press-facts div { padding: 9px 0; border-bottom: 1px solid rgba(91, 53, 38, .14); }
.press-facts div:last-child { border-bottom: 0; }
.press-facts dt { font-weight: 800; }
.press-facts dd { margin: 0; }
@media (min-width: 900px) { .press-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); column-gap: 56px; } }
.press-art { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.press-art figure { margin: 0; width: 160px; }
.press-icon img { border-radius: 36px; box-shadow: var(--soft); }
.downloads { list-style: none; padding: 0; margin: 0; }
.downloads a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.press-shots { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.press-shots a { display: block; border-radius: 18px; overflow: hidden; box-shadow: var(--soft); }
.press-shots img { display: block; width: 100%; }
.swatches { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.swatches li { display: grid; grid-template-columns: 40px 1fr; column-gap: 10px; align-items: center; }
.swatches strong { font-weight: 700; text-transform: capitalize; }
.swatches code { grid-column: 2; font-size: .95rem; }
.sw { grid-row: span 2; width: 40px; height: 40px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.sw-terracotta { background: #d9735a; } .sw-cream { background: #fffaf3; } .sw-chalkgreen { background: #33463b; } .sw-lightoak { background: #e8c9a0; } .sw-mocha { background: #5b3526; }
.sw.t0 { background: var(--t0); } .sw.t1 { background: var(--t1); } .sw.t2 { background: var(--t2); } .sw.t3 { background: var(--t3); } .sw.t4 { background: var(--t4); }
.sw.t5 { background: var(--t5); } .sw.t6 { background: var(--t6); } .sw.t7 { background: var(--t7); } .sw.t8 { background: var(--t8); } .sw.t9 { background: var(--t9); }
.press-assets h2 { margin-top: 1.4em; font-size: clamp(1.6rem, 3.4vw, 2.1rem); }
.press-contact { margin-top: 28px; font-weight: 700; }
