/* Kanadian Korner — cheap 80s public-access set.
   System fonts only. No trackers, no webfonts, no external assets. */

:root {
  --wood-dark: #3a2212;
  --wood: #5a3318;
  --wood-mid: #6e4020;
  --wood-light: #8a5a32;
  --wood-grain: #4a2810;
  --plaid-red: #9b1a1a;
  --plaid-red-bright: #c81e1e;
  --plaid-green: #1c3d24;
  --plaid-black: #1a120c;
  --cream: #f3e6c4;
  --cream-dim: #e6d4a8;
  --ink: #2a1508;
  --ink-soft: #5a3a22;
  --amber: #c47a1a;
  --stove: #2f4a32;
  --beer: #6b3a14;
  --beer-glass: #d4a04a;
  --on-air: #e31c23;
  --snow: #f7f1e6;
  --crt-bezel: #1c1c1c;
  --crt-lip: #3a3a3a;
  --focus: #1a4a8a;
  --max: 72rem;
  --font-display: Impact, "Arial Black", "Haettenschweiler", "Franklin Gothic Bold", sans-serif;
  --font-body: "Trebuchet MS", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Courier New", Courier, ui-monospace, monospace;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--wood-dark);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 20;
  background: var(--cream);
  color: var(--ink);
  padding: 0.5rem 0.85rem;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

/* ---- Wood panel studio ---- */
.studio {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--wood);
  background-image:
    repeating-linear-gradient(
      90deg,
      var(--wood-grain) 0 2px,
      var(--wood) 2px 18px,
      var(--wood-mid) 18px 20px,
      var(--wood-light) 20px 22px,
      var(--wood) 22px 38px,
      #2e1a0c 38px 40px
    ),
    linear-gradient(180deg, rgba(0,0,0,.18), transparent 28%, rgba(0,0,0,.28));
  background-size: 40px 100%, 100% 100%;
  position: relative;
  overflow-x: hidden;
}

.studio::before {
  /* faint wall wash */
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(243, 230, 196, 0.14), transparent 55%);
}

/* painted map on the wall */
.wall-map {
  position: absolute;
  top: 4.6rem;
  bottom: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(98vw, 78rem);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.62;
  pointer-events: none;
  color: #e8d6a8;
  z-index: 0;
}
.wall-map svg {
  width: 100%;
  height: 100%;
}

/* ---- Plaid valance / banner ---- */
.banner {
  position: relative;
  z-index: 2;
  background-color: var(--plaid-red);
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0 10px,
      rgba(0,0,0,.45) 10px 14px,
      transparent 14px 24px,
      rgba(28, 61, 36, .85) 24px 28px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 10px,
      rgba(0,0,0,.45) 10px 14px,
      transparent 14px 24px,
      rgba(28, 61, 36, .85) 24px 28px
    );
  border-bottom: 6px solid var(--plaid-black);
  box-shadow: 0 8px 0 rgba(0,0,0,.25);
}

.banner-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem 1.25rem 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.35));
}

.brand {
  text-decoration: none;
  color: var(--snow);
  text-shadow: 2px 2px 0 #000, 0 0 12px rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
  min-width: 12rem;
}
.brand-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.9;
}
.brand-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.03em;
  line-height: 0.95;
  font-weight: 400;
}
.brand-tag {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--cream);
}

nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
}
nav a {
  color: var(--snow);
  text-decoration: none;
  font-weight: 700;
  padding: 0.25rem 0.45rem;
  border: 2px solid transparent;
  text-shadow: 1px 1px 0 #000;
}
nav a:hover,
nav a:focus-visible,
nav a[aria-current="page"] {
  border-color: var(--cream);
  background: rgba(0,0,0,.35);
  outline: none;
}

/* ---- Stage / set ---- */
.stage {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
  display: grid;
  grid-template-columns: 8.5rem 1fr 8.5rem;
  grid-template-areas:
    "left tv right"
    "props props props";
  gap: 0.75rem 1rem;
  align-items: start;
}

.prop-rail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  padding-top: 1.5rem;
}
.prop-rail.left { grid-area: left; }
.prop-rail.right { grid-area: right; }
.prop-rail svg { width: 100%; height: auto; max-width: 8.5rem; filter: drop-shadow(2px 4px 0 rgba(0,0,0,.35)); }
.prop-caption {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--cream-dim);
  text-shadow: 1px 1px 0 #000;
}

.tv-wrap { grid-area: tv; }

/* CRT television */
.tv {
  background: linear-gradient(180deg, #3a3a3a, #161616 18%, #0d0d0d);
  border-radius: 1.4rem 1.4rem 1.1rem 1.1rem;
  padding: 1rem 1rem 1.15rem;
  box-shadow:
    0 0 0 3px #2a2a2a,
    0 0 0 6px #111,
    0 18px 36px rgba(0,0,0,.5),
    inset 0 1px 0 rgba(255,255,255,.15);
}
.tv-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.4rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c9c3b6;
}
.on-air {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #f3d0d0;
  font-weight: 700;
}
.on-air::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--on-air);
  box-shadow: 0 0 8px var(--on-air);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  50% { opacity: 0.45; box-shadow: 0 0 2px var(--on-air); }
}

