/* Helsinki Online site. Palette and type follow the in-game start menu (bird-web src/ui/menu/start-menu.css):
   dark ink, cream text, gold accent, Fraunces for headings and DM Sans for text. */

*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --ink: #0e0c09;
  --ink-2: #16130e;
  --ink-3: #1f1b14;
  --cream: #f0e8d6;
  --cream-dim: rgba(240, 232, 214, 0.72);
  --cream-faint: rgba(240, 232, 214, 0.45);
  --gold: #deb868;
  --gold-hi: #f6d486;
  --line: rgba(222, 184, 104, 0.28);
  --radius: 10px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--cream);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }

a { color: var(--gold-hi); text-underline-offset: 3px; }
a:hover { color: var(--cream); }

:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  padding: 0.75rem 1rem; background: var(--gold); color: var(--ink); font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

#wrap { min-height: 100vh; display: flex; flex-direction: column; }
#main { flex: 1; }

/* Header: transparent over the hero on the home page, solid on subpages. */
.desktop-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 12, 9, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(240, 232, 214, 0.08);
}
.home .desktop-header {
  position: absolute; left: 0; right: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom: 0;
}

#header_container {
  max-width: var(--wrap); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

#logo {
  color: var(--cream); text-decoration: none;
  font: 600 20px/1 var(--font-head); letter-spacing: 0.01em;
}

#menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 22px; }
#menu a { color: var(--cream-dim); text-decoration: none; font-weight: 500; font-size: 15px; }
#menu a:hover { color: var(--cream); }
#menu a.menu-cta {
  color: var(--ink); background: var(--gold); padding: 8px 14px; border-radius: 999px; font-weight: 600;
}
#menu a.menu-cta:hover { background: var(--gold-hi); }

#menu_toggle {
  display: none; background: none; border: 1px solid rgba(240, 232, 214, 0.25); color: var(--cream);
  font: 500 15px var(--font-body); padding: 7px 12px; border-radius: 8px; cursor: pointer;
}

@media (max-width: 720px) {
  #menu_toggle { display: block; }
  #menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-2); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px;
  }
  #menu.open { display: flex; }
  #menu li a { display: block; padding: 12px 0; }
  #menu a.menu-cta { text-align: center; margin-top: 8px; }
}

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; overflow: hidden; text-align: center;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(14, 12, 9, 0.15) 0%, rgba(14, 12, 9, 0.55) 70%),
    linear-gradient(rgba(14, 12, 9, 0) 55%, var(--ink) 100%);
}
.hero-inner { position: relative; padding: 110px var(--gutter) 80px; max-width: 760px; }
.hero-logo {
  width: min(560px, 82vw); height: auto; margin: 0 auto;
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.45));
}
.hero-tagline {
  margin: 18px 0 0; font: 500 clamp(20px, 3.2vw, 28px)/1.3 var(--font-head);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}
.launch-badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 22px 0 0;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(14, 12, 9, 0.6); color: var(--gold-hi); font-weight: 600; font-size: 15px; letter-spacing: 0.02em;
}
.launch-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold-hi);
  box-shadow: 0 0 0 0 rgba(246, 212, 134, 0.6); animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(246, 212, 134, 0); }
  100% { box-shadow: 0 0 0 0 rgba(246, 212, 134, 0); }
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.hero-note { margin: 18px 0 0; color: var(--cream-dim); font-size: 14px; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7); }

@media (prefers-reduced-motion: reduce) {
  .launch-dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* Buttons */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px; text-decoration: none;
  font: 600 16px/1 var(--font-body); transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-hi); color: var(--ink); }
.btn-ghost { color: var(--cream); border: 1px solid rgba(240, 232, 214, 0.4); background: rgba(14, 12, 9, 0.35); }
.btn-ghost:hover { border-color: var(--cream); color: var(--cream); }

