/* ============================================================
   GHOST NOISE // NEOCITIES
   Hand-built second-web stylesheet. No frameworks, no builds.

   Palette and type are lifted straight off ghostnoise.co so the two
   sites feel related — same cream, same red, same near-black, same
   Archivo Black / Space Mono pairing. Everything else here is
   deliberately old-web: hard edges, no rounded corners, no gradients,
   offset drop shadows like a photocopied show flyer.
   ============================================================ */

:root {
  /* --- palette: straight from ghostnoise.co ------------------ */
  --paper:      #F2EDE4;   /* cream, the main surface */
  --paper-deep: #E5DED1;   /* the page behind the panels */
  --paper-sink: #DAD2C2;   /* table stripes, pressed states */
  --ink:        #0F0E0C;   /* warm near-black */
  --ink-soft:   #3A362F;
  --ink-faint:  #8C8578;
  --red:        #C4382F;
  --red-lift:   #E0574B;
  --rule:       rgba(15, 14, 12, .18);

  /* --- type: same stack as the main site --------------------- */
  --display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --cond:    "Barlow Condensed", "Arial Narrow", sans-serif;
  --body:    "Archivo", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --mono:    "Space Mono", "Courier New", Courier, monospace;
}

/* --- the page: cream, with a faint photocopy grain drawn in SVG
       so there are no image files to lose --------------------- */
html {
  background-color: var(--paper-deep);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='%230F0E0C' fill-opacity='0.05'%3E%3Ccircle cx='6' cy='6' r='1'/%3E%3Ccircle cx='36' cy='21' r='1'/%3E%3Ccircle cx='21' cy='36' r='1'/%3E%3Ccircle cx='51' cy='51' r='1'/%3E%3Ccircle cx='51' cy='9' r='.7'/%3E%3Ccircle cx='9' cy='48' r='.7'/%3E%3Ccircle cx='30' cy='57' r='.7'/%3E%3Ccircle cx='57' cy='33' r='.7'/%3E%3C/g%3E%3C/svg%3E");
}

body {
  margin: 0;
  padding: 0 0 40px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.6;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.shell {
  max-width: 940px;
  margin: 0 auto;
  padding: 16px 12px 0;
}

.panel {
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 16px 18px;
  margin: 0 0 22px;
}

.panel--tight { padding: 12px 14px; }

.two-col {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
}
.two-col > .col-main { flex: 1 1 460px; min-width: 0; }
.two-col > .col-side { flex: 0 1 250px; min-width: 0; }

/* ============================================================
   HEADER / NAV — the dark bands, same rhythm as ghostnoise.co
   ============================================================ */

.sitehead {
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  text-align: center;
  padding: 26px 14px 20px;
  margin-bottom: 0;
}

.sitehead h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 8vw, 62px);
  line-height: .92;
  letter-spacing: -0.03em;
  margin: 0;
  text-transform: uppercase;
}
.sitehead h1 .ghost { color: var(--paper); }
.sitehead h1 .noise { color: var(--red); }

.sitehead .tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: .18em;
  margin-top: 12px;
  text-transform: uppercase;
}

/* a nod to the boxed "LOCAL 706" chip on the main site */
.sitehead .unofficial {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--paper);
  border: 1px solid var(--red);
  padding: 3px 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

nav.mainnav {
  display: flex;
  flex-wrap: wrap;
  background: var(--ink);
  border: 2px solid var(--ink);
  border-top: 1px solid rgba(242, 237, 228, .18);
  margin-bottom: 22px;
  box-shadow: 5px 5px 0 var(--ink);
}
nav.mainnav a {
  flex: 1 1 auto;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  padding: 13px 12px 11px;
  color: var(--ink-faint);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
nav.mainnav a:hover { color: var(--paper); }
nav.mainnav a[aria-current="page"] {
  color: var(--paper);
  border-bottom-color: var(--red);
}

/* ============================================================
   TYPE
   ============================================================ */

h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

h2 {
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--red);
}
h3 { font-size: 15px; color: var(--ink); margin: 22px 0 8px; }
h4 { font-size: 13px; color: var(--ink-soft); margin: 14px 0 4px; }

