/* ==========================================================
   uberkill — mid-90s industrial, matrix green
   ========================================================== */

@font-face { font-family: "Aero"; src: url("/fonts/Aero.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Conthrax"; src: url("/fonts/Conthrax-SemiBold.otf") format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Alte Haas Grotesk"; src: url("/fonts/AlteHaasGroteskRegular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Alte Haas Grotesk"; src: url("/fonts/AlteHaasGroteskBold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0a0b0a;
  --bg-deep: #030403;
  --panel: rgba(0, 0, 0, .45);
  --text: #eef2ee;
  --text-dim: #9aa39b;
  --green: #00ff41;
  --green-dim: #00b32c;
  --green-deep: #003b0f;
  --steel-hi: #8a8d8a;
  --steel: #4a4d4a;
  --steel-lo: #1e201e;

  --font-logo: "Aero", "Arial Black", sans-serif;
  --font-head: "Conthrax", sans-serif;
  --font-body: "Alte Haas Grotesk", sans-serif;

  --glow: 0 0 6px rgba(0, 255, 65, .55), 0 0 18px rgba(0, 255, 65, .25);

  /* grainy "natural black" texture, no image file needed */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  text-transform: lowercase;
  background:
    var(--grain),
    radial-gradient(ellipse at 50% 0%, #121612 0%, var(--bg) 55%, var(--bg-deep) 100%);
  background-color: var(--bg);
  background-attachment: fixed;
}

a { color: var(--green); }
a:hover { color: var(--text); text-shadow: var(--glow); }

strong, b { font-weight: 700; }

::selection { background: var(--green); color: #000; }

/* ---------- divider (under nav / above footer) ---------- */
.strip {
  margin: 0;
  border: 0;
  border-top: 1px dashed var(--green-dim);
}

/* ==========================================================
   1. NAV
   ========================================================== */
.site-nav {
  padding: 18px 16px 14px;
  text-align: center;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 0;
}

.nav-list li { display: flex; align-items: center; }

/* pipes between the small links */
.nav-list .link ~ .link::before {
  content: "|";
  color: var(--steel);
  padding: 0 1px;
}

.nav-list a.nav-link {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .06em;
  font-size: .74rem;
  color: var(--text-dim);
  text-decoration: none;
  padding: 4px 6px;
}

.nav-list a.nav-link:hover { color: var(--green); }

.nav-list a.nav-link[aria-current="page"] {
  color: var(--green);
  text-shadow: var(--glow);
}

/* mobile: logo on its own row, on top */
.nav-list .logo-item {
  order: -1;
  flex-basis: 100%;
  justify-content: center;
  margin-bottom: 4px;
}

.logo {
  font-family: var(--font-logo);
  font-size: clamp(2.2rem, 11vw, 3.4rem);
  line-height: 1;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--text);
  text-shadow: 2px 2px 0 #000, 0 0 20px rgba(0, 255, 65, .18);
}
.logo:hover { color: var(--green); text-shadow: 2px 2px 0 #000, var(--glow); }

@media (min-width: 640px) {
  .nav-list { flex-wrap: nowrap; }
  .nav-list .logo-item { order: 0; flex-basis: auto; margin: 0 22px; }
  /* no pipe right before / after the logo */
  .nav-list .logo-item + .link::before { content: none; }
  .nav-list .link ~ .link::before { padding: 0 4px; }
  .nav-list a.nav-link { font-size: .8rem; letter-spacing: .1em; padding: 4px 8px; }
  .logo { font-size: 3rem; }
}

/* ==========================================================
   LAYOUT SHELL
   ========================================================== */
.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 36px;
  gap: 32px;
}

/* ==========================================================
   2. BAND IMAGE — HUD scope
   ========================================================== */
.porthole {
  --size: min(70vw, 340px);
  position: relative;
  width: var(--size);
  aspect-ratio: 1;
  flex-shrink: 0;
  border-radius: 50%;
  padding: calc(var(--size) * .06);
}

/* outer dashed ring, slowly turning */
.porthole::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed var(--green-dim);
  opacity: .7;
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .porthole::before { animation: none; }
}

/* tick marks at 12 / 3 / 6 / 9 o'clock, bridging the gap */
.porthole .tick {
  position: absolute;
  background: var(--green);
  box-shadow: 0 0 6px rgba(0, 255, 65, .6);
}
.porthole .tick:nth-of-type(odd)  { width: 1px; height: calc(var(--size) * .045); left: 50%; }
.porthole .tick:nth-of-type(even) { height: 1px; width: calc(var(--size) * .045); top: 50%; }
.porthole .tick:nth-of-type(1) { top: 0; }
.porthole .tick:nth-of-type(2) { right: 0; }
.porthole .tick:nth-of-type(3) { bottom: 0; }
.porthole .tick:nth-of-type(4) { left: 0; }

.lens {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--green-dim);
  box-shadow:
    0 0 14px rgba(0, 255, 65, .25),
    0 0 40px rgba(0, 255, 65, .08);
}

.lens img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.1) saturate(.8);
}

