/* Vidrian Games — light, minimal, no external fonts or requests. */
:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --ink: #14201f;
  --muted: #5d6b69;
  --line: #e4e8e6;
  --accent: #0e9384;
  --accent-dark: #0a7468;
  --accent-soft: #e6f6f3;
  --radius: 14px;
  --max: 1080px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 16px; flex-wrap: wrap; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--ink); }

/* Typography */
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 750; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
.lede { font-size: 1.25rem; color: var(--muted); max-width: 40em; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 650; color: var(--accent-dark); margin-bottom: 14px; }
.muted { color: var(--muted); }

/* Sections */
.hero { padding: clamp(56px, 10vw, 112px) 0 clamp(40px, 6vw, 72px); }
.section { padding-block: clamp(36px, 6vw, 64px); }
.section + .section { border-top: 1px solid var(--line); }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 600; text-decoration: none;
  border: 2px solid var(--accent); cursor: pointer; font: inherit; font-weight: 600;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--accent-dark); }
.btn.ghost:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn[aria-disabled="true"] { background: #e9eceb; border-color: #e9eceb; color: var(--muted); cursor: default; pointer-events: none; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* Game card */
.game-card {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.game-card .art { background: #0b0f0e; }
.game-card .art img { width: 100%; height: 100%; object-fit: cover; }
.game-card .body { padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; justify-content: center; }
.game-card h3 { font-size: 1.7rem; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 16px; padding: 0; list-style: none; }
.tags li { background: var(--accent-soft); color: var(--accent-dark); font-size: .82rem; font-weight: 600; padding: 3px 12px; border-radius: 999px; }
.next-card {
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 28px;
  color: var(--muted); margin-top: 20px;
}
.next-card strong { color: var(--ink); }

/* Fact sheet */
.facts { display: grid; grid-template-columns: 180px 1fr; gap: 0; border-top: 1px solid var(--line); margin: 0 0 24px; }
.facts dt, .facts dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 650; color: var(--muted); }
.boiler { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px; }
.boiler h3 { margin-bottom: .4em; }
.boiler p:last-child { margin-bottom: 0; }
.assets { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.asset { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.asset img { background: var(--bg); border-radius: 8px; padding: 14px; margin-bottom: 12px; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Prose pages */
.prose { max-width: 42em; }
.prose h2 { margin-top: 1.6em; }
.todo { background: #fff6e0; border: 1px solid #f0d58a; padding: 2px 8px; border-radius: 6px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 32px 0 48px; color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent-dark); }

@media (max-width: 760px) {
  .game-card { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 0; }
  .nav { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- Design decisions from studio sites (Supergiant, Kitfox, Team Cherry) ---- */

/* Header: minimal nav + social icons at the right (Team Cherry) */
.nav { margin-left: auto; }
.social { display: flex; gap: 14px; align-items: center; }
.social a { display: inline-flex; color: var(--muted); }
.social a:hover { color: var(--accent-dark); }
.social svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Featured game band in the game's own palette (Supergiant) */
.feature { position: relative; background: #0b0f0e; color: #f3f1e8; overflow: hidden; padding-block: clamp(40px, 7vw, 88px); }
.feature-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: .5; /* TEMPORARY photo, set from js/site.js; replace with key art */
}
.feature::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, #0b0f0e 30%, rgba(11,15,14,.55) 100%);
}
.feature-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.feature h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: .3em; }
.feature p { color: #cfd6d3; }
.feature .eyebrow.on-dark { color: #5fd0c2; }
.feature .tags.on-dark li { background: rgba(95, 208, 194, .16); color: #8fe3d8; }
.feature-art img { border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0,0,0,.55); }
.btn.ghost.on-dark { color: #f3f1e8; border-color: rgba(243,241,232,.5); }
.btn.ghost.on-dark:hover { background: rgba(243,241,232,.12); color: #fff; }

/* Capsule grid: the catalogue as art (Kitfox) */
.capsules { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; margin-top: 20px; }
.capsule { display: block; text-decoration: none; color: var(--ink); }
.capsule img { width: 100%; aspect-ratio: 920 / 430; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); background: var(--line); transition: transform .2s ease, box-shadow .2s ease; }
a.capsule:hover img { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20,32,31,.15); }
.capsule-name { display: block; font-weight: 650; margin-top: 10px; }
.capsule-meta { display: block; color: var(--muted); font-size: .9rem; }
.teaser img { filter: grayscale(1) brightness(.85); }

@media (max-width: 760px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature::before { background: rgba(11,15,14,.8); }
  .nav { margin-left: 0; order: 3; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .capsule img { transition: none; } }

[hidden] { display: none !important; }

.capsule img, .feature-art img, .asset img, .game-card .art img { height: auto; }
.game-card .art img { height: 100%; }
