/* brixenford.com - playful console-catalog / band-swap (light, multi-band)
   Theme DNA: playdate (band-swap, one accent doing the work, flat borderless cards)
   Palette: carbon text + white cards + slate hero + sand/mint bands; single accent = arcade green #22c55e
   Font: Gabarito (single family) */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }

:root {
  --carbon: #312f27;
  --carbon-soft: #56534a;
  --white: #ffffff;
  --slate: #788086;
  --slate-deep: #5f696f;
  --fog: #efefef;
  --sand: #e9e4d9;
  --mint: #e7f1ea;
  --ash: #b1afa7;
  --deep: #20221d;

  --accent: #22c55e;         /* arcade green - pill fills (carbon text), active bands */
  --accent-hover: #1aa24c;
  --accent-ink: #14713a;     /* links / small green text on light (AA on white) */

  --font: "Gabarito", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* fluid type */
  --t-mega: clamp(3.2rem, 12.5vw, 8.5rem);
  --t-hero: clamp(2.1rem, 6vw, 4rem);
  --t-h2:   clamp(1.7rem, 4.2vw, 2.9rem);
  --t-h3:   clamp(1.25rem, 2.6vw, 1.65rem);
  --t-lead: clamp(1.08rem, 1.6vw, 1.3rem);
  --t-body: clamp(1rem, 1.25vw, 1.12rem);
  --t-sm:   0.9rem;
  --t-xs:   0.78rem;

  --pad-x: clamp(18px, 5.5vw, 92px);
  --band-y: clamp(56px, 8vw, 118px);
  --measure: 64ch;
  --radius-card: 4px;
  --radius-pill: 999px;
  --shadow-pill: 0 3px 12px rgba(20,20,10,.16);
}

body {
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--carbon);
  background: var(--white);
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.02; font-weight: 800; letter-spacing: -0.02em; }
h3 { line-height: 1.12; }
p { line-height: 1.62; }
strong { font-weight: 700; }

