:root {
  --bg: #f7f3fc;
  --surface: #fdfbff;
  --surface-2: #efe8f8;
  --ink: #2b2435;
  --ink-2: #4a4257;
  --muted: #6b6279;
  --line: #e4daf0;
  --line-strong: #cdbfe0;
  --accent: #b3392f;
  --accent-ink: #fdfbff;
  --accent-soft: #f6dedb;
  --green: #2c6a45;
  --green-ink: #fbf9fe;
  --matcha: #6e8f34;
  --matcha-soft: #e5edd3;
  --bar: #6e8f34;
  --bar-track: #ebe3f5;
  --door-1: #ebe2f7;
  --door-2: #dccdf0;
  --door-3: #d6e4b6;
  --door-4: #2c6a45;
  --door-5: #b3392f;
  --door-ink: #2b2435;
  --door-ink-dark: #fbf9fe;
  --inside: #2b2435;
  --shadow: 0 18px 40px -22px rgba(76, 52, 120, 0.32);
  --radius: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Cormorant", "Iowan Old Style", Georgia, serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1722;
    --surface: #231e2b;
    --surface-2: #2c2636;
    --ink: #f1ecf7;
    --ink-2: #d5cde0;
    --muted: #a89fb6;
    --line: #352e40;
    --line-strong: #4a4157;
    --accent: #ec7f72;
    --accent-ink: #1b1722;
    --accent-soft: #3d2328;
    --green: #7cc39a;
    --green-ink: #13201a;
    --matcha: #a8c46c;
    --matcha-soft: #2c3320;
    --bar: #7f9e46;
    --bar-track: #2e2838;
    --door-1: #2c2636;
    --door-2: #3a3148;
    --door-3: #5d7f3b;
    --door-4: #24543a;
    --door-5: #9e3b33;
    --door-ink: #efe9f6;
    --door-ink-dark: #f3fbf6;
    --inside: #120f17;
    --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #1b1722;
  --surface: #231e2b;
  --surface-2: #2c2636;
  --ink: #f1ecf7;
  --ink-2: #d5cde0;
  --muted: #a89fb6;
  --line: #352e40;
  --line-strong: #4a4157;
  --accent: #ec7f72;
  --accent-ink: #1b1722;
  --accent-soft: #3d2328;
  --green: #7cc39a;
  --green-ink: #13201a;
  --matcha: #a8c46c;
  --matcha-soft: #2c3320;
  --bar: #7f9e46;
  --bar-track: #2e2838;
  --door-1: #2c2636;
  --door-2: #3a3148;
  --door-3: #5d7f3b;
  --door-4: #24543a;
  --door-5: #9e3b33;
  --door-ink: #efe9f6;
  --door-ink-dark: #f3fbf6;
  --inside: #120f17;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Paper grain, fixed so it never repaints on scroll. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }
button { font: inherit; color: inherit; }
img, svg { display: block; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px;
  text-decoration: none; transition: top 0.2s var(--ease);
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.topbar__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
}
.brand__mark { width: 26px; height: 26px; fill: var(--accent); stroke: var(--bg); stroke-width: 1.6; stroke-linecap: round; }
.brand__year { font-family: var(--font-display); font-style: italic; font-size: 1.15em; color: var(--green); }
.topnav { display: none; gap: 4px; margin-left: 8px; }
.topnav a {
  text-decoration: none; color: var(--muted); font-size: 14px; padding: 6px 12px; border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.topnav a:hover { color: var(--ink); background: var(--surface-2); }
@media (min-width: 860px) { .topnav { display: flex; } }

.controls { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang {
  display: inline-flex; padding: 3px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.lang { gap: 2px; }
.lang a {
  display: grid; place-items: center; width: 36px; height: 30px; border-radius: 999px;
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.flag {
  display: block; width: 20px; height: 20px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(43, 36, 53, 0.14);
  opacity: 0.55; filter: saturate(0.6);
  transition: opacity 0.25s var(--ease), filter 0.25s var(--ease), transform 0.25s var(--ease);
}
.flag svg { display: block; width: 100%; height: 100%; }
.lang a:hover .flag { opacity: 1; filter: none; transform: scale(1.08); }
.lang a[aria-current="page"] { background: var(--surface); box-shadow: 0 1px 3px rgba(43, 36, 53, 0.12), inset 0 0 0 1px var(--line); }
.lang a[aria-current="page"] .flag { opacity: 1; filter: none; }
.theme-btn {
  width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; display: grid; place-items: center;
  transition: transform 0.2s var(--ease);
}
.theme-btn svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.theme-btn:active { transform: scale(0.94); }

/* ---------- Shared ---------- */
.eyebrow {
  margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--green);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 500; font-size: 15px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--primary { background: var(--green); color: var(--green-ink); }
.btn--primary:hover { background: var(--accent); color: var(--accent-ink); }
.btn--ghost { border-color: var(--line-strong); background: transparent; }
.btn--ghost:hover { background: var(--surface-2); }

.section { padding: 72px 16px; }
@media (min-width: 768px) { .section { padding: 88px 32px; } }
.section__head { display: grid; gap: 28px; margin-bottom: 36px; }
@media (min-width: 1024px) {
  .section__head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}
.section__title {
  margin: 0; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -0.01em;
}
.section__lead { margin: 14px 0 0; color: var(--muted); max-width: 58ch; }

/* ---------- Hero ---------- */
.hero {
  display: grid; gap: 48px; align-items: center;
  padding-top: 48px; padding-bottom: 32px;
}
@media (min-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; padding-top: 64px; min-height: calc(100dvh - 64px); }
}
.hero__title {
  margin: 0; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 0.98; letter-spacing: -0.02em;
  max-width: 15ch; text-wrap: balance;
}
.hero__title em { font-style: italic; color: var(--accent); }
.hero__lead { margin: 26px 0 0; font-size: 1.08rem; color: var(--ink-2); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.stats {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0;
  margin: 48px 0 0; border-top: 1px solid var(--line);
}
.stat { padding: 18px 16px 0 0; }
.stat + .stat { padding-left: 16px; border-left: 1px solid var(--line); }
.stat dt { font-size: 13px; color: var(--muted); line-height: 1.35; max-width: 18ch; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; }
.stat dd { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1; letter-spacing: -0.03em; font-weight: 500; }
.stat--lead dd { color: var(--accent); }

/* ---------- Doors ---------- */
.hero__doors { position: relative; }
.doors {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px;
  padding: 14px; border-radius: 26px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transform: rotate(-1.2deg);
}
@media (min-width: 640px) { .doors { gap: 10px; padding: 18px; } }
.door {
  position: relative; aspect-ratio: 3 / 4; border: 0; padding: 0; cursor: pointer;
  perspective: 700px; background: var(--inside); border-radius: 10px;
  opacity: 0; transform: translateY(10px);
  animation: door-in 0.7s var(--ease) forwards;
  animation-delay: calc(var(--i) * 28ms + 120ms);
}
.door.wide { grid-column: span 2; aspect-ratio: auto; }
.door.tall { grid-row: span 2; aspect-ratio: auto; }
@keyframes door-in { to { opacity: 1; transform: none; } }

.door__inside {
  position: absolute; inset: 0; border-radius: 10px; display: grid; place-items: center;
  align-content: center; gap: 4px; padding: 6px; text-align: center;
  color: #f4e6d6; font-size: 10px; line-height: 1.15; font-weight: 500;
}
.door__inside svg { width: 38%; max-width: 26px; fill: #c98a5a; }
.door__inside img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 10px;
}
.door__inside span {
  display: none; position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 6px;
  border-radius: 0 0 10px 10px; background: linear-gradient(transparent, rgba(20, 14, 26, 0.78));
}
@media (min-width: 480px) { .door__inside span { display: block; } }

.door__panel {
  position: absolute; inset: 0; border-radius: 10px; transform-origin: left center;
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
  display: flex; align-items: flex-end; justify-content: flex-start; padding: 8px 9px;
  background: var(--door-1); color: var(--door-ink);
  box-shadow: inset 0 0 0 1px rgba(80, 55, 35, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  backface-visibility: hidden;
}
.door[data-tone="2"] .door__panel { background: var(--door-2); }
.door[data-tone="3"] .door__panel { background: var(--door-3); }
.door[data-tone="4"] .door__panel { background: var(--door-4); color: var(--door-ink-dark); }
.door[data-tone="5"] .door__panel { background: var(--door-5); color: var(--door-ink-dark); }
.door__num {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1rem, 2.6vw, 1.7rem);
  line-height: 1; letter-spacing: -0.02em;
}
.door.wide .door__num, .door.tall .door__num { font-size: clamp(1.6rem, 4vw, 2.8rem); }
.door__panel::before {
  content: ""; position: absolute; right: 7px; top: 50%; width: 3px; height: 14%;
  border-radius: 3px; background: currentColor; opacity: 0.28; transform: translateY(-50%);
}
.door:hover .door__panel, .door:focus-visible .door__panel, .door.is-open .door__panel {
  transform: rotateY(-108deg);
  box-shadow: 10px 0 18px -10px rgba(0, 0, 0, 0.4);
}
.door.is-today { box-shadow: 0 0 0 2px var(--accent); }
.door.is-hint .door__panel { animation: door-peek 5s var(--ease) 1.4s infinite; }
.door.is-hint:hover .door__panel, .door.is-hint:focus-visible .door__panel { animation: none; }
@keyframes door-peek {
  0%, 62%, 100% { transform: none; }
  72% { transform: rotateY(-46deg); }
  80% { transform: rotateY(-30deg); }
  88% { transform: rotateY(-40deg); }
}
.doors__hint { margin: 18px 0 0; font-size: 13px; color: var(--muted); text-align: right; }

@media (prefers-reduced-motion: reduce) {
  .door { animation: none; opacity: 1; transform: none; }
  .door__panel { transition: none; }
  .door.is-hint .door__panel { animation: none; transform: rotateY(-24deg); }
}

/* ---------- Toolbar ---------- */
.toolbar { display: grid; gap: 12px; justify-items: start; }
@media (min-width: 1024px) { .toolbar { justify-items: end; } }
.toolbar__label { font-size: 12px; color: var(--muted); padding: 0 8px 0 10px; align-self: center; }
.seg {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.seg button {
  border: 0; background: transparent; cursor: pointer; padding: 7px 14px; border-radius: 999px;
  font-size: 14px; color: var(--ink-2); transition: background 0.25s var(--ease), color 0.25s;
}
.seg button:hover { background: var(--surface-2); }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--bg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--ink-2);
  transition: background 0.25s var(--ease), border-color 0.25s, color 0.25s;
}
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--matcha-soft); border-color: var(--matcha); color: var(--ink); }
.chip:active, .seg button:active { transform: scale(0.97); }
@media (max-width: 639px) {
  .toolbar { justify-items: stretch; }
  .seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .seg::-webkit-scrollbar { display: none; }
  .seg button { white-space: nowrap; flex: 0 0 auto; }
  .toolbar__label { display: none; }
}

/* ---------- Calendar list ---------- */
.cal-head, .cal-row__main {
  display: grid; gap: 16px; align-items: center;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 2fr) auto;
}
.cal-head {
  padding: 0 20px 12px 64px; font-size: 12px; color: var(--muted);
  letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 1px solid var(--line);
}
.cal-head span:last-child { grid-column: span 2; }
@media (max-width: 899px) { .cal-head { display: none; } }

.cal-list { list-style: none; margin: 0; padding: 0; }
.cal-row {
  position: relative; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(12px);
  animation: row-in 0.6s var(--ease) forwards;
  animation-delay: calc(var(--i) * 45ms);
}
@keyframes row-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cal-row { animation: none; opacity: 1; transform: none; } }
.cal-list.no-enter .cal-row { animation: none; opacity: 1; transform: none; }
.cal-list .cal-row.flash { animation: flash 1.6s var(--ease); opacity: 1; transform: none; }
@keyframes flash { 0%, 40% { background: var(--matcha-soft); } 100% { background: transparent; } }

