/* Hymn & Havoc promo site. Palette taken from the title logo (docs: 2 - Areas/Art & Visuals/Brand.md).
   Ground = the logo's own background, so the logo sits on the page with no visible box. */
:root {
  --ground: #0D1017;
  --deep: #090A0F;
  --panel: #131722;
  --panel-2: #1A1F2C;
  --line: #262D3D;
  --text: #E7E3DA;
  --muted: #A9A49A;
  --silver: #E9E7E2;
  --silver-dim: #C1C4CC;
  --halo: #F2DDA4;        /* the halo and holy light */
  --gold: #D9B26A;
  --ember: #E8642C;
  --flame: #F59A3E;
  --blood: #B3261E;
  --char: #2A1C1A;
  --smoke: #705348;
  --hymn-grad: linear-gradient(180deg, #FFFFFF 0%, #E9E7E2 45%, #A9ACB5 55%, #F4F1EA 100%);
  --havoc-grad: linear-gradient(180deg, #D9D3CF 0%, #8C7E7A 45%, #B3261E 70%, #F2793A 100%);
  --wrap: 1160px;
  --radius: 10px;
  --serif: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --italic: 'Cormorant Garamond', Garamond, Georgia, serif;
  --sans: 'Alegreya Sans', 'Segoe UI', system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--ground); color: var(--text);
  font: 400 18px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--halo); text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: .02em; margin: 0 0 .5em; color: var(--silver); }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); }
h3 { font-size: 1.25rem; }
h2 em, h2 i { font-family: var(--italic); font-style: italic; font-weight: 600; color: var(--halo); letter-spacing: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left)); }
.center { text-align: center; margin-inline: auto; }
.kicker { font: 600 .8rem/1 var(--serif); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 46rem; }
.note { color: var(--muted); font-size: .98rem; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--halo); color: var(--deep); padding: 8px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }
.nowrap { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--halo); outline-offset: 3px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 700 .95rem/1 var(--serif); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  color: #1B1208; background: linear-gradient(180deg, #FBEBC0, #D9B26A 55%, #B98A3E);
  border: 1px solid #F6DFA0; border-radius: 6px; padding: 15px 22px; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 6px 24px -6px rgba(242, 190, 100, .45);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { color: #1B1208; transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 10px 30px -6px rgba(242, 190, 100, .6); }
.btn-small { padding: 10px 14px; font-size: .78rem; }
.btn-steam { color: #fff; background: linear-gradient(180deg, #2A3B58, #18233A); border-color: #4C6A96; box-shadow: 0 6px 24px -8px rgba(70, 120, 200, .6); }
.btn-steam:hover { color: #fff; }

/* header */
.top {
  position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 24px;
  padding: calc(10px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 10px max(20px, env(safe-area-inset-left));
  background: linear-gradient(180deg, rgba(9,10,15,.92), rgba(9,10,15,.65)); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.05); transition: transform .3s ease;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--silver); font: 600 1rem/1 var(--serif); letter-spacing: .14em; text-transform: uppercase; }
.brand img { border-radius: 6px; }
.brand i { font-family: var(--italic); font-style: italic; color: var(--halo); letter-spacing: 0; text-transform: none; font-size: 1.15em; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--muted); text-decoration: none; font: 500 .8rem/1 var(--serif); letter-spacing: .16em; text-transform: uppercase; }
.top nav a:hover { color: var(--silver); }
@media (max-width: 860px) { .top nav { display: none; } .top .btn-small { margin-left: auto; } }
@media (max-width: 420px) { .brand span { display: none; } }