/* ---------- helpers ---------- */
.band { padding: var(--band-y) var(--pad-x); }
.band--slate { background: var(--slate); color: var(--white); }
.band--white { background: var(--white); }
.band--fog   { background: var(--fog); }
.band--sand  { background: var(--sand); }
.band--mint  { background: var(--mint); }
.band--deep  { background: var(--deep); color: #f4f2ea; }
.wrap { max-width: 1180px; margin-inline: auto; }
.narrow { max-width: var(--measure); }

.kicker {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: var(--t-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; color: var(--accent-ink);
}
.band--slate .kicker, .band--deep .kicker { color: #b6f0c8; }
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; display: inline-block; }

.link { color: var(--accent-ink); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid transparent; }
.link:hover { border-bottom-color: currentColor; }
.band--slate .link, .band--deep .link { color: #7ce69a; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  background: var(--accent); color: var(--carbon);
  font-weight: 700; text-decoration: none;
  padding: .72em 1.35em; border-radius: var(--radius-pill);
  border: none; box-shadow: var(--shadow-pill);
  transition: background .18s ease, transform .18s ease;
  font-size: var(--t-body);
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--ghost {
  background: transparent; color: var(--carbon); box-shadow: none;
  border: 1.6px solid var(--carbon);
}
.btn--ghost:hover { background: var(--carbon); color: var(--white); }
.band--slate .btn--ghost, .band--deep .btn--ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.band--slate .btn--ghost:hover, .band--deep .btn--ghost:hover { background: #fff; color: var(--carbon); }
.btn svg { width: 1.15em; height: 1.15em; }

/* ---------- header / nav ---------- */
.site-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px var(--pad-x);
  position: relative; z-index: 40;
}
.brandmark {
  font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em;
  text-decoration: none; color: var(--carbon); display: inline-flex; align-items: center; gap: .4em;
}
.brandmark .dot { width: 14px; height: 14px; border-radius: 3px; background: var(--accent); }
.band--slate .brandmark, .band--deep .brandmark { color: #fff; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav a { text-decoration: none; font-weight: 500; font-size: .98rem; color: inherit; opacity: .9; }
.nav a:hover { opacity: 1; color: var(--accent-ink); }
.band--slate .nav a:hover { color: #d9ffe4; }
.nav .btn { font-size: .95rem; padding: .5em 1.1em; }
.nav-toggle { display: none; background: none; border: 1.6px solid currentColor; border-radius: 8px; width: 46px; height: 42px; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; right: var(--pad-x); left: var(--pad-x);
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--white); color: var(--carbon);
    border: 1px solid var(--fog); border-radius: 12px; padding: 14px;
    box-shadow: 0 18px 40px rgba(20,20,10,.14);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-radius: 8px; opacity: 1; }
  .nav a:hover { background: var(--fog); }
  .nav .btn { justify-content: center; margin-top: 6px; }
}

/* ---------- hero ---------- */
.hero-shell {
  position: relative;
  isolation: isolate;
  background-image:
    linear-gradient(180deg, rgba(28,30,26,.72) 0%, rgba(28,30,26,.62) 42%, rgba(32,34,29,.86) 100%),
    url("../img/hero-games.webp");
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
}
.hero-shell::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 90% at 18% 62%, rgba(20,22,18,.55) 0%, rgba(20,22,18,0) 60%);
  pointer-events: none;
}
.hero-shell > * { position: relative; z-index: 1; }
.hero { padding-top: clamp(20px, 5vw, 54px); padding-bottom: clamp(48px, 8vw, 96px); }
.hero__label { color: #d9ffe4; }
.hero__mark {
  font-size: var(--t-mega); font-weight: 800; line-height: .9;
  letter-spacing: -0.045em; color: var(--white); margin: .18em 0 .12em;
  word-break: break-word;
}
.hero__mark em { font-style: normal; color: var(--accent); }
.hero__sub { font-size: var(--t-hero); font-weight: 700; max-width: 20ch; line-height: 1.05; }
.hero__lead { font-size: var(--t-lead); max-width: 46ch; margin-top: 18px; color: #eef1f2; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__trust {
  margin-top: 26px; display: inline-flex; flex-wrap: wrap; gap: 10px 18px; align-items: center;
  font-size: var(--t-sm); color: #e4e8e9;
}
.hero__trust b { color: #fff; font-weight: 700; }
.tag-bubble {
  background: var(--sand); color: var(--carbon); font-weight: 700;
  padding: .3em .8em; border-radius: 10px; font-size: var(--t-sm);
  position: relative;
}

/* ---------- generic section head ---------- */
.section-head { max-width: 40ch; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: var(--t-h2); margin-top: 14px; }
.section-head p { margin-top: 14px; color: var(--carbon-soft); }
.band--deep .section-head p { color: #c9c7bd; }

/* ---------- crew mini ---------- */
.crew-grid { display: grid; gap: clamp(16px, 2.5vw, 26px); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.crew-card { background: var(--white); border-radius: var(--radius-card); padding: 24px; }
.band--white .crew-card { background: var(--fog); }
.crew-card .who { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.crew-card .avatar { width: 44px; height: 44px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; font-weight: 800; color: var(--carbon); flex: none; }
.crew-card .avatar.b { background: #ffd98a; }
.crew-card .avatar.c { background: #9ad7ff; }
.crew-card h3 { font-size: 1.15rem; }
.crew-card .role { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--accent-ink); font-weight: 700; }
.crew-card p { font-size: var(--t-sm); color: var(--carbon-soft); margin-top: 6px; }

/* ---------- games list ---------- */
.games { display: flex; flex-direction: column; gap: 0; }
.game {
  display: grid; gap: clamp(20px, 4vw, 52px); align-items: center;
  grid-template-columns: 1fr; padding: clamp(40px, 6vw, 84px) 0;
  border-top: 1.5px solid rgba(49,47,39,.12);
}
.games .game:first-child { border-top: none; }
.game__media { position: relative; }
.game__media img { width: 100%; height: auto; border-radius: var(--radius-card); }
.game__shot--tall { max-width: 300px; }
.game__num {
  font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 800; line-height: 1;
  color: var(--accent); letter-spacing: -0.04em; display: block; margin-bottom: 6px;
}
.game__genre { font-size: var(--t-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--carbon-soft); }
.game__title { font-size: var(--t-h2); margin: 6px 0 10px; }
.game__hook { font-size: var(--t-lead); color: var(--carbon-soft); max-width: 42ch; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 4px; }
.meta span {
  font-size: var(--t-xs); font-weight: 600; background: rgba(49,47,39,.07);
  color: var(--carbon); padding: .38em .7em; border-radius: var(--radius-pill);
}
.band--mint .meta span { background: rgba(20,113,58,.10); }
.band--sand .meta span { background: rgba(49,47,39,.09); }
.meta span.free { background: var(--accent); color: var(--carbon); }

.blocks { display: grid; gap: 18px 34px; margin: 24px 0; grid-template-columns: 1fr; }
.block h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .11em; color: var(--accent-ink); font-weight: 700; margin-bottom: 7px; }
.block p { font-size: var(--t-body); }
.block ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.block li { font-size: var(--t-body); padding-left: 22px; position: relative; }
.block li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); }
.caveat {
  font-size: var(--t-sm); color: var(--carbon-soft); border-left: 3px solid var(--ash);
  padding: 4px 0 4px 14px; margin-top: 4px; font-style: italic;
}
.attrib { font-size: var(--t-xs); color: var(--carbon-soft); margin-top: 10px; }

@media (min-width: 760px) {
  .blocks { grid-template-columns: 1fr 1fr; }
  .game--imgright { grid-template-columns: 1.15fr .85fr; }
  .game--imgleft  { grid-template-columns: .85fr 1.15fr; }
  .game--imgleft .game__media { order: -1; }
  .game__body--wide { max-width: none; }
}
.game--stacked .game__media { max-width: 620px; margin-inline: auto; }

/* ---------- pick (scelta della squadra) ---------- */
.pick { display: grid; gap: clamp(24px, 4vw, 48px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 820px) { .pick { grid-template-columns: 1fr 1fr; } }
.pick__card { background: #2b2d27; border-radius: var(--radius-card); padding: clamp(24px, 3vw, 40px); }
.pick h2 { font-size: var(--t-h2); margin: 12px 0; }
.pick__why { color: #c9c7bd; margin-bottom: 22px; }
.pick__shot { max-width: 280px; border-radius: var(--radius-card); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; max-width: 760px; }
.faq details { border-top: 1.5px solid rgba(49,47,39,.14); padding: 18px 0; }
.faq details:last-child { border-bottom: 1.5px solid rgba(49,47,39,.14); }
.faq summary { list-style: none; cursor: pointer; font-weight: 700; font-size: var(--t-h3); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 700; color: var(--accent-ink); font-size: 1.4em; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: 12px; color: var(--carbon-soft); max-width: var(--measure); }

/* ---------- subscribe ---------- */
.subscribe { display: grid; gap: clamp(24px, 4vw, 48px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 820px) { .subscribe { grid-template-columns: 1fr 1fr; } }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--t-sm); font-weight: 600; }
.field input {
  font: inherit; padding: 13px 15px; border-radius: 8px; border: 1.5px solid var(--ash);
  background: var(--white); color: var(--carbon); width: 100%;
}
.field input:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-sm); color: var(--carbon-soft); }
.consent input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--accent-ink); }
.form .btn { justify-content: center; margin-top: 4px; }
.form-note { font-size: var(--t-xs); color: var(--carbon-soft); }
#successMsg { display: none; background: var(--mint); color: var(--accent-ink); font-weight: 600; padding: 14px 16px; border-radius: 8px; }
#successMsg.show { display: block; }

/* ---------- content pages ---------- */
.doc { max-width: 780px; }
.doc h1 { font-size: var(--t-hero); margin-bottom: 8px; }
.doc h2 { font-size: var(--t-h3); margin: 34px 0 10px; }
.doc h3 { font-size: 1.1rem; margin: 22px 0 8px; }
.doc p, .doc li { color: var(--carbon-soft); }
.doc p, .doc ul, .doc ol { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; display: grid; gap: 8px; }
.doc .updated { font-size: var(--t-sm); color: var(--carbon-soft); }
.lede { font-size: var(--t-lead); color: var(--carbon) !important; }

/* ---------- footer ---------- */
.site-foot { background: var(--deep); color: #d8d6cc; padding: clamp(48px, 7vw, 80px) var(--pad-x) 34px; }
.foot-top { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .foot-top { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-brand .brandmark { color: #fff; font-size: 1.6rem; }
.foot-brand p { margin-top: 14px; font-size: var(--t-sm); color: #b6b3a8; max-width: 40ch; }
.foot-col h4 { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .12em; color: #8fd6a4; margin-bottom: 12px; }
.foot-col a, .foot-col button.linklike {
  display: block; text-decoration: none; color: #d8d6cc; font-size: var(--t-sm);
  padding: 5px 0; background: none; border: none; text-align: left;
}
.foot-col a:hover, .foot-col button.linklike:hover { color: #fff; }
.foot-bottom { margin-top: 38px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: grid; gap: 14px; }
.disclaimer { font-size: var(--t-xs); color: #9b988d; line-height: 1.6; max-width: 100ch; }
.copyright { font-size: var(--t-xs); color: #86847a; }

/* ---------- cookie banner ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  background: var(--white); color: var(--carbon); border-radius: 14px;
  box-shadow: 0 20px 60px rgba(10,10,5,.32); padding: 20px; display: none;
  max-width: 560px; margin-inline: auto;
}
.cookie.show { display: block; }
.cookie h4 { font-size: 1.1rem; margin-bottom: 8px; }
.cookie p { font-size: var(--t-sm); color: var(--carbon-soft); }
.cookie .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cookie .btn, .cookie .btn--ghost { font-size: .92rem; padding: .6em 1.1em; }
.cookie .prefs { margin-top: 14px; display: none; border-top: 1px solid var(--fog); padding-top: 14px; }
.cookie .prefs.show { display: block; }
.cookie .prefs label { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-sm); margin-top: 10px; }
.cookie .prefs input { margin-top: 3px; accent-color: var(--accent-ink); }

/* ---------- 404 / grazie ---------- */
.center-page { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 18px; }
.center-page h1 { font-size: var(--t-mega); color: var(--accent); line-height: .9; }
.center-page .sub { font-size: var(--t-h2); font-weight: 800; }
.center-page p { color: var(--carbon-soft); max-width: 46ch; margin-inline: auto; }
.center-page .btn { justify-self: center; }

/* ---------- reveal (JS-driven only; CSS never hides) ---------- */
.is-hidden { opacity: 0; transform: translateY(18px); }
.is-shown { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .is-hidden { opacity: 1; transform: none; }
}
