/* Nervous Owl Studio — one stylesheet, no framework.
   Palette carried over from the game (components/ui_kit.gd PALETTE) so the
   studio site and Idle Steam Foundry look like the same workshop. */

:root {
  --soot: #12100e;
  --panel: #221b17;
  --panel-hi: #2c231d;
  --line: #3d322a;
  --brass: #d9a441;
  --brass-bright: #f2c96b;
  --copper: #b46a3c;
  --verdigris: #5c9c86;
  --cream: #f4e7cd;
  --muted: #a08e78;
  --burgundy: #8e3434;
  --ink: #0a0807;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wide: 62rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background:
    radial-gradient(90rem 40rem at 50% -10rem, rgba(217, 164, 65, 0.10), transparent 60%),
    radial-gradient(60rem 30rem at 100% 100%, rgba(92, 156, 134, 0.06), transparent 60%),
    var(--soot);
  color: var(--cream);
  font: 17px/1.65 var(--sans);
  padding-bottom: 0;
}

a { color: var(--brass-bright); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cream); }
:focus-visible { outline: 2px solid var(--brass-bright); outline-offset: 3px; border-radius: 3px; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */

header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(18, 16, 14, 0.86);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 20;
}

header.site .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.2px;
}
.brand:hover { color: var(--cream); }
.brand svg { display: block; flex: none; }
.brand span.small { display: block; font-family: var(--sans); font-size: 11px;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }

nav.site { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
nav.site a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.3px;
  padding: 8px 10px;
  border-radius: 8px;
}
nav.site a:hover { color: var(--cream); background: var(--panel); }
nav.site a[aria-current="page"] { color: var(--brass-bright); }

/* ---------- type ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(30px, 6vw, 46px); letter-spacing: -0.4px; }
h2 { font-size: clamp(22px, 3.4vw, 28px); margin-top: 44px; }
h3 { font-size: 19px; }
p { margin: 0 0 16px; color: #e8dcc6; }
.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 46ch; }
.eyebrow {
  font-size: 11px; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--brass); margin: 0 0 10px; font-weight: 600;
}
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- hero ---------- */

.hero { padding: 64px 0 40px; }
.hero .lede { max-width: 52ch; }

.hero-game {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: center;
  padding: 48px 0 24px;
}
.hero-game img.feature { width: 100%; height: auto; border-radius: 14px;
  border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }

/* ---------- components ---------- */

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: 13px; color: var(--muted);
  background: var(--panel);
}
.pill b { color: var(--brass-bright); font-weight: 600; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--verdigris); }
.dot.wait { background: var(--brass); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 10px; border: 1px solid var(--brass);
  background: linear-gradient(180deg, #2a211a, #1c1613);
  color: var(--brass-bright); text-decoration: none;
  font-size: 16px; font-weight: 600; letter-spacing: 0.2px;
}
.btn:hover { color: var(--cream); border-color: var(--brass-bright); }
.btn.solid {
  background: linear-gradient(180deg, var(--brass-bright), var(--brass));
  border-color: #8a6a26; color: #201709;
}
.btn.solid:hover { color: var(--ink); }
.btn.ghost { border-color: var(--line); color: var(--muted); background: transparent; }
.btn.ghost:hover { color: var(--cream); border-color: var(--muted); }
.btn.soon { cursor: default; opacity: 0.75; }
.btn.soon:hover { color: var(--brass-bright); border-color: var(--brass); }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.grid { display: grid; gap: 18px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.rule { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

/* ---------- game page ---------- */

.game-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; }
.game-head img.icon { width: 104px; height: 104px; border-radius: 22px;
  border: 1px solid var(--line); }
.game-head h1 { margin-bottom: 6px; }
.game-head .lede { margin-bottom: 0; }

.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr);
  gap: 16px; overflow-x: auto; padding: 4px 4px 18px;
  scrollbar-color: var(--brass) var(--panel);
}
.shots figure { margin: 0; }
.shots img {
  width: 100%; height: auto; display: block; border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.shots figcaption { font-size: 13px; color: var(--muted); padding-top: 8px; }

.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.features li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.features li::before {
  content: ""; width: 12px; height: 12px; margin-top: 6px; border-radius: 3px;
  background: var(--brass); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.35);
  transform: rotate(45deg);
}
.features b { color: var(--cream); }
.features span { color: var(--muted); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps li { counter-increment: step; position: relative; padding-left: 46px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--brass); color: var(--brass-bright);
  display: grid; place-items: center; font-family: var(--serif); font-size: 16px;
}

/* ---------- faq ---------- */

details.faq {
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); padding: 0 18px; margin-bottom: 10px;
}
details.faq summary {
  cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--cream);
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--brass); font-size: 20px; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq .body { padding: 0 0 16px; color: #e2d6c0; }
details.faq .body p:last-child { margin-bottom: 0; }

/* ---------- prose (privacy, generated) ---------- */

.prose { max-width: 46rem; padding: 40px 0 72px; }
.prose h1 { margin-top: 0; }
.prose h2 { font-size: 23px; margin-top: 40px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; color: #e8dcc6; }
.prose li b, .prose p b { color: var(--cream); }
.prose code {
  font-family: var(--mono); font-size: 0.9em; color: var(--brass-bright);
  background: var(--ink); border: 1px solid var(--line); border-radius: 5px;
  padding: 1px 5px;
}
.prose .meta {
  border-left: 3px solid var(--brass); padding: 2px 0 2px 14px;
  color: var(--muted); margin-bottom: 28px;
}

/* ---------- footer ---------- */

footer.site { border-top: 1px solid var(--line); margin-top: 72px; padding: 32px 0 48px; }
footer.site .wrap { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
footer.site p { margin: 0; color: var(--muted); font-size: 14px; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
footer.site nav a:hover { color: var(--cream); }

/* ---------- small screens ---------- */

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .hero { padding: 44px 0 28px; }
  .hero-game { grid-template-columns: 1fr; gap: 24px; }
  .hero-game .art { order: -1; }
  .game-head { grid-template-columns: 76px minmax(0, 1fr); gap: 16px; }
  .game-head img.icon { width: 76px; height: 76px; border-radius: 16px; }
  .shots { grid-auto-columns: 74%; }
  h2 { margin-top: 36px; }
}

@media (prefers-reduced-motion: no-preference) {
  a, .btn { transition: color 120ms ease, border-color 120ms ease, background 120ms ease; }
}
