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

/* Site colours. Components read these (var(--t-…)). */
:root {
  --t-bg: #050506;
  --t-fg: #d9d9de;          /* body text */
  --t-strong: #ffffff;      /* titles, links */
  --t-muted: #8b8b93;
  --t-line: #55555e;
  --t-line-soft: #26262b;
  --t-panel: #141416;       /* empty tiles behind photos */
  --t-scrim: rgba(20, 20, 22, 0.86);
  --t-accent: #e11e2d;      /* buttons, hovers */
  --t-on-accent: #ffffff;   /* text on buttons */
  --t-chip: #ecebe6;        /* round arrow buttons */
  --t-chip-ink: #0b0b0c;
  --t-nav-bg: #000000;      /* nav and footer */
  --t-drawer: #0b0b0c;      /* cart drawer, product popup */
  --t-overlay: rgba(5, 5, 6, 0.92);
  --t-logo-filter: none;    /* white footer wordmark */
  --t-texture: 0.4;
  --t-card: #ecebe6;        /* Streets of Hate TV menu card */
  --t-card-ink: #0b0b0c;
  --t-card-muted: #6b6b70;
  --t-card-rule: #cfcdc6;
}

html {
  background-color: var(--t-bg);
}

html, body {
  min-height: 100%;
  color: var(--t-strong);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Background texture, static while the page scrolls: brick and speckles
   (bg-texture-loop.webp, already tilted -6deg, repeats top-to-bottom without a seam) plus
   brick pieces fading in from the bottom-left and bottom-right corners of the
   screen. It's one fixed layer under the page content; main and footer sit above it.
   The layer runs far below the screen so full-page screenshots get the texture all the way
   down (they only draw a fixed layer once, at the top); on screen only the top part shows. */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 30000px;
  z-index: 0;
  pointer-events: none;
  opacity: var(--t-texture);  /* how strong the whole texture is (1 = full); off in light mode */
  --corner: clamp(320px, 46vw, 900px);
  background:
    url("/images/corner-bricks.webp") left 0 top calc(100vh - var(--corner)) / var(--corner) no-repeat,
    url("/images/corner-mix.webp") right 0 top calc(100vh - var(--corner)) / var(--corner) no-repeat,
    url("/images/bg-texture-loop.webp") center top / max(100vw, 188.24vh) auto repeat-y;
}

main,
footer {
  position: relative;
  z-index: 1;
}

/* the footer sits at the bottom of the screen even when a page is short */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* torn edges run a little past the sides of the page; clip them so there's no sideways scroll */
body > main { overflow-x: clip; }
body > main { flex: 1 0 auto; }

/* Archivo (variable: weight 100–900, width 62–125%). Expanded SemiBold
   matches the "STREETS OF HATE" lettering in the logo. */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2-variations"),
       url("/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

/* Archivo Black (SIL OFL): the Streets of Hate TV card title */
@font-face {
  font-family: "Archivo Black";
  src: url("/fonts/archivo-black.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- zine details ---------- */

/* film grain over the whole page, like a photocopy (static) */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 30000px;           /* runs below the screen for full-page screenshots, like the texture */
  z-index: 98;               /* under the nav, so the top of the screen is only the solid nav */
  pointer-events: none;
  background: url("/images/grain.png") repeat;
  opacity: 0.075;
}

/* plain line between sections: <div class="tear" data-decor aria-hidden="true"></div> */
.tear {
  height: 1px;
  background: var(--t-line);      /* same grey as the line between New Releases and Merch */
  pointer-events: none;
}

/* homepage: Merch, then New Releases, each a full-width row (6 across on desktop) */
.split { display: grid; grid-template-columns: minmax(0, 1fr); }
.split > :first-child { border-bottom: 1px solid var(--t-line); }
@media (min-width: 761px) {
  .split merch-preview { --merch-per-row: 6; }
}


/* ---------- 404 ---------- */
.not-found {
  min-height: calc(100vh - 108px);
  display: grid;
  place-content: center;
  gap: 12px;
  padding: 80px 24px;
  text-align: center;
}

/* the hand-tagged "streets of hate" above "Page not found" (follows the text colour) */
.not-found .tag {
  width: min(320px, 70vw);
  aspect-ratio: 260 / 221;
  margin: 0 auto 18px;
  background: var(--t-strong);
  -webkit-mask: url("/images/logo/soh-tag.webp") center / contain no-repeat;
          mask: url("/images/logo/soh-tag.webp") center / contain no-repeat;
  transform: rotate(-4deg);
}

.not-found h1 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--t-fg);
}

.not-found p {
  font-size: 13px;
  letter-spacing: 0.08em;
}

.not-found a {
  color: var(--t-accent);
}

