/* Okuta Labs site: home, support, privacy, 404.
   Same type, colour logic and card shapes as the share-link pages
   (css/link-page.css), so moving between them feels like one site. */

[hidden] { display: none !important; }

* { box-sizing: border-box; }

:root {
  --font-display: 'Bricolage Grotesque', ui-rounded, system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Helvetica Neue', sans-serif;

  --bg: #f6f5f1;
  --surface: #ffffff;
  --soft: #edebe4;
  --ink: #16181d;
  --muted: #5a5f68;
  --line: #e3e1da;
  --accent: #1f6f66;
  --focus: #2f6fed;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1200px;
  --radius-card: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111316;
    --surface: #181b20;
    --soft: #1c1f25;
    --ink: #eeeff1;
    --muted: #a6abb4;
    --line: #2a2e35;
    --accent: #5fd3c4;
    --focus: #8ab4ff;
  }
}

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

main { flex-grow: 1; }

img { max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; flex-shrink: 0; }

.site-nav { display: flex; gap: clamp(16px, 3vw, 28px); }

.site-nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 0;
}
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }

/* Type */

.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  text-wrap: balance;
}

.lead {
  margin: 0;
  max-width: 640px;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--muted);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Page intro (hero on home, title on support/privacy) */

.intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-block: clamp(56px, 9vw, 120px) clamp(40px, 6vw, 88px);
}

.intro .display { font-size: clamp(44px, 7vw, 84px); }
.intro--page .display { font-size: clamp(40px, 5.4vw, 64px); }
.intro--page { padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 48px); }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; opacity: 0.88; }

/* Apple's badge: official artwork, unmodified, at least 40px tall,
   with clear space of a quarter of its height */
.store-badge { display: inline-flex; padding: 0; line-height: 0; }
.store-badge img { height: 44px; width: auto; }

/* Game cards */

.games {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: 28px;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* The name links to the game's page (/vg/ etc.) and stretches over the
   whole card; the badge and Support links sit above it */
.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px var(--line), 0 16px 36px rgba(0, 0, 0, 0.1);
}

.game-card__link {
  color: inherit;
  text-decoration: none;
}

.game-card__link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

/* Ring the whole card, not just the name */
.game-card__link:focus-visible { outline: none; }

.game-card__link:focus-visible::after {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}

@media (prefers-reduced-motion: reduce) {
  .game-card, .game-card:hover { transition: none; transform: none; }
}

.game-card__band {
  height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--band);
}

.game-card__icon {
  width: 96px;
  height: 96px;
  border-radius: 23%;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.game-card__body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 24px 26px;
}

.game-card__kind {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.game-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.game-card__blurb {
  flex-grow: 1;
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

.game-card__actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 20px;
  margin-top: 14px;
}

.game-card__actions a:not(.store-badge) { font-size: 15px; font-weight: 600; }

/* About / contact panel */

.panel {
  margin-block: clamp(72px, 10vw, 120px) clamp(56px, 8vw, 96px);
  padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 64px);
  border-radius: 28px;
  background: var(--soft);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(24px, 5vw, 64px);
}

.panel__quote {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.panel__contact {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}

.panel__contact p { margin: 0; color: var(--muted); }
.panel__contact a { font-size: clamp(19px, 2vw, 22px); font-weight: 700; }

/* Support */

.support-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  padding-bottom: clamp(56px, 8vw, 96px);
}

.app-rows { display: flex; flex-direction: column; gap: 14px; }

.app-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 18px;
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}

.app-row__icon {
  width: 60px;
  height: 60px;
  border-radius: 23%;
  box-shadow: 0 0 0 1px var(--line);
}

.app-row__text { flex: 1 1 140px; display: flex; flex-direction: column; }
.app-row__name { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.3; }
.app-row__kind { font-size: 15px; color: var(--muted); }

.cards { display: flex; flex-direction: column; gap: 16px; }

.card {
  padding: 28px 30px;
  border-radius: var(--radius-card);
  box-shadow: 0 0 0 1px var(--line);
}
.card--soft { background: var(--soft); box-shadow: none; }
.card h2 { margin: 0 0 8px; font-size: 21px; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }

.checklist { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checklist li { position: relative; padding-left: 28px; font-size: 16px; line-height: 1.5; }
.checklist li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 5px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* Privacy: contents alongside a readable column */

.legal {
  display: grid;
  grid-template-columns: 280px minmax(0, 680px);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
  padding-bottom: clamp(56px, 8vw, 96px);
}

.toc {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
}

.toc__title {
  margin: 0 0 8px;
  padding-inline: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc ol { margin: 0; padding: 0; list-style: none; }

.toc a {
  display: block;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
}
.toc a:hover { background: var(--soft); color: var(--ink); text-decoration: none; }

.prose { font-size: 17px; line-height: 1.7; }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  margin: 48px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 26px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.prose p, .prose ul, .prose ol, .prose address { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose address { font-style: normal; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .legal { grid-template-columns: minmax(0, 1fr); }
  .toc {
    position: static;
    max-height: none;
    padding: 20px 12px;
    border-radius: 20px;
    background: var(--soft);
  }
}

/* 404 */

.not-found {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding-block: 80px;
}
.not-found__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 8px; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 28px 36px;
  font-size: 14px;
  color: var(--muted);
}

.site-footer .wrap { display: flex; flex-direction: column; gap: 14px; }

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

.site-footer__legal { margin: 0; font-size: 12px; line-height: 1.5; max-width: 760px; }