/* blurred copy fills the circle behind the photo */
.lens img.lens-bg {
  transform: scale(1.25);
  filter: blur(14px) brightness(.45) saturate(.6);
}

/* the photo itself: shrunk + nudged down so the top row of faces
   clears the ring, edges feathered into the blurred copy */
.lens img.lens-photo {
  transform: scale(.86) translateY(4%);
  --feather-x: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
  --feather-y: linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask: var(--feather-x), var(--feather-y);
  -webkit-mask-composite: source-in;
  mask: var(--feather-x), var(--feather-y);
  mask-composite: intersect;
}

/* vignette + scanlines */
.lens::before,
.lens::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}
.lens::before {
  background:
    radial-gradient(circle at 50% 50%, transparent 58%, rgba(0, 0, 0, .35) 82%, rgba(0, 0, 0, .85) 100%),
    var(--grain);
  mix-blend-mode: multiply;
}
.lens::after {
  /* faint CRT scanlines + inner green glow */
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 30px rgba(0, 255, 65, .12);
}

/* ==========================================================
   3. MAIN CONTENT
   ========================================================== */
.content {
  width: 100%;
  max-width: 62ch;
}

.content h1 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .1em;
  text-align: center;
  font-size: clamp(1.3rem, 5.5vw, 1.8rem);
  line-height: 1.2;
  margin: 0 0 1.2em;
  color: var(--text);
}
.content h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  margin: .7em auto 0;
  background: var(--green);
  box-shadow: var(--glow);
}

.content h2 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .08em;
  font-size: .95rem;
  color: var(--green);
  margin: 2em 0 .6em;
}

.content p { margin: 0 0 1.6em; }
.content p:last-child { margin-bottom: 0; }

/* ---------- show-list (live page) ----------
   ul.show-list > li.show > time.show-date + .show-venue + .show-city */
.show-list {
  list-style: none;
  margin: 0 0 1.6em;
  padding: 0;
  border-top: 1px dashed var(--steel);
}
.show {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 14px;
  padding: 12px 2px;
  border-bottom: 1px dashed var(--steel);
}
.show-date {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--green);
  min-width: 7ch;
}
.show-venue { color: var(--text); }
.show-city { color: var(--text-dim); }

/* ---------- note (notebook page) ----------
   article.note > time.note-date + div.note-body > p */
.note { margin: 0 0 2.2em; }
.note:last-child { margin-bottom: 0; }
.note-date {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .1em;
  color: var(--green-dim);
}
.note-body p { margin: 0 0 1em; }
.note-body p:last-child { margin-bottom: 0; }

/* ==========================================================
   4. FOOTER
   ========================================================== */
.site-footer {
  padding: 12px 16px 16px;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .68rem;
  letter-spacing: .08em;
  color: var(--text-dim);
}
.site-footer .row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  color: var(--text-dim);
  background: none;
  border: 0;
  cursor: pointer;
}
.icon-btn:hover { color: var(--green); filter: drop-shadow(0 0 4px rgba(0, 255, 65, .6)); }
.icon-btn svg { width: 16px; height: 16px; }
.copied {
  color: var(--green);
  opacity: 0;
  transition: opacity .2s;
}
.copied.show { opacity: 1; }

/* ==========================================================
   DESKTOP — full-page, image left / content right
   ========================================================== */
@media (min-width: 900px) {
  body {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  .stage {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: 48px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 40px;
  }

  .porthole {
    --size: min(36vw, 62vh, 460px);
    justify-self: center;
  }

  /* the content "window" — flat, no frame */
  .content {
    max-width: none;
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
    padding: 32px 36px;
    background: var(--panel);
  }

  /* Firefox only — Chrome ignores the ::-webkit-scrollbar rules below
     if scrollbar-color is set */
  @supports not selector(::-webkit-scrollbar) {
    .content { scrollbar-color: var(--green-dim) var(--bg-deep); }
  }

  /* retro scrollbar — Chrome / Safari / Edge, flat */
  .content::-webkit-scrollbar { width: 12px; }
  .content::-webkit-scrollbar-track {
    background: repeating-linear-gradient(0deg, #050605 0 2px, #0d0f0d 2px 4px);
  }
  .content::-webkit-scrollbar-thumb {
    background: var(--green-dim);
    box-shadow: 0 0 8px rgba(0, 255, 65, .35);
  }
  .content::-webkit-scrollbar-thumb:hover { background: var(--green); }
  .content::-webkit-scrollbar-button:single-button {
    display: block;
    height: 12px;
    background-color: #0d0f0d;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 8px 8px;
  }
  .content::-webkit-scrollbar-button:single-button:vertical:decrement {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M4 1 7.5 6.5h-7z' fill='%2300b32c'/%3E%3C/svg%3E");
  }
  .content::-webkit-scrollbar-button:single-button:vertical:increment {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M4 7 .5 1.5h7z' fill='%2300b32c'/%3E%3C/svg%3E");
  }
  .content::-webkit-scrollbar-corner { background: var(--bg-deep); }
}
