/* Serenaya Studio.
   The studio UI stays quiet (near-black, ivory type, thin gold hairlines);
   the paintings of The Queen's Last Room carry the palace atmosphere. */

:root {
  --burgundy: #5c1f2b;
  --burgundy-light: #752b38;
  --walnut: #2a1d15;
  --walnut-deep: #1c1410;
  --night: #120d0b;
  --gold: #c7a15c;
  --gold-pale: #e6cc94;
  --brass: #9e7a40;
  --ivory: #f5ebd4;
  --parchment: #ebdbbd;
  --parchment-edge: #ccb082;
  --muted: #b9aa92;
  --ink: #3b291c;
  --hairline: rgba(199, 161, 92, .28);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--night);
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gold-pale); text-decoration-color: rgba(230, 204, 148, .45); text-underline-offset: 3px; }
a:hover { color: #fff3d6; }
:focus-visible { outline: 2px solid var(--gold-pale); outline-offset: 3px; }
[id] { scroll-margin-top: 90px; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ivory); color: var(--night); padding: 8px 14px; z-index: 50; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-weight: 500; line-height: 1.1; margin: 0 0 .45em; letter-spacing: .005em; }
h1 { font-size: clamp(44px, 7.5vw, 92px); }
h2 { font-size: clamp(34px, 5vw, 60px); }
h3 { font-size: 26px; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }

.eyebrow {
  font-size: 14px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 16px;
}
.lede { font-size: clamp(21px, 2.2vw, 25px); color: var(--parchment); }
.rule { width: 56px; height: 1px; background: var(--gold); border: 0; margin: 28px 0; }
.center .rule, .studio-intro .rule { margin-left: auto; margin-right: auto; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(18, 13, 11, .94);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }

.wordmark { text-decoration: none; color: var(--ivory); line-height: 1; }
.wordmark span { display: block; font-size: 21px; font-weight: 600; letter-spacing: .34em; }
.wordmark small { display: block; font-size: 11px; letter-spacing: .62em; color: var(--gold); margin-top: 5px; }
.wordmark:hover { color: var(--ivory); }

.nav { display: flex; gap: 6px; }
.nav a {
  color: var(--parchment); text-decoration: none; font-size: 18px; font-weight: 500;
  padding: 8px 12px; letter-spacing: .03em;
}
.nav a:hover { color: var(--gold-pale); }
.nav a[aria-current="page"] { color: var(--gold-pale); box-shadow: inset 0 -1px 0 var(--gold); }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--hairline); color: var(--gold-pale);
  font: 600 16px var(--serif); letter-spacing: .1em; padding: 8px 14px; cursor: pointer;
}

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 18px;
    background: var(--walnut-deep); border-bottom: 1px solid var(--hairline);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 21px; border-bottom: 1px solid rgba(199, 161, 92, .12); }
  .nav a[aria-current="page"] { box-shadow: none; }
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 18px var(--serif); letter-spacing: .08em; text-decoration: none;
  padding: 13px 28px; border-radius: 2px; cursor: pointer; transition: background-color .2s, color .2s;
}
.btn-primary { color: var(--ivory); background: var(--burgundy); border: 1px solid var(--gold); }
.btn-primary:hover { background: var(--burgundy-light); color: #fff; }
.text-link {
  font-size: 19px; font-weight: 600; letter-spacing: .06em; text-decoration: none;
  color: var(--gold-pale); border-bottom: 1px solid var(--gold); padding-bottom: 2px;
}
.text-link:hover { color: #fff3d6; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }

.platform { font-size: 15px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-pale); }

/* ---------- Studio intro (quiet, typographic) ---------- */

.studio-intro { padding: clamp(90px, 14vh, 150px) 0 clamp(70px, 11vh, 120px); text-align: center; }
.studio-intro h1 { letter-spacing: .02em; margin-bottom: .3em; }
.studio-intro .lede { max-width: 640px; margin: 0 auto; }

/* ---------- Full-bleed painted scene (the game's atmosphere) ---------- */

.scene {
  position: relative; display: flex; align-items: flex-end;
  min-height: min(94vh, 980px); padding: 120px 0 clamp(56px, 9vh, 96px); overflow: hidden;
}
.scene > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, var(--night) 0%, rgba(18, 13, 11, 0) 22%, rgba(18, 13, 11, 0) 45%, rgba(18, 13, 11, .82) 82%, var(--night) 100%),
    linear-gradient(90deg, rgba(18, 13, 11, .6) 0%, rgba(18, 13, 11, 0) 60%);
}
.scene .wrap { position: relative; z-index: 2; width: 100%; }
.scene-text { max-width: 600px; }
.scene h1, .scene h2 { text-shadow: 0 2px 24px rgba(0, 0, 0, .55); }
.scene .tagline { font-style: italic; font-size: clamp(22px, 2.4vw, 27px); color: var(--gold-pale); margin-bottom: .7em; }
.scene p { text-shadow: 0 1px 12px rgba(0, 0, 0, .85); }
.scene .eyebrow { color: var(--gold-pale); text-shadow: 0 1px 10px rgba(0, 0, 0, .9); }
.scene-short { min-height: min(70vh, 720px); }

