/* Lumi's Cove, design pass 2026-11-28: "Storybook Cove".
   Cream paper, washi tape, polaroids and postmarks, collectible friend cards. Lumi's amber stone is the
   signature color. Fredoka for headings, Nunito for reading and tapping, Grandstander for hand-lettered signs and labels. Mobile first, 44px tap targets,
   motion only when the visitor hasn't asked for less. Board: Figma "Lumi's Cove - design pass board". */
@font-face { font-family: "Fredoka"; src: url("/fonts/fredoka-600.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/nunito-400.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/nunito-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/nunito-700.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "Grandstander"; src: url("/fonts/grandstander-700.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --paper: #fff8ee;
  --paper-2: #f6ecdf;
  --ink: #1e2a3a;
  --ink-2: #4a5661;
  --amber: #f2b45a;
  --amber-deep: #a8620c;
  --blush: #f9c9d4;
  --mint-c: #cdebdd;
  --butter: #fbe6a6;
  --lav-c: #dcd3f5;
  --sea: #2f6478;
  --sea-soft: #d9ecf2;
  --night: #0f1c26;
  --line: #e7d9c7;
  --card: #ffffff;
  --radius: 20px;
  --shadow: 0 2px 0 rgba(30, 42, 58, 0.04), 0 10px 28px rgba(30, 42, 58, 0.09);
  --display: "Fredoka", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --hand: "Grandstander", "Fredoka", ui-rounded, system-ui, sans-serif;
  --font: "Nunito", ui-rounded, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  /* older names still used by page styles */
  --navy: var(--night);
  --cream: var(--paper);
  --pink: #e8799c;
  --pink-soft: #fde7ed;
  --lav: #efeafb;
  --mint: #e6f5ee;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); line-height: 1.6; font-size: 17px; font-weight: 500;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(168, 120, 70, 0.09) 1px, transparent 1.2px);
  background-size: 22px 22px;
}
img, video, svg, canvas { max-width: 100%; height: auto; display: block; }
a { color: #8a4b00; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; color: var(--ink); margin: 0 0 0.45em; letter-spacing: 0; }
h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 4.4vw, 2.2rem); margin-top: 1.4em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
strong, b { font-weight: 800; }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 10px 16px; z-index: 50; border-radius: 12px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.eyebrow { font-family: var(--font); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sea); margin: 0 0 8px; }

/* ---------- header ---------- */
.top { background: rgba(255, 249, 240, 0.95); border-bottom: 2px solid var(--ink); box-shadow: 0 8px 24px rgba(15, 25, 35, 0.18); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.35rem; }
.brand img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--line); }
.nav { margin-left: auto; display: flex; gap: 2px; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 10px 12px; border-radius: 999px; font-weight: 800; font-size: 0.95rem; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--blush); color: var(--ink); }
@media (max-width: 860px) {
  .top { position: static; }
  .top .wrap { flex-wrap: wrap; padding-top: 8px; padding-bottom: 4px; min-height: 56px; }
  .nav { margin: 0 -16px; width: calc(100% + 32px); padding: 0 12px 6px; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 8px 12px; font-size: 0.95rem; flex: none; }
  .nav a:last-child { margin-right: 28px; }
  /* one slim row on phones: the logo icon, then the scrolling nav */
  .top .wrap { flex-wrap: nowrap; min-height: 56px; padding: 6px 0 6px 10px; gap: 6px; }
  .brand { gap: 0; flex: none; }
  .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav { margin: 0; width: auto; min-width: 0; padding: 0; }
}

