/* Oakenhearth Games: the portal. One stylesheet, no frameworks, no web fonts (system faces load instantly and keep the page free of third-party requests). */
:root {
  --bg: #120e0b;
  --bg-2: #1a1410;
  --card: #211a14;
  --line: #3a2d22;
  --text: #efe3cc;
  --muted: #bcab90;
  --ember: #e8833a;
  --ember-hi: #f4a65c;
  --gold: #d9a441;
  --leaf: #8fb06a;
  --ink: #1b0f07;                       /* text on an ember button */
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--ember-hi); text-underline-offset: 3px; }
a:hover { color: #ffc589; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 6px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.bar.solid { background: rgba(18, 14, 11, .92); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font: 600 21px/1 var(--serif); letter-spacing: .02em; }
.brand:hover { color: #fff; }
.brand svg { width: 34px; height: 34px; }
.brand small { display: block; font: 600 10.5px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 15px; }
.nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav a.btn { margin-left: 6px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 24px; border-radius: 10px; font: 700 16px/1 var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .15s, background .2s, box-shadow .2s; }
.btn-primary { background: linear-gradient(180deg, var(--ember-hi), var(--ember)); color: var(--ink); box-shadow: 0 6px 22px rgba(232, 131, 58, .32), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-primary:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(232, 131, 58, .45), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn-ghost { background: rgba(255, 255, 255, .06); border-color: rgba(239, 227, 204, .35); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .13); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 14.5px; border-radius: 8px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- notice (a ticket that ran out) ---------- */
.notice { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 60; width: min(560px, 100% - 32px); background: var(--card); border: 1px solid var(--gold); border-radius: 12px; padding: 14px 18px; display: flex; gap: 14px; align-items: center; justify-content: space-between; box-shadow: 0 12px 40px rgba(0, 0, 0, .55); }
.notice[hidden] { display: none; }
.notice p { margin: 0; font-size: 15.5px; line-height: 1.5; }
.notice button { background: none; border: 0; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; z-index: -3; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(85% 85% at 10% 52%, rgba(18, 14, 11, .8) 0%, rgba(18, 14, 11, .45) 46%, rgba(18, 14, 11, 0) 88%),
  linear-gradient(180deg, rgba(18, 14, 11, .5) 0%, rgba(18, 14, 11, 0) 20%, rgba(18, 14, 11, 0) 64%, var(--bg) 100%); }
#embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-copy { padding: 130px 0 96px; max-width: 640px; }
.eyebrow { display: inline-block; font: 700 12.5px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.hero h1 { margin: 0 0 22px; font: 600 clamp(40px, 6.4vw, 72px)/1.04 var(--serif); letter-spacing: -.01em; text-wrap: balance; text-shadow: 0 2px 28px rgba(0, 0, 0, .55); }
.hero h1 em { font-style: normal; color: var(--ember-hi); }
.hero p.lead { margin: 0 0 34px; font-size: clamp(18px, 2.1vw, 21px); line-height: 1.6; color: #e6d9c0; max-width: 540px; text-shadow: 0 1px 14px rgba(0, 0, 0, .7); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin: 22px 0 0; font-size: 14.5px; color: var(--muted); }

/* ---------- sections ---------- */
section { padding: 88px 0; }
.kicker { font: 700 12.5px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
h2 { margin: 0 0 18px; font: 600 clamp(30px, 4.2vw, 46px)/1.1 var(--serif); letter-spacing: -.005em; text-wrap: balance; }
.sub { margin: 0; color: var(--muted); max-width: 640px; font-size: 18px; }

.game { background: var(--bg-2); border-block: 1px solid var(--line); }
.game-head { display: grid; gap: 28px; grid-template-columns: 1.05fr 1fr; align-items: center; margin-bottom: 54px; }
.game-art { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); aspect-ratio: 16 / 10; background: #000; }
.game-art img { width: 100%; height: 100%; object-fit: cover; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.chips li { font-size: 13.5px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255, 255, 255, .03); }
.game-copy p { margin: 0 0 18px; }
.game-copy .cta { margin-top: 26px; }

.features { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin: 0; padding: 0; list-style: none; }
.features li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px 24px 22px; }
.features svg { width: 30px; height: 30px; color: var(--ember-hi); margin-bottom: 14px; }
.features h3 { margin: 0 0 8px; font: 600 20px/1.25 var(--serif); }
.features p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }

.gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin: 46px 0 0; padding: 0; list-style: none; }
.gallery figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.gallery img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s; }      /* (height:auto, or the height attribute makes the pictures tall) */
.gallery figure:hover img { transform: scale(1.035); }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 38px 16px 13px; font-size: 14.5px; color: #f1e6cf; background: linear-gradient(180deg, transparent, rgba(10, 7, 5, .88)); }

.need { margin: 40px 0 0; padding: 18px 22px; border-left: 3px solid var(--ember); background: rgba(232, 131, 58, .07); border-radius: 0 10px 10px 0; font-size: 15.5px; color: #dccfb6; }
.need strong { color: var(--text); }

.about { text-align: center; }
.about .sub { margin-inline: auto; }
.mark { width: 64px; height: 64px; margin: 0 auto 22px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--muted); font-size: 14.5px; background: #0e0b08; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* ---------- prose pages (privacy) ---------- */
.page { padding: 130px 0 80px; }
.prose { max-width: 720px; }
.prose h1 { font: 600 clamp(34px, 5vw, 52px)/1.1 var(--serif); margin: 0 0 8px; }
.prose h2 { font-size: 26px; margin: 44px 0 12px; }
.prose p, .prose li { color: #ddd0b8; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose .meta { color: var(--muted); margin: 0 0 30px; }
.prose code { font: 14px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: rgba(255, 255, 255, .08); padding: 2px 6px; border-radius: 5px; color: var(--ember-hi); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .game-head { grid-template-columns: 1fr; }
  .nav a:not(.btn) { display: none; }
  section { padding: 64px 0; }
  .hero-copy { padding: 112px 0 72px; }
  .hero::before { background: linear-gradient(180deg, rgba(18, 14, 11, .55) 0%, rgba(18, 14, 11, .5) 52%, var(--bg) 100%); }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .cta { flex-direction: column; }
  .nav a.btn { width: auto; }
  .brand small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .gallery img { transition: none; }
  #embers { display: none; }
}
