/* What the Fog Remembers: the site at colintoke.com/fog/. Same palette and type as the app (game-v2/src/style.css). */
:root {
  --night: #0d1213; --night2: #141c1d; --panel: rgba(22, 30, 31, .82); --line: rgba(239, 230, 207, .14);
  --bone: #efe6cf; --bone2: #d9cfb5; --ink: #1b1916; --text: #e6e0cf; --muted: #9aa49c;
  --lamp: #c8c15a; --gold: #d8b25c; --sea: #6fc39b; --rust: #a8402a; --violet: #9c84b8; --teal: #1f4f5a; --brass: #7a5c22;
  --slab: "Alfa Slab One", Georgia, serif; --fell: "IM Fell English", "Iowan Old Style", Georgia, serif;
  --sc: "IM Fell English SC", "IM Fell English", Georgia, serif; --ui: "Libre Franklin", "Helvetica Neue", system-ui, sans-serif;
  --read: "Libre Caslon Text", "Iowan Old Style", Georgia, serif;   /* long reading: clearer than IM Fell (Nov 15 2026) */
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--text); font: 15px/1.5 var(--ui); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--gold); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 6px; }

/* the fog: two slow layers behind everything */
.fog { position: fixed; inset: -20%; pointer-events: none; z-index: 0; opacity: .5;
  background: radial-gradient(40% 30% at 20% 30%, rgba(160, 175, 168, .10), transparent 70%),
              radial-gradient(35% 25% at 75% 60%, rgba(160, 175, 168, .08), transparent 70%),
              radial-gradient(50% 30% at 50% 95%, rgba(160, 175, 168, .10), transparent 70%);
  animation: drift 60s ease-in-out infinite alternate; }
.fog.b { animation-duration: 90s; animation-direction: alternate-reverse; opacity: .35; transform: scale(1.3); }
@keyframes drift { from { transform: translate3d(-4%, 0, 0); } to { transform: translate3d(4%, -2%, 0); } }
.vignette { position: fixed; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, .55)); }
@media (prefers-reduced-motion: reduce) { .fog { animation: none; } html { scroll-behavior: auto; } }
main, header.top, footer { position: relative; z-index: 1; }

