/* Otto Studios website styles.
   Layout: a black brand band (header and page heading) sits over a reading area that follows the
   visitor's light or dark setting. The thin vertical "mirror line" from the logo marks brand moments.
   No web fonts, trackers or third-party files: everything here is served from this site. */

:root {
  /* Brand (fixed in both themes) */
  --black: #141414;
  --brass: #B38B4D;
  --brass-light: #D9C49E;
  --ivory: #F5F1E8;

  /* Reading area, light */
  --bg: #F5F1E8;
  --surface: #FBF9F4;
  --fg: #1A1915;
  --muted: #5E574B;
  --rule: #DDD3C0;
  --link: #7A5A28;
  --chip-bg: #EAE1CC;
  --chip-fg: #4A3C22;

  /* Brand band */
  --band: #141414;
  --band-fg: #F5F1E8;
  --band-muted: #ABA393;
  --band-rule: #2D2A25;
  --band-surface: #1D1C19;

  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --page: 72rem;
  --narrow: 46rem;
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #181715;
    --surface: #201E1B;
    --fg: #EFEAE0;
    --muted: #A9A294;
    --rule: #35312B;
    --link: #D9C49E;
    --chip-bg: #2B2721;
    --chip-fg: #E3D5B6;
    --band: #0F0F0E;
    --band-rule: #2A2723;
    --band-surface: #1A1916;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #181715;
  --surface: #201E1B;
  --fg: #EFEAE0;
  --muted: #A9A294;
  --rule: #35312B;
  --link: #D9C49E;
  --chip-bg: #2B2721;
  --chip-fg: #E3D5B6;
  --band: #0F0F0E;
  --band-rule: #2A2723;
  --band-surface: #1A1916;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--band);
  z-index: 10;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
html { accent-color: var(--brass); caret-color: var(--brass); scrollbar-color: var(--rule) var(--bg); }
::selection { background: rgba(179, 139, 77, 0.32); }
.band ::selection { background: rgba(179, 139, 77, 0.5); color: var(--band-fg); }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; }
p { margin: 0; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--brass); color: var(--black); padding: 8px 14px; border-radius: 8px; z-index: 30; font-weight: 600;
}
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); }

.container {
  max-width: var(--page);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.container.narrow { max-width: calc(var(--narrow) + 40px); }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}
/* Breadcrumb on inner pages: a way back up, in plain sentence case */
.crumbs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 15px; color: var(--band-muted); }
.crumbs a { color: var(--brass-light); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { opacity: .55; }

/* ---------- Band and header ---------- */
.band { background: var(--band); color: var(--band-fg); }
.band a { color: var(--brass-light); }

.site-header { border-bottom: 1px solid var(--band-rule); }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 14px;
}
.brand { display: block; line-height: 0; }
.brand img { height: 44px; width: auto; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px clamp(16px, 3vw, 30px); margin: 0; padding: 0; }
.site-nav a {
  color: var(--band-fg); text-decoration: none;
  font-size: 15px; letter-spacing: 0.04em;
  padding-block: 6px; border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brass-light); border-bottom-color: var(--brass); }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 10px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.band .btn-brass, .btn-brass { background: var(--brass); color: var(--black); }