p { margin: 0 0 11px; }
ul { padding-left: 20px; }
li { margin-bottom: 6px; }

a { color: var(--red); text-underline-offset: 2px; }
a:visited { color: #9c3128; }
a:hover { color: var(--ink); background: var(--red-lift); color: var(--paper); }

hr { border: none; border-top: 2px solid var(--rule); margin: 18px 0; }

.small  { font-size: 12px; }
.dim    { color: var(--ink-soft); }
.mono   { font-family: var(--mono); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

.blink { animation: blink 1.1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

@media (prefers-reduced-motion: reduce) {
  .blink { animation: none; }
  marquee { animation: none; }
}

marquee {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.note {
  border-left: 5px solid var(--red);
  background: var(--paper-sink);
  padding: 10px 14px;
  margin: 14px 0;
  font-size: 13px;
}
.note strong { color: var(--red); }

/* ============================================================
   BUTTONS + FORMS
   Red fill, cream text, zero radius — same as the main site's
   buttons, plus a hard offset shadow that presses in on click.
   ============================================================ */

button,
.btn,
input[type="submit"] {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--paper);
  background: var(--red);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 11px 20px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button:hover, .btn:hover, input[type="submit"]:hover {
  background: var(--ink);
  color: var(--paper);
}
button:active, .btn:active, input[type="submit"]:active {
  box-shadow: 0 0 0 var(--ink);
  transform: translate(3px, 3px);
}
button[disabled] { opacity: .45; cursor: not-allowed; }

input[type="text"],
input[type="search"],
textarea,
select {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 9px 10px;
  width: 100%;
  box-sizing: border-box;
}
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
input:focus, textarea:focus, select:focus {
  outline: 3px solid var(--red);
  outline-offset: 0;
}
textarea { min-height: 130px; resize: vertical; line-height: 1.55; }

label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-soft);
  margin: 14px 0 4px;
}

/* honeypot — must stay invisible to humans, reachable to bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.formrow { display: flex; gap: 14px; flex-wrap: wrap; }
.formrow > * { flex: 1 1 200px; }

.formmsg {
  margin: 12px 0 0;
  padding: 9px 12px;
  font-family: var(--mono);
  font-size: 12px;
  border: 2px solid var(--ink);
}
.formmsg.ok  { color: var(--paper); background: var(--ink); }
.formmsg.bad { color: var(--paper); background: var(--red); }

/* ============================================================
   CARD WALL
   ============================================================ */

.wall-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}
.wall-controls .filters { display: flex; flex-wrap: wrap; gap: 6px; }
.wall-controls .searchbox { flex: 1 1 180px; min-width: 140px; }

.filter-btn {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: 8px 13px;
  background: var(--paper);
  color: var(--ink-soft);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
}
.filter-btn:hover { background: var(--paper-sink); color: var(--ink); }
.filter-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 0 0 var(--ink);
  transform: translate(2px, 2px);
}
.filter-btn[data-cat="event"][aria-pressed="true"]   { background: var(--red); }
.filter-btn[data-cat="cryptid"][aria-pressed="true"] { background: var(--red-lift); }

.wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 18px;
}

.card {
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 0 0 10px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  display: block;
  width: 100%;
  box-sizing: border-box;
  /* cards on the wall are <button>s — undo the global button styling so
     card names render exactly as they're written in cards.json */
  text-transform: none;
  letter-spacing: normal;
  text-decoration: none;
}
.card:hover {
  background: var(--paper);
  box-shadow: 7px 7px 0 var(--red);
  transform: translate(-2px, -2px);
}
.card:active { box-shadow: 0 0 0 var(--ink); transform: translate(2px, 2px); }

/* the colour bar across the top of each card tells you the category
   without leaving the cream / red / black palette */