/* Sections */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.container { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.small { font-size: 15px; }

h2 {
  margin: 0 0 16px; font: 600 clamp(28px, 4.4vw, 42px)/1.15 var(--font-head); letter-spacing: -0.01em;
}
h3 { margin: 0 0 6px; font: 600 21px/1.25 var(--font-head); }
.eyebrow {
  margin: 0 0 12px; color: var(--gold); font-weight: 600; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
}
.lead { margin: 0; color: var(--cream-dim); font-size: clamp(17px, 2vw, 19px); }

.intro { text-align: center; padding-top: clamp(40px, 6vw, 64px); }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feature {
  background: var(--ink-2); border: 1px solid rgba(240, 232, 214, 0.08); border-radius: var(--radius); overflow: hidden;
}
.feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature-text { padding: 18px 20px 22px; }
.feature-text p { margin: 0; color: var(--cream-dim); }
@media (max-width: 720px) { .feature-grid { grid-template-columns: 1fr; } }

/* Trailer */
.trailer { background: var(--ink-2); text-align: center; }
.video-frame {
  margin-top: 8px; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(240, 232, 214, 0.1); background: #000;
}
.video-frame iframe, .yt-lite { width: 100%; height: 100%; border: 0; display: block; }
.yt-lite { position: relative; padding: 0; background: #000; cursor: pointer; }
.yt-lite img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.2s; }
.yt-lite:hover img { opacity: 1; }
.yt-play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-radius: 50%; background: rgba(14, 12, 9, 0.75); border: 2px solid var(--gold-hi);
}
.yt-play::after {
  content: ""; position: absolute; left: 30px; top: 22px;
  border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent var(--gold-hi);
}

/* Editions */
.edition-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 36px 0 22px; }
.edition {
  position: relative; background: var(--ink-2); border: 1px solid rgba(240, 232, 214, 0.1);
  border-radius: var(--radius); padding: 26px 24px;
}
.edition.featured { border-color: var(--gold); background: var(--ink-3); }
.edition-tag {
  position: absolute; top: -12px; left: 24px; margin: 0; padding: 3px 10px; border-radius: 999px;
  background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
}
.price { margin: 4px 0 16px; font: 600 30px/1.1 var(--font-head); color: var(--gold-hi); }
.price span { font: 500 15px var(--font-body); color: var(--cream-dim); }
.edition ul { margin: 0; padding: 0; list-style: none; }
.edition li { padding: 7px 0 7px 24px; position: relative; color: var(--cream-dim); border-top: 1px solid rgba(240, 232, 214, 0.07); }
.edition li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
@media (max-width: 860px) { .edition-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; } }

/* Launch */
.launch { background: radial-gradient(ellipse at top, var(--ink-3), var(--ink) 70%); }
.maker { margin: 34px 0 10px; color: var(--cream-faint); font-size: 15px; }
.social { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; }
.social a { color: var(--cream-dim); text-decoration: none; font-weight: 500; font-size: 15px; }
.social a:hover { color: var(--gold-hi); }

/* Footer */
.legal-footer {
  padding: 28px var(--gutter) 34px; border-top: 1px solid rgba(240, 232, 214, 0.08);
  color: var(--cream-faint); font-size: 13px; line-height: 1.7; text-align: center;
}
.legal-footer p { margin: 0 0 4px; }
.legal-footer a { color: var(--cream-dim); }

/* Subpages: pricing, terms, refund, privacy, attributions */
.attribution-page { max-width: 820px; margin: 0 auto; padding: clamp(32px, 6vw, 64px) var(--gutter) clamp(48px, 8vw, 88px); }
.attribution-back { margin: 0 0 28px; font-size: 15px; }
.attribution-back a { color: var(--cream-dim); }
.attribution-page h1 { margin: 0 0 8px; font: 600 clamp(30px, 5vw, 44px)/1.15 var(--font-head); text-transform: none; }
.page-updated { margin: 0 0 36px; color: var(--cream-faint); font-size: 14px; }
.attribution-block { margin-bottom: 30px; }
.attribution-block h2 { margin: 0 0 10px; font: 600 21px/1.3 var(--font-head); color: var(--gold-hi); }
.attribution-block p, .attribution-block ul { margin: 0 0 12px; color: var(--cream-dim); }
.attribution-block ul { padding-left: 1.2em; }
.attribution-block li { margin-bottom: 6px; }
.attribution-block p:last-child { margin-bottom: 0; }

.plan-table-wrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid rgba(240, 232, 214, 0.1); border-radius: var(--radius); }
.plan-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.plan-table th, .plan-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(240, 232, 214, 0.07); }
.plan-table thead th { color: var(--gold-hi); font: 600 17px var(--font-head); background: var(--ink-2); }
.plan-table tbody th { color: var(--cream-faint); font-weight: 500; white-space: nowrap; }
.plan-table td { color: var(--cream-dim); }
.plan-table tr:last-child th, .plan-table tr:last-child td { border-bottom: 0; }