.tv-screen {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255,255,255,.18), transparent 45%),
    linear-gradient(180deg, #fff8e4, var(--cream) 40%, #e8d4a4);
  color: var(--ink);
  border-radius: 1.5rem 1.5rem 1.2rem 1.2rem / 1.1rem;
  min-height: 22rem;
  padding: 1.4rem 1.4rem 1.6rem;
  box-shadow:
    inset 0 0 0 4px #111,
    inset 0 0 0 7px #5a5a5a,
    inset 0 0 40px rgba(0,0,0,.18);
  overflow: hidden;
  color-scheme: light;
}
.tv-screen::after {
  /* gentle scanlines */
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(
    180deg,
    transparent 0 2px,
    rgba(0,0,0,.045) 2px 3px
  );
  mix-blend-mode: multiply;
}

.tv-screen > * { position: relative; z-index: 1; }

.tv-knobs {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  padding-top: 0.7rem;
}
.knob {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: conic-gradient(from 220deg, #888, #ddd, #555, #aaa);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px #000;
}

/* ---- Typography on the "cue card" ---- */
h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 0.6rem;
  color: var(--plaid-red-bright);
  text-shadow: 1px 1px 0 #fff4, 2px 2px 0 rgba(42, 21, 8, 0.2);
}
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); font-weight: 400; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 400; }
h3 { font-size: 1.25rem; color: var(--ink); text-shadow: none; font-family: var(--font-body); font-weight: 800; }

.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}
.kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--plaid-red);
  margin: 0 0 0.35rem;
}

p { margin: 0 0 0.9rem; }
.tv-screen a { color: #8a1212; font-weight: 700; }
.tv-screen a:hover { color: var(--plaid-red-bright); }
.tv-screen a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.hosts {
  font-style: italic;
  color: var(--ink-soft);
  margin: -0.2rem 0 1.1rem;
}

.topic-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff8e8;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--plaid-red);
  padding: 0.85rem 1rem 1rem;
  margin: 1.15rem 0;
}
.topic-card:hover { transform: translate(-1px, -1px); box-shadow: 7px 7px 0 var(--plaid-red); }
.topic-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.topic-card .kicker { margin-bottom: 0.2rem; }
.topic-card h2 { color: var(--ink); text-shadow: none; margin-bottom: 0.3rem; }
.topic-card p { margin: 0; color: var(--ink-soft); }

.sample-banner {
  display: inline-block;
  background: var(--amber);
  color: #1a120c;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  margin-bottom: 0.45rem;
}

blockquote {
  margin: 1rem 0;
  padding: 0.4rem 0 0.4rem 1rem;
  border-left: 6px solid var(--plaid-red);
  font-style: italic;
  color: var(--ink-soft);
}

.theme-song {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  letter-spacing: 0.04em;
  color: var(--plaid-red);
  text-align: center;
  margin: 1.25rem 0 0;
}

/* post list */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.post-list a {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff8e8;
  border: 3px solid var(--ink);
  padding: 0.8rem 1rem;
  box-shadow: 4px 4px 0 var(--plaid-green);
}
.post-list a:hover { box-shadow: 6px 6px 0 var(--plaid-green); }
.post-list a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.post-list time {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.post-list h2 {
  color: var(--ink);
  text-shadow: none;
  font-size: 1.4rem;
  margin: 0.15rem 0 0.3rem;
}

.meta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

/* ---- Couch / hosts (no likenesses — just toques on a sofa) ---- */
.couch-row {
  grid-area: props;
  margin-top: 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.couch-row svg {
  width: min(100%, 36rem);
  height: auto;
  filter: drop-shadow(0 6px 0 rgba(0,0,0,.28));
}

/* ---- Footer ---- */
footer {
  position: relative;
  z-index: 2;
  background: var(--plaid-black);
  color: var(--cream-dim);
  text-align: center;
  padding: 1rem 1.25rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border-top: 6px solid var(--plaid-red);
}
footer p { margin: 0.25rem 0; }
footer a { color: var(--cream); }
footer a:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }

/* ---- 404 snow ---- */
.snow-msg { text-align: center; padding: 1rem 0 0.5rem; }
.snow-msg h1 { margin-bottom: 0.5rem; }

/* ---- Prose in posts ---- */
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.3rem; }
.prose li { margin: 0.25rem 0; }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(42, 21, 8, 0.08);
  padding: 0.05rem 0.3rem;
}
.prose pre {
  background: var(--ink);
  color: var(--cream);
  padding: 0.85rem 1rem;
  overflow: auto;
  font-size: 0.9rem;
}
.prose pre code { background: none; padding: 0; color: inherit; }
.prose hr {
  border: 0;
  border-top: 3px dashed var(--wood-light);
  margin: 1.4rem 0;
}

/* ---- Accessibility / motion ---- */
:focus-visible { outline: 3px solid var(--cream); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .on-air::before,
  .topic-card:hover { animation: none; transform: none; }
}

@media (max-width: 820px) {
  .stage {
    grid-template-columns: 1fr;
    grid-template-areas:
      "tv"
      "props"
      "left"
      "right";
  }
  .prop-rail {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 0.4rem;
    gap: 0.8rem 1.2rem;
  }
  .prop-rail svg { width: 5.5rem; }
  nav { margin-left: 0; width: 100%; }
}

@media (max-width: 520px) {
  .tv { padding: 0.7rem 0.55rem 0.8rem; border-radius: 1rem; }
  .tv-screen { padding: 1rem 0.9rem 1.15rem; border-radius: 1rem; }
  .brand { min-width: 0; }
  body { font-size: 1rem; }
}