.card::before {
  content: "";
  display: block;
  height: 9px;
  border-bottom: 2px solid var(--ink);
}
.card--event::before   { background: var(--red); }
.card--band::before    { background: var(--ink); }
.card--cryptid::before {
  background: repeating-linear-gradient(
    45deg, var(--red) 0 5px, var(--ink) 5px 10px);
}

.card .art {
  position: relative;
  aspect-ratio: 3 / 4;
  /* ink, not cream: the card art is black-backed, so any letterboxing
     from `contain` below just disappears into this */
  background: var(--ink);
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
}
/* `contain`, not `cover` — the art is a finished card with its own frame and
   nameplate, so cropping it to fill the slot would shave the border off.
   This shows every pixel whatever shape the art is. */
.card .art img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* placeholder card back — pure CSS, used whenever art_url is missing */
.card .art.is-empty {
  background:
    repeating-linear-gradient(45deg,
      var(--paper-sink) 0 7px,
      var(--paper-deep) 7px 14px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card .art.is-empty::after {
  content: "ART\A PENDING";
  white-space: pre;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--ink-soft);
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 8px 10px;
}

.card .cat {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 9px 10px 0;
}
.card--event .cat   { color: var(--red); }
.card--band .cat    { color: var(--ink); }
.card--cryptid .cat { color: var(--red); }

.card .name {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.1;
  margin: 3px 10px 4px;
  color: var(--ink);
}
.card .meta {
  font-size: 10px;
  color: var(--ink-soft);
  font-family: var(--mono);
  margin: 0 10px;
}

.wall-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 46px 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  border: 2px dashed var(--ink-faint);
}

.wall-count {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

/* --- card detail dialog --- */
dialog.cardview {
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--red);
  padding: 0;
  max-width: 580px;
  width: 92%;
}
dialog.cardview::backdrop { background: rgba(15, 14, 12, .78); }
.cardview .inner { display: flex; gap: 18px; padding: 18px; flex-wrap: wrap; }
.cardview .art-lg { flex: 0 0 180px; }
.cardview .art-lg .art {
  aspect-ratio: 3/4;
  border: 2px solid var(--ink);
  overflow: hidden;
  background: var(--ink);
}
.cardview .art-lg .art img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cardview .art-lg .art.is-empty {
  background: repeating-linear-gradient(45deg,
    var(--paper-sink) 0 7px, var(--paper-deep) 7px 14px);
  display: flex; align-items: center; justify-content: center;
}
.cardview .art-lg .art.is-empty::after {
  content: "ART\A PENDING";
  white-space: pre; text-align: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  color: var(--ink-soft); background: var(--paper);
  border: 2px solid var(--ink); padding: 8px 10px;
}
.cardview .body { flex: 1 1 240px; min-width: 0; }
.cardview .cat {
  font-family: var(--mono); font-weight: 700; font-size: 10px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--red);
}
.cardview h3 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 24px;
  text-transform: none;
  letter-spacing: -0.02em;
}
.cardview .flavor {
  border-left: 4px solid var(--red);
  padding-left: 12px;
  font-style: italic;
  color: var(--ink-soft);
  margin: 14px 0;
}
.cardview dl {
  display: grid; grid-template-columns: auto 1fr; gap: 3px 12px;
  font-size: 11px; font-family: var(--mono); margin: 0;
  border-top: 2px solid var(--rule); padding-top: 12px;
}
.cardview dt { color: var(--ink-faint); text-transform: uppercase; letter-spacing: .1em; }
.cardview dd { margin: 0; color: var(--ink); }
.cardview .closerow {
  padding: 0 18px 18px; text-align: right;
}

/* ============================================================
   MESSAGE BOARD
   ============================================================ */

