/* Two Pines Interactive: site stylesheet. No external resources. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-var.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --forest-950: #071b0f;   /* logo background */
  --forest-900: #0b2414;
  --forest-850: #10301b;
  --forest-800: #163a22;
  --forest-700: #22502f;
  --sage-400: #a9bd8e;     /* muted natural green (logo rules) */
  --sage-300: #c3d2ab;
  --moss-500: #6f8f5a;
  --cream-50: #fbf6e9;
  --cream-100: #f6ecd3;    /* logo lettering */
  --cream-300: #e3d6b4;
  --ink-muted: #c9c3ae;

  --bg: var(--forest-950);
  --surface: color-mix(in oklab, var(--forest-900) 88%, transparent);
  --surface-raised: var(--forest-850);
  --line: color-mix(in oklab, var(--sage-400) 22%, transparent);
  --text: var(--cream-100);
  --text-muted: var(--ink-muted);
  --accent: var(--sage-400);

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -20px rgb(0 0 0 / 0.65);
  --max: 72rem;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-300); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--cream-50); }
:focus-visible { outline: 3px solid var(--sage-300); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.5vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text-muted); max-width: 42rem; }
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: currentColor; }

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.prose { max-width: 44rem; }
.prose h2 { margin-top: 2.2rem; font-size: 1.6rem; }
.prose li { margin-bottom: 0.4em; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--cream-100); color: var(--forest-950);
  padding: 0.6rem 1rem; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--forest-950) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--text); }
.brand img { width: 64px; height: auto; }
.brand span { font-family: var(--font-display); font-weight: 750; font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.1; }
.brand small { display: block; font-weight: 500; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }

.nav-toggle {
  display: none;
  background: transparent; color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.5rem 0.8rem; font: 600 0.95rem var(--font-display); cursor: pointer;
}
.nav-toggle-bars { display: inline-block; width: 1.1rem; height: 2px; background: currentColor; position: relative; vertical-align: middle; margin-right: 0.5rem; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.site-nav a {
  display: block; padding: 0.55rem 0.85rem; border-radius: 999px;
  color: var(--text); text-decoration: none; font: 550 0.98rem var(--font-display);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.site-nav a:hover { background: var(--forest-800); }
.site-nav a[aria-current="page"], .site-nav a[aria-current="true"] { background: var(--cream-100); color: var(--forest-950); }

@media (max-width: 52rem) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav { position: absolute; inset: 100% 0 auto 0; background: var(--forest-950); border-bottom: 1px solid var(--line); display: none; }
  .site-nav.is-open { display: block; animation: drop 0.25s var(--ease); }
  .site-nav ul { flex-direction: column; padding: 0.75rem 1.25rem 1.25rem; }
  .site-nav a { padding: 0.8rem 1rem; border-radius: var(--radius-sm); }
  .no-js .site-nav { position: static; display: block; }
  .no-js .site-nav ul { flex-direction: row; flex-wrap: wrap; padding: 0 0 0.75rem; }
  .no-js .nav-toggle { display: none; }
  .no-js .site-header .wrap { flex-wrap: wrap; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- atmosphere ---------- */
.atmosphere {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(60rem 34rem at 78% -6%, rgb(246 236 211 / 0.16), transparent 62%),
    radial-gradient(40rem 30rem at 10% 20%, rgb(111 143 90 / 0.14), transparent 70%),
    linear-gradient(180deg, #0d2a18 0%, var(--forest-950) 78%);
}
.atmosphere::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: min(46vw, 22rem); z-index: -1;
  background: url("/assets/img/bg/forest.svg") center bottom / cover no-repeat;
  opacity: 0.95;
}
.mist {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(30rem 6rem at 20% 78%, rgb(227 214 180 / 0.07), transparent 70%),
    radial-gradient(36rem 7rem at 75% 84%, rgb(227 214 180 / 0.06), transparent 70%);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translateX(4%); } }
.fireflies span {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: #e9f2b8; box-shadow: 0 0 10px 3px rgb(233 242 184 / 0.55);
  opacity: 0; animation: glow 7s ease-in-out infinite;
}
@keyframes glow { 0%, 100% { opacity: 0; transform: translate(0, 0); } 45% { opacity: 0.9; } 70% { opacity: 0.4; transform: translate(14px, -22px); } }

/* ---------- hero ---------- */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(11rem, 26vw, 17rem); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.hero picture { justify-self: center; }
.hero-logo { width: min(100%, 30rem); border-radius: 28px; box-shadow: var(--shadow); animation: rise 1s var(--ease) both; }
.hero-copy { animation: rise 0.9s 0.1s var(--ease) both; }
.motto { font-family: var(--font-display); font-weight: 650; color: var(--accent); font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin-bottom: 1rem; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@media (max-width: 52rem) {
  .hero .wrap { grid-template-columns: 1fr; text-align: left; }
  .hero picture { order: -1; }
  .hero-logo { width: min(78vw, 20rem); }
}

.page-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(8rem, 18vw, 12rem); }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.3rem; border-radius: 999px;
  font: 650 1rem var(--font-display); text-decoration: none;
  border: 1.5px solid var(--cream-100);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-primary { background: var(--cream-100); color: var(--forest-950); }
.btn-primary:hover { background: var(--cream-50); color: var(--forest-950); transform: translateY(-2px); }
.btn-ghost { color: var(--cream-100); }
.btn-ghost:hover { background: rgb(246 236 211 / 0.1); transform: translateY(-2px); }
.btn[aria-disabled="true"] { opacity: 0.55; border-style: dashed; pointer-events: none; }

/* ---------- sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: linear-gradient(180deg, var(--forest-900), var(--forest-950)); border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }

/* ---------- game cards ---------- */
.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr)); gap: 1.5rem; }
.game-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.game-card:hover { transform: translateY(-6px); border-color: color-mix(in oklab, var(--sage-400) 55%, transparent); }
.game-card .media { aspect-ratio: 16 / 9; }
.game-card .body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.game-card h3 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin: 0.4rem 0 0.35rem; }
.game-card h3 a { color: inherit; text-decoration: none; }
.game-card h3 a::after { content: ""; position: absolute; inset: 0; }  /* whole card clickable */
.game-card p { color: var(--text-muted); }
.game-card .more { margin-top: auto; font: 650 0.98rem var(--font-display); color: var(--sage-300); }