/* ---------- scrapbook pieces ---------- */
.tape { position: relative; }
.tape::before {
  content: ""; position: absolute; top: -13px; left: 50%; width: 112px; height: 28px; transform: translateX(-50%) rotate(-3deg);
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 6px, transparent 6px 12px), var(--tape, var(--blush));
  opacity: 0.92; border-radius: 3px; box-shadow: 0 1px 2px rgba(30, 42, 58, 0.08); z-index: 2; pointer-events: none;
}
.tape.mint { --tape: var(--mint-c); } .tape.butter { --tape: var(--butter); } .tape.lav { --tape: var(--lav-c); } .tape.sea { --tape: var(--sea-soft); }
.polaroid { background: #fff; padding: 14px 14px 18px; border-radius: 6px; box-shadow: 0 14px 36px rgba(30, 42, 58, 0.16); }
.polaroid .photo { background: var(--mint-c); border-radius: 3px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.polaroid .caption { font-family: var(--hand); font-style: normal; font-weight: 600; color: var(--ink-2); text-align: center; margin: 12px 0 0; font-size: 1.05rem; }
.tilt-l { transform: rotate(-3deg); } .tilt-r { transform: rotate(2.5deg); }
.postmark { font-family: var(--hand); width: 112px; height: 112px; border-radius: 50%; border: 3px dashed var(--sea); color: var(--sea); display: grid; place-items: center; text-align: center; font-weight: 900; font-size: 0.78rem; line-height: 1.25; letter-spacing: 0.08em; text-transform: uppercase; transform: rotate(-12deg); background: rgba(255, 255, 255, 0.5); }
.stamp { display: inline-block; padding: 6px; background: #fff; box-shadow: 0 0 0 1px var(--line); border-radius: 4px; mask: radial-gradient(circle 5px at 5px 5px, #0000 98%, #000) -5px -5px / 12px 12px; }
.sparkle { position: absolute; width: 18px; height: 18px; background: var(--amber); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 50% { transform: scale(0.6) rotate(20deg); opacity: 0.5; } }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-1deg); } }
@keyframes glow { 50% { opacity: 0.55; transform: scale(0.94); } }

/* ---------- today in the cove ---------- */
.today { margin-top: 26px; background: #fff; border-radius: 6px; padding: 18px 18px 14px; max-width: 460px; box-shadow: var(--shadow); transform: rotate(-0.8deg);
  background-image: repeating-linear-gradient(transparent 0 27px, rgba(79, 142, 163, 0.18) 27px 28px); background-position: 0 44px; }
.today .eyebrow { margin-bottom: 4px; }
.today p:last-child { margin: 0; font-size: 1.02rem; line-height: 28px; }

