/* The site's pages (home, chapter guides, About, Contact, What's new, Privacy): the game's colours and display font,
   in a page that scrolls. The game itself uses styles.css. */
@font-face { font-family:'IM Fell English SC'; font-style:normal; font-weight:400; font-display:swap; src:url(vendor/fonts/im-fell-english-sc.woff2) format('woff2'); }
:root {
  --bg:#0d0f13; --panel:#161920; --line:#2c313c; --ink:#eceae4; --dim:#a8a59c; --accent:#e0b85a; --focus:#7fd0ff;
  --display:'IM Fell English SC', 'Iowan Old Style', Georgia, serif;
  color-scheme: dark;
}
* { box-sizing:border-box; }
body { margin:0; background:radial-gradient(ellipse at 50% 0, #241e16, var(--bg) 60%) no-repeat, var(--bg); color:var(--ink); font:17px/1.65 system-ui, sans-serif; }
a { color:var(--accent); }
:focus-visible { outline:3px solid var(--focus); outline-offset:2px; }
h1, h2, h3 { font-family:var(--display); font-weight:400; letter-spacing:.02em; line-height:1.2; text-wrap:balance; }
h1 { font-size:clamp(2.2rem, 6vw, 3.2rem); margin:.2rem 0 .6rem; }
h2 { font-size:1.7rem; margin:2.2rem 0 .6rem; }
h3 { font-size:1.25rem; margin:1.6rem 0 .4rem; }
main { max-width:44rem; margin:0 auto; padding:1rem 16px 3rem; }
.site-head { display:flex; flex-wrap:wrap; gap:.5rem 1.5rem; align-items:baseline; justify-content:space-between; max-width:44rem; margin:0 auto; padding:1rem 16px; border-bottom:1px solid var(--line); }
.site-head .brand { font-family:var(--display); font-size:1.6rem; color:var(--ink); text-decoration:none; }
.site-head nav { display:flex; flex-wrap:wrap; gap:.4rem 1.1rem; }
.site-head nav a { text-decoration:none; }
.site-head nav a:hover { text-decoration:underline; }
.site-foot { max-width:44rem; margin:0 auto; padding:1.5rem 16px 3rem; border-top:1px solid var(--line); color:var(--dim); text-align:center; }
.eyebrow { margin:1rem 0 0; color:var(--dim); text-transform:uppercase; letter-spacing:.1em; font-size:.8rem; }
.facts { color:var(--dim); margin-top:0; }
.setting { font-style:italic; }
blockquote { margin:1.2rem 0; padding:.8rem 1rem; border-left:3px solid var(--accent); background:var(--panel); border-radius:0 8px 8px 0; }
.button { display:inline-block; font:inherit; color:var(--ink); background:#1f232c; border:1px solid #3a3f4b; border-radius:6px; padding:.55rem 1.2rem; text-decoration:none; }
.button:hover { border-color:var(--accent); }
.button.primary { background:#3a3320; border-color:var(--accent); }
.card, .news { background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:.4rem 1.2rem .6rem; margin:1.2rem 0; }
.card h2, .news h2 { margin-top:.2rem; }
.card h2 a { color:var(--ink); text-decoration:none; }
.card h2 a:hover { color:var(--accent); }
.rooms { columns:2 12rem; }
.puzzles { list-style:none; padding:0; margin:0; }
.puzzles > li { margin:.4rem 0; }
details { background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:.5rem .9rem; }
details summary { cursor:pointer; }
details[open] > summary { margin-bottom:.4rem; }
details.hint { margin:.4rem 0; background:#1d2129; }
details.hint p { margin:.2rem 0 .1rem; }
.site-head nav a[aria-current="page"] { color:var(--ink); text-decoration:underline; text-decoration-color:var(--accent); text-underline-offset:.3em; }
.button.big { font-size:1.15rem; padding:.75rem 1.8rem; }

/* The home page. */
.hero { text-align:center; padding:2.5rem 0 1rem; }
.hero h1 { font-size:clamp(3rem, 11vw, 4.6rem); margin:0; }
.tagline { margin:.2rem 0 1.4rem; color:var(--dim); font-size:1.1rem; }
.hero .facts { margin-top:1rem; font-size:.95rem; }
.chapter-grid, .features { list-style:none; padding:0; margin:1rem 0; display:grid; gap:1rem; grid-template-columns:repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.features { grid-template-columns:repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap:1.2rem 1.6rem; }
.chapter-grid .card { margin:0; padding:.4rem 1rem .8rem; }
.chapter-grid h3 { margin:.2rem 0 .1rem; }
.chapter-grid h3 a { color:var(--ink); text-decoration:none; }
.chapter-grid h3 a:hover { color:var(--accent); }
.chapter-grid p { margin:.3rem 0; }
.chapter-grid .eyebrow { margin-top:.6rem; }
.features h3 { margin:.2rem 0 .3rem; color:var(--accent); }
.features p { margin:0; }
.cta { text-align:center; margin-top:2.5rem; }

/* Screenshots from the game, with their captions. */
figure.shot { margin:1.4rem 0; }
figure.shot img, img.thumb { display:block; width:100%; height:auto; aspect-ratio:16 / 9; object-fit:cover; background:#000; border:1px solid var(--line); border-radius:10px; }
figure.shot figcaption { margin-top:.45rem; color:var(--dim); font-size:.92rem; }
.hero figure.shot { margin:.4rem 0 1.4rem; }
.thumb-link { display:block; margin:.8rem 0 .2rem; }
.thumb-link:hover img { border-color:var(--accent); }
img.thumb { border-radius:8px; }

/* A chapter walkthrough: the rooms, each with its picture, a folded walkthrough and folded hints. */
.note { color:var(--dim); }
.toc { display:flex; flex-wrap:wrap; gap:.3rem .9rem; margin:.6rem 0 1rem; font-size:.95rem; }
.toc span { color:var(--dim); }
.room { margin-top:2.4rem; padding-top:.4rem; border-top:1px solid var(--line); }
.room h3 { font-size:1.45rem; }
details.walk { margin:1rem 0; border-color:var(--accent); background:#1c1a14; }
details.walk > summary { color:var(--accent); font-weight:600; }
details.walk ol, details.walk ul { padding-left:1.3rem; }
details.walk li { margin:.45rem 0; }
details.walk h4 { margin:1.2rem 0 .3rem; font-family:var(--display); font-weight:400; font-size:1.15rem; }
h4.hints-head { margin:1.2rem 0 .4rem; color:var(--dim); font-weight:600; font-size:.95rem; text-transform:uppercase; letter-spacing:.06em; }
.next { margin-top:2.4rem; font-size:1.1rem; }

/* The chapter comparison table. */
table.compare { display:block; overflow-x:auto; width:100%; border-collapse:collapse; margin:1.2rem 0 1.6rem; font-size:.95rem; }
table.compare caption { text-align:left; color:var(--dim); padding-bottom:.4rem; }
table.compare th, table.compare td { padding:.45rem .7rem; border-bottom:1px solid var(--line); text-align:left; white-space:nowrap; }
table.compare thead th { color:var(--dim); font-weight:600; }
table.compare tbody th { font-weight:400; }

/* Behind the scenes. */
.byline { color:var(--dim); margin-top:0; }
.notes-list { list-style:none; padding:0; }
.notes-list li { margin:.9rem 0; }
.notes-list .facts { margin-left:.4rem; font-size:.9rem; }
.note-card h2 { font-size:1.45rem; }

/* The account, leaderboard and moderation pages. */
.account-form { display:grid; gap:.5rem; max-width:26rem; margin:1rem 0; }
.account-form input[type="email"], .account-form input[type="text"] { font:inherit; color:var(--ink); background:#11141a; border:1px solid #3a3f4b; border-radius:6px; padding:.55rem .7rem; }
.account-form input:focus-visible { border-color:var(--accent); }
.account-form label.check { display:flex; gap:.5rem; align-items:center; }
.account-form .button { justify-self:start; cursor:pointer; }
.form-status { min-height:1.4em; color:var(--dim); }
.notice { background:var(--panel); border:1px solid var(--accent); border-radius:8px; padding:.6rem .9rem; }
.account-actions .button { cursor:pointer; }
.button.danger { border-color:#c0574b; }
.confirm { background:var(--panel); border:1px solid #c0574b; border-radius:8px; padding:.4rem 1rem .8rem; margin:1rem 0; }
.toc a[aria-current="page"] { color:var(--ink); text-decoration:underline; }
table.board td:first-child { color:var(--dim); }

/* The community (pages written by the Worker into this site's shell). */
.boards, .threads { list-style:none; padding:0; }
.boards li, .threads li { margin:.9rem 0; padding-bottom:.9rem; border-bottom:1px solid var(--line); }
.boards li > a, .threads li > a { font-family:var(--display); font-size:1.25rem; text-decoration:none; }
.boards .facts, .threads .facts { display:block; font-size:.9rem; }
.post { background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:.6rem 1rem; margin:1rem 0; }
.post-head { color:var(--dim); font-size:.92rem; }
.post-head b { color:var(--ink); }
.post-body p { margin:.6rem 0; overflow-wrap:anywhere; }
.post-foot { display:flex; flex-wrap:wrap; gap:.4rem; justify-content:flex-end; }
.post-foot .report { font:inherit; font-size:.85rem; color:var(--dim); background:none; border:none; cursor:pointer; padding:.2rem .4rem; }
.post-foot .report:hover { color:var(--accent); }
.post-raw { white-space:pre-wrap; font:inherit; margin:.5rem 0; overflow-wrap:anywhere; }
.spoiler { background:var(--ink); color:transparent; border-radius:3px; padding:0 .2em; cursor:pointer; user-select:none; }
.spoiler.shown { background:#2a2f39; color:var(--ink); user-select:text; }
.spoiler:focus-visible { outline:2px solid var(--focus); }
.post-form { display:grid; gap:.5rem; margin:1.5rem 0; }
.post-form input, .post-form textarea { font:inherit; color:var(--ink); background:#11141a; border:1px solid #3a3f4b; border-radius:6px; padding:.55rem .7rem; width:100%; }
.post-form textarea { resize:vertical; min-height:7rem; }
.post-form .button { justify-self:start; cursor:pointer; }
#new-thread > .button { cursor:pointer; margin:.6rem 0 1rem; }
.discussion { margin-top:2.4rem; }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