.cal-row__main { position: relative; padding: 22px 20px 22px 64px; transition: background 0.3s var(--ease); cursor: pointer; }
.cal-row:hover .cal-row__main { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.cal-rank {
  position: absolute; left: 16px; top: 24px; width: 32px; font-size: 13px; color: var(--muted);
}
.cal-id { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 18px; align-items: start; }
.cal-thumb {
  display: block; width: 88px; height: 88px; border-radius: 16px; overflow: hidden;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
}
.cal-thumb img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.cal-row:hover .cal-thumb img { transform: scale(1.06); }
.cal-name {
  margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.75rem;
  line-height: 1.05; letter-spacing: -0.01em;
}
.cal-name a { text-decoration: none; }
.cal-name a:hover { color: var(--green); }
.cal-where { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag {
  font-size: 11px; font-weight: 500; padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--ink-2); white-space: nowrap;
}
.tag--warn { border-color: var(--accent); color: var(--accent); }

.cal-coffee .big, .cal-price .big { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; }
.cal-coffee .small, .cal-price .small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.cal-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.bar { height: 10px; border-radius: 0 4px 4px 0; background: var(--bar-track); overflow: hidden; }
.bar > i {
  display: block; height: 100%; width: var(--w); background: var(--bar); border-radius: 0 4px 4px 0;
  transform-origin: left; animation: bar-in 0.9s var(--ease) both; animation-delay: calc(var(--i) * 45ms + 150ms);
}
@keyframes bar-in { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .bar > i { animation: none; } }
.cal-bar .val { font-size: 1.05rem; font-weight: 500; min-width: 5.2ch; text-align: right; white-space: nowrap; }
.cal-bar .unit { display: none; margin-left: 5px; font-family: var(--font-body); font-size: 11px; font-weight: 500; color: var(--muted); }
/* A bar beyond the scale: full width, with a torn end to show it continues. */
.bar--over { position: relative; overflow: visible; }
.bar--over > i { border-radius: 0; }
.bar--over::after {
  content: ""; position: absolute; right: 10px; top: -3px; bottom: -3px; width: 5px;
  background: var(--bg); transform: skewX(-18deg);
}

.cal-toggle {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 14px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease);
}
.cal-toggle svg {
  width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.8; fill: none;
  transition: transform 0.35s var(--ease);
}
.cal-row:hover .cal-toggle, .cal-toggle:hover { border-color: var(--green); color: var(--green); }
.cal-toggle:active { transform: scale(0.97); }
/* Both labels share one cell, so the button keeps the same width open or closed. */
.cal-toggle__labels { display: grid; }
.cal-toggle__labels > span { grid-area: 1 / 1; }
.cal-toggle__less { visibility: hidden; }
.cal-row.is-open .cal-toggle { background: var(--matcha-soft); border-color: transparent; color: var(--green); }
.cal-row.is-open .cal-toggle svg { transform: rotate(180deg); }
.cal-row.is-open .cal-toggle__more { visibility: hidden; }
.cal-row.is-open .cal-toggle__less { visibility: visible; }

