/* ==========================================================
   the d/j/r — site v1
   Aesthetic: silver / black / NASA-gold
   All lowercase except "Sinister Apparatus"
   Album + song names italicized
   Visual identity: Sinister Apparatus
   ========================================================== */

:root {
  --black:      #0B0B0D;   /* near-black field */
  --black-soft: #141416;   /* raised surfaces */
  --silver:     #C8CBD0;   /* primary text / the d/j/r mark */
  --silver-dim: #8A8D93;   /* secondary text */
  --silver-faint:#5A5C61;  /* tertiary / rules */
  --gold:       #C8912B;   /* NASA kapton/brass gold — accent */
  --gold-bright:#E0A83A;   /* hover / active gold */
  --rule:       #2A2A2E;   /* hairline borders */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--black);
  color: var(--silver);
  font-family: "Aptos", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global rule: nothing renders uppercase. Text appears exactly as typed
   (which is lowercase everywhere except the Sinister Apparatus credit). */
* { text-transform: none !important; }

a { color: var(--silver); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-bright); }

.mono {
  font-family: "Consolas", "SF Mono", Menlo, "Courier New", monospace;
  font-size: 0.78em;
  letter-spacing: 0.1em;
  color: var(--silver-dim);
}

/* italic for album + song names */
.title-italic { font-style: italic; }

/* ===== Layout ===== */
.shell {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 28px 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Top bar ===== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 14px;
  margin-bottom: 56px;
  flex-wrap: wrap;
  gap: 10px;
}
.topbar .mark {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--silver);
}
.topbar .mark small {
  display: block;
  font-family: "Consolas", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--silver-dim);
  margin-top: 3px;
  font-weight: 400;
}
.topbar nav a {
  font-family: "Consolas", monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--silver-dim);
  margin-left: 18px;
}
.topbar nav a:hover,
.topbar nav a.active { color: var(--gold-bright); }

/* ===== DYMO-style tape marker (now gold on black) ===== */
.tape {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  font-family: "Consolas", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  margin-bottom: 30px;
}

/* ===== Hero ===== */
.hero { margin-bottom: 56px; }
.hero h1 {
  font-family: "Aptos Display", "Aptos", sans-serif;
  font-size: clamp(40px, 8vw, 84px);
  font-style: italic;          /* album + song titles are ALWAYS italic */
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  font-weight: 600;
  color: var(--silver);
}
.hero h1 .accent { color: var(--gold); font-style: italic; }
.hero p.lede {
  font-size: 18px;
  line-height: 1.55;
  max-width: 580px;
  color: var(--silver);
}
.hero p.lede em { color: var(--gold-bright); font-style: italic; }

/* ===== Content ===== */
.section { margin-bottom: 44px; }
.section h2 {
  font-family: "Aptos Display", "Aptos", sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--silver);
}
.section p { margin-bottom: 12px; max-width: 640px; color: var(--silver-dim); }
.section p em { color: var(--gold-bright); font-style: italic; }
.section ul { list-style: none; margin: 16px 0; }
.section ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  color: var(--silver);
}
.section ul li:last-child { border-bottom: none; }
.section ul li strong { color: var(--gold); font-weight: 600; }

/* ===== Card grid (portal) ===== */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 44px 0; }
@media (min-width: 720px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  border: 1px solid var(--rule);
  padding: 24px 20px;
  display: block;
  background: var(--black-soft);
  transition: border-color 0.2s, background 0.2s;
}
.card:hover { border-color: var(--gold); background: #17140d; }
.card .card-label {
  font-family: "Consolas", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--silver-dim);
  margin-bottom: 12px;
}
.card .card-title {
  font-family: "Aptos Display", sans-serif;
  font-size: 24px;
  font-weight: 600;
  font-style: italic;          /* album/EP names italic */
  margin-bottom: 8px;
  line-height: 1.1;
  color: var(--silver);
}
.card:hover .card-title { color: var(--gold-bright); }
.card .card-note { font-size: 14px; color: var(--silver-dim); }

/* ===== Notice ===== */
.notice {
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  background: var(--black-soft);
  margin: 30px 0;
}
.notice .notice-label {
  font-family: "Consolas", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 4px;
}
.notice p { margin: 0; font-size: 15px; color: var(--silver-dim); }

/* ===== Footer ===== */
.sitefoot {
  margin-top: auto;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  font-family: "Consolas", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--silver-dim);
}
.sitefoot .credit { color: var(--silver); }

/* section-specific accent hints retained but recolored to the palette */
body.page-cascadia .hero h1 .accent,
body.page-whisperdrive .hero h1 .accent,
body.page-unknown .hero h1 .accent { color: var(--gold); font-style: italic; }

.mycelium {
  display: block; width: 100%; height: 70px; margin: 40px 0;
  background-image:
    radial-gradient(circle at 20% 50%, var(--silver-faint) 1px, transparent 1.5px),
    radial-gradient(circle at 60% 30%, var(--silver-faint) 1px, transparent 1.5px),
    radial-gradient(circle at 80% 70%, var(--silver-faint) 1px, transparent 1.5px);
  opacity: 0.4;
}
.grid-hint {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 1px;
  height: 54px; margin: 40px 0; opacity: 0.3;
}
.grid-hint span { background: var(--silver-faint); }

::selection { background: var(--gold); color: var(--black); }