.badges { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.badge {
  display: inline-block; padding: 0.22rem 0.7rem; border-radius: 999px;
  font: 650 0.78rem var(--font-display); letter-spacing: 0.06em; text-transform: uppercase;
  background: rgb(169 189 142 / 0.14); color: var(--sage-300); border: 1px solid rgb(169 189 142 / 0.35);
}
.badge-dev::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #e8c86a; margin-right: 0.45rem; vertical-align: 0.05em; box-shadow: 0 0 8px #e8c86a; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.45; } }

/* Placeholder art: clearly labelled, never mistaken for a screenshot. */
.placeholder {
  position: relative; display: grid; place-items: center; text-align: center;
  background:
    url("/assets/img/bg/forest.svg") center bottom / 140% auto no-repeat,
    radial-gradient(circle at 70% 25%, rgb(246 236 211 / 0.22) 0 3.5rem, transparent 3.6rem),
    linear-gradient(180deg, #1c3d26, #0b2213);
  color: var(--cream-100);
}
.placeholder-tag {
  position: relative; z-index: 1;
  font: 650 0.78rem var(--font-display); letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.4rem 0.8rem; border-radius: 999px;
  background: rgb(7 27 15 / 0.82); border: 1px dashed var(--sage-400); color: var(--sage-300);
}
.placeholder-title { position: absolute; left: 1.25rem; bottom: 1rem; font: 800 clamp(1.4rem, 3vw, 2.2rem) var(--font-display); color: var(--cream-100); text-shadow: 0 2px 16px rgb(0 0 0 / 0.6); }

/* ---------- game detail ---------- */
.game-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(16rem, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 52rem) { .game-layout { grid-template-columns: 1fr; } }
.panel { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.panel h2, .panel h3 { font-size: 1.2rem; margin-bottom: 0.9rem; }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.55rem 1rem; }
.facts dt { color: var(--text-muted); font-size: 0.92rem; }
.facts dd { margin: 0; font-weight: 600; }
.store-links { display: grid; gap: 0.6rem; margin-top: 1rem; }
.media-frame { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.media-frame iframe, .media-frame video { width: 100%; height: 100%; border: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.gallery li { aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.callout { border-left: 3px solid var(--accent); padding: 0.9rem 1.1rem; background: rgb(169 189 142 / 0.08); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-muted); }

/* ---------- feature / value tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.tile h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.tile p { color: var(--text-muted); margin: 0; font-size: 0.98rem; }
.tile-icon { font-size: 1.6rem; line-height: 1; margin-bottom: 0.8rem; display: block; }

/* ---------- blog ---------- */
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.post-card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.6rem; }
.post-card h3 { margin: 0.35rem 0 0.5rem; }
.post-meta { color: var(--text-muted); font-size: 0.9rem; display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.empty-state { border: 1px dashed var(--line); border-radius: var(--radius); padding: 2rem; text-align: center; color: var(--text-muted); }
.post-figure { margin: 1.75rem 0; }
.post-figure figcaption { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.5rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1.5rem; }
.email { font: 650 clamp(1rem, 4.4vw, 1.15rem) var(--font-display); overflow-wrap: normal; word-break: normal; }
.pending { color: #e8c86a; font-style: italic; }

/* ---------- footer ---------- */
.site-footer { margin-top: auto; border-top: 1px solid var(--line); background: var(--forest-950); padding: 2.5rem 0 2rem; color: var(--text-muted); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.site-footer nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin: 0; padding: 0; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--cream-100); }
.footer-motto { font-family: var(--font-display); font-weight: 650; color: var(--cream-100); margin: 0 0 0.2rem; }

/* ---------- reveal on scroll (JS adds .reveal-ready) ---------- */
.reveal-ready .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal-ready .reveal { opacity: 1; transform: none; }
  .fireflies { display: none; }
}

/* ---------- game imagery (kit 2026-12-04) ---------- */
.game-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.game-card:hover .media img { transform: scale(1.03); }
.game-card .media { overflow: hidden; background: var(--forest-850); }

.hero-shot { margin: 0; }
.hero-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
figcaption { color: var(--text-muted); font-size: 0.92rem; margin-top: 0.6rem; }

.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.features li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.2rem; }
.features strong { display: block; font-family: var(--font-display); font-size: 1.08rem; color: var(--cream-50); margin-bottom: 0.2rem; }
.features span { color: var(--text-muted); }

/* Gallery keeps each screenshot's own aspect ratio (no cropping). */
.shot-gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1.25rem; align-items: start; }
.shot-gallery figure { margin: 0; }
.shot-gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.shot-gallery img { width: 100%; transition: transform 0.5s var(--ease), filter 0.5s var(--ease); }
.shot-gallery a:hover img { transform: scale(1.03); filter: brightness(1.08); }
.shot-gallery figcaption strong { display: block; color: var(--cream-100); font: 650 0.98rem var(--font-display); margin-bottom: 0.15rem; }

.companion { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (max-width: 52rem) { .companion { grid-template-columns: 1fr; } }
.companion figure { margin: 0; }
.companion img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.battle-list { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cross-link { display: flex; gap: 1rem; align-items: center; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-top: 1.5rem; }
.cross-link img { width: 9rem; border-radius: var(--radius-sm); flex: none; }
.cross-link p { margin: 0; }
@media (max-width: 30rem) { .cross-link { flex-direction: column; align-items: start; } .cross-link img { width: 100%; } }

/* Lightbox (enhancement; without JS the links open the full image) */
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(96vw, 1920px); max-height: 94vh; color: var(--text); }
.lightbox::backdrop { background: rgb(3 12 6 / 0.92); }
.lightbox img { max-width: 100%; max-height: 82vh; width: auto; margin: 0 auto; border-radius: var(--radius-sm); }
.lightbox p { text-align: center; margin: 0.75rem 1rem 0; color: var(--cream-100); }
.lightbox-close { position: fixed; top: 1rem; right: 1rem; background: var(--cream-100); color: var(--forest-950); border: 0; border-radius: 999px; padding: 0.55rem 1rem; font: 650 0.95rem var(--font-display); cursor: pointer; }

/* Trailer */
.trailer { margin: 0; }
.trailer .media-frame { background: #000; box-shadow: var(--shadow); }
.trailer video { display: block; width: 100%; height: 100%; object-fit: contain; }
.trailer figcaption strong { color: var(--cream-100); font-family: var(--font-display); }
video::cue { font-family: var(--font-body); background: rgb(0 0 0 / 0.78); }
.trailer { scroll-margin-top: 5.5rem; }
.more-trailers { margin: 2rem 0 0.75rem; font-size: 1.1rem; }
.trailer-secondary { max-width: 30rem; }