/* buttons, as in the app */
.btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; padding: 6px 18px; border-radius: 10px;
  font: 700 15px var(--ui); letter-spacing: .01em; color: var(--text); text-decoration: none; text-align: center;
  background: linear-gradient(#2a3637, #1c2627); border: 1px solid rgba(239, 230, 207, .18); box-shadow: 0 2px 0 rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: transform .12s var(--ease), filter .15s; }
.btn:hover { filter: brightness(1.18); }
.btn:active { transform: translateY(1px) scale(.97); }
.btn.primary { background: linear-gradient(#e2cd7a, #b8953f); color: #1b1608; border-color: #f2e2a0; box-shadow: 0 3px 0 #5e4a17, 0 0 24px rgba(216, 178, 92, .25), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn.big { min-height: 54px; font-size: 18px; padding: 8px 28px; border-radius: 14px; }
.btn small { display: block; font: 600 12px var(--ui); opacity: .75; letter-spacing: .02em; }
.btn.ghost { background: transparent; box-shadow: none; }

/* top bar */
header.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-left)); background: linear-gradient(rgba(13, 18, 19, .94), rgba(13, 18, 19, .78)); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line); }
header.top .home { font: 400 20px var(--fell); color: var(--bone); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
header.top .btn { min-height: 38px; padding: 4px 14px; font-size: 14px; flex-shrink: 0; }

/* hero */
.hero { min-height: min(92vh, 900px); display: grid; place-items: center; text-align: center; padding: 40px 16px 30px; }
.title-art { width: min(64vw, 300px); aspect-ratio: 1; margin: 0 auto 18px; border-radius: 50%; background: url(art/title.webp) center/180% no-repeat;
  box-shadow: 0 0 0 2px rgba(239, 230, 207, .25), 0 0 80px rgba(200, 193, 90, .18), 0 30px 60px rgba(0, 0, 0, .7); }
h1.logo { font: 400 clamp(36px, 9vw, 64px)/1 var(--fell); margin: 0; color: var(--bone); text-shadow: 0 0 30px rgba(200, 193, 90, .25), 0 3px 0 #000; }
h1.logo em { display: block; font: italic 400 clamp(16px, 4vw, 22px) var(--fell); color: var(--muted); margin-top: 10px; letter-spacing: .04em; }
.lede { font: 400 clamp(17px, 4.2vw, 20px)/1.65 var(--read); max-width: 32em; margin: 22px auto 26px; color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.scroll-cue { margin-top: 28px; font: 400 15px var(--sc); color: var(--muted); letter-spacing: .12em; }

/* reading column */
.col { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.prose { font: 400 clamp(17px, 4.2vw, 19px)/1.75 var(--read); }
.prose.intro { text-align: center; margin: 10px auto 18px; max-width: 30em; }
.prose p { margin: 0 0 1em; }
.chapter > p:first-of-type::first-letter, #prologue > p:first-of-type::first-letter { font: 400 3.4em/.8 var(--fell); float: left; margin: .08em .1em 0 0; color: var(--bone); }
h2.sec { font: 400 clamp(26px, 6vw, 36px)/1.1 var(--fell); color: var(--bone); text-align: center; margin: 0 0 6px; }
.kicker { display: block; text-align: center; font: 400 15px var(--sc); letter-spacing: .14em; color: var(--muted); margin-bottom: 4px; }
.rule { height: 1px; border: 0; margin: 64px auto; max-width: 240px; background: linear-gradient(90deg, transparent, var(--line), rgba(200, 193, 90, .4), var(--line), transparent); }
blockquote.ammi { margin: 26px 0; padding: 16px 20px; border-left: 3px solid var(--gold); background: rgba(216, 178, 92, .06); border-radius: 0 10px 10px 0;
  font: italic 400 clamp(18px, 4.3vw, 21px)/1.55 var(--fell); color: var(--bone2); }
blockquote.ammi cite { display: block; margin-top: 8px; font: 400 14px var(--sc); font-style: normal; letter-spacing: .08em; color: var(--muted); }

/* timeline: the gaps shrink */
.timeline { margin: 26px 0 8px; }
.tl-track { position: relative; height: 72px; margin: 0 14px; }
.tl-track::before { content: ""; position: absolute; left: 0; right: 0; top: 30px; height: 2px; background: linear-gradient(90deg, rgba(239, 230, 207, .12), rgba(200, 193, 90, .55)); }
.tl-dot { position: absolute; top: 22px; transform: translateX(-50%); width: 18px; height: 18px; border-radius: 50%; background: var(--night); border: 2px solid var(--bone2);
  text-decoration: none; }
.tl-dot.oo { background: var(--lamp); border-color: var(--bone); box-shadow: 0 0 12px rgba(200, 193, 90, .5); }
.tl-dot span { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); font: 700 11px var(--ui); color: var(--muted); white-space: nowrap; }
.tl-dot.up span { top: -22px; }
.tl-note { text-align: center; font: italic 400 17px var(--fell); color: var(--muted); margin: 6px 0 0; }

/* contents */
.toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.toc a { display: block; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); text-decoration: none; color: var(--text); font: 600 13px var(--ui); }
.toc a b { display: block; font: 400 20px var(--slab); color: var(--lamp); }

/* a chapter */
.chapter { margin: 0 auto; padding: 72px 16px 0; max-width: 720px; scroll-margin-top: 60px; }
.year { display: block; text-align: center; font: 400 clamp(54px, 15vw, 96px)/1 var(--slab); color: transparent; -webkit-text-stroke: 1.5px rgba(200, 193, 90, .7);
  letter-spacing: .02em; }
h2.ch { font: 400 clamp(26px, 6.4vw, 38px)/1.1 var(--fell); color: var(--bone); text-align: center; margin: 4px 0 22px; }

/* the art, framed like a printed card's art panel with its type banner */
.plate { margin: 0 auto 26px; max-width: 560px; background: var(--ink); padding: 8px 8px 0; border-radius: 12px; box-shadow: 0 0 0 1px rgba(239, 230, 207, .25), 0 24px 50px rgba(0, 0, 0, .6); }
.plate img { width: 100%; aspect-ratio: 480 / 341; object-fit: cover; border-radius: 4px; outline: 1px solid rgba(239, 230, 207, .35); outline-offset: -4px; }
.plate .banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 6px 9px; color: var(--bone); }
.plate .banner b { font: 400 16px var(--slab); letter-spacing: .02em; }
.plate .banner span { font: 600 11px var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--bone2); opacity: .8; text-align: right; }