/* hero */
.hero {
  position: relative; min-height: min(100svh, 980px); display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 96px 20px 72px; isolation: isolate;
  background: var(--ground);
}
.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-logo { width: min(1100px, 100%); margin-inline: -20px; }
.hero-logo img { aspect-ratio: 2000 / 1116; }
.hero-logo img { width: 100%; -webkit-mask-image: radial-gradient(closest-side, #000 82%, transparent 100%); mask-image: radial-gradient(closest-side, #000 82%, transparent 100%); }
.pitch { font: 600 clamp(1.35rem, 1rem + 1.4vw, 2rem)/1.3 var(--serif); color: var(--silver); margin: -2.2rem 0 .6rem; letter-spacing: .03em; position: relative; }
.pitch em { font-family: var(--italic); font-size: 1.15em; font-weight: 600; background: linear-gradient(90deg, var(--halo) 20%, var(--flame) 60%, var(--ember)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { margin: 0 auto 1.6rem; }
.cta { display: flex; flex-direction: column; align-items: center; gap: 16px; width: min(560px, 100%); }
.status { margin-top: 1.4rem; color: var(--muted); font-size: .92rem; display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--flame); box-shadow: 0 0 10px var(--flame); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.scroll { position: absolute; bottom: 22px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid var(--line); border-radius: 14px; }
.scroll span { position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--halo); animation: wheel 2s ease-in-out infinite; }
@keyframes wheel { 60% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
@media (max-height: 760px) { .scroll { display: none; } }

/* forms */
.lead { width: 100%; text-align: left; }
.field { display: flex; gap: 8px; }
.field input {
  flex: 1; min-width: 0; font: 400 1.05rem var(--sans); color: var(--text); background: rgba(9,10,15,.8);
  border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px;
}
.field input::placeholder { color: #6C6A66; }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 178, 106, .2); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; font-size: .9rem; color: var(--muted); line-height: 1.45; }
.consent input { margin-top: 3px; accent-color: var(--gold); width: 16px; height: 16px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 1.4em; margin: 8px 0 0; font-size: .95rem; }
.form-msg.err { color: #FF9A80; }
.done { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid rgba(242,221,164,.35); border-radius: 8px; background: rgba(242,221,164,.06); }
.done strong { font-family: var(--serif); color: var(--halo); letter-spacing: .05em; }
.done p { margin: 2px 0 0; color: var(--muted); }
@media (max-width: 480px) { .field { flex-direction: column; } }

/* section rhythm and divider: a halo on the left, an ember on the right */
main > section { padding-block: clamp(72px, 9vw, 128px); position: relative; }
main > section + section::before {
  content: ""; position: absolute; top: 0; left: 50%; width: min(560px, 80%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(242,221,164,.55) 30%, rgba(255,255,255,.7) 50%, rgba(232,100,44,.6) 70%, transparent);
}

/* premise */
.premise { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.premise-art { margin: 0; }
.premise-art img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.premise-art figcaption { color: var(--muted); font-size: .9rem; margin-top: 10px; font-style: italic; }
.pull { font: 500 1.3rem/1.45 var(--italic); font-style: italic; color: var(--silver); border-left: 2px solid var(--gold); padding-left: 18px; }
.pull span { display: block; color: var(--halo); margin-top: 6px; }
@media (max-width: 900px) { .premise { grid-template-columns: 1fr; } }

/* nudge */
.nudge { background: linear-gradient(180deg, var(--deep), var(--ground)); }
.steps { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 26px 22px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); }
.steps li::before { content: counter(s, upper-roman); position: absolute; top: -14px; left: 20px; font: 700 .9rem/28px var(--serif); width: 40px; text-align: center; color: var(--deep); background: var(--gold); border-radius: 4px; }
.steps strong { display: block; color: var(--silver); font: 600 1.15rem var(--serif); margin-bottom: 6px; letter-spacing: .04em; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* hymn or havoc */
.paths h2 i { font-size: 1.1em; }
.split { display: grid; grid-template-columns: 1fr 1fr; margin-top: 2.6rem; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.path { padding: clamp(28px, 4vw, 52px); position: relative; }
.path h3 { font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.6rem); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .2em; }
.path .tag { font: 600 .78rem/1 var(--serif); letter-spacing: .24em; text-transform: uppercase; margin-bottom: 1.4rem; }
.path p { color: var(--text); }
.hymn { background: radial-gradient(90% 80% at 0% 0%, rgba(242,221,164,.16), transparent 60%), linear-gradient(160deg, #1B1D24, #12141B); }
.hymn h3 { background-image: var(--hymn-grad); text-shadow: 0 0 30px rgba(242,221,164,.25); }
.hymn .tag { color: var(--halo); }
.havoc { background: radial-gradient(90% 80% at 100% 0%, rgba(232,100,44,.2), transparent 60%), linear-gradient(200deg, #221413, #120D0F); border-left: 1px solid var(--line); }
.havoc h3 { background-image: var(--havoc-grad); }
.havoc .tag { color: var(--flame); }
.paths .note { margin-top: 1.6rem; max-width: 40rem; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } .havoc { border-left: 0; border-top: 1px solid var(--line); } }

/* feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 2.4rem; }
.card { padding: 26px 24px; border-radius: var(--radius); background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); transition: border-color .2s ease, transform .2s ease; }
.card:hover { border-color: rgba(217,178,106,.45); transform: translateY(-2px); }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }
.ico { width: 40px; height: 40px; fill: none; stroke: var(--halo); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.card:nth-child(even) .ico { stroke: var(--flame); }
@media (max-width: 980px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
.flesh { margin-top: 22px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(70% 120% at 100% 50%, rgba(179,38,30,.28), transparent 60%), radial-gradient(60% 120% at 0% 50%, rgba(242,221,164,.12), transparent 60%), var(--panel); }
.flesh > div { padding: clamp(26px, 4vw, 44px); max-width: 44rem; }
.flesh h3 { font-size: 1.9rem; }
.flesh p:last-child { color: var(--muted); margin: 0; }

/* gallery */
.gallery { background: var(--deep); }
.shots { list-style: none; margin-top: 2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.shots li { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.shots li.wide { grid-column: span 2; grid-row: span 2; }
.shots a { display: block; height: 100%; }
.shots img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s ease; filter: saturate(.95); }
.shots a:hover img, .shots a:focus-visible img { transform: scale(1.04); filter: saturate(1.05) brightness(1.05); }
@media (max-width: 700px) { .shots { grid-template-columns: 1fr 1fr; } .shots li.wide { grid-column: span 2; grid-row: auto; } }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(5,6,9,.92); }
.lightbox img { max-width: 96vw; max-height: 92vh; border-radius: 6px; }
.lightbox .close { position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--silver); font-size: 26px; cursor: pointer; }

/* realms */
.realm-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 2.2rem 0 1rem; }
.realm { padding: 26px 24px 22px; border-radius: var(--radius); border: 1px solid var(--line); border-top-width: 3px; background: var(--panel); }
.realm p { color: var(--muted); margin: 0; font-size: 1rem; }
.realm.greek { border-top-color: #D1A43C; background: linear-gradient(180deg, rgba(234,228,214,.06), transparent 50%), var(--panel); }
.realm.norse { border-top-color: #4FA3A5; background: linear-gradient(180deg, rgba(79,163,165,.08), transparent 50%), var(--panel); }
.realm.nile  { border-top-color: #E3B341; background: linear-gradient(180deg, rgba(36,71,143,.12), transparent 50%), var(--panel); }
@media (max-width: 860px) { .realm-row { grid-template-columns: 1fr; } }

/* join */
.join { text-align: center; background:
  radial-gradient(50% 70% at 30% 100%, rgba(242,221,164,.10), transparent 70%),
  radial-gradient(50% 70% at 70% 100%, rgba(232,100,44,.12), transparent 70%), var(--ground); }
.join-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 640px; }
.join-mark { width: 150px; height: 150px; filter: drop-shadow(0 0 24px rgba(242,221,164,.18)); }
.join .lede { margin: 0 auto 8px; }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--deep); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); color: var(--muted); font-size: .9rem; }
.foot-inner { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.foot p { margin: 0; text-align: right; }
.studio { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.studio img { opacity: .9; }
@media (max-width: 700px) { .foot p { text-align: left; } }

/* simple pages (privacy, 404) */
.page { max-width: 760px; margin: 0 auto; padding: 120px 20px 80px; }
.page h1 { font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); }
.page h2 { font-size: 1.4rem; margin-top: 2rem; }
.page p, .page li { color: var(--text); }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* gameplay clips (animated WebP loops; a still poster under reduced motion) */
.clip-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 2.2rem; }
.clip { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.clip img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.clip figcaption { padding: 14px 18px 16px; color: var(--muted); font-size: 1rem; }
.clip figcaption strong { color: var(--silver); font-family: var(--serif); font-weight: 600; letter-spacing: .04em; }
@media (max-width: 800px) { .clip-row { grid-template-columns: 1fr; } }
.clip.wide { grid-column: 1 / -1; }
@media (max-width: 800px) { .clip.wide { grid-column: auto; } }