.cal-sep {
  display: flex; align-items: center; gap: 14px; padding: 28px 0 10px;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.cal-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.cal-more {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease);
}
.cal-row.is-open .cal-more { grid-template-rows: 1fr; }
.cal-more > div { overflow: hidden; }
.cal-more__inner {
  display: grid; gap: 16px; padding: 0 20px 26px 64px; color: var(--ink-2); max-width: 980px;
}
@media (min-width: 900px) { .cal-more__inner { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; } }
.cal-more__inner p { margin: 0; }
.cal-more__meta { font-size: 14px; display: grid; gap: 10px; align-content: start; }
.cal-more__meta .alt { color: var(--muted); }
.shop-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--green);
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; width: fit-content;
}
.shop-link svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2; fill: none; }

@media (max-width: 899px) {
  .cal-row__main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "name name" "coffee price" "bar bar";
    padding: 20px 0 20px 40px; row-gap: 14px;
  }
  .cal-rank { left: 0; top: 26px; }
  .cal-id { grid-area: name; }
  .cal-coffee { grid-area: coffee; }
  .cal-price { grid-area: price; }
  .cal-bar { grid-area: bar; }
  /* The button sits in the top-right corner so coffee and price keep half the width each. */
  .cal-toggle { position: absolute; top: 20px; right: 0; }
  .cal-id__text { padding-right: 116px; }
  .cal-more__inner { padding: 0 0 24px 40px; }
  .cal-name { font-size: 1.55rem; }
  .cal-id { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
  .cal-bar .unit { display: inline; }
  .cal-thumb { width: 64px; height: 64px; border-radius: 12px; }
}

