/* ==========================================================================
   Carport Games — site.css
   Hand-written. No build step, no framework, no third-party requests.
   Tokens carried over verbatim from the previous carportgames.com stylesheet.
   ========================================================================== */

/* ------------------------------------------------------------------ fonts
   Self-hosted woff2, latin subset, pulled from Google Fonts at build time.
   All three families are OFL. Nothing is fetched at runtime.
   ------------------------------------------------------------------------ */
@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/anton-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 700;          /* variable */
  font-display: swap;
  src: url('../fonts/hankengrotesk-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/spacemono-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/spacemono-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ----------------------------------------------------------------- tokens */
:root {
  --concrete: #16181b;
  --concrete-soft: #1f2227;
  --concrete-line: #2c3036;
  --worklight: #f4a93c;
  --worklight-dim: #c77f1e;
  --felt: #2f8a64;
  --chalk: #ece9e3;
  --chalk-dim: #969ba2;         /* 6.36:1 on --concrete — verified AA */
  --maxw: 1100px;

  /* Per-page accent. Defaults to the studio worklight; game pages override.
     Accents are used for surfaces, borders and glows only — never for body
     text, because the game accents do not clear 4.5:1 on --concrete. */
  --accent: var(--worklight);
  --accent-deep: #241a09;

  --display: 'Anton', Impact, 'Haettenschweiler', sans-serif;
  --body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Space Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
}

/* Game accents, sampled from the app icons. */
.accent-blackjack { --accent: var(--felt);  --accent-deep: #0f3d24; }
.accent-holdem    { --accent: #6d1f2e;      --accent-deep: #4a1520; }

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

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

body {
  background: var(--concrete);
  color: var(--chalk);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;           /* belt-and-braces against horizontal scroll */
}

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

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

:focus-visible { outline: 2px solid var(--worklight); outline-offset: 3px; }

::selection { background: var(--worklight); color: var(--concrete); }

/* -------------------------------------------------------------- utilities */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--worklight); color: var(--concrete);
  font-family: var(--mono); font-size: .8rem; font-weight: 700;
  padding: 10px 16px; border-radius: var(--r-sm);
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

.eyebrow {
  font-family: var(--mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--worklight);
}

.stamp {
  font-family: var(--mono); font-size: .72rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--chalk-dim);
}

.lede { font-size: 1.12rem; color: var(--chalk); }
.muted { color: var(--chalk-dim); }

/* ---------------------------------------------------------------- display */
h1, h2, h3, h4 {
  font-family: var(--display); font-weight: 400;
  text-transform: uppercase; letter-spacing: .01em;
  line-height: 1.05;
}
h2 { font-size: clamp(1.9rem, 4.4vw, 2.75rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; letter-spacing: .03em; }

.section { padding: 78px 0; }
.section + .section { border-top: 1px solid var(--concrete-line); }
.section-head { max-width: 680px; margin-bottom: 38px; }
.section-head h2 { margin: 10px 0 14px; }
.section-head p { color: var(--chalk-dim); }

/* -------------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(22, 24, 27, .82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--concrete-line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px;
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
}

.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-size: 1.25rem;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--chalk); white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand span { color: var(--worklight); }
.brand .bulb-mark { flex: none; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  color: var(--chalk-dim); font-size: .93rem; font-weight: 500;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--chalk); text-decoration: none; }
.nav-links a[aria-current='page'] { color: var(--chalk); }

.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--concrete-line);
  border-radius: var(--r-sm); color: var(--chalk);
  padding: 8px 12px; cursor: pointer;
  font-family: var(--mono); font-size: .74rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
}
.nav-toggle:hover { border-color: var(--worklight); color: var(--worklight); }

/* Only collapse the nav when JS is available to reopen it. With JS off the
   .js class is never set, the toggle stays hidden and the links stay visible. */
@media (max-width: 720px) {
  .js .nav-toggle { display: block; }
  .js .nav-links {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--concrete);
    border-bottom: 1px solid var(--concrete-line);
    padding: 8px 24px 18px;
  }
  .js .nav-links.is-open { display: flex; }
  .js .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--concrete-line); }
  .js .nav-links a:last-child { border-bottom: 0; }
  .nav-links { flex-wrap: wrap; gap: 8px 18px; padding-bottom: 12px; }
  .nav-inner { flex-wrap: wrap; position: relative; }
}

/* ------------------------------------------------------------------- bulb */
.bulb-hang { display: block; margin: 0 auto; }

