/* JamRadar — website layout (landing, listing pages, long-form, blog, legal, 404).
   Load after tokens.css and jamradar.css. The app has its own copy of those two in src/styles. */

/* ---------- Fonts (self-hosted, latin) ---------- */
@font-face { font-family: Anton; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/anton-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: Archivo; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/archivo-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: Archivo; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/archivo-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: Archivo; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/archivo-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Stardos Stencil"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/stardos-stencil-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Special Elite"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/special-elite-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Permanent Marker"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/permanent-marker-latin-400-normal.woff2") format("woff2"); }

/* ---------- Base ---------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
main { flex: 1 0 auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
img { max-width: 100%; }
a { color: var(--ink); }
[hidden] { display: none !important; }

.site-wrap { width: 100%; max-width: 1112px; margin: 0 auto; padding: 0 16px; }
.site-wrap--wide { max-width: 1352px; }
.site-skip { position: absolute; left: -9999px; }
.site-skip:focus { left: 16px; top: 16px; z-index: 300; background: var(--sticker); color: var(--on-sticker); padding: 10px 14px; }

/* Links printed in ink */
.site-link, .site-prose a, .site-footer a, .site-crumbs a {
  color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.site-link:hover, .site-prose a:hover, .site-footer a:hover, .site-crumbs a:hover { text-decoration-thickness: 3px; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; background: var(--ground); border-bottom: var(--stroke-rule) var(--ink); }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; min-height: 64px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.site-logo { display: block; flex: 0 0 auto; width: 104px; height: 44px; }
.site-logo span, .site-footer__logo span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-logo::before {
  content: ""; display: block; width: 100%; height: 100%; background: var(--ink);
  -webkit-mask: url("/brand/jamradar-logo-inline.svg") no-repeat left center / contain;
          mask: url("/brand/jamradar-logo-inline.svg") no-repeat left center / contain;
}
.site-nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; }
.site-nav a:not(.jr-sticker) { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.site-nav .jr-sticker-wrap { margin-left: 4px; }
@media (min-width: 1024px) { .site-logo { width: 112px; } }

/* ---------- Hero ---------- */
.site-hero { padding: 28px 0 44px; }
.site-crumbs { font-family: var(--font-type); font-size: 14px; line-height: 20px; color: var(--ink-soft); margin-bottom: 14px; }
.site-crumbs a { font-weight: 400; text-decoration-thickness: 1px; color: var(--ink); display: inline-block; padding: 6px 0; }
.site-crumbs [aria-current] { color: var(--ink-soft); }
.site-h1 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase; color: var(--ink);
  font-size: clamp(44px, 10.5vw, 96px); line-height: 0.9; letter-spacing: -0.5px; max-width: 14ch; overflow-wrap: break-word;
}
.site-h1--long { max-width: 18ch; }
.site-lead { margin-top: 20px; max-width: 640px; font-size: clamp(17px, 2.2vw, 20px); line-height: 1.55; }
.site-lead + .site-lead { margin-top: 10px; }
.site-lead--note { color: var(--ink); font-size: 16px; }
.site-lead--strong { font-family: var(--font-display); font-size: clamp(24px, 3.6vw, 34px); line-height: 1.08; letter-spacing: 0.3px; text-transform: uppercase; max-width: 22ch; }
.site-lead a { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.site-facts { list-style: none; padding: 0; margin: 14px 0 0; max-width: 640px; display: grid; gap: 4px; font-family: var(--font-type); font-size: 16px; line-height: 1.5; }
.site-facts li::before { content: "\2014\00a0"; }
.site-need { display: inline-block; margin-top: 16px; padding: 6px 12px 7px; background: var(--ink-block); color: var(--on-ink); font-family: var(--font-display); font-size: clamp(18px, 2.6vw, 22px); letter-spacing: 0.5px; text-transform: uppercase; transform: rotate(-1deg); }
@media (prefers-reduced-motion: reduce) { .site-need { transform: none; } }
.site-hero .jr-sticker-wrap { margin-top: 28px; }
.site-sticker-cta { font-size: 20px; }

/* ---------- Ink band of numbers ---------- */
.site-band { background: var(--ink-block); color: var(--on-ink); }
.site-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; padding-top: 10px; padding-bottom: 10px; }
.site-stat { padding: 10px 16px; border-left: 2px dashed var(--on-ink); }
.site-stat__num { display: block; font-family: var(--font-display); font-size: clamp(40px, 7vw, 60px); line-height: 1; text-transform: uppercase; }
.site-stat__label { display: block; font-family: var(--font-type); font-size: 14px; line-height: 20px; }

