/* The Voice Booth: walnut studio, cream script paper, tube amber and on-air red. */
:root {
  --studio: #16120f;
  --panel: #221b15;
  --line: #3a2f25;
  --cream: #f5ecd9;
  --paper: #fbf5e8;
  --ink: #1d1712;
  --ink-soft: #4f4337;
  --amber: #f2b544;
  --amber-deep: #8a5a00;
  --red: #c9301f;
  --red-ink: #a3261a;
  --display: "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --text: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--studio);
  background-image: radial-gradient(circle at 1px 1px, rgba(245, 236, 217, .06) 1px, transparent 0);
  background-size: 14px 14px;
  color: var(--cream);
  font: 1.0625rem/1.7 var(--text);
}
.wrap { width: min(100% - 32px, 820px); margin-inline: auto; }

a { color: var(--amber); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--amber); color: var(--ink); padding: 8px 14px; font-family: var(--display); z-index: 10; }
.skip:focus { left: 16px; }

/* Masthead */
.masthead { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #1f1915, var(--studio)); }
.masthead-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); }
.onair {
  font: 700 .75rem/1 var(--display);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  border: 2px solid #ff8a73;
  border-radius: 6px;
  padding: 7px 10px 6px;
  box-shadow: 0 0 0 3px rgba(201, 48, 31, .25), 0 0 18px rgba(232, 67, 46, .55);
  animation: glow 3.2s ease-in-out infinite;
}
.brand-name { font: 700 clamp(1.4rem, 4vw, 1.9rem)/1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.nav { display: flex; gap: 6px; }
.nav a {
  font: 600 .95rem/1 var(--display);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--cream);
  text-decoration: none;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.nav a:hover { border-color: var(--amber); color: var(--amber); }
.tagline { margin: 10px auto 14px; color: #cdbd9f; font-style: italic; }

/* VU meter strip */
.vu { display: flex; align-items: flex-end; gap: 3px; height: 26px; padding: 0 16px; max-width: 820px; margin: 0 auto 0; }
.vu span {
  flex: 1;
  height: 30%;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(0deg, #6f8f3a 0 55%, var(--amber) 55% 82%, var(--red) 82%);
  background-size: 100% 26px;
  background-position: bottom;
  animation: vu 1.6s ease-in-out infinite alternate;
}
.vu span:nth-child(3n) { animation-duration: 1.1s; }
.vu span:nth-child(4n+1) { animation-duration: 2.1s; animation-delay: -.6s; }
.vu span:nth-child(5n+2) { animation-duration: 1.3s; animation-delay: -1s; }
.vu span:nth-child(7n) { animation-duration: .9s; }

/* Script sheet */
main { padding: 32px 0 56px; }
.sheet {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(22px, 5vw, 52px);
  box-shadow: 0 0 0 1px #000, 0 24px 60px rgba(0, 0, 0, .45);
  position: relative;
}
.sheet::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: repeating-linear-gradient(90deg, var(--red) 0 18px, var(--ink) 18px 22px, var(--amber) 22px 40px, var(--ink) 40px 44px);
}
.slate {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 6px;
  font: 600 .8rem/1 var(--display);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.rec { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(201, 48, 31, .2); }
.slate-date:empty { display: none; }
.slate-date::before { content: "/ "; }

h1, h2, h3 { font-family: var(--display); line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); text-transform: uppercase; letter-spacing: .01em; margin: 0 0 22px; }
h2 { font-size: clamp(1.45rem, 3.6vw, 1.85rem); margin: 2.2em 0 .6em; padding-top: .6em; border-top: 2px dashed #d9cbb0; }
h3 { font-size: 1.2rem; margin: 1.7em 0 .4em; color: var(--red-ink); text-transform: uppercase; letter-spacing: .04em; }
.sheet a { color: var(--red-ink); font-weight: 600; }
.sheet a:focus-visible { outline-color: var(--red-ink); }
.sheet p, .sheet li { max-width: 68ch; }
.sheet ul, .sheet ol { padding-left: 1.3em; }
.sheet li { margin: .35em 0; }
.lede { font-size: 1.2rem; color: var(--ink-soft); }
strong { color: #000; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; background: #efe3cb; padding: 1px 5px; border-radius: 4px; }

/* Checklists look like a cue sheet */
.checklist { list-style: none; padding: 16px 18px !important; background: #f1e6cf; border-left: 6px solid var(--amber); border-radius: 0 8px 8px 0; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: .35em;
  width: 16px; height: 16px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: linear-gradient(135deg, transparent 45%, var(--red) 45% 60%, transparent 60%);
}
.note { background: var(--ink); color: var(--cream); border-radius: 8px; padding: 16px 20px; }
.note strong { color: var(--amber); }
.note a { color: var(--amber); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.2em 0; }
table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #d9cbb0; vertical-align: top; }
th { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; background: var(--ink); color: var(--cream); }

/* Home: guide list as a rundown */
.hero-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.hero-strip li { font: 600 .8rem/1 var(--display); text-transform: uppercase; letter-spacing: .12em; border: 2px solid var(--ink); border-radius: 999px; padding: 8px 12px; }
.rundown { list-style: none; padding: 0 !important; margin: 18px 0 0; display: grid; gap: 14px; }
.cue { margin: 0 !important; max-width: none !important; }
.cue-link {
  display: flex; gap: 16px; align-items: stretch;
  text-decoration: none;
  background: var(--panel);
  border: 1px solid #000;
  border-radius: var(--radius);
  padding: 18px;
  color: var(--cream) !important;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cue-link:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .3), inset 0 0 0 2px var(--amber); }
.cue-link:focus-visible { outline: 3px solid var(--red-ink); }
.cue-meter {
  flex: 0 0 12px;
  border-radius: 3px;
  background: linear-gradient(0deg, #6f8f3a 0 50%, var(--amber) 50% 80%, var(--red) 80%);
  opacity: .9;
}
.cue-body { display: grid; gap: 6px; }
.cue-title { font: 700 1.3rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--cream); }
.cue-desc { font-weight: 400; color: #d9cbb0; }
.cue-date { font: 600 .78rem/1 var(--display); letter-spacing: .14em; color: var(--amber); }

/* Footer */
.footer { border-top: 1px solid var(--line); color: #cdbd9f; font-size: .95rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 22px 0 10px; }
.footer p { margin: 0; }
.footer a { color: var(--amber); }
.wave {
  height: 34px;
  background:
    repeating-linear-gradient(90deg, transparent 0 4px, var(--studio) 4px 6px),
    linear-gradient(90deg, var(--amber), var(--red), var(--amber));
  -webkit-mask: radial-gradient(ellipse 14px 17px at 50% 100%, #000 98%, transparent) 0 0 / 28px 34px repeat-x;
  mask: radial-gradient(ellipse 14px 17px at 50% 100%, #000 98%, transparent) 0 0 / 28px 34px repeat-x;
  opacity: .55;
}

@keyframes vu { from { height: 18%; } 60% { height: 72%; } to { height: 40%; } }
@keyframes glow { 50% { box-shadow: 0 0 0 3px rgba(201, 48, 31, .35), 0 0 30px rgba(232, 67, 46, .8); } }
@media (prefers-reduced-motion: reduce) {
  .vu span, .onair { animation: none; }
  .vu span:nth-child(odd) { height: 55%; }
  .cue-link { transition: none; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .masthead-row { padding-top: 14px; }
  .nav a { padding: 9px 12px; }
  .cue-link { padding: 14px; gap: 12px; }
  .cue-title { font-size: 1.12rem; }
  .vu { gap: 2px; }
}
