/* AyyVeVe Games – site styles. Colours follow the Huddlepaws design tokens (scripts/ui/tokens.gd). */

@font-face {
  font-family: "Fraunces Soft";
  src: url("/assets/fonts/fraunces-softbold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Recursive Casual";
  src: url("/assets/fonts/recursive-casual-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Recursive Casual";
  src: url("/assets/fonts/recursive-casual-extrabold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #FFF7F2;
  --surface: #FFFFFF;
  --surface-alt: #FBE9E0;
  --plum: #3B2A4A;
  --ink: #3B2A4A;
  --ink-soft: #76596F;
  --accent: #D1365C;
  --accent-shade: #A82745;
  --accent-ink: #B8304C;
  --on-accent: #FFF7F2;
  --peach: #FFAE97;
  --line: #EAD9D2;
  --focus: #2E85D5;
  --radius: 28px;
  --display: "Fraunces Soft", Georgia, "Times New Roman", serif;
  --body: "Recursive Casual", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1D1625;
    --surface: #2A2134;
    --surface-alt: #33283F;
    --plum: #33283F;
    --ink: #F7EEF4;
    --ink-soft: #C3AEC4;
    --accent-ink: #FF8AA2;
    --line: #4B3E59;
    --focus: #8CC4FF;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 600 1.0625rem/1.6 var(--body);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px;
}
.skip:focus { top: 12px; }

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

/* Header */
.site-head { padding: 20px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.25rem/1 var(--display); }
.brand img { width: 44px; height: 44px; }
.nav { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: inline-block; padding: 10px 14px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 800;
}
.nav a:hover { background: var(--surface-alt); }

/* Type */
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
.eyebrow {
  margin: 0 0 14px; color: var(--accent-ink);
  font-weight: 800; font-size: 0.85rem; letter-spacing: 0.32em; text-transform: uppercase;
}
.lead { font-size: clamp(1.2rem, 1rem + 1vw, 1.5rem); line-height: 1.45; max-width: 34ch; margin: 0; }
.muted { color: var(--ink-soft); }

/* Hero */
.hero { padding: clamp(24px, 6vw, 72px) 0 clamp(40px, 8vw, 96px); }
.hero .logo { width: min(100%, 620px); margin-bottom: clamp(20px, 4vw, 36px); }
.hero h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

section { padding: clamp(36px, 7vw, 80px) 0; }
.section-title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); margin-bottom: 28px; }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px 14px; border-radius: 999px;
  font: 800 1.05rem/1 var(--body); text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 5px 0 var(--accent-shade); }
.btn-primary:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--accent-shade); text-decoration: none; }
.btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { background: var(--surface-alt); }
.btn .arrow { font-family: system-ui, sans-serif; }

/* Game card (home) */
.game-card {
  display: grid; grid-template-columns: 1.25fr 1fr; align-items: stretch;
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 2px solid var(--line);
}
.game-card .shot { background: var(--surface-alt); }
.game-card .shot img { width: 100%; height: 100%; object-fit: cover; }
.game-card .body { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.game-card .game-logo { width: min(100%, 340px); margin-bottom: 18px; }
.game-card p { margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.tags li { background: var(--surface-alt); color: var(--ink); border-radius: 999px; padding: 6px 12px; font-size: 0.9rem; font-weight: 800; }

.soon {
  margin-top: 18px; padding: 20px 24px; border-radius: var(--radius);
  border: 2px dashed var(--line); color: var(--ink-soft);
}

/* Contact */
.contact {
  background: var(--plum); color: #FFF7F2; border-radius: var(--radius);
  padding: clamp(28px, 5vw, 56px);
}
.contact .eyebrow { color: var(--peach); }
.contact h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); margin-bottom: 14px; }
.contact p { margin: 0; max-width: 44ch; color: #F2E4EC; }
.mail {
  display: inline-block; margin-top: 22px; color: #FFF7F2;
  font: 700 clamp(1.25rem, 0.9rem + 1.8vw, 2rem)/1.2 var(--display);
  overflow-wrap: anywhere; text-decoration-color: var(--peach);
}
.mail:hover { color: #FFFFFF; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.socials a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 999px;
  color: #FFF7F2; text-decoration: none; font-weight: 800; box-shadow: inset 0 0 0 2px rgba(255, 247, 242, 0.45);
}
.socials a:hover { background: rgba(255, 247, 242, 0.12); }

/* Game page */
.game-hero { padding: clamp(20px, 5vw, 56px) 0 clamp(28px, 5vw, 56px); }
.game-hero .game-logo { width: min(100%, 560px); margin-bottom: 26px; }
.pitch { max-width: 58ch; font-size: 1.15rem; margin: 0; }
.pitch + .pitch { margin-top: 14px; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.shots figure { margin: 0; }
.shots img { border-radius: 20px; border: 2px solid var(--line); background: var(--surface-alt); }
.shots figcaption { margin-top: 10px; color: var(--ink-soft); font-size: 0.95rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.facts li { background: var(--surface); border: 2px solid var(--line); border-radius: 20px; padding: 18px 20px; }
.facts strong { display: block; font: 700 1.6rem/1.1 var(--display); color: var(--ink); }
.facts span { color: var(--ink-soft); }

/* Text pages (privacy) */
.prose { max-width: 680px; padding-bottom: 40px; }
.prose h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); margin: 12px 0 10px; }
.prose h2 { font-size: 1.4rem; margin: 32px 0 6px; }
.prose p { color: var(--ink-soft); margin: 0 0 12px; }
.prose .short { background: var(--surface); border: 2px solid var(--line); border-radius: 18px; padding: 14px 18px; color: var(--ink); }
.prose .updated { margin-top: 32px; font-size: 0.95rem; }

/* 404 */
.lost { padding: clamp(40px, 10vw, 120px) 0; text-align: center; }
.lost img { width: 150px; height: 150px; margin: 0 auto 22px; }
.lost h1 { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.6rem); margin-bottom: 12px; }
.lost p { margin: 0 auto; max-width: 36ch; }
.lost .btns { justify-content: center; }

/* Footer */
.site-foot { padding: 36px 0 44px; color: var(--ink-soft); font-size: 0.95rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; border-top: 2px solid var(--line); padding-top: 24px; }
.site-foot ul { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.site-foot a { color: var(--ink-soft); }

/* Small screens and short landscape phones */
@media (max-width: 760px) {
  .game-card { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .nav a { padding: 10px 10px; }
  .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding: 16px 0 36px; }
  .hero .logo { width: min(100%, 420px); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
@media (forced-colors: active) {
  .btn, .socials a, .tags li { border: 2px solid; }
}

/* Round 2 */
.brand img { border-radius: 12px; }
.lost img { border-radius: 36px; }
.site-foot p { margin: 0; }
.site-foot .wrap { align-items: center; }
.hero .logo { margin-bottom: 0; }
.hero-grid { display: grid; gap: 24px; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.35fr 1fr; align-items: end; gap: 48px; }
  .hero-grid .lead { padding-bottom: 18px; border-left: 4px solid var(--accent); padding-left: 22px; }
}
.game-card .shot { min-height: 260px; }
.game-card .shot img { object-position: center; }
