:root {
  --ink: #07140f;
  --ink-2: #0e2219;
  --ink-3: #163328;
  --panel: #10261c;
  --leaf: #52b788;
  --sage: #9fcbb5;
  --ice: #dff6eb;
  --mist: #b7d8c8;
  --copper: #c45c26;
  --clay: #e07a3d;
  --ochre: #d4a054;
  --line: rgba(159, 203, 181, 0.22);
  --shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(196, 92, 38, 0.16), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(42, 157, 143, 0.12), transparent 50%),
    var(--ink);
  color: var(--ice);
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--ochre);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--clay);
}

h1, h2, h3, h4 {
  font-family: "Bricolage Grotesque", Georgia, serif;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
}

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

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 80;
  background: var(--ice);
  color: var(--ink);
  padding: 8px 12px;
}

/* Header */
.mast {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(7, 20, 15, 0.86);
  border-bottom: 1px solid var(--line);
}

.mast-row {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ice);
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.brand strong {
  display: block;
  font-family: "Bricolage Grotesque", Georgia, serif;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.brand span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
}

.nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex: 1;
}

.nav a {
  color: var(--mist);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
}

.nav a:hover,
.nav a.is-here {
  color: var(--ink);
  background: var(--sage);
}

.chip-18 {
  border: 1px solid var(--copper);
  color: var(--clay);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
}

.burger i,
.burger i::before,
.burger i::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ice);
  margin: 0 auto;
  position: relative;
}

.burger i::before,
.burger i::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger i::before { top: -6px; }
.burger i::after { top: 6px; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  padding: 48px 0 20px;
  align-items: stretch;
}

.hero-visual {
  position: relative;
  min-height: 420px;
  border-radius: 36px 12px 48px 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
  filter: saturate(0.85) contrast(1.05);
}

.hero-visual figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(7, 20, 15, 0.78);
  padding: 8px 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  border-left: 3px solid var(--copper);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 0 12px 8px;
}

.kicker {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 4.1rem);
  max-width: 14ch;
  margin-bottom: 18px;
}

.hero h1 em {
  font-style: normal;
  color: var(--clay);
}

.lede {
  color: var(--mist);
  max-width: 42ch;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 4px 18px 4px 18px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-copper {
  background: linear-gradient(135deg, var(--copper), var(--clay));
  color: #1a0d08;
}

.btn-ghost {
  background: transparent;
  color: var(--ice);
  border: 1px solid var(--line);
}

.btn-ink {
  background: var(--ink-3);
  color: var(--ice);
}

.btn-full { width: 100%; }

/* Age alert */
.age-alert {
  margin: 28px auto 10px;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  background:
    linear-gradient(90deg, rgba(196, 92, 38, 0.2), transparent 40%),
    var(--panel);
  border: 1px solid var(--copper);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}

.age-alert b {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--copper);
  color: #1a0d08;
  font-family: "Bricolage Grotesque", Georgia, serif;
  font-size: 28px;
}

.age-alert h2 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.age-alert p {
  color: var(--mist);
  font-size: 15px;
}

.age-alert .help-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 10px;
  font-size: 14px;
}

/* Featured rails */
.pick-block {
  padding: 42px 0 12px;
}

.pick-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 22px;
}

.pick-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  max-width: 16ch;
}

.pick-list {
  display: grid;
  gap: 14px;
}

.rail {
  display: grid;
  grid-template-columns: 92px 180px 1fr 190px;
  gap: 18px;
  align-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 40%), var(--ink-2);
  border: 1px solid var(--line);
  border-left: 6px solid var(--copper);
  border-radius: 18px;
  padding: 16px 18px;
}

.rail:nth-child(2) { border-left-color: var(--ochre); }
.rail:nth-child(3) { border-left-color: var(--leaf); }

.score {
  font-family: "Bricolage Grotesque", Georgia, serif;
  font-size: 42px;
  color: var(--ochre);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.score small {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: 6px;
}

.rail .logo {
  height: 72px;
  width: 180px;
  object-fit: contain;
  object-position: center;
  background: #050b08;
  border-radius: 10px;
}

.rail p {
  color: var(--mist);
  font-size: 15px;
}

/* Catalog */
.catalog {
  padding: 36px 0 20px;
}

.catalog h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  margin-bottom: 8px;
}

.catalog .intro {
  color: var(--mist);
  max-width: 60ch;
  margin-bottom: 28px;
}

.dossier {
  display: grid;
  gap: 16px;
}

.fiche {
  display: grid;
  grid-template-columns: 70px minmax(180px, 240px) 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px;
  background: var(--panel);
  border-radius: 8px 28px 8px 28px;
  border: 1px solid var(--line);
}

.num {
  font-family: "Bricolage Grotesque", Georgia, serif;
  font-size: 34px;
  color: var(--sage);
}

.fiche .logo {
  width: 100%;
  height: 72px;
  object-fit: contain;
  object-position: center;
  background: #08150f;
  border-radius: 12px;
  justify-self: center;
}

.fiche h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.fiche p {
  color: var(--mist);
  font-size: 15px;
}

.note-score {
  color: var(--ochre);
  font-weight: 700;
  font-size: 14px;
}

/* Mosaic */
.mosaic-band {
  display: flex;
  justify-content: center;
  padding: 36px 20px 8px;
}