/* ------------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; text-align: center; padding: 30px 0 84px; }
.hero::before {
  content: ''; position: absolute; inset: -10% -20% 0;
  background: radial-gradient(ellipse 50% 50% at 50% 30%,
              rgba(244, 169, 60, .30) 0%,
              rgba(244, 169, 60, .10) 40%,
              transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; }

.hero h1 {
  font-size: clamp(3rem, 11vw, 6.5rem);
  line-height: .92;
  margin: 22px 0 20px;
}
.hero h1 .line-2 { display: block; color: var(--worklight); }

.hero-tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--chalk); max-width: 34ch; margin: 0 auto 26px;
}
.hero-stamp { margin-top: 30px; }

/* Compact hero used on interior pages. */
.hero-sub { padding: 56px 0 40px; text-align: left; }
.hero-sub::before { opacity: .55; }
.hero-sub h1 { font-size: clamp(2.3rem, 6.5vw, 3.9rem); line-height: 1; margin: 12px 0 16px; }
.hero-sub p { color: var(--chalk-dim); max-width: 62ch; }

/* ------------------------------------------------------------------ cards */
.card {
  background: var(--concrete-soft);
  border: 1px solid var(--concrete-line);
  border-radius: var(--r-lg);
  padding: 26px;
}

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* Game card ------------------------------------------------------------- */
.game-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 16px;
  background: var(--concrete-soft);
  border: 1px solid var(--concrete-line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color .18s ease, transform .18s ease;
}
.game-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.game-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.game-card-top { display: flex; align-items: center; gap: 16px; }
.game-icon {
  width: 72px; height: 72px; flex: none;
  border-radius: 16px; border: 1px solid var(--concrete-line);
  background: var(--accent-deep);
}
.game-icon-lg { width: 104px; height: 104px; border-radius: 22px; }
.game-card h3 { margin-bottom: 4px; }
.game-card .kicker {
  font-family: var(--mono); font-size: .7rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--chalk-dim);
}
.game-card p { color: var(--chalk-dim); }
.game-card .card-cta { margin-top: auto; padding-top: 4px; }

/* Ethos ----------------------------------------------------------------- */
.ethos-item { border-left: 2px solid var(--worklight); padding-left: 18px; }
.ethos-item h3 { font-size: 1.15rem; margin-bottom: 6px; }
.ethos-item p { color: var(--chalk-dim); font-size: .96rem; }

/* Feature list ---------------------------------------------------------- */
.feature-list { list-style: none; display: grid; gap: 18px; }
.feature-list > li {
  position: relative; padding-left: 30px; color: var(--chalk-dim);
}
.feature-list > li::before {
  content: '\2666';                       /* diamond suit marker */
  position: absolute; left: 0; top: -1px;
  color: var(--worklight); font-size: 1rem;
}
.feature-list strong { color: var(--chalk); font-weight: 600; }

/* Spec / metadata table ------------------------------------------------- */
.spec { list-style: none; display: grid; gap: 0; }
.spec > li {
  display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between;
  padding: 13px 0; border-bottom: 1px solid var(--concrete-line);
  font-size: .93rem;
}
.spec > li:last-child { border-bottom: 0; }
.spec dt, .spec .k {
  font-family: var(--mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--chalk-dim);
}
.spec .v { color: var(--chalk); text-align: right; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--body); font-size: .95rem; font-weight: 600;
  padding: 13px 22px; border-radius: var(--r-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--worklight); color: #14161a; }
.btn-primary:hover { background: #ffbe57; }
.btn-ghost { border-color: var(--concrete-line); color: var(--chalk); }
.btn-ghost:hover { border-color: var(--worklight); color: var(--worklight); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Store badges ---------------------------------------------------------- */
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 11px;
  background: #000; color: #fff;
  border: 1px solid #3a3f46; border-radius: 10px;
  padding: 9px 18px 9px 15px; min-width: 178px;
  transition: border-color .16s ease, background .16s ease;
}
.store-btn:hover { border-color: var(--worklight); background: #0b0c0e; text-decoration: none; }
.store-btn svg { flex: none; }
.store-btn .st { display: block; line-height: 1.15; }
.store-btn .st-sm {
  font-size: .62rem; font-weight: 500; letter-spacing: .09em;
  text-transform: uppercase; color: #cfd2d6;
}
.store-btn .st-lg { font-size: 1.02rem; font-weight: 600; letter-spacing: .01em; }

/* --------------------------------------------------------------- gallery  */
.gallery {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.shot {
  display: block; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--concrete-line); background: var(--concrete-soft);
  transition: border-color .16s ease, transform .16s ease;
}
.shot:hover { border-color: var(--accent); transform: translateY(-2px); }
.shot img { width: 100%; height: auto; }
.shot figcaption {
  font-size: .82rem; color: var(--chalk-dim);
  padding: 11px 13px 13px; border-top: 1px solid var(--concrete-line);
}

/* Lightbox: only ever shown by JS. Without JS the thumbnails are plain links
   to the image file, which open normally. */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: none; align-items: center; justify-content: center;
  background: rgba(10, 11, 13, .93);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  padding: 32px 20px;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(420px, 92vw); max-height: 88vh;
  width: auto; height: auto; border-radius: var(--r-md);
  border: 1px solid var(--concrete-line);
}
.lightbox-close {
  position: absolute; top: 18px; right: 18px;
  background: var(--concrete-soft); color: var(--chalk);
  border: 1px solid var(--concrete-line); border-radius: var(--r-sm);
  font-family: var(--mono); font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 9px 14px; cursor: pointer;
}
.lightbox-close:hover { border-color: var(--worklight); color: var(--worklight); }
.lightbox-cap {
  position: absolute; left: 0; right: 0; bottom: 20px;
  text-align: center; color: var(--chalk-dim);
  font-size: .85rem; padding: 0 24px;
}

/* ---------------------------------------------------------------- panels  */
.panel {
  background: var(--concrete-soft);
  border: 1px solid var(--concrete-line);
  border-left: 3px solid var(--worklight);
  border-radius: var(--r-md);
  padding: 20px 22px;
}
.panel h3 { margin-bottom: 8px; }
.panel p { color: var(--chalk-dim); }
.panel p + p { margin-top: 10px; }

/* The 17+ / simulated-gambling compliance notice. */
.compliance {
  background: var(--concrete-soft);
  border: 1px solid var(--concrete-line);
  border-left: 3px solid var(--worklight);
  border-radius: var(--r-md);
  padding: 18px 20px;
  font-size: .93rem; color: var(--chalk-dim);
}
.compliance strong { color: var(--chalk); font-weight: 600; }

/* Accent hero band on game pages. */
.game-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 90% at 18% 20%,
      color-mix(in srgb, var(--accent) 34%, transparent) 0%, transparent 62%),
    linear-gradient(180deg, var(--accent-deep) 0%, var(--concrete) 88%);
  border-bottom: 1px solid var(--concrete-line);
  padding: 52px 0 56px;
}
.game-hero-inner { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.game-hero-copy { flex: 1 1 340px; min-width: 0; }
.game-hero h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); margin: 12px 0 14px; }
.game-hero .pitch { font-size: 1.1rem; color: var(--chalk); max-width: 52ch; margin-bottom: 24px; }

