/* Untitled Electronics: "hazard zine". Fonts are self-hosted (OFL, see fonts/). */
@font-face { font-family: "Archivo Black"; src: url(/fonts/archivo-black.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(/fonts/archivo-var.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url(/fonts/space-mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url(/fonts/space-mono-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #141412;
  --paper: #f4f1e8;
  --hot: #f5c518;
  --muted: #9c978a;
  --soft: #c9c4b6;
  --line: #3a3833;
  --body-on-paper: #3a3833;
  --display: "Archivo Black", "Arial Black", sans-serif;
  --sans: "Archivo", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4.4vw, 56px);
}

* { box-sizing: border-box; }
html { background: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--hot); }
a:hover { color: #ffd84d; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--hot); outline-offset: 3px; }

.stripes { height: 18px; background: repeating-linear-gradient(-45deg, var(--hot) 0 18px, var(--ink) 18px 36px); }

/* header / footer */
.top { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; padding: 24px var(--gutter); }
.logo { font-family: var(--display); font-size: 24px; text-transform: uppercase; color: var(--paper); text-decoration: none; }
.logo span { color: var(--hot); }
.top nav { display: flex; gap: 28px; font-family: var(--mono); font-size: 14px; }
.top nav a { color: var(--paper); text-decoration: none; }
.top nav a:hover { color: var(--hot); }
.foot { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; padding: 28px var(--gutter); font-family: var(--mono); font-size: 13px; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px 28px; }

/* buttons + price tags */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; background: var(--ink); color: var(--paper); font-family: var(--mono); font-weight: 700; font-size: 15px; text-transform: uppercase; text-decoration: none; }
.btn:hover { background: #000; color: var(--hot); }
.btn-big { min-height: 58px; padding: 0 32px; font-size: 16px; }
.btn-hot { background: var(--hot); color: var(--ink); font-family: var(--display); font-weight: 400; font-size: 18px; }
.btn-hot:hover { background: #ffd84d; color: var(--ink); }
.btn-dead { background: transparent; color: var(--muted); border: 2px dashed currentColor; cursor: default; }
.btn-dead:hover { background: transparent; color: var(--muted); }
.tag { position: absolute; top: 18px; right: -8px; background: var(--hot); color: var(--ink); font-family: var(--display); font-size: 26px; padding: 8px 16px; }
.tilt-0 { transform: rotate(4deg); } .tilt-1 { transform: rotate(6deg); } .tilt-2 { transform: rotate(-5deg); }

/* hero */
.hero { padding: 48px var(--gutter) 72px; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(36px, 10.4vw, 132px); line-height: 0.88; letter-spacing: -0.02em; text-transform: uppercase; }
.hero h1 span, .plain h1 span { color: var(--hot); }
.hero-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; }
.hero-row p { margin: 0; max-width: 480px; font-size: 18px; color: var(--soft); }

/* product grid */
.grid { padding: 0 var(--gutter) 80px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 28px; }
.card { position: relative; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; }
.card-img img { width: 100%; aspect-ratio: 32 / 26; object-fit: cover; }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.card h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.05; text-transform: uppercase; }
.card h3 a { color: inherit; text-decoration: none; }
.card p { margin: 0 0 8px; font-size: 15px; line-height: 1.5; color: var(--body-on-paper); }
.card .btn { margin-top: auto; }
.card .btn-dead { color: #6b675d; }

/* custom band */
.custom { background: var(--hot); color: var(--ink); padding: 64px var(--gutter); display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: center; justify-content: space-between; }
.custom h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 0.95; text-transform: uppercase; max-width: 720px; }
.custom div { display: flex; flex-direction: column; gap: 18px; max-width: 360px; }
.custom p { margin: 0; font-size: 16px; }

/* archive */
.archive { padding: 72px var(--gutter); display: flex; flex-direction: column; gap: 24px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; }
.section-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 48px; text-transform: uppercase; }
.section-head span, .empty { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.empty { margin: 0; }
.grave { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.grave-item { border: 2px solid var(--line); min-height: 200px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; color: var(--paper); text-decoration: none; }
.grave-item:hover { border-color: var(--hot); color: var(--paper); }
.badge { align-self: flex-start; background: var(--muted); color: var(--ink); font-family: var(--mono); font-size: 12px; padding: 3px 8px; text-transform: uppercase; }
.grave-name { margin-top: auto; font-family: var(--display); font-size: 20px; text-transform: uppercase; }
.grave-src { font-family: var(--mono); font-size: 13px; color: var(--hot); }

/* THI band */
.thi { margin: 0 var(--gutter) 56px; border: 2px solid var(--hot); padding: 28px 36px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.thi span { font-family: var(--display); font-size: clamp(20px, 2.4vw, 28px); text-transform: uppercase; }
.thi a { font-family: var(--mono); font-weight: 700; font-size: 15px; }

/* product page */
.product { padding: 24px var(--gutter) 80px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery-main { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--paper); }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.info { position: relative; display: flex; flex-direction: column; gap: 18px; }
.back { font-family: var(--mono); font-size: 14px; text-decoration: none; }
.info h1, .plain h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(48px, 6vw, 84px); line-height: 0.9; text-transform: uppercase; letter-spacing: -0.01em; }
.tag-inline { position: static; align-self: flex-start; transform: rotate(-3deg); }
.prose { color: var(--soft); }
.prose p { margin: 0 0 1em; }
.prose strong { color: var(--paper); }
.specs { margin: 0; font-family: var(--mono); font-size: 14px; border-top: 2px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 2px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; text-align: right; }
.info .btn { align-self: flex-start; }
.info .btn:not(.btn-dead) { background: var(--hot); color: var(--ink); }
.info .btn:not(.btn-dead):hover { background: #ffd84d; }

.plain { padding: 48px var(--gutter) 80px; max-width: 860px; display: flex; flex-direction: column; gap: 28px; }
.plain .prose { font-size: 18px; }

@media (max-width: 800px) {
  .product { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tag { right: 12px; }
  .top nav { gap: 20px; }
  .section-head h2 { font-size: 36px; }
  .thi { padding: 24px; }
}