@media (max-width: 640px) {
  .scene { min-height: 88vh; }
  .scene > img { object-position: 62% center; }
  .scene::before { background: linear-gradient(180deg, var(--night) 0%, rgba(18, 13, 11, 0) 20%, rgba(18, 13, 11, .3) 45%, rgba(18, 13, 11, .9) 75%, var(--night) 100%); }
}

/* ---------- Editorial statement ---------- */

.statement { padding: clamp(80px, 13vw, 160px) 0; text-align: center; }
.statement p.big {
  font-size: clamp(34px, 5.4vw, 68px); line-height: 1.15; font-weight: 500; margin: 0 auto; max-width: 980px;
}
.statement p.big em { color: var(--gold-pale); }

/* ---------- Gallery: large, immersive, unframed ---------- */

.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; background: var(--walnut); }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.gallery figure:first-child img { aspect-ratio: auto; }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px;
  font-style: italic; font-size: 18px; color: var(--ivory);
  background: linear-gradient(180deg, transparent, rgba(18, 13, 11, .8));
}
.gallery-wide { max-width: 1440px; margin: 0 auto; padding: 0 10px; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr; grid-template-rows: none; }
  .gallery figure:first-child { grid-row: auto; }
  .gallery figure:first-child img { aspect-ratio: 4 / 3; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 720px; margin: 0 0 46px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.divider { border-top: 1px solid var(--hairline); }

/* ---------- Notify form ---------- */

.notify { text-align: center; }
.notify p.lede { max-width: 560px; margin: 0 auto 30px; }
.notify-form { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; }
.notify-form input[type="email"] {
  flex: 1; min-width: 0; font: 20px var(--serif); color: var(--ivory);
  background: transparent; border: 0; border-bottom: 1px solid var(--gold); padding: 12px 4px;
}
.notify-form input[type="email"]::placeholder { color: var(--muted); }
.notify-form input[type="email"]:focus { outline: none; border-bottom-color: var(--gold-pale); box-shadow: 0 1px 0 var(--gold-pale); }
.notify-form .trap { position: absolute; left: -9999px; }
.form-status { min-height: 1.6em; margin: 16px 0 0; font-style: italic; color: var(--gold-pale); }
.form-note { font-size: 16px; color: var(--muted); margin-top: 6px; }
@media (max-width: 520px) { .notify-form { flex-direction: column; } }

/* ---------- Game page ---------- */

.game-intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.game-meta { margin: 0; border-top: 1px solid var(--hairline); }
.game-meta div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.game-meta dt { font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); padding-top: 4px; }
.game-meta dd { margin: 0; text-align: right; }
.game-icon img { width: 100%; height: auto; }
.game-icon { width: 120px; border-radius: 22%; overflow: hidden; margin-bottom: 28px; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
@media (max-width: 860px) { .game-intro { grid-template-columns: 1fr; } }

.features-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.features-list li { padding: 22px 0; border-top: 1px solid var(--hairline); color: var(--parchment); }
.features-list strong { color: var(--ivory); display: block; font-size: 23px; font-weight: 600; margin-bottom: 2px; }
@media (max-width: 760px) { .features-list { grid-template-columns: 1fr; } }

/* ---------- Legal pages (parchment, like the in-game journal) ---------- */

.parchment {
  background: linear-gradient(160deg, #f3e6c9, var(--parchment) 45%, #e1cca5);
  color: var(--ink); border-radius: 3px; padding: clamp(28px, 5vw, 56px);
  box-shadow: inset 0 0 0 1px var(--parchment-edge), 0 20px 50px rgba(0, 0, 0, .45);
}
.parchment h1, .parchment h2, .parchment h3 { color: #38121a; font-weight: 600; }
.parchment h1 { font-size: clamp(40px, 6vw, 60px); }
.parchment a { color: var(--burgundy); text-decoration-color: rgba(92, 31, 43, .4); }
.parchment a:hover { color: var(--burgundy-light); }
.parchment .eyebrow { color: var(--brass); }

.legal { font-size: 19px; }
.legal h2 { font-size: 30px; margin-top: 1.6em; }
.legal h3 { font-size: 23px; margin-top: 1.2em; }
.legal ul { padding-left: 1.3em; margin: 0 0 1em; }
.legal li { margin-bottom: .4em; }
.legal .updated { font-style: italic; color: var(--brass); }

/* ---------- Contact ---------- */

.contact-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 48px; }
.contact-list > div { border-top: 1px solid var(--gold); padding-top: 22px; }
.contact-list p { color: var(--parchment); font-size: 19px; }
.contact-list .mail { font-weight: 600; font-size: 20px; word-break: break-word; }
@media (max-width: 860px) { .contact-list { grid-template-columns: 1fr; gap: 36px; } }

.faq details { border-bottom: 1px solid var(--hairline); padding: 16px 0; }
.faq summary { cursor: pointer; font-size: 22px; font-weight: 600; color: var(--ivory); list-style: none; padding-right: 30px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 0; color: var(--gold); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--parchment); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--hairline); padding: 56px 0 34px; font-size: 17px; color: var(--parchment); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; align-items: flex-start; }
.footer-statement { max-width: 380px; margin: 14px 0 0; color: var(--muted); font-size: 17px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer-links a { color: var(--parchment); text-decoration: none; }
.footer-links a:hover { color: var(--gold-pale); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(199, 161, 92, .14); font-size: 15px; color: var(--muted); }