.band .btn-brass:hover, .btn-brass:hover { background: var(--brass-light); }
.band .btn-ghost, .btn-ghost { border: 1px solid #4A443A; color: var(--band-fg); }
.band .btn-ghost:hover, .btn-ghost:hover { border-color: var(--brass); color: var(--brass-light); }

/* ---------- Home hero ---------- */
.hero .container {
  display: grid;
  gap: 40px;
  padding-block: clamp(48px, 9vw, 104px) clamp(48px, 8vw, 92px);
  align-items: center;
}
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 {
  font-size: clamp(42px, 7.4vw, 82px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero h1 .brass { color: var(--brass); }
.lede { font-size: clamp(18px, 2vw, 20px); line-height: 1.55; color: var(--band-muted); max-width: 36rem; }
.lede strong { color: var(--band-fg); font-weight: 600; }

.mirror-line {
  display: none;
  width: 2px;
  align-self: stretch;
  background: linear-gradient(to bottom, transparent, rgba(245, 241, 232, 0.55) 50%, transparent);
}

/* The auto-play panel: a tiny idle game that runs while the page is open */
.idle {
  background: var(--band-surface);
  border: 1px solid var(--band-rule);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: grid;
  gap: 14px;
  min-width: 0;
}
.idle-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.idle-head .eyebrow { color: var(--brass-light); }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--band-muted); }
.live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 0 rgba(179, 139, 77, .6); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(179, 139, 77, .55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(179, 139, 77, 0); } }
@media (prefers-reduced-motion: reduce) { .live .dot { animation: none; } }
.idle dl { margin: 0; display: grid; gap: 0; }
.idle dl > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding-block: 11px; border-top: 1px solid var(--band-rule);
}
.idle dt { font-size: 15px; color: var(--band-muted); }
.idle dd {
  margin: 0; font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 22px; font-weight: 500; color: var(--band-fg); white-space: nowrap;
}
.idle dd.gold { color: var(--brass-light); }
.idle-note { font-size: 14px; line-height: 1.5; color: var(--band-muted); }
.idle-toast {
  font-size: 14px; line-height: 1.45; color: var(--black); background: var(--brass-light);
  border-radius: 8px; padding: 9px 12px;
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { display: grid; gap: 10px; margin-bottom: 36px; max-width: 40rem; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.1; font-weight: 750; letter-spacing: -0.02em; }
.section-head p { color: var(--muted); font-size: 18px; }

/* Game cards */
.games { display: grid; gap: 22px; }
.game-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px;
  align-items: start;
}
.app-icon {
  width: 104px; height: 104px;
  border-radius: 23%;
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 8px 22px -10px rgba(0,0,0,.45);
}
.app-icon.pixel { image-rendering: pixelated; }
.game-body { display: grid; gap: 12px; min-width: 0; }
.game-body h3 { font-size: 26px; line-height: 1.15; font-weight: 750; letter-spacing: -0.015em; }
.game-body h3 a { color: var(--fg); text-decoration: none; }
.game-body h3 a:hover { color: var(--link); }
.subtitle { color: var(--muted); font-size: 16px; margin-top: -6px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.chips li {
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  background: var(--chip-bg); color: var(--chip-fg);
  padding: 3px 10px; border-radius: 999px;
}
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--muted);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }
.game-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; font-weight: 600; padding-top: 4px; }

/* Studio section */
.studio { display: grid; gap: 36px; }
.studio-copy { display: grid; gap: 16px; max-width: 38rem; }
.studio-copy p:not(.eyebrow) { font-size: 18px; }
.studio-title { font-size: clamp(30px, 4vw, 42px); line-height: 1.1; font-weight: 750; letter-spacing: -0.02em; }
.studio-copy .pun { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 28px); line-height: 1.3; font-weight: 650; letter-spacing: -0.01em; }
.pun .say { color: var(--link); }
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.principles li { padding-block: 18px; border-top: 1px solid var(--rule); display: grid; gap: 4px; }
.principles li:last-child { border-bottom: 1px solid var(--rule); }
.principles strong { font-family: var(--font-display); font-size: 18px; }
.principles span { color: var(--muted); }

/* Facts strip */
.facts { display: grid; gap: 0; margin: 0; }
.facts > div { display: grid; gap: 2px; padding-block: 12px; border-top: 1px solid var(--rule); }
.facts dt { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-size: 17px; }

