/* Keseduran Game Studio — oil lamp behind a shadow-theatre screen. */
@font-face {
  font-family: "Alegreya";
  src: url("/assets/fonts/Alegreya-Variable.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --night: #0b0907;
  --walnut: #1a120c;
  --walnut-2: #24180f;
  --line: #3a2a1b;
  --ivory: #efe2c2;
  --parchment: #d9c6a0;
  --muted: #a8977a;
  --brass: #c9a24a;
  --brass-2: #e2c070;
  --ember: #b8502a;
  --curtain: #7e2418;
  --radius: 10px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--parchment);
  font-family: "Alegreya", Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.6;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brass-2); text-underline-offset: 0.18em; }
a:hover { color: var(--ivory); }
:focus-visible { outline: 2px solid var(--brass-2); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--ivory); line-height: 1.15; font-weight: 700; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--night); padding: 6px 10px; z-index: 10; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: rgba(11, 9, 7, 0.92); }
@media (min-width: 720px) { .site-head { position: sticky; top: 0; z-index: 5; } }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 10px; padding-bottom: 10px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-variant: small-caps; letter-spacing: 0.06em; font-size: 1.05rem; }
.nav a { color: var(--parchment); text-decoration: none; padding: 4px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ivory); box-shadow: 0 2px 0 var(--brass); }
.lang { display: flex; gap: 6px; font-size: 0.95rem; }
.lang a, .lang span { padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--muted); }
.lang span { color: var(--night); background: var(--brass); border-color: var(--brass); }

/* Lamp-lit screen hero */
.screen {
  position: relative;
  background:
    radial-gradient(ellipse 60% 70% at 50% 38%, rgba(226, 170, 90, 0.34), rgba(160, 90, 40, 0.12) 45%, transparent 75%),
    linear-gradient(180deg, var(--walnut) 0%, var(--night) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.screen::before, .screen::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: clamp(10px, 3vw, 36px);
  background: linear-gradient(90deg, var(--curtain), #4a140c);
  opacity: 0.85;
}
.screen::before { left: 0; }
.screen::after { right: 0; transform: scaleX(-1); }
.hero { text-align: center; padding: clamp(48px, 10vw, 110px) 16px clamp(40px, 8vw, 90px); }
.hero .logo { width: min(340px, 72vw); margin: 0 auto 28px; }
.tagline { font-size: clamp(1.4rem, 3.4vw, 2rem); color: var(--ivory); font-style: italic; margin-bottom: 0.2em; }
.tagline-sub { color: var(--muted); font-size: 1rem; }

.game-hero { position: relative; background: var(--night); border-bottom: 1px solid var(--line); }
.game-hero > img { width: 100%; aspect-ratio: 3840 / 1240; object-fit: cover; opacity: 0.9; }
.game-hero .over { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, transparent 55%, var(--night)); }
.game-hero .over img { width: min(520px, 56vw); filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.7)); }

/* Sections */
section { padding: clamp(40px, 7vw, 72px) 0; }
section + section { border-top: 1px solid var(--line); }
.lead { font-size: 1.3rem; color: var(--ivory); max-width: 46em; }
.narrow { max-width: 46em; }
.grid2 { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 820px) { .grid2 { grid-template-columns: 1.1fr 1fr; } }
.grid3 { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: linear-gradient(180deg, var(--walnut-2), var(--walnut));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.card h3 { margin-bottom: 0.3em; }
.card p:last-child { margin-bottom: 0; }
.frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--walnut); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 8px;
  font: inherit; font-weight: 700; text-decoration: none; letter-spacing: 0.02em;
  background: linear-gradient(180deg, var(--brass-2), var(--brass)); color: var(--night); border: 1px solid #8a6a26;
}
.btn:hover { color: var(--night); filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ivory); border-color: var(--brass); }
.btn.ghost:hover { background: rgba(201, 162, 74, 0.12); color: var(--ivory); }
.btn[aria-disabled="true"] { background: var(--walnut-2); color: var(--muted); border-color: var(--line); cursor: default; filter: none; }
.note { color: var(--muted); font-size: 1rem; }

/* Media */
.trailer { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; }
.trailer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.trailer p { position: relative; color: var(--ivory); font-size: 1.4rem; font-style: italic; margin: 0; padding: 0 16px; }
.clips { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .clips { grid-template-columns: repeat(3, 1fr); } }
.clips figure { margin: 0; }
.clips figcaption { font-size: 1rem; color: var(--muted); padding: 8px 2px 0; }
.shots { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .shots { grid-template-columns: repeat(3, 1fr); } }
.shots a { display: block; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.shots a:hover { border-color: var(--brass); }
.shots img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }

ul.feats { padding-left: 1.1em; }
ul.feats li { margin-bottom: 0.35em; }
ul.feats li::marker { color: var(--brass); }

/* Fact sheet */
table.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.facts th { color: var(--ivory); width: 34%; font-weight: 700; }
@media (max-width: 560px) {
  .facts th, .facts td { display: block; width: auto; padding: 4px 0; border: 0; }
  .facts tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); }
}
.dl { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.dl a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; background: var(--walnut); }
.dl a:hover { border-color: var(--brass); }
.dl small { color: var(--muted); white-space: nowrap; }
blockquote { margin: 0; padding: 14px 18px; border-left: 3px solid var(--brass); background: var(--walnut); border-radius: 0 8px 8px 0; }
.logos { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .logos { grid-template-columns: 2fr 1.3fr 1fr; } }
.logos .card { display: grid; place-items: center; min-height: 180px; }
.logos img { max-height: 140px; width: auto; }
.mail { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 700; word-break: break-all; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 0.95rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; }
.site-foot img { height: 28px; width: auto; opacity: 0.8; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-foot a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