/* ---------- Sections ---------- */
.site-section { padding: 44px 0 12px; }
.site-section:last-of-type { padding-bottom: 56px; }
.site-h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(34px, 6vw, 52px); line-height: 0.98; color: var(--ink); margin-bottom: 18px; }
.site-sub { color: var(--ink-soft); font-size: 15px; line-height: 22px; margin: -8px 0 18px; }

/* Place cards (countries, states, cities) */
.site-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.site-place {
  display: flex; flex-direction: column; gap: 2px; min-height: 64px; padding: 12px 16px; text-decoration: none;
  background: var(--ground-raised); color: var(--ink); border: var(--stroke-control) var(--ink);
}
.site-place:hover { background: var(--ink-block); color: var(--on-ink); }
.site-place__name { font-weight: 600; font-size: 17px; line-height: 22px; }
.site-place__count { font-family: var(--font-type); font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.site-place:hover .site-place__count { color: var(--on-ink); }
@media (max-width: 639px) { .site-places { grid-template-columns: 1fr; } }

/* Bar charts (city pages) */
.site-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.site-chart { background: var(--ground-raised); border: var(--stroke-frame) var(--ink); padding: 18px 18px 14px; }
.site-chart h3 { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.1; text-transform: uppercase; margin-bottom: 12px; }
.site-bar { display: grid; grid-template-columns: minmax(84px, 34%) 1fr 32px; align-items: center; gap: 10px; padding: 5px 0; font-size: 15px; }
.site-bar__label { overflow-wrap: anywhere; }
.site-bar__track { height: 16px; border: 2px solid var(--ink); }
.site-bar__fill { display: block; height: 100%; min-width: 2px; background: var(--ink-block); }
.site-bar__count { font-family: var(--font-type); font-size: 14px; text-align: right; }

/* ---------- Reading column ---------- */
.site-reading { width: 100%; max-width: 752px; margin: 0 auto; padding: 0 16px; }
.site-prose { font-size: 18px; line-height: 1.7; }
.site-prose > * + * { margin-top: 18px; }
.site-prose h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 5vw, 40px); line-height: 1.02; margin-top: 44px; }
.site-prose h3 { font-weight: 800; font-size: 20px; line-height: 1.3; margin-top: 30px; }
.site-prose ul, .site-prose ol { padding-left: 24px; }
.site-prose li + li { margin-top: 10px; }
.site-prose strong { font-weight: 800; }
.site-prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; display: block; overflow-x: auto; }
.site-prose th, .site-prose td { text-align: left; padding: 10px 12px; border-bottom: var(--stroke-rule) var(--ink); vertical-align: top; }
.site-prose th { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: var(--stroke-frame) var(--ink); }
.site-meta { font-family: var(--font-type); font-size: 14px; line-height: 20px; color: var(--ink-soft); margin-top: 12px; }

/* Framed call to action inside the text */
.site-cta-box, .site-note { margin-top: 32px; }
.site-cta-box { background: var(--ground-raised); border: var(--stroke-frame) var(--ink); padding: 22px 20px 26px; font-size: 16px; line-height: 1.5; }
.site-cta-box h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 28px; line-height: 1.05; margin: 0 0 8px; }
.site-cta-box p { margin: 0; }
.site-cta-box .jr-sticker-wrap { margin-top: 20px; }
.site-note { border: var(--stroke-rule) var(--ink); padding: 14px 16px; font-size: 16px; line-height: 1.5; }