/* Privacy / Terms pages */
main.policy {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
main.policy h1 {
  margin-bottom: 12px;
  font-family: "Archivo Black", "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--t-strong);
}
main.policy .updated { margin-bottom: 40px; font-size: 13px; color: var(--t-muted); }
main.policy section { margin-bottom: 32px; }
main.policy h2 {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--t-strong);
}
main.policy p,
main.policy ul { margin-bottom: 12px; font-size: 15px; line-height: 1.7; color: var(--t-fg); }
main.policy ul { padding-left: 20px; }
main.policy a { color: var(--t-strong); }
main.policy a:hover { color: var(--t-accent); }
@media (max-width: 640px) { main.policy { padding: 36px 20px 56px; } }

/* header strip of the hand-tagged "streets of hate" repeated across the page, under the nav
   (Artists and Store pages): four tags on wide screens, two on phones. The tag is a mask, so it
   follows the text colour. */
.tag-strip {
  position: relative;
  z-index: 1;
  flex: none;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 120px;
  padding: 12px 24px;
  background: #f4f4f2;      /* white strip, black tags and title, on the dark site */
  overflow: hidden;
}
.tag-strip span {
  height: 100%;
  aspect-ratio: 260 / 221;
  background: #000;
  -webkit-mask: url("/images/logo/soh-tag.webp") center / contain no-repeat;
          mask: url("/images/logo/soh-tag.webp") center / contain no-repeat;
}
.tag-strip span:nth-of-type(odd) { transform: rotate(-4deg); }
.tag-strip span:nth-of-type(even) { transform: rotate(3deg); }
/* the page title sits in the middle of the strip (the title inside the page is hidden):
   two tags each side on desktop, just the title on phones */
.strip-title {
  font-family: "Archivo Black", "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 56px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #000;
}
@media (max-width: 760px) {
  /* phones: no tags, just the page title centred */
  .tag-strip { height: auto; padding: 20px 16px; justify-content: center; }
  .tag-strip span { display: none; }
  .strip-title { font-size: 34px; }
}

/* solid black bar behind the fixed nav (added by nav-bar.js), same size as the nav. It's there for
   Safari on iPhone, which tints the area behind the status bar from a fixed bar like this one;
   without it the page shows through up there while scrolling. */
.top-cover {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  height: calc(108px + env(safe-area-inset-top, 0px));
  background-color: #000;
  pointer-events: none;
}
@media (max-width: 760px) {
  .top-cover { height: calc(82px + env(safe-area-inset-top, 0px)); }
}

/* Contact page */
main.contact {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
main.contact h1 {
  margin-bottom: 14px;
  font-family: "Archivo Black", "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--t-strong);
}
.contact-intro { margin-bottom: 36px; font-size: 15px; line-height: 1.7; color: var(--t-fg); }
.contact-intro a, .contact-social a { color: var(--t-strong); }
.contact-intro a:hover, .contact-social a:hover { color: var(--t-accent); }
.contact-form { display: grid; gap: 22px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-form label {
  display: grid;
  gap: 8px;
  font: 600 12px/1 "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-stretch: 125%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t-strong);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--t-panel);
  border: 1px solid var(--t-line);
  border-radius: 0;
  color: var(--t-strong);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-transform: none;
  letter-spacing: normal;
}
.contact-form textarea { resize: vertical; min-height: 180px; }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--t-strong); }
.contact-form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .status { min-height: 1.4em; font-size: 14px; color: var(--t-fg); }
.contact-form .status[data-kind="error"] { color: var(--t-accent); }
.contact-form button {
  justify-self: center;
  height: 54px;
  padding: 0 48px;
  color: var(--t-on-accent);
  background: var(--t-accent);
  border: 2px solid var(--t-accent);
  font: 600 15px/1 "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-stretch: 125%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.contact-form button:hover:not(:disabled) { background: transparent; color: var(--t-strong); }
.contact-form button:disabled { opacity: 0.6; cursor: default; }
.contact-social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--t-line);
}
.contact-social a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 13px/1 "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-stretch: 125%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.contact-social svg { width: 20px; height: 20px; }
@media (max-width: 640px) {
  main.contact { padding: 36px 20px 56px; }
  .contact-form .row { grid-template-columns: 1fr; }
}

/* visually hidden, still read by screen readers */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Phones: the background texture and grain scroll with the page instead of staying fixed.
   A fixed layer jumps and redraws on phones as the browser bars show and hide while scrolling;
   moving with the page there is smooth. Sized in px (not screen height) so it never resizes. */
@media (max-width: 760px) {
  body { position: relative; }
  body::before,
  body::after {
    position: absolute;
    top: 0;
    bottom: 0;
    height: auto;
  }
  body::before {
    background: url("/images/bg-texture-loop.webp") center top / 1400px auto repeat-y;
  }
}

/* hide an image's alt text while it loads (screen readers still read it) */
img { color: transparent; }