/* the newspaper clipping */
.clip { position: relative; margin: 0 auto 28px; max-width: 520px; padding: 14px 18px 16px; color: var(--ink); text-align: center;
  background: radial-gradient(rgba(27, 25, 22, .07) 1px, transparent 1.3px) 0 0 / 4px 4px, linear-gradient(#efe6cf, #e4d9bd);
  border-radius: 2px; box-shadow: 0 14px 30px rgba(0, 0, 0, .55); transform: rotate(-.7deg);
  clip-path: polygon(0 2%, 3% 0, 20% 1.5%, 40% 0, 62% 1.2%, 80% 0, 97% 1%, 100% 3%, 99% 30%, 100% 60%, 99% 98%, 96% 100%, 75% 98.5%, 50% 100%, 25% 98.6%, 4% 100%, 0 97%, 1% 60%, 0 30%); }
.clip:nth-of-type(even) { transform: rotate(.6deg); }
.clip .mast { font: 400 13px var(--sc); letter-spacing: .16em; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 3px 0; margin-bottom: 8px; }
.clip .mast span { float: right; letter-spacing: .04em; } .clip .mast i { float: left; letter-spacing: .04em; font-style: normal; }
.clip h3 { font: 400 clamp(20px, 5.2vw, 26px)/1.08 var(--slab); text-transform: uppercase; margin: 6px 0 6px; letter-spacing: .01em; }
.clip p { margin: 0; font: italic 400 17px/1.35 var(--fell); }

/* "in the game": the coach's note, kept apart from the story */
.ingame { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 18px; padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px dashed rgba(200, 193, 90, .45);
  font: 15px/1.5 var(--ui); color: var(--text); }
.ingame .lamp { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(200, 193, 90, .15); color: var(--lamp); font: 400 18px var(--slab); }
.ingame b { color: var(--bone); }
.ingame .chip { display: inline-block; margin: 0 4px 0 0; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); font: 600 11px var(--ui); color: var(--bone2); vertical-align: 1px; }

/* the five endings */
details.ends { margin: 0 0 8px; border: 1px solid var(--line); border-radius: 12px; background: rgba(20, 28, 29, .7); }
details.ends summary { cursor: pointer; list-style: none; padding: 12px 16px; font: 700 15px var(--ui); color: var(--bone); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
details.ends summary::-webkit-details-marker { display: none; }
details.ends summary::after { content: "+"; font: 400 22px var(--slab); color: var(--lamp); }
details.ends[open] summary::after { content: "–"; }
.ends dl { margin: 0; padding: 0 16px 14px; }
.ends dt { font: 400 13px var(--sc); letter-spacing: .12em; color: var(--lamp); margin-top: 12px; }
.ends dt.lose { color: #d98a7c; } .ends dt.herald { color: var(--violet); }
.ends dd { margin: 2px 0 0; font: 400 17px/1.6 var(--read); }

/* investigators */
.cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 22px; }
.who { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; grid-template-columns: 64px 1fr; gap: 4px 12px; align-content: start; }
.who .por { grid-row: span 2; width: 64px; height: 64px; border-radius: 50%; background: var(--ink) center/cover; box-shadow: 0 0 0 2px rgba(239, 230, 207, .25); display: grid; place-items: center;
  font: 400 26px var(--fell); color: var(--bone2); }
.who h3 { margin: 4px 0 0; font: 400 20px/1.1 var(--fell); color: var(--bone); }
.who .role { font: 600 12px var(--ui); color: var(--muted); }
.who p { grid-column: 1 / -1; margin: 8px 0 0; font: 400 15.5px/1.55 var(--read); }
.who p.tempt { color: var(--bone2); font-style: italic; }
.who .exp { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 99px; border: 1px solid rgba(156, 132, 184, .6); color: var(--violet); font: 700 10px var(--ui); letter-spacing: .04em; vertical-align: 2px; }

/* places */
.places { columns: 2 260px; column-gap: 26px; margin: 18px 0 0; padding: 0; list-style: none; }
.places li { break-inside: avoid; margin: 0 0 14px; font: 400 16px/1.55 var(--read); }
.places b { display: block; font: 700 14px var(--ui); color: var(--bone); letter-spacing: .02em; }

/* rules as story */
table.why { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 15px; }
table.why th { text-align: left; font: 700 13px var(--ui); color: var(--bone); padding: 10px 10px 10px 0; vertical-align: top; width: 38%; border-top: 1px solid var(--line); }
table.why td { font: 400 16px/1.55 var(--read); padding: 9px 0; border-top: 1px solid var(--line); }

/* finale */
.finale { text-align: center; padding: 80px 16px 40px; }
.finale p { font: italic 400 clamp(20px, 5vw, 26px)/1.5 var(--fell); color: var(--bone); max-width: 26em; margin: 0 auto 24px; }
footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 26px 16px 40px; text-align: center; color: var(--muted); font-size: 13px; }
footer p { max-width: 640px; margin: 0 auto 8px; }

