/* core-e-llc.com — shared stylesheet.
   Tokens ported from Sales/storefronts/gumroad/profile.html (brand precedent).
   Zero external dependencies: system font stack, no webfonts, nothing off-origin.
   Two scripts ship (/js/trailer.js, /js/play.js), both purely as progressive
   enhancement — every page still works with JS disabled, the facades just fall back
   to being links to YouTube and to itch.io.
   Owner decision 2026-08-05: the site always wears the brand-native dark palette
   (navy ground, Core Orange accents) — no light-mode variant. */

:root{
  color-scheme: dark;
  /* Dark (brand-native) */
  --bg0:#0D1218; --bg1:#121A22; --bg2:#1B2530;
  --surface:#18222C; --surface-2:#1E2A36;
  --line:rgba(243,245,247,.09); --line-strong:rgba(243,245,247,.16);
  --ink:#F3F5F7; --ink-soft:#A9B2BC; --ink-faint:#8A94A0;
  --accent:#FF9647; --accent-2:#FFB05A; --accent-3:#FF8A3D;
  --accent-ink:#FFB471; --chip-bg:rgba(255,150,71,.13); --chip-ink:#FFBE8A;
  --teal:#2E97AF; --cyan:#31A0D6; --teal-ink:#5FC0D6;
  --btn-ink:#12161C;
  --glow-a:rgba(255,150,71,.14); --glow-b:rgba(46,151,175,.16);
  --shadow:0 14px 40px rgba(0,0,0,.35);
  --font:"Montserrat","Poppins","Segoe UI",system-ui,-apple-system,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:var(--font);
  background:
    radial-gradient(900px 480px at 85% -10%, var(--glow-b), transparent 60%),
    radial-gradient(900px 480px at 10% -10%, var(--glow-a), transparent 60%),
    linear-gradient(var(--bg0), var(--bg1));
  color:var(--ink);
  line-height:1.6;
  min-height:100vh;
}
img{max-width:100%;display:block}
a{color:var(--teal-ink)}
main{max-width:1060px;margin:0 auto;padding:0 20px 64px}

/* ---------- header / nav ---------- */
.site-header{
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  max-width:1060px;margin:0 auto;padding:18px 20px;
}
.site-header .mark{width:44px;height:44px}
.site-header .wordmark{
  font-weight:800;font-size:1.25rem;letter-spacing:.12em;
  color:var(--ink);text-decoration:none;
}
.site-header nav{margin-left:auto;display:flex;gap:6px;flex-wrap:wrap}
.site-header nav a{
  text-decoration:none;color:var(--ink-soft);font-weight:600;font-size:.92rem;
  padding:7px 13px;border-radius:999px;border:1px solid transparent;
}
.site-header nav a:hover{color:var(--ink);border-color:var(--line-strong)}
.site-header nav a[aria-current="page"]{
  color:var(--accent-ink);background:var(--chip-bg);border-color:transparent;
}

/* ---------- hero ---------- */
.hero{text-align:center;padding:56px 0 40px}
.hero .mark{width:120px;height:120px;margin:0 auto 18px}
.hero h1{font-weight:800;font-size:clamp(2rem,6vw,3.1rem);letter-spacing:.14em}
.hero .tagline{color:var(--ink-soft);font-size:1.08rem;margin-top:10px}
.page-hero{padding:40px 0 8px}
.page-hero .kicker{
  color:var(--accent-ink);font-weight:700;font-size:.85rem;
  letter-spacing:.22em;text-transform:uppercase;
}
.page-hero h1{font-weight:800;font-size:clamp(1.7rem,5vw,2.5rem);margin:6px 0 10px}
.page-hero .lede{color:var(--ink-soft);max-width:640px;font-size:1.05rem}

/* ---------- cards ---------- */
.card-grid{display:grid;gap:18px;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));margin:34px 0}
.card{
  background:var(--surface);border:1px solid var(--line);border-radius:16px;
  padding:24px;box-shadow:var(--shadow);
  display:flex;flex-direction:column;gap:10px;
}
.card h2,.card h3{font-size:1.15rem;font-weight:800;letter-spacing:.03em}
.card p{color:var(--ink-soft);font-size:.95rem;flex:1}
.card .sub{color:var(--accent-ink);font-weight:700;font-size:.8rem;letter-spacing:.18em;text-transform:uppercase}
a.card{color:inherit;text-decoration:none;transition:border-color .15s, transform .15s}
a.card:hover{border-color:var(--accent);transform:translateY(-2px)}