table.board {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  margin-bottom: 22px;
  background: var(--paper);
}
table.board th {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .16em;
  text-align: left;
  padding: 10px 12px;
}
table.board td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
table.board tr:last-child td { border-bottom: none; }
table.board tbody tr:nth-child(even) td { background: rgba(15, 14, 12, .035); }
table.board tbody tr:hover td { background: var(--paper-sink); }
table.board .num {
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  white-space: nowrap;
  width: 1%;
}
table.board .subject a {
  text-decoration: none;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.15;
  color: var(--ink);
}
table.board .subject a:hover { color: var(--paper); background: var(--red); }
table.board .subject .by {
  display: block;
  font-family: var(--body);
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.board-icon {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--red);
  width: 1%;
  text-align: center;
}

.post {
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  margin-bottom: 18px;
  background: var(--paper);
}
.post .post-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--paper-sink);
  border-bottom: 2px solid var(--ink);
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 11px;
}
.post .post-head .who {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.post .post-head .when { color: var(--ink-soft); }
.post .post-body {
  padding: 14px;
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.65;
}
.post--op .post-head { background: var(--ink); }
.post--op .post-head .who  { color: var(--red-lift); }
.post--op .post-head .when { color: var(--ink-faint); }

.crumbs {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.crumbs a { text-decoration: none; }

.board-status {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  padding: 9px 12px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.board-status.demo {
  border-color: var(--red);
  background: var(--red);
  color: var(--paper);
}

.pager { display: flex; gap: 10px; justify-content: center; margin: 18px 0; }

/* ============================================================
   SIDEBAR BITS / FOOTER / WEBRING
   ============================================================ */

.counter {
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--ink-soft);
}
.counter .digits {
  display: block;
  background: var(--ink);
  border: 2px solid var(--ink);
  color: var(--red-lift);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .3em;
  padding: 8px 6px 8px 14px;
  margin: 8px 0 0;
}

/* long URLs (the site URL, pasted links) must not blow out a narrow panel */
[data-site-url], .post-body, .linklist a { overflow-wrap: anywhere; }

.linklist { list-style: none; margin: 0; padding: 0; }
.linklist li {
  border-bottom: 1px solid var(--rule);
  padding: 9px 0;
  font-family: var(--mono);
  font-size: 12px;
}
.linklist li:last-child { border-bottom: none; }
.linklist .desc {
  display: block;
  font-family: var(--body);
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 3px;
  letter-spacing: 0;
}

.webring {
  border: 2px dashed var(--ink);
  padding: 14px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.webring .ring-nav {
  margin-top: 12px;
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}
.webring .ring-nav .btn { padding: 7px 10px; font-size: 10px; box-shadow: 2px 2px 0 var(--ink); }

.badges { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 12px; }
.badge {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  padding: 4px 7px;
  text-decoration: none;
  line-height: 1.25;
  text-align: center;
}
.badge:hover { background: var(--red); color: var(--paper); }

footer.sitefoot {
  max-width: 940px;
  margin: 30px auto 0;
  background: var(--ink);
  color: var(--ink-faint);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--red);
  padding: 20px 14px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
footer.sitefoot p { margin: 0 0 6px; }
footer.sitefoot p:last-child { margin-bottom: 0; }
footer.sitefoot a { color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--red); }
footer.sitefoot a:hover { background: var(--red); color: var(--paper); }

/* ============================================================
   MOBILE — old-web look, but it still has to work on a phone
   ============================================================ */

@media (max-width: 620px) {
  body { font-size: 13px; }
  .shell { padding: 10px 10px 0; }
  .panel { padding: 14px; box-shadow: 4px 4px 0 var(--ink); }
  .sitehead { padding: 20px 12px 16px; }
  nav.mainnav a { flex: 1 1 45%; font-size: 11px; padding: 11px 4px 9px; }
  .wall { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .card .name { font-size: 15px; }
  table.board td, table.board th { padding: 9px 8px; }
  table.board .subject a { font-size: 17px; }
  .hide-narrow { display: none; }
  .cardview .art-lg { flex: 1 1 100%; max-width: 170px; margin: 0 auto; }
  .cardview h3 { font-size: 20px; }
}
