/* Ravenscombe landing page: the game's own night look (ink on near-black, lamp amber, moonlight), mobile first. */
:root {
  --bg: #05070b; --bg-2: #0b0e16; --ink: #e9e2cf; --muted: #a39b88; --line: rgba(233, 226, 207, .16);
  --lamp: #f2b45a; --lamp-deep: #c9822e; --moon: #cfd8ff; --danger: #e2584f;
  --f-display: "IM Fell English SC", "Palatino Linotype", Georgia, serif;
  --f-italic: "IM Fell English", Georgia, serif;
  --f-body: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  --gutter: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--f-body); overflow-x: hidden; }
a { color: var(--lamp); }
a:hover { color: #ffd08a; }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; margin: 0; }
img, video { max-width: 100%; display: block; }

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(5,7,11,.55) 0%, rgba(5,7,11,.25) 35%, rgba(5,7,11,.82) 72%, var(--bg) 100%); }
.hero-inner { width: 100%; max-width: 980px; margin: 0 auto; padding: 96px var(--gutter) 40px; }
.kicker { margin: 0 0 10px; color: var(--muted); letter-spacing: .22em; text-transform: uppercase; font-size: 13px;
  display: flex; align-items: center; gap: .6em; }
.kicker .brand { display: inline-flex; align-items: center; gap: 8px; }
.kicker .head { height: 40px; width: auto; filter: drop-shadow(0 1px 8px rgba(0,0,0,.6)); }
.kicker .wordmark { height: 22px; width: auto; display: inline-block; filter: drop-shadow(0 1px 8px rgba(0,0,0,.7)); }
h1 { font-size: clamp(40px, 11vw, 104px); line-height: 1; letter-spacing: .14em; color: #f3eee0;
  text-shadow: 0 2px 30px rgba(0,0,0,.7); overflow-wrap: anywhere; }
.tagline { font-family: var(--f-italic); font-style: italic; color: var(--lamp); font-size: clamp(24px, 5.5vw, 38px);
  margin: 8px 0 2px; text-shadow: 0 2px 18px rgba(0,0,0,.8); }
.by { margin: 0 0 22px; color: var(--muted); font-style: italic; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.meta { color: var(--muted); font-size: 15px; margin: 12px 0 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .35em; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font: 600 17px/1 var(--f-body); text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-play { background: linear-gradient(180deg, #ffc56b, var(--lamp-deep)); color: #1a0f04;
  box-shadow: 0 0 28px rgba(242, 180, 90, .45); font-size: 19px; padding: 0 30px; }
.btn-play span { font-weight: 500; opacity: .75; }
.btn-play:hover { color: #1a0f04; filter: brightness(1.08); }
.btn-ghost { background: rgba(12, 10, 14, .6); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: rgba(233, 226, 207, .45); }

.warning { margin-top: 26px; max-width: 640px; padding: 14px 16px; border: 1px solid rgba(242, 180, 90, .45);
  border-left: 4px solid var(--lamp); border-radius: 10px; background: rgba(12, 10, 14, .82); font-size: 15px; }
.warning h2 { font-family: var(--f-body); font-weight: 700; font-size: 16px; color: var(--lamp); margin-bottom: 4px; }
.warning p { margin: 6px 0 0; }

/* sections */
main { max-width: 980px; margin: 0 auto; padding: 0 var(--gutter); }
.band { padding: 56px 0 8px; border-top: 1px solid var(--line); }
.band:first-child { border-top: 0; }
.band h2 { font-size: clamp(28px, 6vw, 40px); letter-spacing: .04em; margin-bottom: 18px; color: #f3eee0; }
.lede { color: #cfc7b2; max-width: 680px; margin: -6px 0 22px; }
.note { color: var(--muted); font-size: 15px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.steps li { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.steps .ico { font-size: 28px; }
.steps h3 { font-size: 22px; color: var(--lamp); margin: 4px 0 2px; }
.steps p { margin: 0; color: #cfc7b2; }

.controls { display: grid; gap: 14px; margin-top: 22px; }
.controls > div { border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.controls h3 { font-size: 20px; margin-bottom: 8px; }
.controls dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; font-size: 15px; }
.controls dt { font-weight: 700; color: var(--moon); }
.controls dd { margin: 0; color: #cfc7b2; }

.modes { display: grid; gap: 14px; }
.modes article { padding: 18px; border-radius: 12px; border: 1px solid var(--line);
  background: radial-gradient(120% 140% at 0% 0%, rgba(242, 180, 90, .10), transparent 60%), var(--bg-2); }
.modes h3 { font-size: 24px; color: var(--lamp); margin-bottom: 4px; }
.modes p { margin: 0; color: #cfc7b2; }

.scenes { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.scenes figure { margin: 0; position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.scenes img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.scenes figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; font-family: var(--f-italic);
  font-style: italic; font-size: 15px; background: linear-gradient(transparent, rgba(5,7,11,.85)); }

.share-row { display: flex; flex-wrap: wrap; gap: 10px; }

footer { max-width: 980px; margin: 56px auto 0; padding: 28px var(--gutter) 40px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 15px; }
footer p { margin: 6px 0; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.footer-brand img { width: 56px; height: 56px; flex: none; }
footer .credit { color: var(--ink); font-family: var(--f-italic); font-style: italic; font-size: 17px; }
footer .small { font-size: 13px; }

dialog { width: min(960px, calc(100vw - 2 * var(--gutter))); padding: 0; border: 1px solid var(--line); border-radius: 12px;
  background: #000; color: var(--ink); }
dialog::backdrop { background: rgba(0, 0, 0, .8); }
dialog video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
dialog form { display: flex; justify-content: flex-end; padding: 10px; }

@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .controls { grid-template-columns: 1fr 1fr; }
  .modes { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { padding-bottom: 56px; }
}
@media (max-width: 380px) { .scenes { grid-template-columns: 1fr; } }

/* the terms page */
.doc { max-width: 760px; margin: 0 auto; padding: 32px var(--gutter) 24px; }
.doc .back { display: inline-block; margin-bottom: 18px; }
.doc h1 { font-size: clamp(30px, 7vw, 46px); letter-spacing: .06em; margin-bottom: 8px; }
.doc h2 { font-size: 28px; margin: 36px 0 10px; color: var(--lamp); scroll-margin-top: 16px; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.doc li { margin: 6px 0; }
.doc p, .doc li { color: #d9d2bf; }