/* Contact */
.contact-grid { display: grid; gap: 16px; }
.contact-card { border-top: 1px solid var(--rule); padding-top: 18px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.contact-card h3 { font-size: 18px; }
.contact-card p { color: var(--muted); font-size: 15px; }
.address { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; padding-top: 4px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero .container { padding-block: clamp(40px, 7vw, 72px) clamp(36px, 6vw, 60px); display: grid; gap: 14px; }
.page-hero h1 { font-size: clamp(36px, 6vw, 58px); line-height: 1.05; font-weight: 800; letter-spacing: -0.025em; }
.page-hero .updated { font-size: 15px; color: var(--band-muted); font-variant-numeric: tabular-nums; }
.langs { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; }
.langs a { color: var(--brass-light); }
.langs a[aria-current] { color: var(--band-fg); text-decoration: none; font-weight: 600; }

.game-hero .container { grid-template-columns: minmax(0, 1fr); align-items: center; gap: 26px; }
.game-hero .app-icon { width: 128px; height: 128px; box-shadow: 0 10px 30px -12px rgba(0,0,0,.8); }
.game-hero-text { display: grid; gap: 12px; min-width: 0; }
.game-hero .subtitle { color: var(--band-muted); font-size: 20px; margin-top: 0; }
.game-hero .chips li { background: #2A2620; color: #E3D5B6; }
.game-hero .status { color: var(--band-muted); }

/* Game page body */
.game-layout { display: grid; gap: 40px; padding-block: clamp(44px, 7vw, 80px); }
.game-main { display: grid; gap: 34px; min-width: 0; }
.game-intro { font-size: 20px; line-height: 1.55; max-width: 40rem; }
.feature-grid { display: grid; gap: 28px; }
.feature { display: grid; gap: 8px; align-content: start; }
.feature h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.feature ul { margin: 0; padding-left: 1.15em; display: grid; gap: 6px; }
.feature li { max-width: 60ch; }
.note { font-size: 15px; color: var(--muted); max-width: 40rem; }
.help-card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 22px; display: grid; gap: 16px; align-self: start;
}
.help-card h2 { font-size: 20px; }
.help-card dl { margin: 0; display: grid; gap: 14px; }
.help-card dt { font-weight: 600; }
.help-card dd { margin: 2px 0 0; font-size: 15px; color: var(--muted); }
.help-card dd a { font-weight: 600; }
.help-card .sep { color: var(--muted); padding-inline: 4px; }

/* ---------- Long-form documents (privacy, support) ---------- */
.doc { padding-block: clamp(36px, 6vw, 64px) clamp(56px, 8vw, 96px); }
.doc p, .doc li { max-width: 66ch; }
.doc p { margin: 0 0 12px; }
.doc ul, .doc ol { padding-left: 1.2em; }
.doc-main h2 { font-size: 24px; line-height: 1.25; margin: 0 0 10px; font-weight: 700; letter-spacing: -0.01em; }
.doc-main h3 { font-size: 18px; margin: 22px 0 6px; }
.doc-main section { padding-top: 30px; border-top: 1px solid var(--rule); margin-top: 30px; }
.doc .short {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 22px 24px; display: grid; gap: 8px;
}
.doc .short h2 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--link); }
.doc .short ul { margin: 0; display: grid; gap: 8px; }
.doc nav.toc { margin: 32px 0 8px; }
.doc nav.toc h2 { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; font-weight: 600; }
.doc nav.toc ol { margin: 0; padding-left: 1.4em; columns: 2 15rem; column-gap: 2rem; font-size: 16px; }
.doc nav.toc li { break-inside: avoid; padding-block: 2px; }
.doc .path {
  font-family: var(--font-mono); font-size: 14px; background: var(--surface);
  border: 1px solid var(--rule); border-radius: 5px; padding: 1px 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; line-height: 1.9;
}
.doc .table-wrap { overflow-x: auto; margin: 12px 0 18px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.doc table { border-collapse: collapse; width: 100%; min-width: 30rem; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--rule); }
.doc tr:last-child td { border-bottom: 0; }
.doc th { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.doc td:first-child { font-weight: 600; white-space: nowrap; }
.doc .rw { font-family: var(--font-mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.doc .contact {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 20px 22px; display: grid; gap: 6px;
}
.doc .contact p { margin: 0; }
.doc .contact .email, .doc .email { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.doc details {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 12px;
  padding: 0 18px; margin: 10px 0;
}
.doc details[open] { padding-bottom: 8px; }
.doc summary { cursor: pointer; font-weight: 600; padding: 14px 0; }
.doc details p, .doc details ul { margin-top: 0; }
.doc .tm { margin-top: 40px; font-size: 13px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--band-rule); }
.site-footer .container { display: grid; gap: 32px; padding-block: 48px 40px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 52px; height: 52px; }
.footer-brand strong { display: block; font-size: 16px; }
.footer-brand span { font-size: 14px; color: var(--band-muted); }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 24px; }
.footer-cols h2 { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); margin-bottom: 10px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.footer-cols a { color: var(--band-fg); text-decoration: none; }
.footer-cols a:hover { color: var(--brass-light); text-decoration: underline; }
.legal { font-size: 13px; color: var(--band-muted); display: grid; gap: 4px; padding-top: 20px; border-top: 1px solid var(--band-rule); }

/* ---------- Wider screens ---------- */
@media (min-width: 720px) {
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-hero .container { grid-template-columns: auto minmax(0, 1fr); }
  .site-footer .container { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; }
  .legal { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .hero .container { grid-template-columns: minmax(0, 1.35fr) auto minmax(0, 0.85fr); gap: 48px; }
  .mirror-line { display: block; }
  .studio { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
  .game-layout { grid-template-columns: minmax(0, 1fr) 20rem; gap: 56px; }
  .help-card { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 24px); }
}
@media (max-width: 420px) {
  .game-card { grid-template-columns: minmax(0, 1fr); }
  .app-icon { width: 88px; height: 88px; }
  .site-nav a { font-size: 14px; }
  .brand img { height: 38px; }
}
