:root {
  color-scheme: dark;
  --night: #0c151f;
  --surface: #142330;
  --ivory: #f4e8d3;
  --muted: #c4b9a8;
  --gold: #f4b968;
  --line: #6b5742;
  background: var(--night);
  color: var(--ivory);
  font-family: system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0 auto; max-width: 73rem; padding: 0 clamp(1rem, 4vw, 3rem); }
a { color: var(--gold); text-underline-offset: 0.2em; }
a:hover { color: var(--ivory); }
summary, a { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.bar, footer { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; flex-wrap: wrap; padding: 1.25rem 0; }
.bar { border-bottom: 1px solid var(--line); }
.brand { color: var(--ivory); text-decoration: none; font: 700 1.35rem Georgia, serif; white-space: nowrap; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0.65rem 1rem; }
.languages { position: relative; }
.languages summary { cursor: pointer; border: 1px solid var(--line); border-radius: 8px; padding: 0.55rem 0.75rem; }
.languages ul { position: absolute; z-index: 1; right: 0; top: calc(100% + 0.25rem); width: min(14rem, 80vw); max-height: min(60vh, 23rem); overflow: auto; list-style: none; padding: 0.35rem; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.languages a { display: block; padding: 0.6rem 0.75rem; color: var(--ivory); text-decoration: none; }
.languages a:hover, .languages a[aria-current] { color: var(--gold); background: var(--night); }
.hero { display: grid; grid-template-columns: 1fr minmax(16rem, 0.85fr); align-items: center; gap: clamp(1.5rem, 5vw, 4rem); padding: clamp(2.5rem, 8vw, 6rem) 0; }
.app-icon { display: block; border: 1px solid var(--line); border-radius: 20%; }
h1, h2 { font-family: Georgia, serif; font-weight: 500; }
h1 { margin: 1.15rem 0; font-size: clamp(2.35rem, 7vw, 4.7rem); line-height: 1.04; overflow-wrap: anywhere; }
h1 span { display: block; margin-top: 0.4rem; color: var(--gold); font-size: 0.52em; }
p { line-height: 1.65; }
.hero p { font-size: 1.14rem; color: var(--muted); max-width: 34em; }
.hero .platforms, .kicker { color: var(--gold); }
.scene { width: 100%; height: clamp(19rem, 42vw, 36rem); object-fit: cover; object-position: 53% 50%; border: 1px solid var(--line); border-radius: 1.2rem; }
.policy { margin: 0 auto; max-width: 44rem; padding: 2.5rem 0 3rem; }
.policy h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
.policy h2 { margin: 2rem 0 0.55rem; font-size: 1.55rem; }
.policy p { margin: 0.55rem 0; }
time, footer { color: var(--muted); }
footer { border-top: 1px solid var(--line); font-size: 0.9rem; }
footer a { color: inherit; }

@media (max-width: 44rem) {
  .hero { grid-template-columns: 1fr; }
  .scene { height: min(82vw, 25rem); }
}

@media (max-width: 24rem) {
  .languages ul { right: auto; left: 0; }
}