/* home page doors */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; max-width: 920px; margin: 0 auto; padding: 0 16px; }
.door { display: flex; flex-direction: column; text-decoration: none; color: var(--text); background: var(--ink); border-radius: 14px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(239, 230, 207, .22), 0 20px 40px rgba(0, 0, 0, .55); transition: transform .2s var(--ease), box-shadow .2s; }
a.door:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(200, 193, 90, .6), 0 26px 50px rgba(0, 0, 0, .6); }
.door .pic { aspect-ratio: 480 / 300; background: center/cover; }
.door .bn { padding: 9px 14px; font: 400 18px var(--slab); color: var(--bone); background: #26302f; border-top: 1px solid rgba(239, 230, 207, .25); border-bottom: 1px solid rgba(239, 230, 207, .25); }
.door .tx { padding: 12px 14px 16px; font: 400 16px/1.55 var(--read); flex: 1; }
.door .go { display: block; margin-top: 10px; font: 700 13px var(--ui); color: var(--gold); }
.door.soon { opacity: .7; } .door.soon .pic { filter: grayscale(1) brightness(.7); } .door.soon .go { color: var(--muted); }

/* the tier tag at the end of a chapter: which Old One this is in the game, without rules */
p.tier { margin: 4px 0 0; font: 600 14px/1.5 var(--ui); color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
p.tier .chip { display: inline-block; font: 700 11px var(--ui); letter-spacing: .08em; text-transform: uppercase; }
/* a playable Old One: a real button into the game, set up for that night */
p.tier a.chip.now { display: inline-flex; align-items: center; min-height: 34px; padding: 4px 14px; border-radius: 99px; text-decoration: none;
  color: #1b1608; background: linear-gradient(#e2cd7a, #b8953f); border: 1px solid #f2e2a0; box-shadow: 0 2px 0 #5e4a17, 0 0 16px rgba(216,178,92,.2);
  transition: transform .12s var(--ease), filter .15s; }
p.tier a.chip.now:hover { filter: brightness(1.12); } p.tier a.chip.now:active { transform: translateY(1px) scale(.97); }
/* not playable yet: a plain label, not a button */
p.tier .chip.later { color: #c3b2d8; }
p.tier .chip.none { color: var(--muted); }

/* the closing pitch: from reader to player */
.finale.pitch { max-width: 820px; margin: 0 auto; }
.pitch .pitch-lede { font: 400 clamp(17px, 4.2vw, 20px)/1.65 var(--read); font-style: normal; color: var(--text); max-width: 32em; margin: 10px auto 22px; }
.beats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 0 auto 22px; text-align: left; }
.beat { background: var(--ink); border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(239, 230, 207, .22), 0 16px 34px rgba(0, 0, 0, .5); }
.beat b { display: block; padding: 9px 14px; font: 400 17px var(--slab); color: var(--bone); background: #26302f; border-bottom: 1px solid rgba(239, 230, 207, .22); }
.beat span { display: block; padding: 12px 14px 14px; font: 400 15.5px/1.55 var(--read); color: var(--text); }
.pitch .pitch-whisper { font: italic 400 clamp(18px, 4.4vw, 21px)/1.5 var(--fell); color: #c3b2d8; margin: 0 auto 24px; }