/* ---------- buttons & chips ---------- */
.btn{
  display:inline-block;background:linear-gradient(120deg,var(--accent),var(--accent-3));
  color:var(--btn-ink);font-weight:800;text-decoration:none;
  padding:11px 22px;border-radius:999px;font-size:.95rem;letter-spacing:.02em;
}
.btn:hover{background:linear-gradient(120deg,var(--accent-2),var(--accent))}
.btn.ghost{
  background:none;color:var(--ink);border:1px solid var(--line-strong);font-weight:700;
}
.btn.ghost:hover{border-color:var(--accent);color:var(--accent-ink)}
.chip{
  display:inline-block;background:var(--chip-bg);color:var(--chip-ink);
  font-size:.75rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  padding:3px 10px;border-radius:999px;
}
.chip.teal{background:rgba(46,151,175,.14);color:var(--teal-ink)}
.chip.faint{background:var(--surface-2);color:var(--ink-faint)}

/* ---------- store / buy blocks ---------- */
.store-grid{display:grid;gap:18px;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));margin:26px 0}
.store-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:22px;box-shadow:var(--shadow)}
.store-card h3{font-weight:800;font-size:1.05rem;margin-bottom:4px}
.store-card .range{color:var(--ink-soft);font-size:.92rem;margin:6px 0 14px}
.store-card .price{color:var(--accent-ink);font-weight:800}

