/* ============================================================
   PUNKPACK — UMBRELLA VISUAL IDENTITY
   Concept: the hub page that lists every tool as it gets made.
   Shares the same fanzine/tape look as each tool, but this file is
   self-contained — the hub doesn't reach into any tool's folder,
   and no tool should have to reach back into this one.
   ============================================================ */

:root {
  --paper: #EDE5D3;      /* raw paper, slightly yellowed */
  --paper-dark: #DCD2B8; /* paper shadow / cards */
  --ink: #171512;        /* ink black, not pure #000 */
  --riot: #FF4B1F;       /* stencil orange — the primary accent */
  --riot-dark: #C93A15;
  --acid: #C6FF3D;       /* acid-green — secondary sticker/tape accent */
  --tape: #F5F1E6;
}

* { box-sizing: border-box; }

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: 'Space Mono', monospace;
  background-image:
    radial-gradient(rgba(23,21,18,0.05) 1px, transparent 1px),
    repeating-linear-gradient(135deg, rgba(255,75,31,0.025) 0px, rgba(255,75,31,0.025) 2px, transparent 2px, transparent 7px);
  background-size: 3px 3px, auto;
  position: relative;
}

/* Photocopier grain — fixed noise overlay above everything, but
   pointer-events:none keeps every control fully clickable underneath. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.font-display {
  font-family: 'Anton', sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */
.header-bar {
  border-bottom: 4px solid var(--ink);
}

.tag-stamp {
  font-family: 'Permanent Marker', cursive;
  border: 2px solid var(--ink);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  background: rgba(255, 255, 255, 0.35);
  transform: rotate(-3deg);
  display: inline-block;
}

/* ---------- Section label (cassette-style) ---------- */
.tape-side-label {
  font-family: 'Anton', sans-serif;
  letter-spacing: 0.05em;
}

/* ---------- Zine cards (tool tiles) ---------- */
.zine-card {
  position: relative;
  background: var(--paper-dark);
  border: 3px solid var(--ink);
  padding: 1.5rem;
  box-shadow: 6px 6px 0 var(--riot-dark), 12px 12px 0 var(--ink);
}

.zine-card--a { transform: rotate(-0.6deg); }
.zine-card--b { transform: rotate(0.6deg); }

.zine-card::before,
.zine-card::after {
  content: "";
  position: absolute;
  top: -14px;
  width: 70px;
  height: 26px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.55), rgba(255,255,255,0.55) 4px, rgba(255,255,255,0.3) 4px, rgba(255,255,255,0.3) 8px),
    var(--tape);
  opacity: 0.85;
  border: 1px solid rgba(23, 21, 18, 0.15);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.zine-card::before { left: 20px; transform: rotate(-8deg); }
.zine-card::after { right: 20px; transform: rotate(6deg); }

/* Clickable tool card — a plain <a> wrapping the whole tile */
.zine-card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: box-shadow 0.1s ease;
}

.zine-card-link:hover {
  box-shadow: 6px 6px 0 var(--riot), 12px 12px 0 var(--ink);
}

/* Not-yet-built tool placeholder */
.zine-card--soon {
  opacity: 0.55;
  border-style: dashed;
}

/* ---------- Buttons ---------- */
.btn-stencil {
  font-family: 'Anton', sans-serif;
  letter-spacing: 0.03em;
  border: 3px solid var(--ink);
  background: var(--riot);
  color: var(--tape);
  transition: transform 0.1s ease;
}

.btn-stencil:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-ghost {
  font-family: 'Anton', sans-serif;
  letter-spacing: 0.03em;
  border: 3px solid var(--ink);
  background: transparent;
  color: var(--ink);
  transition: transform 0.1s ease;
}

.btn-ghost--soon {
  border-style: dashed;
  cursor: not-allowed;
}

/* ---------- Footer ---------- */
.footer-strip {
  border-top: 4px solid var(--ink);
  position: relative;
}

.footer-strip::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 60px;
  height: 20px;
  transform: translateX(-50%) rotate(-4deg);
  background: var(--tape);
  opacity: 0.85;
  border: 1px solid rgba(23, 21, 18, 0.15);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Respects prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .btn-stencil, .zine-card-link { transition: none; }
}