/* ---------- FAQ accordion ---------- */
.site-faq { border-bottom: var(--stroke-rule) var(--ink); font-size: 16px; line-height: 1.55; }
.site-faq details { border-top: var(--stroke-rule) var(--ink); }
.site-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 10px 0;
  cursor: pointer; list-style: none; font-weight: 800; font-size: 17px; line-height: 1.3;
}
.site-faq summary::-webkit-details-marker { display: none; }
.site-faq summary::after { content: "+"; flex: 0 0 auto; font-family: var(--font-type); font-size: 22px; line-height: 1; }
.site-faq details[open] summary::after { content: "\2212"; }
.site-faq details > p { margin: 0; padding: 0 0 16px; max-width: 62ch; }

/* ---------- Closing band ---------- */
.site-close { background: var(--ink-block); color: var(--on-ink); padding: 36px 0 40px; }
.site-close__row { display: flex; align-items: center; justify-content: space-between; gap: 24px 32px; flex-wrap: wrap; }
.site-close h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(36px, 6.5vw, 60px); line-height: 0.95; max-width: 24ch; }
.site-close p { margin-top: 6px; font-size: 17px; }

/* ---------- Footer ---------- */
.site-footer { padding: 36px 0 32px; }
.site-footer__logo { display: block; width: 78px; height: 78px; }
.site-footer__logo::before {
  content: ""; display: block; width: 100%; height: 100%; background: var(--ink);
  -webkit-mask: url("/brand/jamradar-logo.svg") no-repeat left center / contain;
          mask: url("/brand/jamradar-logo.svg") no-repeat left center / contain;
}
.site-footer__group { margin-top: 22px; }
.site-footer__group h2 { font-family: var(--font-type); font-weight: 400; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0 20px; list-style: none; padding: 0; }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.site-footer__meta { margin-top: 14px; font-family: var(--font-type); font-size: 13px; line-height: 20px; color: var(--ink-soft); }
.site-footer__meta a { font-weight: 400; text-decoration-thickness: 1px; }

/* ---------- Blog index ---------- */
.site-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; padding-bottom: 12px; }
.site-post { display: flex; flex-direction: column; gap: 10px; background: var(--ground-raised); border: var(--stroke-frame) var(--ink); padding: 20px 18px 22px; }
.site-post:nth-child(odd) { transform: rotate(-0.7deg); }
.site-post:nth-child(even) { transform: rotate(0.6deg); }
.site-post .site-meta { margin: 0; order: -1; }
.site-post h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 26px; line-height: 1.02; }
.site-post h2 a { color: var(--ink); text-decoration: none; }
.site-post h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.site-post p { font-size: 16px; line-height: 1.5; }
.site-post__more { margin-top: auto; padding-top: 6px; }

/* ---------- Legal ---------- */
.site-toc { margin-top: 20px; background: var(--ground-raised); border: var(--stroke-frame) var(--ink); padding: 16px 18px; font-size: 16px; line-height: 1.5; }
.site-toc ol { margin: 6px 0 0; padding-left: 22px; }
.site-toc li + li { margin-top: 4px; }
.site-toc a { font-weight: 400; text-decoration-thickness: 1px; display: inline-block; padding: 4px 0; }
.site-legal .site-h1 { font-size: clamp(40px, 9vw, 80px); max-width: none; }

/* ---------- 404 ---------- */
.site-404 { padding: 40px 0 64px; }
.site-404__code { font-size: clamp(120px, 34vw, 220px); line-height: 0.82; padding: 6px 18px 14px; margin-bottom: 18px; }
.site-404 .site-h1 { font-size: clamp(40px, 9vw, 76px); max-width: 13ch; }
.site-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; }
.site-actions .jr-sticker-wrap { margin-top: 0; }
.site-actions .site-link { display: inline-flex; align-items: center; min-height: 44px; }

/* Stickers that are links keep their own colour */
a.jr-sticker, a.jr-sticker:hover { color: var(--on-sticker); text-decoration: none; }