/* ---------- gallery ---------- */
.gallery{display:grid;gap:18px;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));margin:26px 0}
.design{
  background:var(--surface);border:1px solid var(--line);border-radius:16px;
  overflow:hidden;box-shadow:var(--shadow);display:flex;flex-direction:column;
}
.design img{width:100%;height:auto;aspect-ratio:1500/2040;object-fit:cover;background:#F4ECD8}
/* garment mockups: Printify product photos (square flat-lay, own studio
   background) — cover the square card; a slightly non-square pull trims a
   sliver instead of letterboxing navy bars into the photo */
.design.mockup img{aspect-ratio:1/1;object-fit:cover;background:#fff}
.design .meta{padding:14px 16px;display:flex;flex-direction:column;gap:8px}
.design .caption{font-weight:700;font-size:.95rem;line-height:1.35}
.design .work{color:var(--ink-faint);font-size:.8rem}
.design .stores{display:flex;gap:6px;flex-wrap:wrap}
.design .stores a{text-decoration:none}
/* the labeled mature band's heading (generated by make_gallery.py) */
#designs h3{margin:38px 0 4px;font-size:1.15rem;font-weight:800}

/* ---------- product pages (generated by build/make_product_pages.py) ---------- */
.product{display:grid;gap:30px;grid-template-columns:minmax(0,5fr) minmax(0,6fr);align-items:start;margin:26px 0}
.product .art{background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:var(--shadow)}
.product .art img{width:100%;height:auto}
.product .art img.flat{background:#F4ECD8}
.product h1{font-size:1.5rem;line-height:1.3;margin-bottom:4px}
.product .work{color:var(--ink-faint);font-size:.9rem;margin-bottom:16px}
.product .desc{color:var(--ink-soft);max-width:60ch;margin-bottom:16px}
.product .spec{color:var(--ink-faint);font-size:.88rem;margin-bottom:14px}
.product .price{color:var(--accent-ink);font-weight:800;font-size:1.15rem;margin-bottom:18px}
.product .price .ship{color:var(--ink-faint);font-weight:600;font-size:.85rem}
.product .alt{margin-top:26px}
.product .alt .lbl{color:var(--ink-faint);font-size:.78rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;display:block;margin-bottom:8px}
.product .alt .stores{display:flex;gap:6px;flex-wrap:wrap}
.product .alt .stores a{text-decoration:none}
@media (max-width:760px){.product{grid-template-columns:1fr}}

/* gallery cards that have a product page: image + caption link to it, and the
   orange buy chip goes straight to the store via /go/buy/<id> */
a.design-link{color:inherit;text-decoration:none}
a.design-link:hover .caption,a.design-link:focus-visible .caption{color:var(--accent-ink)}
.chip.buy{background:var(--accent);color:var(--btn-ink)}

/* ---------- prose sections ---------- */
.section{margin:40px 0}
.section h2{font-weight:800;font-size:1.35rem;margin-bottom:12px}
.section p{color:var(--ink-soft);max-width:70ch;margin-bottom:10px}
.note{
  background:var(--surface-2);border:1px solid var(--line);border-radius:12px;
  padding:14px 18px;color:var(--ink-soft);font-size:.92rem;max-width:70ch;
}
.boundary{font-size:.85rem;color:var(--ink-faint);max-width:70ch}

/* ---------- trailer (click-to-load facade — see /js/trailer.js) ----------
   The poster is ours, not YouTube's thumbnail: pulling the thumbnail would fire a
   Google request on page load, which is exactly what the facade exists to avoid. */
.trailer{
  position:relative;width:100%;aspect-ratio:16/9;margin:28px 0 10px;
  background:var(--bg2);border:1px solid var(--line);border-radius:16px;
  overflow:hidden;box-shadow:var(--shadow);
}
.trailer .poster{width:100%;height:100%;object-fit:cover}
.trailer iframe,.play-box iframe{width:100%;height:100%;border:0;display:block}
.trailer .play,.play-box .play{
  position:absolute;inset:0;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:13px;text-decoration:none;
  background:linear-gradient(180deg,rgba(13,18,24,.12),rgba(13,18,24,.62));
}
.trailer .disc,.play-box .disc{
  width:76px;height:76px;border-radius:50%;background:var(--accent-3);
  display:grid;place-items:center;box-shadow:0 12px 32px rgba(0,0,0,.5);
  transition:transform .15s ease, background .15s ease;
}
.trailer .disc svg,.play-box .disc svg{width:28px;height:28px;margin-left:5px;fill:var(--btn-ink)}
.trailer .play:hover .disc,.trailer .play:focus-visible .disc,
.play-box .play:hover .disc,.play-box .play:focus-visible .disc{
  transform:scale(1.07);background:var(--accent);
}
.trailer .play .label,.play-box .play .label{
  color:var(--ink);font-weight:700;font-size:.86rem;letter-spacing:.1em;
  text-transform:uppercase;text-shadow:0 2px 10px rgba(0,0,0,.75);
}
.trailer .play:focus-visible,.play-box .play:focus-visible{
  outline:3px solid var(--accent);outline-offset:-3px;
}
.trailer-note{color:var(--ink-faint);font-size:.8rem;margin:0 0 30px}

/* ---------- play box (click-to-load itch.io embed — see /js/play.js) ----------
   Same facade contract as the trailer, and for a sharper reason: an itch embed sets
   a cookie and pulls Google Tag Manager the moment it loads, so it stays unloaded
   until a visitor presses Play. No poster here on purpose — the trailer directly
   below already uses the only screenshot we have, and a second copy of it would read
   as a duplicate rather than as a second thing you can do.

   Sizes are each game's own itch viewport. Below 720px the box goes tall instead of
   keeping its ratio: the embed hands the game the iframe's real pixel box rather than
   scaling it, so a phone-width 9/7 frame would be 290px tall and unplayable. */
.play-box{
  position:relative;width:100%;margin:26px auto 6px;
  background:
    radial-gradient(620px 320px at 50% -25%, var(--glow-a), transparent 65%),
    var(--bg2);
  border:1px solid var(--line);border-radius:16px;
  overflow:hidden;box-shadow:var(--shadow);
}
.play-box[data-game="casebook"]{max-width:900px;aspect-ratio:9/7}
.play-box[data-game="wanderers-tale"]{max-width:640px;aspect-ratio:4/5}
.play-box .play .sub{
  color:var(--ink-soft);font-size:.78rem;font-weight:600;
  text-transform:none;letter-spacing:normal;
}
.play-note{color:var(--ink-faint);font-size:.8rem;margin:0 0 4px}
@media (max-width:720px){
  /* [data-game] to match the per-game specificity above, not to beat it */
  .play-box[data-game]{aspect-ratio:auto;height:min(76vh,660px)}
}

/* ---------- game detail pages ---------- */
.game-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:20px 0 4px}
.feature-list{list-style:none;display:grid;gap:12px;margin:16px 0;max-width:70ch}
.feature-list li{
  background:var(--surface);border:1px solid var(--line);border-radius:12px;
  padding:14px 18px;color:var(--ink-soft);font-size:.95rem;
}
.feature-list strong{color:var(--ink);display:block;margin-bottom:3px}
.backlink{display:inline-block;margin-top:8px;color:var(--ink-soft);font-size:.9rem}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .trailer .disc,.play-box .disc,a.card{transition:none}
}

/* ---------- footer ---------- */
.site-footer{
  border-top:1px solid var(--line);margin-top:24px;
  padding:26px 20px 40px;text-align:center;color:var(--ink-faint);font-size:.9rem;
}
.site-footer a{color:var(--ink-soft)}
.site-footer .tagline{letter-spacing:.08em;margin-bottom:8px}

/* /tools — product preview video (2026-08-27). Self-hosted at /media/, so the CSP's
   default-src 'self' already covers it; native controls, no script. */
.preview figure{margin:0 auto;max-width:880px}
.preview video{display:block;width:100%;height:auto;aspect-ratio:16/9;border-radius:14px;background:#0d1218;box-shadow:0 24px 60px rgba(0,0,0,.28)}
.preview figcaption{margin-top:10px;text-align:center;color:var(--ink-soft);font-size:.95rem}
