@font-face { font-family: "Cinzel"; src: url("fonts/Cinzel.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/CourierPrime-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/CourierPrime-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --night: #0C0C0E;
  --amber: #FFA328;
  --cream: #F4F0E6;
  --gold: #C9A35A;
  --smoke: #8A8378;
  --snow: #A9BCCF;
  --text: #D8D2C6;
  --rule: #24211E;
  --measure: 36rem;
}

* { box-sizing: border-box; }
html { background: var(--night); color: var(--cream); }
body { margin: 0; font: 400 1.0625rem/1.65 "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; }
#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
/* frosted window edges: cold breath on the glass */
.frost { position: fixed; inset: 0; pointer-events: none; z-index: 5;
  background: radial-gradient(120% 85% at 50% 50%, transparent 62%, rgba(169,188,207,.07) 80%, rgba(169,188,207,.16) 100%); }
main { margin: 0 auto; padding: 0 1rem; text-align: center; }
main > section, main > header, main > nav { max-width: var(--measure); margin-left: auto; margin-right: auto; }
h2 { font: 700 clamp(1.55rem, 5.5vw, 2.2rem)/1.15 "Cinzel", serif; margin: 0 0 .8rem; color: var(--cream); text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--amber); color: #1A1206; }
::placeholder { opacity: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }

/* ---------- hero: you arrive at the diner window ---------- */
.hero { position: relative; max-width: none !important; width: 100vw; margin: 0 calc(50% - 50vw);
  min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; overflow: hidden; background: #08080A; }
.hero picture { position: absolute; inset: 0; }
.hero-art { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
/* the fade lives on the picture so the copy (and the wordmark's screen blend) stays in the hero's own layer */
.hero picture::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to right, var(--night) 0%, rgba(12,12,14,.5) 6%, transparent 18%, transparent 82%, rgba(12,12,14,.5) 94%, var(--night) 100%),
              linear-gradient(to bottom, rgba(12,12,14,.55) 0%, transparent 16%, transparent 50%, rgba(12,12,14,.88) 74%, var(--night) 100%); }
/* landscape: the art keeps its own 16:9 frame, lifted past the window header, so the neon sign always sits above the copy */
@media (min-aspect-ratio: 3/4) { .hero picture { inset: -7vw 0 auto; height: 56.25vw; } }
/* portrait: lift the window so the copy lands on the empty counter below the sign */
@media (max-aspect-ratio: 3/4) { .hero picture { inset: -11svh 0 auto; height: 100svh; } }
.hero-copy { position: relative; width: 100%; max-width: 32rem; margin: 0 auto; padding: 0 1rem clamp(1.75rem, 5vh, 3.5rem); }
h1 { margin: 0; line-height: 0; }
.wordmark { width: min(86vw, 26rem); height: auto; mix-blend-mode: screen; }
.lede { color: var(--text); margin: .9rem auto 1.4rem; max-width: 27rem; text-wrap: pretty; }
.where { margin: .35rem 0 0; font-size: .92rem; color: var(--smoke); }
.where a { color: var(--cream); text-underline-offset: 3px; text-decoration-color: rgba(244,240,230,.35); padding: .6rem 0; }
.where a:hover { color: var(--amber); }

/* ---------- waitlist: typewriter stamp ---------- */
.waitlist label { display: block; font: 600 1.15rem/1.3 "Cinzel", serif; margin-bottom: .9rem; color: var(--cream); }
.field { display: flex; gap: .5rem; max-width: 27rem; margin: 0 auto; }
.field input { flex: 1; min-width: 0; padding: .85rem 1rem; font: 400 1rem "Courier Prime", monospace; color: var(--cream);
  background: rgba(22,21,26,.85); border: 1px solid #3A3631; border-radius: 3px; }
.field input::placeholder { color: var(--smoke); }
.field input:focus { outline: none; border-color: var(--amber); }
.field button { padding: .85rem 1.25rem; font: 700 1rem "Courier Prime", monospace; letter-spacing: .06em; cursor: pointer;
  color: var(--amber); background: transparent; border: 1.5px solid var(--amber); border-radius: 3px; white-space: nowrap;
  transition: background .15s, color .15s; }
.field button:hover, .field button:focus-visible { background: var(--amber); color: #1A1206; }
.hint { color: var(--smoke); font-size: .9rem; margin: .7rem 0 0; min-height: 1.4em; }
.hint.ok { color: var(--amber); } .hint.err { color: #FF8A7A; }

/* ---------- season ---------- */
.season { padding: 4.5rem 0 1rem; }
.season p { color: var(--text); margin: 0 auto; max-width: 30rem; text-wrap: pretty; }
.season .place { font: 400 .95rem "Courier Prime", monospace; color: var(--gold); margin-bottom: .7rem; letter-spacing: .03em; }
.season .made { margin-top: 1rem; font-size: .92rem; color: var(--smoke); }

/* ---------- torch: search the dark ---------- */
.torch { padding: 4.5rem 0 3rem; }
.torch-help { color: var(--smoke); margin: 0 0 1.5rem; font-size: .95rem; }
.dark { --x: 50%; --y: 40%; position: relative; padding: 2.5rem 1rem; border-radius: 6px; cursor: crosshair; touch-action: pan-y;
  -webkit-mask: radial-gradient(circle 9rem at var(--x) var(--y), #000 0%, #000 35%, rgba(0,0,0,.05) 100%);
          mask: radial-gradient(circle 9rem at var(--x) var(--y), #000 0%, #000 35%, rgba(0,0,0,.03) 100%); }
.clue { font: 400 clamp(1.05rem, 4vw, 1.3rem)/1.4 "Courier Prime", monospace; color: var(--cream); margin: 1.1rem 0; }
.c2 { color: var(--amber); } .c3 { text-align: left; padding-left: 8%; } .c4 { text-align: right; padding-right: 6%; font-style: italic; }
.c5 { color: var(--gold); font-size: .95rem; }
.for-touch { display: none; }
@media (hover: none) {
  .for-mouse { display: none; } .for-touch { display: inline; }
  .dark { -webkit-mask: none; mask: none; cursor: auto; }
  .clue { opacity: .07; filter: blur(2px); transition: opacity 1.1s cubic-bezier(.2,.8,.2,1), filter 1.1s cubic-bezier(.2,.8,.2,1); }
  .clue.lit { opacity: 1; filter: none; }
}

/* ---------- try a choice ---------- */
.choice { padding: 3.5rem 0; border-top: 1px solid var(--rule); }
.setup { color: var(--text); margin: 0 auto 1.6rem; max-width: 30rem; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; padding-top: 6px; }
.opt { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; min-width: 0; padding: 1.1rem 1.1rem 1.25rem;
  cursor: pointer; text-align: left; overflow-wrap: anywhere; font: 700 1.02rem/1.35 "Courier Prime", monospace; color: #2A2520;
  background: #EFE8D8; border: 0; border-radius: 2px; box-shadow: 0 10px 24px -12px rgba(0,0,0,.8), 0 2px 4px rgba(0,0,0,.35);
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s; }
/* order ticket: torn top edge and a ruled line, like the pad Marge writes on */
.opt::before { content: ""; position: absolute; left: 0; right: 0; top: -5px; height: 6px;
  background: radial-gradient(circle at 5px 6px, transparent 4px, #EFE8D8 4.5px) 0 0 / 10px 6px repeat-x; }
.opt::after { content: ""; position: absolute; left: 1.1rem; right: 1.1rem; bottom: .7rem; border-bottom: 1px dashed rgba(42,37,32,.3); }
.opt[data-opt="A"] { transform: rotate(-1.2deg); } .opt[data-opt="B"] { transform: rotate(1deg); }
.opt:hover:not([disabled]) { transform: rotate(0) translateY(-3px); box-shadow: 0 16px 30px -12px rgba(0,0,0,.85), 0 2px 4px rgba(0,0,0,.35); }
.opt[aria-pressed="true"] { transform: rotate(0); outline: 2px solid var(--amber); outline-offset: 4px; }
.opt[disabled] { opacity: .45; cursor: default; }
.opt:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.letter { font: 700 1.5rem/1 "Cinzel", serif; color: #B3261E; }
.outcome { outline: none; min-height: 4.5rem; margin: 1.6rem auto 0; max-width: 30rem; font: 400 1.05rem/1.6 "Courier Prime", monospace; color: var(--cream); text-align: left; }
.outcome p { margin: .4rem 0; }
.outcome:empty { min-height: 0; margin-top: 0; }
.outcome .cost { color: #FF8A7A; }
.outcome .right { color: var(--amber); }
.rewind { margin-top: 1.2rem; padding: .75rem 1.3rem; font: 700 .95rem "Courier Prime", monospace; letter-spacing: .08em; cursor: pointer;
  color: var(--snow); background: transparent; border: 1.5px solid var(--snow); border-radius: 3px; }
.rewind:hover { background: var(--snow); color: #0C0C0E; }
.demo-note { color: var(--smoke); font-size: .85rem; margin: 1.5rem 0 0; }
body.rewinding main { animation: rewind .5s ease-in-out; }
@keyframes rewind { 40% { filter: saturate(0) brightness(.75) sepia(.2) hue-rotate(180deg); transform: translateX(-6px); } 100% { filter: none; transform: none; } }

/* ---------- closing + footer ---------- */
.last { padding: 3.5rem 0 3rem; border-top: 1px solid var(--rule); }
.follow { display: flex; justify-content: center; gap: 1.75rem; padding: 2rem 0 1rem; border-top: 1px solid var(--rule); flex-wrap: wrap; }
.follow a { color: var(--cream); text-decoration: none; display: inline-block; padding: .75rem .25rem; background: linear-gradient(#4A443C,#4A443C) left calc(100% - .55rem) / 100% 1px no-repeat; }
.follow a:hover { color: var(--amber); }
footer { text-align: center; padding: 1.5rem 1rem 3rem; color: var(--smoke); font-size: .92rem; }
footer p { margin: .35rem 0; }
footer a { color: var(--cream); display: inline-block; padding: .55rem 0; text-underline-offset: 3px; }
footer .stamp { font: 700 1.05rem "Courier Prime", monospace; color: var(--snow); letter-spacing: .25em; margin-bottom: 1rem; }
.small { font-size: .8rem; color: var(--smoke); }
.small a { color: var(--smoke); }

/* ---------- keyhole intro ---------- */
#intro { position: fixed; inset: 0; z-index: 10; pointer-events: none; animation: introOut .01s linear 2.1s forwards; }
#intro svg { width: 100%; height: 100%; display: block; }
#intro .kh { transform-box: fill-box; transform-origin: 50% 40%; animation: push 1.35s cubic-bezier(.55,0,.8,.15) .75s forwards; }
#intro .rim { fill: none; stroke: var(--amber); stroke-width: .35; animation: push 1.35s cubic-bezier(.55,0,.8,.15) .75s forwards, rimFade 1.35s ease-in .75s forwards; }
#intro .halo { animation: halo 2.1s ease-out forwards; }
@keyframes push { to { transform: scale(70); } }
@keyframes rimFade { 0% { opacity: 1; } 40% { opacity: 0; } 100% { opacity: 0; } }
@keyframes halo { 0% { opacity: 0; } 25% { opacity: 1; } 40% { opacity: .7; } 100% { opacity: 0; } }
@keyframes introOut { to { visibility: hidden; } }
.no-intro #intro { display: none; }

@media (max-width: 480px) {
  .torch { padding-top: 3rem; }
  .field button { padding-inline: 1rem; }
  .options { grid-template-columns: 1fr; }
  .c3, .c4 { text-align: center; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  #snow { display: none; }
  body.rewinding main { animation: none; }
  .dark { -webkit-mask: none; mask: none; }
  .clue { opacity: 1 !important; filter: none !important; }
}

/* honeypot: hidden from people, visible to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* privacy page */
.doc{max-width:36rem;margin:0 auto;padding:3rem 1rem;text-align:left;color:var(--text)}
.doc h1{font:700 2rem/1.2 "Cinzel",serif;color:var(--cream);line-height:1.2}
.doc h2{font-size:1.2rem;margin-top:2rem}
.doc a{color:var(--cream)}