@media (min-width: 1024px) {
  .site-hero { padding: 36px 0 56px; }
  .site-section { padding-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-post:nth-child(n) { transform: none; }
}
@media print {
  .jr-tex::after, .site-header .site-nav, .site-close { display: none; }
}

/* Inverted theme: the light mottle on black fills reads too strong at hero strength */
[data-theme="inverted"] .jr-tex--ink::after { opacity: calc(var(--jr-tex, var(--texture-browse)) * 0.45); }

/* Large ink fills carry a lighter print texture than hero paper, so the type on them stays clean */
.site-band.jr-tex, .site-close.jr-tex { --jr-tex: var(--texture-browse); }

/* A sticker that is working ("Saving…", "Signing in…") stays a sticker; only an unavailable one becomes a dashed outline. */
.jr-sticker[aria-busy="true"], .jr-sticker[aria-busy="true"]:disabled {
  background-color: var(--sticker);
  background-image: linear-gradient(135deg, rgba(255,255,255,.6) 0%, rgba(255,255,255,0) 38%);
  color: var(--on-sticker); border: 0; box-shadow: var(--shadow-sticker); cursor: progress; transform: none;
}

/* ---------- Region maps (landing page and /musicians): one slide per region, arrows to move between them ---------- */
.lp-map {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "track track track" "prev label next";
  align-items: center; gap: 8px 10px; width: 100%; max-width: 680px; padding: 4% 3% 12px;
  background: var(--on-ink); color: var(--ink-block); transform: rotate(-1.5deg);
}
.lp-map__track { grid-area: track; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.lp-map__track::-webkit-scrollbar { display: none; }
.lp-map__slide { flex: 0 0 100%; scroll-snap-align: start; }
.lp-map__svg { display: block; width: 100%; height: auto; }
.lp-map__svg pattern circle { fill: var(--ink-block); opacity: 0.4; }
.lp-map__land { stroke: var(--ink-block); stroke-width: 3; stroke-linejoin: round; }
.lp-map__pins circle { fill: var(--sticker); stroke: var(--on-sticker); stroke-width: 2; }
.lp-map__nav { color: var(--ink-block); border-color: var(--ink-block); }
.lp-map__nav--prev { grid-area: prev; }
.lp-map__nav--next { grid-area: next; }
.lp-map .lp-map__label { grid-area: label; margin: 0; max-width: none; text-align: center; font-family: var(--font-type); font-size: 14px; letter-spacing: 2px; text-transform: uppercase; }
@media (min-width: 800px) {
  .lp-map { grid-template-areas: "prev track next" ". label ."; padding: 4% 12px 12px; }
}
@media (prefers-reduced-motion: reduce) { .lp-map { transform: none; } }

/* ---------- Place maps on the /musicians pages ---------- */
.site-map__svg { display: block; width: 100%; height: auto; }
.site-map__svg pattern circle { fill: var(--ink-block); opacity: 0.4; }
.site-map__land { stroke: var(--ink-block); stroke-width: 3; stroke-linejoin: round; }
.site-map__context { fill: none; stroke: var(--ink-block); stroke-width: 2; stroke-linejoin: round; opacity: 0.35; }
.site-map__pin { fill: var(--sticker); stroke: var(--on-sticker); stroke-width: 2; }
.site-map__pin--other { fill: var(--ink-block); opacity: 0.75; }
.site-map__svg a:hover .site-map__pin, .site-map__svg a:focus-visible .site-map__pin { fill: var(--marker); stroke-width: 4; }
.site-map__svg a:focus-visible { outline: none; }
.site-map__halo { fill: none; stroke: var(--sticker); stroke-width: 3; stroke-dasharray: 6 5; }
.site-map__label { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.5px; text-transform: uppercase; fill: var(--ink-block); stroke: var(--on-ink); stroke-width: 5px; paint-order: stroke; }
.site-map__label--current { fill: var(--sticker); font-size: 26px; }
@media (max-width: 699px) { .site-map__label { display: none; } .site-map__label--current { display: inline; font-size: 44px; stroke-width: 9px; } }

/* Maps where the countries are the links (the /musicians page) */
.site-map__quiet { fill: none; stroke: var(--ink-block); stroke-width: 1; stroke-linejoin: round; opacity: 0.4; }
.site-map__country { stroke: var(--ink-block); stroke-width: 2; stroke-linejoin: round; cursor: pointer; }
.site-map__svg a:hover .site-map__country, .site-map__svg a:focus-visible .site-map__country { fill: var(--sticker); stroke: var(--sticker); }
.site-countries { list-style: none; padding: 0; margin: 0; }
.site-countries li { break-inside: avoid; }
.site-countries a { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px dashed var(--ink-soft); }
.site-countries a:hover span:first-child, .site-countries a:focus-visible span:first-child { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.site-countries__count { margin-left: auto; font-family: var(--font-type); font-weight: 400; font-size: 14px; color: var(--ink-soft); }


/* ---------- The explorer that opens every /musicians page: title bar, map, places beside it ---------- */
/* Its frame is the same size on every page, so nothing jumps when you move between levels. */
.site-explore { background: var(--ink-block); padding: 16px 0 20px; }
.site-explore.jr-tex { --jr-tex: var(--texture-browse); }
.site-explore__card { background: var(--on-ink); color: var(--ink-block); }
.site-explore__bar { display: grid; grid-template-rows: 44px 34px 24px; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 2px dashed var(--ink-block); }
.site-explore__bar .site-up { justify-self: start; max-width: 100%; color: var(--ink-block); border-color: var(--ink-block); font-size: 16px; min-height: 44px; padding: 8px 14px; white-space: nowrap; overflow: hidden; }
.site-explore__bar .site-up:hover, .site-explore__bar .site-up:focus-visible { background: var(--ink-block); color: var(--on-ink); }
.site-explore__title { min-width: 0; font-family: var(--font-display); font-size: 30px; line-height: 34px; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-explore__counts { font-family: var(--font-type); font-size: 15px; line-height: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-explore__counts strong { font-family: var(--font-display); font-weight: 400; font-size: 22px; letter-spacing: 0.5px; margin-right: 3px; }
.site-explore__body { display: grid; }
.site-explore__map { min-width: 0; padding: 12px; }
/* All maps are drawn 1000 by 600 */
.site-explore__map .site-map__svg { aspect-ratio: 1000 / 600; }
.site-explore__list { min-width: 0; padding: 14px 16px 16px; border-top: 2px dashed var(--ink-block); }
.site-explore__listhead { margin-bottom: 6px; font-family: var(--font-type); font-size: 13px; line-height: 20px; letter-spacing: 2px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-explore__empty { padding: 7px 0; font-family: var(--font-type); font-size: 15px; }
.site-explore__scroll { height: 336px; overflow-y: auto; overscroll-behavior: contain; }
.site-explore .site-countries a { color: var(--ink-block); border-bottom-color: var(--ink-block); }
.site-explore .site-countries__count { color: var(--ink-block); }
/* A page with nothing to draw keeps the map's place empty, so the frame stays the same */
.site-explore__body--nomap::before { content: ""; aspect-ratio: 1000 / 600; margin: 12px; }
@media (min-width: 900px) {
  .site-explore { padding: 24px 0 28px; }
  .site-explore__bar { grid-template-rows: 46px; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; }
  .site-explore__title { font-size: 38px; line-height: 46px; }
  .site-explore__body { grid-template-columns: minmax(0, 1fr) 300px; }
  .site-explore__list { border-top: 0; border-left: 2px dashed var(--ink-block); display: flex; flex-direction: column; height: 0; min-height: 100%; }
  /* The list is as tall as the map and scrolls inside it */
  .site-explore__scroll { flex: 1 1 0; min-height: 0; height: auto; }
  .site-explore__body--nomap { grid-template-columns: minmax(0, 1fr) 300px; }
}
