/* ===========================================================================
   ork.band — matrix brutalist theme
   All theming lives here. Change a token, change the world.
   =========================================================================== */

/* --- VT323 (self-hosted, OFL) -------------------------------------------- */
/* Pixelated VT220-style terminal font. Single weight (400). */
@font-face {
  font-family: 'VT323';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/vt323-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                 U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'VT323';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/vt323-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
                 U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
                 U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
                 U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg:        #000000;
  --fg:        #39ff14;   /* matrix lime */
  --fg-mid:    #9bd190;   /* body copy */
  --fg-dim:    #5a8c50;   /* secondary / nav-inactive / section labels */
  --fg-darker: #558e4a;   /* footer-tier — 5.35:1 on bg, AA for small text */
  --rule:      #2d6a25;   /* hairlines, button borders — 3.20:1, AA non-text */
  --glow:      0 0 24px rgba(57, 255, 20, 0.35);
  --mono:      'VT323', 'Courier New', 'Monaco', monospace;

  --gutter:    clamp(20px, 5vw, 64px);
  --section-y: clamp(48px, 8vw, 96px);
}

/* --- reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg, iframe { display: block; max-width: 100%; }

/* --- base ---------------------------------------------------------------- */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg-mid);
  font-family: var(--mono);
  font-size: 19px;          /* VT323 reads larger than Courier at the same nominal size */
  line-height: 1.4;
  /* Pixel font — turn off subpixel smoothing so the glyphs stay crisp. */
  -webkit-font-smoothing: none;
  font-smooth: never;
  text-rendering: geometricPrecision;
}

a {
  color: var(--fg);
  text-decoration: none;
}
a:hover { text-shadow: var(--glow); }

/* Inline links inside body-copy paragraphs need a non-color cue
   (WCAG link-in-text-block / 1.4.1). Buttons, nav, brand are exempt
   because they're not surrounded by paragraph text. */
.embed-fallback a,
.contact__line a {
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
}

/* visible focus outlines for keyboard users */
:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 2px;
}

/* visually-hidden utility (used by the skip-to-content link) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sr-only:focus,
.sr-only:focus-visible {
  position: static;
  width: auto; height: auto;
  margin: 0; clip: auto;
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--fg);
  color: var(--fg);
  background: var(--bg);
}

/* --- shared structure ---------------------------------------------------- */
section {
  padding: var(--section-y) var(--gutter);
  border-bottom: 1px solid var(--rule);
}
section:last-of-type { border-bottom: 0; }   /* footer provides the closing rule */

.section-label {
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--fg-dim);
  text-transform: lowercase;
  margin: 0 0 24px 0;
  font-weight: 400;
}

/* monospace bracketed button */
.btn {
  display: inline-block;
  border: 1px solid var(--fg);
  color: var(--fg);
  padding: 10px 18px;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--mono);
}
.btn:hover { background: rgba(57, 255, 20, 0.06); }

.btn--ghost {
  border-color: var(--rule);
  color: var(--fg-dim);
}

/* --- reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* --- topbar -------------------------------------------------------------- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: lowercase;
}

.topbar__brand {
  color: var(--fg);
}

.topbar__nav {
  color: var(--fg-dim);
}
.topbar__nav a {
  color: var(--fg-dim);
  margin: 0 4px;
}
.topbar__nav a:hover,
.topbar__nav a:focus-visible {
  color: var(--fg);
}

@media (max-width: 600px) {
  .topbar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* --- footer -------------------------------------------------------------- */
.sitefoot {
  padding: 18px var(--gutter);
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--fg-darker);
  text-transform: lowercase;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

/* --- hero ---------------------------------------------------------------- */
.hero {
  padding-top: clamp(64px, 10vw, 120px);
  padding-bottom: clamp(56px, 9vw, 100px);
}

.hero__kicker {
  margin: 0;
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--fg-dim);
  text-transform: lowercase;
}

.hero__wordmark {
  margin: 18px 0;
  line-height: 0;        /* the image is the only thing in here; suppress extra leading */
}
.hero__wordmark-img {
  display: block;
  width: 100%;
  max-width: 640px;       /* standard desktop cap */
  height: auto;
  margin: 0 auto;         /* center within the hero column */
  /* glow equivalent of the old --glow text-shadow, but for the image's painted pixels */
  filter: drop-shadow(0 0 16px rgba(57, 255, 20, 0.45));
}

.hero__tagline {
  margin: 0;
  max-width: 56ch;
  font-size: 19px;
  letter-spacing: 1px;
  color: var(--fg-mid);
}

.hero__ctas {
  margin: 36px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .hero__wordmark-img { filter: none; }
}

/* --- embeds (bandcamp / songkick wrappers) ------------------------------ */
.embed {
  max-width: 700px;
}
.embed--shows {
  max-width: 800px;
}
.embed iframe {
  width: 100%;
  border: 0;
}

.embed-fallback {
  border: 1px dashed var(--rule);
  padding: 28px 22px;
  color: var(--fg-mid);
}
.embed-fallback p { margin: 0 0 8px; }
.embed-fallback p:last-child { margin-bottom: 0; }
.embed-fallback__sub {
  font-size: 16px;
  color: var(--fg-dim);
}

/* --- band roster --------------------------------------------------------- */
.roster {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 600px;
}

.roster__row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px dashed var(--rule);
}
.roster__row:last-child { border-bottom: 0; }

.roster__name {
  font-size: 24px;
  font-weight: 400;             /* VT323 is single-weight */
  letter-spacing: 2px;
  color: var(--fg);
}

.roster__role {
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--fg-mid);
  text-transform: lowercase;
}

/* --- contact ------------------------------------------------------------- */
.contact__line {
  margin: 0;
  font-size: 19px;
  letter-spacing: 1px;
  color: var(--fg-mid);
}
.contact__line a { color: var(--fg); }

.contact__socials {
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- digital rain background -------------------------------------------- */
/* Canvas sits behind all content, locked to the viewport. JS in
   assets/rain.js animates falling gradient streaks. */
#rain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
