/* halvenar.com — night on the Paper Stair. Midnight teal ground, lamplight amber, parchment text.
   Single dark theme by choice: the whole site is "after dark in Rivercross". */
:root {
  --deep: #081619;
  --night: #0d2226;
  --panel: #12313a;
  --panel2: #0f2a31;
  --parch: #efe6d4;
  --dim: #b4c3bf;
  --gold: #f2cf8a;
  --amber: #ffb347;
  --line: #24464e;
  --display: "Cormorant SC", "Trajan Pro", Georgia, serif;
  --body: "Literata", Georgia, "Times New Roman", serif;
  --wrap: 1080px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-padding-top: 80px; }
body { background: var(--deep); color: var(--parch); font-family: var(--body); font-size: 17px; line-height: 1.65; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--amber); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: 0.02em; margin: 0; text-wrap: balance; line-height: 1.08; }
h1 { font-size: clamp(42px, 7vw, 76px); }
h2 { font-size: clamp(30px, 4.2vw, 42px); color: var(--gold); }
h3 { font-size: 24px; }
p { margin: 0; max-width: 64ch; }
.kicker { font-family: var(--display); font-size: 15px; letter-spacing: 0.2em; color: var(--amber); }
.note { color: var(--dim); font-size: 15px; }
.lede { font-size: 19px; color: var(--dim); }
.stack { display: grid; gap: 16px; align-content: start; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--gold); color: var(--deep); padding: 8px 12px; }

/* Header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(8, 22, 25, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--parch); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { font-family: var(--display); font-size: 22px; letter-spacing: 0.08em; font-weight: 700; }
.nav { display: flex; flex-wrap: wrap; gap: 2px 4px; }
.nav a { font-family: var(--display); font-size: 17px; letter-spacing: 0.06em; text-decoration: none; color: var(--parch); padding: 6px 10px; border-radius: 3px; opacity: 0.85; }
.nav a:hover { opacity: 1; background: rgba(242, 207, 138, 0.08); color: var(--parch); }
.nav a[aria-current="page"] { opacity: 1; box-shadow: inset 0 -2px 0 var(--amber); }
.nav a.cta { border: 1px solid var(--gold); color: var(--gold); opacity: 1; }

/* Hero */
.hero { position: relative; background: var(--night); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero > img { width: 100%; height: clamp(380px, 60vw, 600px); object-fit: cover; object-position: center 42%; opacity: 0.6; }
.hero .over { position: absolute; inset: 0; display: flex; align-items: flex-end; background: linear-gradient(180deg, rgba(8, 22, 25, 0.1) 20%, rgba(8, 22, 25, 0.95) 92%); }
.hero .over .wrap { width: 100%; padding-bottom: clamp(28px, 5vw, 56px); display: grid; gap: 14px; }
.hero .lede { color: var(--parch); max-width: 52ch; }
.page-head { padding: clamp(48px, 8vw, 88px) 0 clamp(28px, 4vw, 40px); border-bottom: 1px solid var(--line); background: radial-gradient(120% 140% at 85% 0%, #17414a 0%, var(--deep) 60%); }
.page-head .wrap { display: grid; gap: 14px; }

section.band { padding: clamp(48px, 8vw, 84px) 0; border-bottom: 1px solid var(--line); }
section.band.alt { background: var(--night); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; font-family: var(--display); font-size: 18px; letter-spacing: 0.08em; font-weight: 700; text-decoration: none; padding: 10px 22px; border-radius: 4px; border: 1px solid var(--gold); color: var(--gold); background: transparent; cursor: pointer; }
.btn.primary { background: var(--gold); color: var(--deep); }
.btn:hover { background: var(--amber); border-color: var(--amber); color: var(--deep); }

/* The breath */
.breath blockquote { margin: 0; font-size: clamp(22px, 2.8vw, 30px); font-style: italic; line-height: 1.45; max-width: 36ch; }

/* Doors (three ways in) */
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.door { position: relative; display: grid; align-content: end; min-height: 300px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); text-decoration: none; color: var(--parch); background: var(--panel); }
.door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; transition: transform 0.4s ease, opacity 0.4s ease; }
.door::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(8, 22, 25, 0.95)); }
.door .t { position: relative; z-index: 1; padding: 22px; display: grid; gap: 6px; }
.door .t p { color: var(--dim); font-size: 15px; }
.door .go { font-family: var(--display); letter-spacing: 0.1em; color: var(--amber); }
.door:hover img { transform: scale(1.04); opacity: 0.7; }
.door:hover { color: var(--parch); }

/* News posts */
.news { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; margin-top: 26px; }
.post { border-top: 2px solid var(--amber); padding-top: 12px; display: grid; gap: 8px; align-content: start; }
.post .when { font-family: var(--display); letter-spacing: 0.14em; font-size: 14px; color: var(--amber); }
.post h3 { font-size: 22px; }
.post p { color: var(--dim); font-size: 16px; }

