/* ============================================================
   ZEROSPRY — Hardy Spry
   Street / punk / death-metal. Graffiti tag on concrete.
   ============================================================ */

/* ---------- Fonts (self-hosted, no CDN) ---------- */
@font-face {
  font-family: "Battle";
  src: url("assets/fonts/TheBattleContinues.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/Archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62.5% 125%;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Monochrome — white on black, neutral greys (chroma 0) */
  --concrete:    oklch(0.135 0 0);   /* near-black base */
  --concrete-2:  oklch(0.180 0 0);
  --concrete-3:  oklch(0.235 0 0);

  /* Ink ramp */
  --ink:    oklch(0.975 0 0);   /* body — ~16:1 on base */
  --muted:  oklch(0.74 0 0);    /* secondary — ~6:1 on base */
  --faint:  oklch(0.52 0 0);    /* hairlines, stamps */

  /* No accent, no glow. "acid" tokens kept as white so any
     stragglers resolve to the monochrome scheme. */
  --acid:       var(--ink);
  --acid-deep:  oklch(0.84 0 0);
  --acid-glow:  transparent;

  --edge: color-mix(in oklab, var(--ink) 14%, transparent);

  --measure: 60ch;
  --pad: clamp(1.25rem, 5vw, 4.5rem);

  --z-grain: 60;
  --z-skip: 80;

  --ease: cubic-bezier(0.16, 1, 0.3, 1); /* ease-out-expo-ish */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100dvh;
  background: var(--concrete);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, sans-serif;
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

img, svg { display: block; max-width: 100%; }
strong { color: var(--ink); font-weight: 700; }

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Skip link ---------- */
.skip {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: var(--z-skip);
  padding: 0.5rem 0.9rem;
  background: var(--acid);
  color: #0c0f0a;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip:focus { transform: translateY(0); }

/* ---------- Layout shell ---------- */
.wrap {
  max-width: 78rem;
  margin-inline: auto;
  padding-inline: var(--pad);
}
section { padding-block: clamp(3.5rem, 9vw, 7rem); }

/* Shared section tag (small, in the graffiti face, acid) */
.section-tag {
  font-family: "Battle", "Archivo", sans-serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 1rem + 3vw, 3rem);
  line-height: 0.9;
  color: var(--ink);
  letter-spacing: 0.01em;
  margin-bottom: 1.75rem;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: min(74svh, 38rem);
  padding-top: clamp(3rem, 10vh, 6.5rem);
  padding-bottom: clamp(1.5rem, 4vh, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
}

.stamp {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: clamp(1rem, 3vh, 2rem);
}
.stamp__call { color: var(--acid); font-weight: 700; letter-spacing: 0.24em; }
.stamp__sep { color: var(--faint); }

/* The tag — graffiti, does the heavy lifting */
.tag {
  font-family: "Battle", "Archivo", sans-serif;
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.01em;
  font-size: clamp(3.4rem, 15vw, 9rem);
  margin-left: -0.02em;
}
.tag__word {
  display: inline-block;
  color: var(--ink);
  transform-origin: left center;
}

.lede {
  margin-top: clamp(1rem, 3vh, 1.75rem);
  max-width: 34ch;
  font-size: clamp(1.05rem, 0.9rem + 1vw, 1.5rem);
  line-height: 1.35;
  color: var(--muted);
  font-weight: 500;
}
.lede__mark { color: var(--muted); padding-inline: 0.15em; }

/* ============ SOUL ============ */
.motto {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 1.05rem + 3.6vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 16ch;
  margin-bottom: clamp(1.4rem, 3vw, 2.25rem);
  text-wrap: balance;
}
.soul__body {
  max-width: var(--measure);
  color: var(--muted);
  font-size: clamp(1.08rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.6;
  text-wrap: pretty;
}

/* ============ LINKS ============ */
.links { list-style: none; padding: 0; border-top: 1px solid var(--edge); }
.links li { border-bottom: 1px solid var(--edge); }

.link {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "name host"
    "note host";
  align-items: baseline;
  gap: 0.15rem 1.5rem;
  padding: clamp(1.1rem, 3vw, 1.9rem) 0.25rem;
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  transition: color 0.25s var(--ease), padding-left 0.35s var(--ease);
}
/* acid sweep from the left on hover/focus */
.link::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--acid);
  z-index: -1;
  transition: width 0.4s var(--ease);
}
.link__name {
  grid-area: name;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 1rem + 3.4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.link__note { grid-area: note; color: var(--muted); font-size: 0.92rem; }
.link__host {
  grid-area: host;
  align-self: center;
  color: var(--faint);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.link:hover,
.link:focus-visible {
  color: #0c0f0a;
  padding-left: 1.25rem;
  outline: none;
}
.link:hover::before,
.link:focus-visible::before { width: 100%; }
.link:hover .link__note,
.link:focus-visible .link__note,
.link:hover .link__host,
.link:focus-visible .link__host { color: color-mix(in oklab, #0c0f0a 70%, transparent); }

/* keyboard focus ring (visible even mid-sweep) */
.link:focus-visible { box-shadow: inset 0 0 0 3px #0c0f0a; }

/* ============ FOOTER ============ */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1.4rem;
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(2rem, 5vw, 3rem);
  border-top: 1px solid var(--edge);
  color: var(--faint);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.foot__call { color: var(--acid); font-weight: 700; letter-spacing: 0.18em; }
.foot__made { color: var(--muted); }
.foot__meta { margin-left: auto; text-align: right; }

/* ============ MOTION ============ */
@keyframes spray-in {
  from { opacity: 0; filter: blur(14px); transform: translateY(0.15em) scale(0.985); }
  to   { opacity: 1; filter: blur(0);    transform: translateY(0) scale(1); }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(1.1rem); }
  to   { opacity: 1; transform: translateY(0); }
}
.tag__word { animation: spray-in 0.9s var(--ease) both; }
.stamp    { animation: rise-in 0.6s var(--ease) both; }
.lede     { animation: rise-in 0.7s 0.25s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .link { transition: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 40rem) {
  .link {
    grid-template-columns: 1fr;
    grid-template-areas: "name" "note" "host";
    gap: 0.35rem;
  }
  .link__host { align-self: start; }
  .foot__meta { margin-left: 0; text-align: left; width: 100%; }
}
