@font-face { font-family: 'Bricolage Grotesque'; src: url('fonts/Bricolage.ttf') format('truetype'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url('fonts/WorkSans.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }

/* Layout: the quiz's dark stage, one reading column (44rem). The struck-through Mondays are the signature. */
:root {
  --bg: #1A1215;
  --surface: #241A1E;
  --line: #3B2C32;
  --cream: #F4ECE2;
  --muted: #C2B2AC;
  --terra: #D2643A;
  --card-black: #17110F;
  --on-terra: #1A1215;
  --f-display: 'Bricolage Grotesque', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Work Sans', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--cream); font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 750; line-height: 1.08; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
p { margin: 0; }
.eyebrow { font-family: var(--f-display); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--terra); }
.muted { color: var(--muted); }

.shell { position: relative; overflow-x: clip; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.top, main, .foot { max-width: 44rem; margin-inline: auto; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: max(18px, env(safe-area-inset-top, 0px)) 18px; position: relative; z-index: 2; }
.mark { font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; text-decoration: none; }
.mark span { color: var(--terra); }
.lang { font-size: 0.9375rem; color: var(--muted); }

.btn {
  appearance: none; border: 0; cursor: pointer; font: 650 1.0625rem/1 var(--f-display);
  background: var(--terra); color: var(--on-terra); padding: 18px 30px; border-radius: 999px; min-height: 56px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; text-align: center;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { background: #DC7149; }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn-ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--muted); }
.arrow { font-family: var(--f-body); font-weight: 500; }

/* Hero */
.hero { position: relative; padding-block: clamp(28px, 7vw, 80px) clamp(40px, 8vw, 72px); display: grid; gap: 22px; }
.hero > *:not(.glow) { position: relative; z-index: 1; }
.glow { position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; }
.g1 { width: min(80vw, 600px); aspect-ratio: 1; right: -30%; top: -18%; background: radial-gradient(closest-side, rgba(232,149,107,.5), rgba(210,100,58,.24) 45%, rgba(210,100,58,0) 100%); animation: drift 18s ease-in-out infinite alternate; }
.g2 { width: min(64vw, 440px); aspect-ratio: 1; left: -34%; bottom: -24%; background: radial-gradient(closest-side, rgba(210,100,58,.3), rgba(160,82,45,.12) 55%, rgba(160,82,45,0) 100%); animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-4%, 5%, 0) scale(1.08); } }
.hero h1 { font-size: clamp(2.5rem, 9vw, 4.5rem); font-weight: 790; max-width: 11em; }
.hero h1 em { font-style: normal; color: var(--terra); }
.lede { max-width: 34rem; font-size: clamp(1.125rem, 2.6vw, 1.3125rem); line-height: 1.5; }
.lede.sub { color: var(--muted); font-size: 1.0625rem; margin-top: -8px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 4px; }
.cta-note { color: var(--muted); font-size: 0.9375rem; }

/* The Mondays */
.mondays { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.7fr); gap: 8px; max-width: 30rem; margin-top: 6px; }
.mondays span { position: relative; aspect-ratio: 1; background: var(--card-black); border-radius: 6px; display: grid; place-items: center; font: 700 clamp(0.875rem, 3.4vw, 1.0625rem) var(--f-display); color: var(--muted); box-shadow: inset 0 0 0 1px #2B2025; overflow: hidden; }
.mondays span:not(.last) { opacity: .55; }
.mondays span:not(.last)::after { content: ""; position: absolute; left: 12%; right: 12%; top: 50%; height: 2px; background: var(--terra); transform: rotate(-24deg); }
.mondays .last { aspect-ratio: auto; background: var(--terra); color: var(--on-terra); font-size: clamp(1.0625rem, 4.4vw, 1.5rem); font-weight: 800; line-height: 1.05; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 8px 12px; box-shadow: none; }
.mondays .last small { font: 600 clamp(0.6875rem, 2.6vw, 0.8125rem)/1.2 var(--f-body); letter-spacing: 0.02em; }

/* Blocks */
.block { border-top: 1px solid var(--line); padding-block: 48px; display: grid; gap: 26px; }
.sec-head { display: grid; gap: 10px; }
.sec-head h2 { font-size: clamp(1.75rem, 5.6vw, 2.25rem); }

.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.how > div { background: var(--surface); border-radius: 16px; padding: 20px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.how-when { font-family: var(--f-display); font-weight: 700; font-size: 1.125rem; color: var(--terra); }
@media (max-width: 640px) { .how { grid-template-columns: 1fr; } }

.days { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.days li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 18px; align-items: start; }
.day { aspect-ratio: 1; background: var(--card-black); border-radius: 6px; display: grid; place-content: center; text-align: center; font-size: 0.8125rem; color: var(--muted); line-height: 1.2; box-shadow: inset 0 0 0 1px #2B2025; }
.day b { display: block; font: 800 1.375rem/1 var(--f-display); color: var(--terra); margin-bottom: 4px; }
.days h3 { font-size: 1.3125rem; margin-bottom: 6px; padding-top: 4px; }
.days p { color: var(--muted); }

/* Join */
.join { border-top: 0; padding-top: 8px; }
.join-card { background: var(--surface); border: 1.5px solid var(--terra); border-radius: 22px; padding: clamp(22px, 5.5vw, 40px); }
#w-form-wrap, .done { display: grid; gap: 14px; }
.join-card h2, .done h2 { font-size: clamp(2rem, 7vw, 2.75rem); font-weight: 790; }
.join-sub { color: var(--muted); }
.w-form { display: grid; gap: 14px; max-width: 30rem; margin-top: 8px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--f-display); font-weight: 600; font-size: 0.9375rem; }
.field input { appearance: none; width: 100%; background: var(--bg); color: var(--cream); border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; min-height: 54px; font: 500 1.0625rem var(--f-body); }
.field input:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px rgba(210,100,58,.28); }
.field input[aria-invalid="true"] { border-color: #E8806A; }
.err { color: #F2A28E; font-size: 0.875rem; min-height: 1.25em; margin-top: -2px; }
.err:empty { min-height: 0; }
.field .err:empty { min-height: 1.25em; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.check input { appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0; border: 1.5px solid var(--muted); border-radius: 6px; background: transparent; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--terra); border-color: var(--terra); }
.check input:checked::after { content: ""; width: 10px; height: 5px; border-left: 2.5px solid var(--on-terra); border-bottom: 2.5px solid var(--on-terra); transform: translateY(-1px) rotate(-45deg); }
.check input:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.w-form .btn { justify-self: start; margin-top: 4px; }
.fine { color: var(--muted); font-size: 0.8125rem; line-height: 1.55; }
.done p:not(.eyebrow) { color: var(--muted); }
.done-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.done-share { margin-top: 8px; }
.linkbtn { appearance: none; background: none; border: 0; padding: 4px 0; color: var(--terra); font: 600 1rem var(--f-display); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.status { font-size: 0.875rem; min-height: 1.2em; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; font-size: 1.125rem; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--terra); border-bottom: 2.5px solid var(--terra); transform: rotate(-45deg); }

.about { grid-template-columns: 88px minmax(0, 1fr); align-items: start; gap: 20px; }
.about img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--terra); }
.about-text { display: grid; gap: 12px; min-width: 0; }
.about-text h2 { font-size: clamp(1.625rem, 5vw, 2rem); }
.about-text p { color: var(--muted); }
.about-text strong { color: var(--cream); font-weight: 550; }
@media (max-width: 480px) { .about { grid-template-columns: 1fr; } }

.faq { gap: 0; }
.faq .sec-head { margin-bottom: 18px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font: 650 1.125rem/1.3 var(--f-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 500 1.5rem var(--f-body); color: var(--terra); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 18px; max-width: 38rem; }

.final { justify-items: start; padding-block: 56px 64px; }
.final h2 { font-size: clamp(1.875rem, 6vw, 2.5rem); max-width: 14em; }

.foot { border-top: 1px solid var(--line); padding-block: 26px max(32px, env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 0.875rem; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