/* FAQ ------------------------------------------------------------------- */
.faq { display: grid; gap: 0; }
.faq details {
  border-bottom: 1px solid var(--concrete-line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--body); font-size: 1.02rem; font-weight: 600;
  color: var(--chalk); padding: 17px 34px 17px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono); font-size: 1.25rem; color: var(--worklight);
  line-height: 1;
}
.faq details[open] summary::after { content: '\2013'; }
.faq summary:hover { color: var(--worklight); }
.faq .faq-body { padding: 0 0 18px; color: var(--chalk-dim); }
.faq .faq-body p + p { margin-top: 10px; }

/* Split CTA ------------------------------------------------------------- */
.split { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.split .card h3 { margin-bottom: 8px; }
.split .card p { color: var(--chalk-dim); margin-bottom: 16px; }

/* Prose (privacy, support copy) ----------------------------------------- */
.prose h2 {
  font-size: 1.5rem; margin: 44px 0 12px;
  padding-top: 4px;
}
.prose h3 { font-size: 1.1rem; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--chalk-dim); }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 9px; }
.prose strong { color: var(--chalk); font-weight: 600; }
.prose > :first-child { margin-top: 0; }

.toc {
  background: var(--concrete-soft);
  border: 1px solid var(--concrete-line);
  border-radius: var(--r-md);
  padding: 20px 24px; margin: 26px 0 8px;
}
.toc h2 {
  font-size: .72rem !important; font-family: var(--mono); font-weight: 700;
  letter-spacing: .18em; color: var(--chalk-dim); margin: 0 0 12px !important;
}
.toc ol { margin: 0 0 0 20px; }
.toc li { margin-bottom: 6px; }

/* ----------------------------------------------------------------- footer */
.footer {
  border-top: 1px solid var(--concrete-line);
  padding: 54px 0 40px;
  margin-top: 20px;
}
.footer-grid {
  display: grid; gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-bottom: 40px;
}
.footer h4 {
  font-family: var(--mono); font-size: .7rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--chalk-dim); margin-bottom: 14px;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 9px; }
.footer li a { color: var(--chalk-dim); font-size: .93rem; }
.footer li a:hover { color: var(--chalk); text-decoration: none; }
.footer-brand p { color: var(--chalk-dim); font-size: .93rem; margin-top: 12px; max-width: 30ch; }
.footer-base {
  border-top: 1px solid var(--concrete-line); padding-top: 26px;
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em;
  color: var(--chalk-dim);
}

/* -------------------------------------------------------------------- 404 */
.err { text-align: center; padding: 96px 0 110px; }
.err h1 { font-size: clamp(4rem, 16vw, 9rem); line-height: .9; color: var(--worklight); }
.err p { color: var(--chalk-dim); max-width: 46ch; margin: 16px auto 30px; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 640px) {
  .section { padding: 58px 0; }
  .wrap, .wrap-narrow { padding: 0 20px; }
  .game-card, .card { padding: 22px; }
  .store-btn { min-width: 0; flex: 1 1 auto; }
  .gallery { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

@media print {
  .nav, .footer, .lightbox, .store-row, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .prose p, .prose li { color: #222; }
}