/* Book */
.book { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
.cover { position: relative; aspect-ratio: 3 / 4; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.8); background: #0e1d18; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.letter > img, .face img, .appicon { height: auto; }
.cover .cs, .cover .ct { position: absolute; left: 18px; right: 18px; color: #f3ead6; }
.cover .cs { top: 16px; font-family: var(--display); letter-spacing: 0.22em; font-size: 13px; }
.cover .ct { bottom: 0; left: 0; right: 0; padding: 60px 18px 20px; background: linear-gradient(transparent, rgba(8, 14, 12, 0.9)); font-family: var(--display); font-size: clamp(32px, 4vw, 44px); line-height: 1; }
.status { justify-self: start; font-family: var(--display); letter-spacing: 0.14em; font-size: 14px; color: var(--deep); background: var(--gold); padding: 4px 12px; border-radius: 2px; }
blockquote.pull { margin: 0; font-style: italic; font-size: 21px; line-height: 1.5; border-left: 2px solid var(--amber); padding-left: 18px; max-width: 42ch; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.fact { border-left: 2px solid var(--amber); padding: 2px 0 2px 12px; }
.fact b { display: block; font-family: var(--display); font-size: 15px; letter-spacing: 0.12em; color: var(--gold); font-weight: 600; }
.fact span { color: var(--dim); font-size: 15px; }
table.board { width: 100%; border-collapse: collapse; font-size: 16px; }
.board th, .board td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.board th { font-family: var(--display); letter-spacing: 0.14em; font-size: 14px; color: var(--amber); font-weight: 600; }
.board td:first-child { font-family: var(--display); font-size: 19px; }
.pill { font-family: var(--display); font-size: 14px; letter-spacing: 0.08em; padding: 2px 10px; border-radius: 2px; white-space: nowrap; }
.pill.done { background: var(--gold); color: var(--deep); }
.pill.now { border: 1px solid var(--amber); color: var(--amber); }
.pill.next { border: 1px solid var(--line); color: var(--dim); }
.tablewrap { overflow-x: auto; }

/* Games */
.game { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
.game + .game { margin-top: clamp(48px, 7vw, 80px); padding-top: clamp(48px, 7vw, 80px); border-top: 1px solid var(--line); }
.shot { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.8); }
.shot img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 14px; padding: 3px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--dim); }
.chip.live { border-color: var(--amber); color: var(--amber); }
.heroes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.heroes div { border-left: 2px solid var(--gold); padding-left: 12px; }
.heroes b { display: block; font-family: var(--display); font-size: 19px; letter-spacing: 0.04em; }
.heroes span { color: var(--dim); font-size: 15px; }
.appicon { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.8); }
.relics { display: flex; gap: 8px; flex-wrap: wrap; }
.relics img { width: 64px; height: 64px; }
dl.lines { margin: 0; border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 6px; font-size: 16px; }
.lines div { display: grid; grid-template-columns: 80px 1fr; gap: 10px; }
.lines dt { font-family: var(--display); letter-spacing: 0.1em; color: var(--gold); }
.lines dd { margin: 0; }
.lines .blur { filter: blur(5px); user-select: none; }
.counter { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; margin-top: 36px; align-items: start; }
.ach { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.ach li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
.badge { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--gold); display: grid; place-items: center; font-family: var(--display); color: var(--gold); font-size: 16px; background: radial-gradient(#1d4a4f, #071618); }
.ach b { display: block; font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: 0.04em; }
.ach span { color: var(--dim); font-size: 14px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 6px; padding: 20px; display: grid; gap: 10px; }
.later { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 26px; }

/* Chronicle */
.issues { display: grid; gap: 12px; margin-top: 26px; }
details.issue { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
details.issue summary { list-style: none; cursor: pointer; padding: 16px 20px; display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: baseline; }
details.issue summary::-webkit-details-marker { display: none; }
.issue .no { font-family: var(--display); font-size: 28px; color: var(--gold); }
.issue .t { font-family: var(--display); font-size: 23px; }
.issue .d { font-style: italic; color: var(--dim); font-size: 15px; }
details.issue summary::after { content: "Read"; font-family: var(--display); letter-spacing: 0.1em; color: var(--amber); font-size: 15px; }
details.issue[open] summary::after { content: "Close"; }
details.issue .body { padding: 0 20px 22px 88px; display: grid; gap: 12px; }
.sig { font-style: italic; color: var(--gold); }

/* World guide */
.guide { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 26px 36px; margin-top: 28px; }
.place h3 { font-size: 23px; color: var(--gold); margin-bottom: 6px; }
.coin { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 8px; font-size: 15px; color: var(--dim); }
.faces { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 28px; }
.face { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.face img { width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--gold); background: var(--night); }
.face b { display: block; font-family: var(--display); font-size: 19px; }
.face span { color: var(--dim); font-size: 14px; }

/* Letter */
.letter { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 32px; align-items: start; }
.letter > img { width: 140px; height: 140px; border-radius: 50%; border: 2px solid var(--gold); background: var(--night); }
.perks { margin: 0; padding-left: 20px; color: var(--dim); display: grid; gap: 4px; }
.perks li::marker { color: var(--amber); }
form.signup { display: flex; flex-wrap: wrap; gap: 10px; }
form.signup label { flex-basis: 100%; }
input[type=email] { flex: 1 1 240px; min-width: 0; font: inherit; color: var(--parch); background: var(--night); border: 1px solid var(--line); border-radius: 4px; padding: 11px 14px; }
input[type=email]:focus { border-color: var(--gold); outline: none; }
button.btn { font-size: 18px; }
.done { display: none; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--amber); padding: 12px 16px; border-radius: 4px; }
.done.show { display: block; }

/* Footer */
footer { padding: 44px 0 52px; color: var(--dim); font-size: 15px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
footer ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
footer a { color: var(--parch); text-decoration: none; opacity: 0.85; }
footer a:hover { opacity: 1; text-decoration: underline; color: var(--parch); }
.imprint { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.imprint svg { width: 30px; height: 30px; color: var(--dim); }

@media (max-width: 860px) {
  .doors { grid-template-columns: 1fr; }
  .door { min-height: 220px; }
  .book, .game, .counter { grid-template-columns: 1fr; }
  .cover { max-width: 320px; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav a { padding: 5px 7px; font-size: 16px; }
  .heroes { grid-template-columns: 1fr; }
  .letter { grid-template-columns: 1fr; }
  details.issue .body { padding: 0 18px 20px; }
  details.issue summary { grid-template-columns: 40px 1fr; }
  details.issue summary::after { display: none; }
  footer .wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
