/* Boxshibe website — one stylesheet shared by every page. No build step, no external requests. */

:root {
  --bg: #fff8f0;
  --surface: #ffffff;
  --surface-2: #fdf0e1;
  --border: #ecd9c3;
  --text: #3a2a1e;
  --muted: #76604f;
  --accent: #e0703a;
  --accent-ink: #ffffff;
  --link: #b8501f;
  --shadow: 0 6px 24px rgba(90, 55, 25, 0.10);
  --radius: 18px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1411;
    --surface: #231b16;
    --surface-2: #2b211b;
    --border: #3d2f26;
    --text: #f4e9df;
    --muted: #c3ae9c;
    --accent: #f08a52;
    --accent-ink: #1a1411;
    --link: #ffa877;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 20px; }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; font-weight: 600; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero-art { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.hero-copy { padding-top: 36px; padding-bottom: 44px; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
.hero p { font-size: 19px; color: var(--muted); margin: 0 0 22px; max-width: 680px; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 700;
  background: var(--accent); color: var(--accent-ink);
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); margin-left: 8px; }

/* Sections */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--border); }
h1, h2, h3 { line-height: 1.25; }
h2 { font-size: 30px; margin: 0 0 18px; letter-spacing: -0.01em; }
h3 { font-size: 21px; margin: 0 0 8px; }
.lead { font-size: 19px; color: var(--muted); max-width: 760px; }
p, li { color: var(--muted); }
strong { color: var(--text); }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 24px; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card p:first-child { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* Game card */
.game { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.game-icon { width: 120px; height: 120px; border-radius: 26px; box-shadow: var(--shadow); margin-bottom: 14px; }
.game-logo { width: 100%; max-width: 280px; }
.badge {
  display: inline-block; font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: 999px;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border); margin: 6px 6px 0 0;
}
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 26px; }
.shots figure { margin: 0; }
.shots img { border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow); width: 100%; }
.shots figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 6px; }

/* Contact */
.contact dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.contact dt { font-weight: 700; color: var(--text); }
.contact dd { margin: 0; color: var(--muted); }

/* Legal / document pages */
.doc-head { padding-top: 44px; padding-bottom: 8px; }
.doc-head h1 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 6px; }
.doc-head .meta { color: var(--muted); font-size: 15px; margin: 0; }
.doc { padding-top: 20px; padding-bottom: 64px; }
.doc h2 { font-size: 22px; margin: 34px 0 10px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }
.steps li { margin: 8px 0; }
kbd, code {
  font-family: ui-monospace, Consolas, monospace; font-size: 0.92em;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px;
  color: var(--text);
}
details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; margin: 10px 0; }
summary { font-weight: 700; cursor: pointer; color: var(--text); }
details p { margin: 10px 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface-2); padding: 28px 0; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 40px 0; }
  .game { grid-template-columns: 1fr; }
  .hero-art { aspect-ratio: 4 / 3; }
  .btn.secondary { margin: 10px 0 0; }
}