.mosaic {
  width: min(860px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
  gap: 12px;
}

.mosaic a,
.mosaic .tile {
  display: grid;
  place-items: center;
  min-height: 96px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ice);
  text-decoration: none;
  padding: 14px 10px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mosaic b {
  display: block;
  font-family: "Bricolage Grotesque", Georgia, serif;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--ochre);
  margin-bottom: 4px;
}

.mosaic a:nth-child(1) {
  background:
    linear-gradient(160deg, rgba(196,92,38,0.5), rgba(7,20,15,0.5)),
    url("../img/deco-stade.jpg") center/cover;
}

.mosaic a:nth-child(1) span {
  background: rgba(7,20,15,0.78);
  padding: 8px 10px;
}

/* Info columns */
.grounds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 28px 0 10px;
}

.card-text {
  background: var(--ink-2);
  border-radius: 24px;
  padding: 26px;
  border-top: 4px solid var(--leaf);
}

.card-text:nth-child(2) { border-top-color: var(--copper); }
.card-text:nth-child(3) { border-top-color: var(--ochre); }
.card-text:nth-child(4) { border-top-color: var(--sage); }

.card-text h2,
.card-text h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.card-text p,
.card-text li {
  color: var(--mist);
  font-size: 15.5px;
}

.side-photo {
  border-radius: 24px;
  overflow: hidden;
  min-height: 220px;
}

.side-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Inner pages */
.page-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  padding: 40px 0 10px;
  align-items: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 14px;
}

.page-hero p {
  color: var(--mist);
  max-width: 50ch;
}

.page-hero img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 30px 8px 40px 8px;
}

.reading {
  display: grid;
  grid-template-columns: minmax(0, 70ch) minmax(220px, 1fr);
  gap: 40px;
  padding: 20px 0 50px;
}

.reading article h2 {
  font-size: 1.5rem;
  margin: 28px 0 10px;
}

.reading article h3 {
  font-size: 1.15rem;
  margin: 20px 0 8px;
  color: var(--ochre);
}

.reading article p,
.reading article li {
  margin-bottom: 12px;
  color: var(--mist);
}

.reading ol,
.reading ul {
  padding-left: 18px;
  margin-bottom: 14px;
}

.rail-aside {
  position: sticky;
  top: 100px;
  align-self: start;
  background: var(--panel);
  border-radius: 20px;
  padding: 18px;
  border: 1px solid var(--line);
}

.rail-aside img {
  border-radius: 12px;
  margin-bottom: 12px;
  height: 140px;
  width: 100%;
  object-fit: cover;
}

.mail-box {
  font-size: 1.2rem;
  background: var(--ink);
  padding: 14px;
  border-radius: 12px;
  margin: 16px 0;
}

/* Footer */
.foot {
  margin-top: 30px;
  background:
    linear-gradient(180deg, transparent, rgba(196, 92, 38, 0.08)),
    #05110c;
  border-top: 1px solid var(--line);
  padding: 42px 0 24px;
}

.licence-banner {
  background: #1a2e24;
  border: 2px solid var(--ochre);
  border-radius: 18px;
  padding: 18px 22px;
  margin-bottom: 28px;
  font-size: 15px;
}

.licence-banner strong {
  display: block;
  color: var(--ochre);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 6px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.foot h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.foot a {
  display: block;
  color: var(--sage);
  text-decoration: none;
  margin: 6px 0;
  font-size: 14px;
}

.foot a:hover { color: var(--ice); }

.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--sage);
  font-size: 13px;
}

/* Age gate - similar structure to reference plaque */
.veil {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(5, 12, 10, 0.72);
  display: grid;
  place-items: center;
  padding: 20px;
}

.veil[hidden],
.toast[hidden] {
  display: none !important;
}

.gate {
  width: min(560px, 100%);
  background: #fff;
  color: #2a2156;
  border-radius: 18px;
  padding: 34px 32px 28px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.gate h2 {
  color: #2a2156;
  font-size: 1.45rem;
  margin-bottom: 12px;
  letter-spacing: 0;
}

.gate p {
  color: #4a4270;
  font-size: 15px;
  margin-bottom: 22px;
}

.gate a {
  color: #2a2156;
}

.gate-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gate .btn-leave {
  background: #fff;
  color: #2a2156;
  border: 1.5px solid #c9c4de;
  border-radius: 999px;
}

.gate .btn-enter {
  background: #3b6dff;
  color: #fff;
  border-radius: 999px;
}

/* Cookie toast */
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  width: min(360px, calc(100% - 24px));
  background: #fff;
  color: #1b1633;
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.toast p {
  font-size: 14px;
  margin-bottom: 12px;
}

.toast a { color: #3b6dff; }

.toast-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.toast .btn-leave {
  background: #fff;
  border: 1px solid #d7d3e8;
  color: #1b1633;
  border-radius: 999px;
}

.toast .btn-enter {
  background: #12101c;
  color: #fff;
  border-radius: 999px;
}

body.locked {
  overflow: hidden;
}

@media (max-width: 980px) {
  .nav {
    margin: 0;
  }
  .hero,
  .grounds,
  .page-hero,
  .reading,
  .foot-grid,
  .mosaic,
  .age-alert,
  .rail,
  .fiche {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: #0b1c15;
    flex-direction: column;
    padding: 12px;
  }

  .nav.open { display: flex; }
  .burger { display: block; }
  .rail-aside { position: static; }
  .hero-visual,
  .hero-visual img { min-height: 260px; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 24px); }
  .gate-actions,
  .toast-actions { grid-template-columns: 1fr; }
  .pick-head { flex-direction: column; align-items: start; }
}
