/* Chip District UK — bone, aubergine, soft gold; outlined modular board */
:root {
  --bone: #faf8f2;
  --bone-deep: #f0ebe0;
  --aubergine: #4a1c40;
  --aubergine-ink: #2e1028;
  --gold: #c4a35a;
  --gold-soft: #d4b978;
  --ink: #1a1218;
  --muted: #5c4f58;
  --line: #4a1c40;
  --line-soft: rgba(74, 28, 64, 0.28);
  --danger: #8b1e3f;
  --max: 1180px;
  --measure: 68ch;
  --font-display: "Bodoni Moda", "Playfair Display", Georgia, serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bone);
  background-image:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(196, 163, 90, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(74, 28, 64, 0.06), transparent 50%);
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--aubergine); text-underline-offset: 0.15em; }
a:hover { color: var(--aubergine-ink); }
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--aubergine-ink);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin: 0 0 0.5em; }
h3 { font-size: 1.35rem; margin: 0 0 0.4em; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 52ch; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Age bar */
.age-bar {
  background: var(--aubergine);
  color: var(--bone);
  font-size: 0.875rem;
  text-align: center;
  padding: 0.55rem 1rem;
  letter-spacing: 0.02em;
}
.age-bar strong { color: var(--gold-soft); }
.age-bar a { color: var(--gold-soft); }

/* Header */
.site-header {
  border-bottom: 1.5px solid var(--line);
  background: var(--bone);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--aubergine-ink);
}
.brand img { width: 42px; height: 42px; }
.brand-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.1;
}
.brand-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--aubergine);
  padding: 0.45rem 0.7rem;
  font: inherit;
  cursor: pointer;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--aubergine); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--bone);
    border-bottom: 1.5px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0.65rem; }
  .header-inner { position: relative; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border: 2px solid var(--aubergine);
  background: transparent;
  color: var(--aubergine);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--aubergine); color: var(--bone); }
.btn-solid {
  background: var(--aubergine);
  color: var(--bone);
  border-color: var(--aubergine);
}
.btn-solid:hover { background: var(--aubergine-ink); color: var(--bone); }
.btn-gold {
  border-color: var(--gold);
  color: var(--aubergine-ink);
}
.btn-gold:hover { background: var(--gold); color: var(--aubergine-ink); }

/* Hero — opens into ranking */
.hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1.5px solid var(--line);
}
.hero-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 1.25rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.outline-box {
  border: 1.5px solid var(--line);
  background: transparent;
  padding: 1.25rem 1.35rem;
}

/* Modular board */
.board {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
  padding: 2rem 0 1rem;
}
.tile {
  border: 1.5px solid var(--line);
  background: transparent;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}
.tile-featured {
  grid-row: span 2;
  padding: 1.5rem;
  border-width: 2px;
  border-color: var(--aubergine);
}
.tile-wide { grid-column: span 2; }
.tile-logo {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  object-position: left center;
}
.tile-featured .tile-logo { height: 64px; max-width: 200px; }
.tile-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0;
  color: var(--aubergine-ink);
}
.tile-featured .tile-name { font-size: 2rem; }
.stars {
  display: inline-flex;
  gap: 0.12rem;
  color: var(--gold);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}
.stars span[aria-hidden="true"] { color: var(--line-soft); }
.stars .lit { color: var(--gold); }
.verdict {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
  max-width: none;
}
.tile-meta {
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  padding-top: 0.75rem;
  margin-top: auto;
}
.tile-meta strong { color: var(--ink); font-weight: 600; }
.tile-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.25rem; }

@media (max-width: 900px) {
  .board { grid-template-columns: 1fr 1fr; }
  .tile-featured { grid-column: span 2; grid-row: span 1; }
  .tile-wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .board { grid-template-columns: 1fr; }
  .tile-featured, .tile-wide { grid-column: span 1; }
}