.footnote { margin: 20px 0 0; font-size: 13px; color: var(--muted); }

.empty {
  margin: 24px 0 0; padding: 40px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius);
  text-align: center; color: var(--muted); display: grid; justify-items: center; gap: 14px;
}
.empty p { margin: 0; }
[hidden] { display: none !important; }

/* ---------- How it works ---------- */
.about { display: grid; gap: 32px; }
@media (min-width: 1024px) {
  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 72px; align-items: start; }
  .about__intro { position: sticky; top: 104px; }
}
.about__list { list-style: none; margin: 0; padding: 0; counter-reset: how; }
.about__list li {
  counter-increment: how; display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px;
  padding: 24px 0; border-top: 1px solid var(--line);
}
.about__list li:last-child { border-bottom: 1px solid var(--line); }
.about__list li::before {
  content: counter(how, decimal-leading-zero); grid-row: span 2; font-family: var(--font-mono);
  font-size: 13px; color: var(--green); padding-top: 6px;
}
.about__list h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; line-height: 1.1; }
.about__list p { margin: 8px 0 0; color: var(--ink-2); max-width: 60ch; }

/* ---------- Watchlist ---------- */
.watch { display: grid; gap: 32px; }
@media (min-width: 1024px) { .watch { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 72px; align-items: center; } }
.section.watch { padding-top: 24px; }
.watch .section__title { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.watch__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.watch__item {
  display: grid; gap: 6px; padding: 24px 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; transition: transform 0.35s var(--ease), border-color 0.25s;
}
.watch__item:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.watch__item strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.watch__item span { color: var(--muted); font-size: 15px; }
.watch__item:nth-child(2) { margin-left: 0; }
@media (min-width: 1024px) { .watch__item:nth-child(2) { margin-left: 48px; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.footer__inner { display: grid; gap: 18px; }
@media (min-width: 900px) { .footer__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; } }
.footer__note { margin: 0; font-size: 13px; color: var(--muted); max-width: 70ch; }
.footer__made { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.footer__made a { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.footer__made a:hover { color: var(--accent); border-color: var(--accent); }
.footer__made { flex-wrap: wrap; }
.footer__sep { color: var(--muted); margin: 0 4px; }
.footer__made a.donate {
  display: inline-flex; align-items: center; gap: 7px; margin-left: 2px;
  padding: 6px 14px 6px 11px; border: 0; border-radius: 999px;
  background: var(--matcha-soft); color: var(--green); font-weight: 600; font-size: 14px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.footer__made a.donate:hover { background: var(--green); color: var(--green-ink); transform: translateY(-1px); }
.footer__made a.donate:active { transform: scale(0.97); }
.cup { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.cup__steam { animation: steam 2.6s ease-in-out infinite; }
@keyframes steam { 0%, 100% { opacity: 0.35; transform: translateY(1px); } 50% { opacity: 1; transform: translateY(-1px); } }
@media (prefers-reduced-motion: reduce) { .cup__steam { animation: none; } }
.heart { width: 16px; height: 16px; fill: var(--accent); animation: beat 2.4s ease-in-out infinite; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 70% { transform: scale(1.18); } 80% { transform: scale(0.96); } 90% { transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .heart { animation: none; } }

@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat--lead { grid-column: 1 / -1; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .stat--lead + .stat { border-left: 0; padding-left: 0; }
  .doors { transform: none; }
  .doors__hint { text-align: left; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 100dvh; display: grid; align-content: center; justify-items: start; gap: 4px; padding-top: 48px; padding-bottom: 48px; }
