/* ==========================================================================
   Sneaky Sloth — shared web styles
   Palette and type mirrored from the app (components/theme.ts) so the site
   and the game feel like one product: Wendy One for display type, warm cream
   backgrounds, cocoa text, plum accent taken from the logo outline.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Wendy+One&family=Nunito:wght@400;600;700&display=swap");

:root {
  --bg: #fff9f3;
  --bg-card: #fffbf7;
  --ink: #3d2415;
  --ink-soft: #6b4226;
  --ink-muted: #9c8b7a;
  --border: #e8ddd0;
  --plum: #6e2c8f;
  --tan: #c4a265;
  --gold: #d4a24c;
  --shadow-sm: 0 2px 6px rgba(61, 36, 21, 0.06);
  --shadow-md: 0 6px 20px rgba(61, 36, 21, 0.1);
  --radius: 18px;
  --maxw: 780px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Display type — Wendy One is the app's font. Never use it for body copy:
   it's a heavy display face and long paragraphs become unreadable. */
h1, h2, h3, .display {
  font-family: "Wendy One", Nunito, sans-serif;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(30px, 6vw, 44px); margin: 0 0 10px; }
h2 { font-size: clamp(22px, 4vw, 28px); margin: 40px 0 12px; }
h3 { font-size: 20px; margin: 0 0 6px; }

p, li { margin: 0 0 14px; }
ul { padding-left: 22px; }

a { color: var(--plum); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
/* Content pages need breathing room under the header; the header's own wrap
   and the hero manage their own vertical rhythm, so scope this to main. */
main.wrap { padding-top: 34px; padding-bottom: 24px; }

/* ---------- Header ---------- */
.site-header {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Wendy One", sans-serif;
  /* Wendy One is wide — without clamping, the studio name wraps to two lines
     on a phone and the header loses its horizontal rhythm. */
  font-size: clamp(15px, 4vw, 19px);
  white-space: nowrap;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.site-nav { display: flex; gap: 16px; font-size: clamp(13px, 3.4vw, 15px); }
.site-nav a { color: var(--ink-soft); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 18px 0 8px; }
.hero-logo { width: min(280px, 72vw); height: auto; margin-bottom: 6px; }
.hero .tagline {
  font-size: clamp(17px, 3.4vw, 20px);
  color: var(--ink-soft);
  max-width: 30ch;
  margin: 0 auto 26px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 999px;
  background: var(--ink);
  color: #fffbf7;
  font-family: "Wendy One", sans-serif;
  font-size: 18px;
  box-shadow: var(--shadow-md);
}
.btn:hover { text-decoration: none; background: var(--ink-soft); }
.btn.secondary {
  background: transparent;
  color: var(--plum);
  border: 2px solid var(--border);
  box-shadow: none;
}

/* ---------- Cards & layout ---------- */
.card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 22px 0 8px;
}
.shots {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 26px 0;
}
.shots img {
  width: 100%;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.meta { color: var(--ink-muted); font-size: 14px; margin-bottom: 26px; }
.center { text-align: center; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 64px;
  padding: 26px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--ink-muted);
  font-size: 14px;
  text-align: center;
}
.site-footer a { color: var(--ink-soft); margin: 0 8px; font-weight: 600; }

/* ---------- Dark mode ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1410;
    --bg-card: #261c16;
    --ink: #f6ece0;
    --ink-soft: #d3bda6;
    --ink-muted: #a99381;
    --border: #3a2c22;
    --plum: #c98fe4;
  }
  .btn { background: #f6ece0; color: #2a1d14; }
  .btn:hover { background: #fff; }
}