/* ---------- hero ---------- */
.hero { overflow: hidden; }
.hero .wrap { display: grid; gap: 28px; padding-top: 28px; padding-bottom: 40px; align-items: center; }
.hero h1 { margin-top: 4px; }
.hero .lede { font-size: 1.15rem; color: var(--ink-2); max-width: 560px; }
.hero-art { position: relative; justify-self: center; width: min(380px, 84vw); margin-top: 18px; }
.hero-art .polaroid { transform: rotate(-3deg); }
.hero-art .photo img { animation: bob 4.4s ease-in-out infinite; width: 92%; }
.hero-art .postmark { position: absolute; right: -18px; bottom: 74px; }
.hero-art .caption { padding-right: 56px; }
.hero-art .sparkle.s1 { top: 6%; left: -6%; } .hero-art .sparkle.s2 { top: 18%; right: -4%; animation-delay: 1s; width: 12px; height: 12px; }
@media (min-width: 820px) { .hero .wrap { grid-template-columns: 1.08fr 0.92fr; padding-top: 52px; padding-bottom: 64px; } .hero-art { margin-top: 0; } }
@media (max-width: 819px) {
  .hero .wrap { padding-top: 22px; gap: 18px; }
  .hero-art { order: -1; width: min(270px, 68vw); margin-top: 14px; }
  .hero-art .postmark { width: 96px; height: 96px; font-size: 0.76rem; letter-spacing: 0.04em; right: -26px; bottom: 54px; }
  .hero-art .caption { font-size: 0.95rem; padding-right: 30px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.page-head { padding: 28px 0 10px; }
.page-head p.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 700px; }
.crumbs { font-size: 0.9rem; color: var(--ink-2); margin-bottom: 10px; }
.crumbs a { color: var(--ink-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px;
  border-radius: 999px; border: 2px solid var(--ink); font: inherit; font-weight: 800; cursor: pointer; text-decoration: none;
  background: var(--amber); color: var(--ink); box-shadow: 0 4px 0 var(--ink); transition: transform 0.12s, box-shadow 0.12s;
}
.btn:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn.alt { background: #fff; }
.btn.pink { background: var(--blush); }
.btn.small { min-height: 44px; padding: 6px 16px; font-size: 0.95rem; box-shadow: 0 3px 0 var(--ink); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 22px 18px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid.small { grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); }
.grid.seven { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 26px 14px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; border: 1.5px solid var(--line); }
a.card { display: block; text-decoration: none; color: inherit; transition: transform 0.18s cubic-bezier(.3,1.4,.5,1), box-shadow 0.18s; }
a.card:hover { transform: translateY(-4px) rotate(-0.6deg); box-shadow: 0 16px 36px rgba(30, 42, 58, 0.14); color: inherit; }
.grid > a.card:nth-child(even):hover { transform: translateY(-4px) rotate(0.6deg); }
.card h3 { margin-bottom: 4px; }
.card p { color: var(--ink-2); font-size: 0.97rem; margin: 0; }
.card .pic { border-radius: 12px; margin: -4px -4px 12px; background: var(--sea-soft); aspect-ratio: 4 / 3; object-fit: contain; width: calc(100% + 8px); }
.grid > .card:nth-child(4n+1) .pic { background: var(--mint-c); } .grid > .card:nth-child(4n+2) .pic { background: var(--blush); }
.grid > .card:nth-child(4n+3) .pic { background: var(--butter); } .grid > .card:nth-child(4n+4) .pic { background: var(--lav-c); }
.tag { font-family: var(--hand); display: inline-block; font-size: 0.78rem; font-weight: 900; letter-spacing: 0.03em; padding: 3px 11px; border-radius: 999px; background: var(--mint-c); color: #1d5a45; margin-bottom: 8px; }
.tag.soon { background: var(--blush); color: #8a2445; }
.tag.live { background: var(--butter); color: #6b4300; }
.section { padding: 36px 0; }
.section h2:first-child, .section .eyebrow + h2 { margin-top: 0; }
.band { background: rgba(255, 255, 255, 0.55); border-top: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); }
.band.lav { background: #f4f0fd; } .band.mint { background: #eef8f3; } .band.blush { background: #fdf0f3; }
.band.navy { background: var(--night); color: #fff; } .band.navy h2 { color: #fff; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px 20px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--ink-2); max-width: 520px; }

/* ---------- collectible friend cards ---------- */
.cards-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); padding-bottom: 8px; }
@media (max-width: 640px) {
  .cards-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -16px; padding: 6px 16px 14px; scrollbar-width: none; }
  .cards-row::-webkit-scrollbar { display: none; }
  .cards-row .fcard { flex: 0 0 58vw; max-width: 230px; scroll-snap-align: center; }
}
.fcard { position: relative; display: block; text-decoration: none; color: var(--ink); background: #fff; border-radius: 18px; padding: 10px; border: 2px solid var(--ink); box-shadow: 0 5px 0 var(--ink); transition: transform 0.2s cubic-bezier(.3,1.4,.5,1); }
.fcard:hover { transform: translateY(-5px) rotate(-1.5deg); color: var(--ink); }
.fcard .art { border-radius: 12px; background: var(--c, var(--butter)); aspect-ratio: 4 / 5; display: grid; place-items: center; overflow: hidden; position: relative; }
.fcard .art img { width: 92%; }
.fcard .no { position: absolute; top: 8px; left: 10px; font-weight: 900; font-size: 0.75rem; letter-spacing: 0.08em; color: var(--ink); background: rgba(255, 255, 255, 0.7); padding: 1px 6px; border-radius: 6px; }
.fcard .name { display: block; font-family: var(--display); font-weight: 600; font-size: 1.25rem; margin: 10px 4px 0; line-height: 1.1; }
.fcard .kind { display: block; font-size: 0.85rem; line-height: 1.35; color: var(--ink-2); margin: 4px 4px 6px; }
.fcard.mystery .art { background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.35) 0 10px, transparent 10px 20px), var(--c); }
.fcard.mystery .q { font-family: var(--display); font-size: 4.2rem; color: rgba(30, 42, 58, 0.55); line-height: 1; }
.fcard.mystery .kind { font-style: italic; }
.shells { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.shells li { display: grid; grid-template-columns: 7.5em 1fr; align-items: center; gap: 10px; font-weight: 800; font-size: 0.95rem; }
.shells .meter { display: flex; gap: 5px; }
.shells .meter i { width: 22px; height: 18px; border-radius: 50% 50% 46% 46%; background: var(--line); display: block; }
.shells .meter i.on { background: radial-gradient(circle at 35% 30%, #ffe7b8, var(--amber) 60%, #c07a18); }

/* ---------- app cta (closing card on content pages) ---------- */
.app-cta { display: grid; gap: 16px; grid-template-columns: 104px 1fr; align-items: center; background: #fff; border: 2px solid var(--ink); box-shadow: 0 6px 0 var(--ink); border-radius: 24px; padding: 18px 20px; margin: 32px 0; }
.app-cta img { width: 104px; height: 104px; object-fit: contain; background: var(--butter); border-radius: 18px; }
.app-cta h2 { margin: 0 0 4px; font-size: 1.35rem; }
.app-cta p { color: var(--ink-2); margin: 0 0 10px; }
@media (max-width: 480px) { .app-cta { grid-template-columns: 1fr; } .app-cta img { width: 84px; height: 84px; } }

/* ---------- letter (email sign-up) ---------- */
.signup { position: relative; background: #fff; border-radius: 6px; padding: 26px 22px 22px; border: 1.5px solid var(--line); box-shadow: var(--shadow);
  background-image: repeating-linear-gradient(-45deg, var(--blush) 0 12px, #fff 12px 24px, var(--sea-soft) 24px 36px, #fff 36px 48px);
  background-size: 100% 8px; background-repeat: no-repeat; }
.signup::after { content: "Letters from the cove"; position: absolute; top: 18px; right: 18px; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sea); border: 2px dashed var(--sea); border-radius: 6px; padding: 6px 8px; transform: rotate(6deg); max-width: 110px; text-align: center; line-height: 1.2; }
.signup h2 { margin-top: 6px; padding-right: 120px; }
.signup form { display: grid; gap: 10px; max-width: 520px; }
.signup label.email { font-weight: 800; }
.signup input[type="email"] { min-height: 50px; border-radius: 14px; border: 2px solid var(--line); padding: 8px 14px; font: inherit; width: 100%; background: var(--paper); }
.signup input[type="email"]:focus { border-color: var(--sea); outline: none; box-shadow: 0 0 0 3px var(--sea-soft); }
.signup .age { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; min-height: 44px; }
.signup .age input { width: 24px; height: 24px; margin-top: 2px; flex: none; accent-color: var(--sea); }
.signup .fine { font-size: 0.86rem; color: var(--ink-2); margin: 0; }
.signup .done { font-weight: 800; color: #1d5a45; }
@media (max-width: 520px) { .signup::after { position: static; display: inline-block; margin-bottom: 4px; max-width: none; } .signup h2 { padding-right: 0; } }

/* ---------- article content ---------- */
.prose { max-width: 720px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.faq details { background: #fff; border-radius: 16px; padding: 4px 18px; margin-bottom: 10px; border: 1.5px solid var(--line); }
.faq summary { font-weight: 800; cursor: pointer; min-height: 48px; display: flex; align-items: center; list-style-position: outside; }
.faq details[open] summary { color: var(--sea); }
.sources { font-size: 0.92rem; color: var(--ink-2); }
.sources li { word-break: break-word; }
.fact { background: #fff; border-left: 6px solid var(--amber); border-radius: 14px; padding: 14px 18px; margin: 14px 0; box-shadow: var(--shadow); }

/* ---------- jump chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.chips a { min-height: 44px; display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 0.93rem; box-shadow: 0 3px 0 var(--ink); }
.chips a:nth-child(4n+1) { background: var(--blush); } .chips a:nth-child(4n+2) { background: var(--mint-c); } .chips a:nth-child(4n+3) { background: var(--butter); } .chips a:nth-child(4n+4) { background: var(--lav-c); }
[id] { scroll-margin-top: 80px; }

/* ---------- printable ---------- */
.sheet-preview { background: #fff; border-radius: 6px; box-shadow: 0 16px 40px rgba(30, 42, 58, 0.15); padding: 10px; max-width: 520px; transform: rotate(-1.2deg); }
.sheet-preview img { border-radius: 2px; width: 100%; }
.print-layout { display: grid; gap: 28px; }
@media (max-width: 859px) { .print-layout .prose { order: -1; } .sheet-preview { max-width: 360px; margin: 0 auto; } }
.parent-note { font-size: 0.9rem; color: var(--ink-2); background: #fff; border: 1.5px dashed var(--line); border-radius: 12px; padding: 10px 12px; margin: 14px 0 0; max-width: 560px; }
@media (min-width: 860px) { .print-layout { grid-template-columns: 1fr 1fr; align-items: start; } }

/* ---------- footer ---------- */
.foot { background: var(--night); color: #d6cfc4; padding: 40px 0 44px; margin-top: 48px; font-size: 0.95rem; position: relative;
  background-image: radial-gradient(rgba(242, 180, 90, 0.5) 1px, transparent 1.5px); background-size: 46px 46px; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 20px; background: radial-gradient(circle at 10px -2px, transparent 11px, var(--night) 12px) 0 0 / 20px 20px repeat-x; }
.foot a { color: #f6e9d8; }
.foot .cols { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.foot h2 { color: #fff; font-size: 1.15rem; margin: 0 0 6px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li a { display: inline-block; padding: 6px 0; }

/* ---------- video ---------- */
.vids { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.vids figure { margin: 0; background: #fff; border-radius: 6px; padding: 10px 10px 14px; box-shadow: 0 12px 30px rgba(30, 42, 58, 0.13); }
.vids figure:nth-child(odd) { transform: rotate(-1deg); } .vids figure:nth-child(even) { transform: rotate(1deg); }
.vids video { border-radius: 3px; aspect-ratio: 9 / 16; background: var(--night); width: 100%; object-fit: cover; }
.vids figcaption { font-size: 0.93rem; padding: 10px 4px 0; color: var(--ink-2); }
.vids figcaption b { color: var(--ink); display: block; font-family: var(--display); font-size: 1.1rem; }

/* ---------- wallpapers ---------- */
.walls { display: grid; gap: 22px 16px; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); }
.walls figure { margin: 0; background: #fff; border-radius: 6px; padding: 8px 8px 12px; box-shadow: 0 12px 28px rgba(30, 42, 58, 0.13); }
.walls figure:nth-child(3n+1) { transform: rotate(-1.2deg); } .walls figure:nth-child(3n+2) { transform: rotate(0.8deg); }
.walls img { border-radius: 3px; aspect-ratio: 300 / 650; width: 100%; object-fit: cover; }
.walls figcaption { font-size: 0.92rem; padding: 8px 2px 0; }
.walls figcaption b { font-family: var(--display); font-size: 1.05rem; }
.walls .row { gap: 6px; margin-top: 8px; }
.walls .btn.small { padding: 6px 12px; }

/* ---------- quiz ---------- */
.quiz { max-width: 660px; }
.quiz fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.quiz legend { font-family: var(--display); font-weight: 600; font-size: 1.35rem; margin-bottom: 12px; color: var(--ink); }
.quiz .opts { display: grid; gap: 10px; }
.quiz label { display: flex; align-items: center; gap: 12px; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; cursor: pointer; min-height: 54px; font-weight: 700; transition: transform 0.12s; }
.quiz label:hover { border-color: var(--ink-2); }
.quiz input { width: 22px; height: 22px; accent-color: var(--sea); flex: none; }
.quiz label:has(input:checked) { border-color: var(--ink); background: var(--butter); box-shadow: 0 3px 0 var(--ink); transform: translateY(-1px); }
.result { position: relative; background: #fff; border-radius: 22px; border: 2px solid var(--ink); box-shadow: 0 8px 0 var(--ink); padding: 22px; text-align: center; max-width: 560px; margin: 8px auto 0; }
.result img { width: min(260px, 70%); margin: 0 auto; background: var(--butter); border-radius: 18px; }
.result h2 { margin-top: 8px; }

/* ---------- timer ---------- */
.timer { text-align: center; background: var(--night); color: #fff; border-radius: 28px; padding: 26px 16px; max-width: 520px; box-shadow: 0 8px 0 #000; }
.timer .time { font-family: var(--font); font-size: clamp(3rem, 16vw, 5.5rem); font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.timer .stone-wrap { width: 200px; margin: 0 auto; position: relative; }
.timer .stone-wrap::before { content: ""; position: absolute; inset: 20%; border-radius: 50%; background: radial-gradient(circle, rgba(242, 180, 90, 0.9), transparent 65%); opacity: var(--g, 0.2); filter: blur(8px); }
.timer .stone-wrap img { position: relative; }
.timer .row { justify-content: center; margin-top: 12px; }
.chip { min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, 0.35); background: transparent; color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--amber); color: var(--ink); border-color: var(--amber); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; }
.muted { color: var(--ink-2); }

.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; }

/* ---------- the cove behind every page ----------
   A small, pre-blurred crop of the map around the page's place (scripts/map-assets.py), fixed behind everything,
   drifting slowly. Night art after 7pm (html.night, set in <head>), seasonal flakes from site.js. */
.cove-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #b8946a; }
.night .cove-bg { background: #18303d; }
.cove-bg .drift { position: absolute; inset: -6%; background: var(--bg) center / cover no-repeat; animation: coveDrift 48s ease-in-out infinite alternate; will-change: transform; }
.night .cove-bg .drift { background-image: var(--bgn); }
@keyframes coveDrift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.08) translate(-2%, 1.5%); } }
.cove-bg .season { position: absolute; inset: 0; }
body { background: #b8946a; }

/* the sharp "window" onto this page's spot in the cove, fading into the blurred cove */
.place-window { position: relative; height: clamp(170px, 26vh, 280px); overflow: hidden; -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.place-window img { width: 100%; height: 100%; object-fit: cover; }
.window-sign { position: absolute; left: 50%; top: 24%; transform: translate(-50%, -50%) rotate(-1.5deg); text-align: center; text-decoration: none; background: linear-gradient(#8a5a34, #74482a); color: #fff4df; border: 2px solid #5b3820; border-radius: 10px; padding: 8px 18px 9px; box-shadow: 0 4px 0 rgba(60, 35, 18, 0.6), 0 12px 26px rgba(20, 12, 6, 0.4); font-family: var(--hand); white-space: nowrap; }
.window-sign .here { display: block; font-size: clamp(1.05rem, 2.6vw, 1.45rem); font-weight: 700; }
.window-sign .back { display: block; font-family: var(--font); font-size: 0.8rem; font-weight: 800; color: #ffe2b8; text-decoration: underline; text-underline-offset: 3px; }
.window-sign:hover { color: #fff; transform: translate(-50%, -52%) rotate(-1.5deg); }

/* the Storybook paper sheet the page is written on, floating over the cove */
.sheet { position: relative; max-width: 1180px; margin: -70px auto 0; background-color: var(--paper); background-image: radial-gradient(rgba(168, 120, 70, 0.09) 1px, transparent 1.2px); background-size: 22px 22px;
  border-radius: 26px; box-shadow: 0 30px 80px rgba(10, 20, 30, 0.38), 0 0 0 1.5px rgba(30, 42, 58, 0.12); padding: 6px 0 18px; }
.sheet::before { content: ""; position: absolute; top: -13px; left: 50%; width: 130px; height: 28px; transform: translateX(-50%) rotate(-2deg); background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0 6px, transparent 6px 12px), var(--blush); opacity: 0.92; z-index: 1; }
.sheet .band { border-radius: 0; }
.sheet > :last-child { border-bottom-left-radius: 26px; border-bottom-right-radius: 26px; }
.foot { margin-top: 56px; }
@media (max-width: 760px) { .sheet { margin-left: 8px; margin-right: 8px; border-radius: 20px; margin-top: -44px; } .place-window { height: 172px; } .window-sign { top: 30%; } }

/* seasonal flakes (home map and the cove backdrop) */
.season { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.season i { position: absolute; top: -6%; left: var(--l); width: var(--s); height: var(--s); opacity: 0.85; animation: fall var(--d) linear var(--w) infinite; }
.season.snow i { background: #fff; border-radius: 50%; box-shadow: 0 0 4px rgba(255, 255, 255, 0.8); }
.season.petals i { background: #ffc2d6; border-radius: 70% 0 70% 0; }
.season.leaves i { background: #e39a4a; border-radius: 0 70% 0 70%; }
@keyframes fall { to { transform: translate(var(--drift), 112vh) rotate(260deg); } }
@media (prefers-reduced-motion: reduce) { .season { display: none; } }