/* Hairline rows for index */
.index-list {
  border-top: 1.5px solid var(--line);
  margin: 0.5rem 0 0;
}
.index-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-soft);
  min-width: 0;
}
.index-row img { width: 36px; height: 36px; object-fit: contain; }
.index-row .name { font-weight: 700; color: var(--aubergine-ink); }
.index-row .mini { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 640px) {
  .index-row {
    grid-template-columns: auto 1fr;
    grid-template-areas: "logo name" "logo stars" "cta cta";
  }
  .index-row img { grid-area: logo; }
  .index-row .name { grid-area: name; }
  .index-row .stars { grid-area: stars; }
  .index-row .btn { grid-area: cta; width: 100%; }
}

/* Sections */
.section { padding: 2.75rem 0; border-bottom: 1px solid var(--line-soft); }
.section-tight { padding: 1.75rem 0; }
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2.5rem;
}
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

.disclosure {
  border: 1.5px solid var(--line);
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  background: transparent;
}
.disclosure p { margin: 0; max-width: none; }

.rg-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  border: 2px solid var(--aubergine);
  padding: 1.25rem 1.4rem;
}
.rg-strip p { margin: 0; max-width: none; }
.rg-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}
.rg-logos a {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-soft);
  padding: 0.35rem 0.5rem;
  text-decoration: none;
}
.rg-logos img { height: 28px; width: auto; max-width: 110px; object-fit: contain; }
.rg-logos .text-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--aubergine);
  letter-spacing: 0.04em;
}
@media (max-width: 700px) {
  .rg-strip { grid-template-columns: 1fr; }
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line-soft);
  padding: 0.9rem 0;
}
.faq summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--aubergine-ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  display: inline-block;
  width: 1.2em;
  color: var(--gold);
  font-weight: 700;
}
.faq details[open] summary::before { content: "–"; }
.faq details p { margin-top: 0.6rem; color: var(--muted); }

/* Page chrome */
.page-hero {
  padding: 2.25rem 0 1.5rem;
  border-bottom: 1.5px solid var(--line);
}
.prose { padding: 2rem 0 3rem; }
.prose h2 { margin-top: 2rem; }
.prose ul, .prose ol { max-width: var(--measure); padding-left: 1.2rem; }
.prose li { margin-bottom: 0.45rem; }
.table-wrap { overflow-x: auto; border: 1.5px solid var(--line); margin: 1.25rem 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 560px;
}
th, td {
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
th {
  font-family: var(--font-display);
  background: transparent;
  color: var(--aubergine-ink);
  border-bottom: 1.5px solid var(--line);
  font-weight: 600;
}
tr:last-child td { border-bottom: 0; }

/* Footer */
.site-footer {
  border-top: 2px solid var(--aubergine);
  background: var(--bone-deep);
  padding: 2.5rem 0 2rem;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 1.75rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--aubergine-ink);
  margin: 0 0 0.5rem;
}
.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { text-decoration: none; color: var(--ink); font-size: 0.92rem; }
.footer-col a:hover { text-decoration: underline; }
.footer-statement {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.9rem;
  color: var(--muted);
  max-width: none;
}
.footer-licences {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-licences ul { list-style: none; padding: 0; margin: 0.5rem 0 0; columns: 2; gap: 1.5rem; }
.footer-licences li { break-inside: avoid; margin-bottom: 0.55rem; }
.footer-licences strong { color: var(--ink); }
.footer-bottom {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-licences ul { columns: 1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--bone);
  border-top: 2px solid var(--aubergine);
  padding: 1rem 1.25rem;
  display: none;
  box-shadow: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}
.cookie-inner p { margin: 0; font-size: 0.92rem; max-width: 62ch; }
.cookie-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* 404 */
.not-found { padding: 4rem 0 5rem; text-align: left; }
.not-found .btn { margin-top: 0.5rem; }

.contact-box {
  border: 1.5px solid var(--line);
  padding: 1.5rem;
  max-width: 36rem;
}
.contact-box a.mail {
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}
