/* ==========================================================================
   Premium layer: typography, depth, motion and hover effects.
   Loaded after style.css and overrides it. Everything calms down under
   prefers-reduced-motion (see the end of this file).
   ========================================================================== */

@property --plaid-a { syntax: "<color>"; inherits: true; initial-value: #5a4636; }
@property --plaid-b { syntax: "<color>"; inherits: true; initial-value: #2f3a52; }
@property --plaid-c { syntax: "<color>"; inherits: true; initial-value: #c9b79c; }

:root {
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow-soft: 0 1px 1px rgba(40,25,10,.06), 0 6px 14px -6px rgba(40,25,10,.18);
  --shadow-lift: 0 2px 2px rgba(40,25,10,.08), 0 22px 40px -14px rgba(40,25,10,.45);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }

/* paper grain over the whole page */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 30; opacity: .06; mix-blend-mode: multiply;
  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");
}
body:not(.cork) {
  background:
    radial-gradient(1200px 600px at 50% -10%, #fffdf8 0%, transparent 70%),
    radial-gradient(900px 500px at 100% 100%, #f3ead9 0%, transparent 70%),
    var(--paper);
}

/* ---------- entrance ---------- */
html.js [data-reveal] { opacity: 0; }
html.js.ready [data-reveal] { animation: rise .9s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- page tabs: glass pill ---------- */
.tabs { padding-top: 22px; }
.tabs-inner {
  display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 8px 24px -12px rgba(40,25,10,.35);
  backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2);
}
.tabs a {
  border: 0; background: transparent; padding: 8px 18px; letter-spacing: .01em;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.tabs a:hover:not([aria-current]) { background: rgba(255,255,255,.9); transform: translateY(-1px); }
.tabs a[aria-current="page"] { background: linear-gradient(180deg, #4a433d, #2f2a25); box-shadow: 0 6px 14px -6px rgba(0,0,0,.5); }

/* ---------- header ---------- */
.eyebrow {
  margin: 0 0 14px; font: 600 11px "Inter", sans-serif; letter-spacing: .28em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .5; }
.top { padding-top: 44px; }
.top h1 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 6vw, 56px); letter-spacing: -.03em; line-height: 1.02;
  font-variation-settings: "opsz" 144;
}
.top h1 em { display: inline-block; font-size: 1.05em; transform: rotate(-2deg); margin-left: .08em; }
.lede { font-size: 16px; line-height: 1.65; margin-top: 14px; }

/* ---------- calendar ---------- */
.cal { max-width: 480px; margin-top: 30px; }
.cal-grid { gap: 8px; }
.day {
  border-radius: 10px; border-color: rgba(120,95,70,.18); background: rgba(255,255,255,.85);
  box-shadow: var(--shadow-soft); font-variant-numeric: tabular-nums;
  transition: transform .35s var(--spring), box-shadow .35s var(--ease), background .3s, border-color .3s, color .3s;
}
.day:hover:not(:disabled) {
  transform: translateY(-4px) scale(1.04); background: #fff; border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: var(--shadow-lift);
}
.day:active:not(:disabled) { transform: translateY(-1px) scale(.97); transition-duration: .1s; }
.day:disabled { box-shadow: none; background: transparent; }
.day.selected {
  background: linear-gradient(160deg, #4a433d, #2a2521); border-color: transparent;
  box-shadow: 0 10px 20px -8px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.15);
}
.day.selected.today { background: linear-gradient(160deg, #d3664d, #a8442f); }
.day.selected:hover { background: linear-gradient(160deg, #57504a, #2f2a25); }
.day.selected.today:hover { background: linear-gradient(160deg, #dd7259, #b24a34); }
.day.today::before {
  content: ""; position: absolute; inset: -4px; border-radius: 13px; border: 2px solid var(--today);
  opacity: 0; animation: halo 2.6s var(--ease) infinite; pointer-events: none;
}
@keyframes halo { 0% { opacity: .55; transform: scale(.94); } 70%, 100% { opacity: 0; transform: scale(1.12); } }
.cal-grid.first .day { animation: pop .6s var(--spring) backwards; animation-delay: calc(var(--k) * 16ms + 280ms); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.85); } }

/* ---------- plaid stage ---------- */
.stage {
  overflow: hidden; isolation: isolate;
  transition: --plaid-a .8s var(--ease), --plaid-b .8s var(--ease), --plaid-c .8s var(--ease);
  box-shadow: inset 0 0 120px rgba(0,0,0,.45);
}
@media (min-width: 1020px) { .stage { border-radius: 18px; box-shadow: inset 0 0 120px rgba(0,0,0,.45), 0 30px 60px -30px rgba(40,25,10,.6); } }
/* two layers of slow snow */
.stage::before, .stage::after {
  content: ""; position: absolute; inset: -200px 0 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 20px 40px, rgba(255,255,255,.9) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 90px 120px, rgba(255,255,255,.8) 50%, transparent 52%),
    radial-gradient(2.5px 2.5px at 160px 70px, rgba(255,255,255,.7) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 130px 180px, rgba(255,255,255,.8) 50%, transparent 52%);
  background-size: 200px 200px; animation: snow 22s linear infinite; opacity: .55;
}
.stage::after { background-size: 320px 320px; animation-duration: 34s; opacity: .35; filter: blur(.6px); }
@keyframes snow { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-40px, 200px, 0); } }
.stage > .card { position: relative; }

/* ---------- the card ---------- */
.card {
  border-radius: 3px; padding: 46px 48px 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.0), rgba(250,245,236,.6)),
    #fffdfa;
  box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 22px 44px -14px rgba(0,0,0,.55), 0 50px 90px -40px rgba(0,0,0,.45);
  transform: perspective(1400px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transition: transform .6s var(--ease); will-change: transform;
}
/* washi tape */
.card::before {
  content: ""; position: absolute; top: -14px; left: 50%; width: 132px; height: 30px; margin-left: -66px;
  transform: rotate(-2.5deg); opacity: .92;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.35) 0 6px, transparent 6px 12px),
    linear-gradient(180deg, #e9d7b4, #dcc59b);
  box-shadow: 0 2px 4px rgba(0,0,0,.15);
  -webkit-mask: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent 0);
          mask: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent 0);
}
.day-label {
  font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 24px; color: #3a3430; border: 0; padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) 0 100% / var(--u, 100%) 1.5px no-repeat;
  transition: background-size .7s var(--ease);
}
.card.entering .day-label { --u: 0%; }
.question { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.55; color: #4b4540; letter-spacing: -.005em; }
.catchup {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 999px;
  background: #fbf1dc; color: #8a6418; font-weight: 500;
}
.catchup::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--missed); animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

textarea, input {
  border-radius: 10px; border-color: #e8dfd1; background: #fbf8f3;
  transition: border-color .25s, box-shadow .3s var(--ease), background .25s;
}
textarea::placeholder, input::placeholder { color: #a89d91; font-style: italic; }
textarea:hover, input:hover { border-color: #d9cdbb; }
textarea:focus, input:focus {
  outline: none; background: #fff; border-color: color-mix(in srgb, var(--accent) 55%, white);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent), 0 8px 20px -12px rgba(138,59,46,.4);
}
button[type=submit] {
  position: relative; overflow: hidden; border-radius: 10px; padding: 0 20px; letter-spacing: .01em;
  background: linear-gradient(180deg, #a04a39, #7b3124);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 8px 18px -8px rgba(123,49,36,.75);
  transition: transform .3s var(--spring), box-shadow .3s var(--ease), filter .2s;
}
button[type=submit]::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg) translateX(0);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transition: transform .8s var(--ease);
}
button[type=submit]:hover { filter: none; transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 14px 26px -10px rgba(123,49,36,.85); }
button[type=submit]:hover::after { transform: skewX(-20deg) translateX(420%); }
button[type=submit]:active { transform: translateY(0) scale(.97); transition-duration: .1s; }
button[type=submit]:disabled { opacity: .75; }
button[type=submit]:disabled::before {
  content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -2px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#status.ok { animation: rise .5s var(--ease) both; }

.step {
  background: rgba(255,255,255,.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.6); box-shadow: 0 10px 24px -10px rgba(0,0,0,.6);
  transition: transform .35s var(--spring), background .25s, box-shadow .3s;
}
.step:hover:not(:disabled) { transform: scale(1.1); background: #fff; box-shadow: 0 14px 30px -10px rgba(0,0,0,.7); }
.step.prev:hover:not(:disabled) { transform: scale(1.1) translateX(-3px); }
.step.next:hover:not(:disabled) { transform: scale(1.1) translateX(3px); }
.step:active:not(:disabled) { transform: scale(.94); transition-duration: .1s; }

/* ---------- link to the board ---------- */
.to-board {
  margin-top: 40px; font-size: 26px; position: relative;
  background: linear-gradient(180deg, #fff8b0, #fdeb7a);
  box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 12px 20px -10px rgba(0,0,0,.45);
  transition: transform .45s var(--spring), box-shadow .4s var(--ease);
}
.to-board:hover { transform: rotate(.5deg) translateY(-4px) scale(1.04); box-shadow: 0 2px 2px rgba(0,0,0,.08), 0 24px 34px -14px rgba(0,0,0,.5); }
.to-board .arrow { display: inline-block; transition: transform .4s var(--spring); }
.to-board:hover .arrow { transform: translateX(6px); }
.to-board:hover .mini-pin { animation: wiggle .5s ease-in-out; }
.to-board.bump { animation: bump .7s var(--spring); }
@keyframes bump { 30% { transform: rotate(2deg) scale(1.12); } 60% { transform: rotate(-2.5deg) scale(.98); } }
@keyframes wiggle { 25% { transform: rotate(-18deg); } 75% { transform: rotate(14deg); } }

/* a note flying from the card to the board link */
.fly-note {
  position: fixed; z-index: 40; pointer-events: none; padding: 14px 14px 12px; width: 180px;
  font: 700 18px/1.2 "Caveat", cursive; color: #2f2a25; background: #fff59d;
  box-shadow: 0 18px 30px -12px rgba(0,0,0,.5); transform-origin: center;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- board page ---------- */
body.cork {
  background-image:
    radial-gradient(ellipse 80% 55% at 50% -5%, rgba(255,225,170,.38), transparent 70%),
    radial-gradient(ellipse 120% 80% at 50% 120%, rgba(40,20,5,.35), transparent 60%),
    radial-gradient(rgba(90,55,25,.35) 1px, transparent 1.5px),
    radial-gradient(rgba(255,235,200,.25) 1px, transparent 1.5px),
    radial-gradient(rgba(70,40,15,.25) 1.5px, transparent 2px);
  background-size: 100% 100%, 100% 100%, 7px 7px, 11px 11px, 17px 17px;
  background-position: 0 0, 0 0, 0 0, 3px 5px, 8px 2px;
  background-attachment: fixed, fixed, scroll, scroll, scroll;
}
body.cork::after {
  border-image: linear-gradient(135deg, #7a5536, #4e321c 40%, #6b4a2f 60%, #3f2815) 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), inset 0 0 60px rgba(0,0,0,.4);
}
.board-banner {
  transform-origin: 50% 0; animation: swing 1.4s var(--ease) both .15s;
  background: linear-gradient(180deg, #fffefb, #f8f3ea);
  box-shadow: 0 1px 1px rgba(0,0,0,.1), 0 24px 40px -18px rgba(0,0,0,.55);
}
@keyframes swing {
  0% { opacity: 0; transform: translateY(-30px) rotate(-5deg); }
  45% { opacity: 1; transform: rotate(1.6deg); }
  70% { transform: rotate(-1.2deg); }
  100% { transform: rotate(-.6deg); }
}
.board-banner h1 { font-size: 54px; }
.banner-q { font-family: var(--serif); font-size: 18px; line-height: 1.55; color: #4b4540; }
.banner-q b { font-family: "Inter", sans-serif; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.banner-cta { text-decoration: none; display: inline-flex; gap: 6px; padding: 6px 2px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .4s var(--ease); }
.banner-cta:hover { background-size: 100% 1.5px; }

.day-tab {
  border-radius: 2px; transition: transform .35s var(--spring), box-shadow .3s var(--ease), background .25s, color .25s;
}
.day-tabs.first .day-tab { animation: pop .55s var(--spring) backwards; animation-delay: calc(var(--k, 0) * 35ms + 450ms); }
.day-tab:hover { transform: rotate(0) translateY(-4px) scale(1.05); box-shadow: 0 12px 18px -8px rgba(0,0,0,.45); }
.day-tab.on { background: linear-gradient(180deg, #4a433d, #2a2521); }
.day-tab.on.is-today span::after { color: #ffb4a0; }

/* sticky notes */
.note.pinned {
  animation: drop .75s var(--spring) backwards; animation-delay: calc(var(--i, 0) * 55ms + 120ms);
  transform-style: preserve-3d;
  transition: transform .45s var(--spring), box-shadow .4s var(--ease);
  background-image: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0) 40%, rgba(0,0,0,.04));
}
@keyframes drop {
  0% { opacity: 0; transform: translateY(-46px) rotate(calc(var(--r) - 8deg)) scale(1.08); }
  60% { opacity: 1; }
}
.note::before { transition: transform .4s var(--spring), box-shadow .4s var(--ease); }
.note.pinned::before { animation: press .5s var(--spring) backwards; animation-delay: calc(var(--i, 0) * 55ms + 620ms); }
@keyframes press { from { transform: translateY(-16px) scale(1.6); opacity: 0; } }
/* light sheen that follows the cursor */
.note.pinned::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.55), transparent 55%);
  mix-blend-mode: soft-light;
}
.note.pinned:hover, .note.pinned:focus-visible {
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-8px) scale(1.06);
  box-shadow: 0 2px 2px rgba(0,0,0,.08), 0 30px 40px -16px rgba(0,0,0,.55), 0 10px 18px -10px rgba(0,0,0,.25);
  transition: transform .25s var(--ease), box-shadow .3s var(--ease);
}
.note.pinned:hover::after { opacity: 1; }
.note.pinned:hover::before { transform: translateY(-3px) scale(1.15); box-shadow: 2px 8px 6px rgba(0,0,0,.3); }
.note.pinned:active { transform: scale(.98); transition-duration: .1s; }
.note.pinned.away { opacity: 0; transition: opacity .15s; }
.note .yours { animation: pop .5s var(--spring) backwards .8s; }

.more { transition: transform .35s var(--spring), box-shadow .3s; box-shadow: 0 8px 18px -10px rgba(0,0,0,.5); }
.more:hover { transform: translateY(-3px); box-shadow: 0 16px 24px -12px rgba(0,0,0,.55); }
.empty { animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* zoom (motion is driven by fx.js so the note grows out of its spot on the board) */
.zoom-note { animation: none; box-shadow: 0 2px 2px rgba(0,0,0,.1), 0 40px 80px -20px rgba(0,0,0,.6); }
.zoom-backdrop { background: radial-gradient(ellipse at center, rgba(30,20,10,.45), rgba(15,8,2,.75)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.zoom-x { transition: transform .35s var(--spring), background .2s; }
.zoom-x:hover { transform: rotate(90deg) scale(1.1); background: rgba(0,0,0,.14); }
.zoom-actions button { transition: transform .3s var(--spring), box-shadow .3s, background .2s; }
.zoom-actions button:hover { transform: translateY(-2px); box-shadow: 0 8px 14px -8px rgba(0,0,0,.45); }

footer { opacity: .85; }
footer a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .35s var(--ease); }
footer a:hover { background-size: 0 1px; background-position: 100% 100%; }

@media (max-width: 640px) {
  .card { padding: 36px 22px 22px; }
  button[type=submit] { padding: 13px 20px; }
  .question { font-size: 18px; }
  .board-banner h1 { font-size: 44px; }
  .stage::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html.js [data-reveal] { opacity: 1; }
  .stage::before, .stage::after { display: none; }
}

/* ==========================================================================
   Phones and touch screens
   ========================================================================== */
html { -webkit-tap-highlight-color: transparent; }
button, a, .day, .note.pinned { touch-action: manipulation; }
.day small { display: none; }
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.zoom { padding: max(16px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
.zoom-note { max-height: calc(100dvh - 32px); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
#zoomEdit input { font: 16px "Inter", sans-serif; }
body.cork { min-height: 100svh; }
body.noscroll { touch-action: none; }
.zoom-note { touch-action: pan-y; }

/* touch screens: no sticky hover lifts, give a press response instead */
@media (hover: none) {
  .day:hover:not(:disabled), .to-board:hover, .day-tab:hover, .step:hover:not(:disabled),
  button[type=submit]:hover, .more:hover, .tabs a:hover:not([aria-current]) { transform: none; box-shadow: var(--shadow-soft); }
  .to-board:hover { transform: rotate(-1.5deg); }
  .day-tab:hover { transform: rotate(-1deg); }
  .day-tab:nth-child(even):hover { transform: rotate(1deg); }
  .step:hover:not(:disabled) { background: rgba(255,255,255,.75); }
  .note.pinned:hover, .note.pinned:focus-visible { transform: rotate(var(--r)); box-shadow: 0 1px 1px rgba(0,0,0,.1), 0 8px 14px -6px rgba(0,0,0,.35); }
  .note.pinned:hover::after { opacity: 0; }
  .note.pinned:hover::before { transform: none; }
  button[type=submit]:hover::after { transform: skewX(-20deg); }
  .note.pinned:active { transform: rotate(0deg) scale(.96); transition-duration: .12s; }
  .day:active:not(:disabled) { transform: scale(.92); }
  .to-board:active { transform: rotate(0) scale(.97); }
  .day-tab:active { transform: scale(.95); }
  button[type=submit]:active { transform: scale(.97); }
}

@media (max-width: 640px) {
  .tabs { padding-top: max(14px, env(safe-area-inset-top)); }
  .tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; font-size: 14px; }
  .top { padding: 26px 20px 0; }
  .eyebrow { margin-bottom: 10px; font-size: 10px; }
  .top h1 { font-size: 36px; }
  .lede { font-size: 14.5px; margin-top: 10px; }

  /* the month becomes a swipeable strip of days */
  .cal { max-width: none; padding: 0; margin: 18px 0 0; }
  .cal-head { display: none; }
  .cal-grid {
    display: flex; gap: 8px; overflow-x: auto; padding: 10px 20px 14px; margin: 0;
    scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain;
    -webkit-mask: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
            mask: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
  }
  .cal-grid::-webkit-scrollbar { display: none; }
  .cal-grid > span { display: none; }
  .day { flex: 0 0 52px; aspect-ratio: auto; height: 66px; flex-direction: column; gap: 3px; font-size: 17px; scroll-snap-align: center; }
  .day small { display: block; font: 600 9.5px "Inter", sans-serif; text-transform: uppercase; letter-spacing: .08em; opacity: .6; }
  .day.missed::after, .day.done::after { bottom: 6px; }
  .day:disabled small { opacity: .8; }
  .cal-legend { margin-top: 4px; padding: 0 16px; font-size: 11px; gap: 4px 12px; }

  .stage { margin-top: 18px; padding: 34px 14px 72px; }

  /* board */
  body.cork { padding: 10px 10px max(10px, env(safe-area-inset-bottom)); }
  .board-banner { margin-top: 16px; padding: 22px 18px 14px; }
  .board-banner h1 { font-size: 40px; margin-bottom: 4px; }
  .banner-q { font-size: 15.5px; }
  .day-tabs { padding: 18px 8px 8px; scroll-snap-type: x proximity; }
  .day-tab { padding: 9px 14px; scroll-snap-align: center; }
  .wall { padding: 18px 6px 40px; }
  .notes { column-gap: 12px; }
  .note.pinned { padding: 26px 14px 12px; }

  .zoom-note { padding: 42px 20px 18px; font-size: 25px; }
  .zoom-q { font-size: 14px; }
  .zoom-actions button { min-height: 44px; padding: 10px 18px; }
  .zoom-x { width: 40px; height: 40px; }
}
@media (max-width: 360px) {
  .top h1 { font-size: 32px; }
  .notes { columns: 2; }
  .note.pinned { font-size: 18px; }
}
