/* Radio Dial (v19): materials shared by the landing and the fallback chapter page. */

:root {
  --room: #17110c;
  --cream: #f4e4c1;
  --cream-dim: rgba(244, 228, 193, .78);
  --gold: #f0d999;
  --gold-dim: rgba(240, 217, 153, .78);
  --brass: #c9a35a;
  --brass-dk: #7d6029;
  --amber: #f3b65e;
  --amber-lt: #ffe0a3;
  --ink: #2b1607;
  --red: #a3200f;
  --ivory: #eadfc6;
  --paper: #efe5cb;
  --paper-ink: #2a2118;

  --f-title: 'Gloock', Georgia, 'Times New Roman', serif;
  --f-label: 'Sofia Sans Condensed', 'Arial Narrow', Arial, sans-serif;
  --f-body: 'Spectral', Georgia, 'Times New Roman', serif;
  --f-badge: 'Yesteryear', 'Brush Script MT', cursive;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='320'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0032 0.105' numOctaves='4' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.10 0 0 0 0 0.04 0 0 0 0 0.01 0 0 0 1.8 -0.66'/%3E%3C/filter%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.005 0.16' numOctaves='3' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.66 0 0 0 0 0.38 0 0 0 1.6 -0.78'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23b)' opacity='.5'/%3E%3C/svg%3E");
  --slub: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85 0.03' numOctaves='2' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.86 0 0 0 0 0.70 0 0 0 0 0.44 0 0 0 1.3 -0.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");
  --speck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.13 0 0 0 0 0.06 0 0 0 1.4 -0.62'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--room);
  color: var(--cream);
  font-family: var(--f-body);
  overflow-x: clip;
  overflow-anchor: none;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber-lt); outline-offset: 3px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Wallpaper: dark regency stripe */
.wall {
  background-color: var(--room);
  background-image:
    repeating-linear-gradient(90deg,
      rgba(255, 226, 180, .03) 0 1px, rgba(0, 0, 0, 0) 1px 38px,
      rgba(0, 0, 0, .17) 38px 44px, rgba(0, 0, 0, 0) 44px 82px);
}

/* Walnut veneer with lacquer */
.walnut {
  background-color: #56301a;
  background-image:
    linear-gradient(180deg, rgba(255, 232, 200, .16) 0, rgba(255, 232, 200, 0) 9%, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, .28) 100%),
    var(--grain),
    radial-gradient(130% 70% at 28% 30%, #7e4a27 0, #5a321b 55%, #3f2112 100%);
  background-size: 100% 100%, 900px 320px, 100% 100%;
}

/* Brass nameplate */
.plate {
  display: inline-block;
  padding: 1px 30px 5px;
  border-radius: 999px;
  font: 400 34px/1.15 var(--f-badge);
  color: #3a2408;
  text-shadow: 0 1px 0 rgba(255, 244, 205, .65);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .12) 55%, rgba(255, 255, 255, .08)),
    linear-gradient(90deg, #8f6c2e, #e6c983 22%, #c39d55 48%, #f2dc9c 70%, #9b7735);
  box-shadow:
    0 0 0 1px #2a1806,
    0 3px 6px rgba(0, 0, 0, .55),
    inset 0 1px 0 rgba(255, 250, 225, .85),
    inset 0 -2px 3px rgba(80, 50, 10, .45);
  white-space: nowrap;
}

/* Paper card pinned to the back of the set */
.paper {
  position: relative;
  color: var(--paper-ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(120% 90% at 50% 40%, rgba(255, 252, 240, .55), rgba(255, 252, 240, 0) 60%),
    linear-gradient(180deg, rgba(150, 110, 50, 0) 70%, rgba(150, 110, 50, .14)),
    var(--speck);
  box-shadow:
    inset 0 0 0 1px rgba(120, 90, 40, .25),
    inset 0 0 40px rgba(150, 105, 40, .22),
    0 2px 2px rgba(0, 0, 0, .3),
    0 22px 44px rgba(0, 0, 0, .5);
}
.pin {
  position: absolute;
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #fff3c9 0, #d8b36a 30%, #8a6526 70%, #4b3412 100%);
  box-shadow: 0 2px 3px rgba(0, 0, 0, .45);
}
.pin::after {
  content: ''; position: absolute; left: 6px; top: 2px; width: 2px; height: 10px;
  background: rgba(60, 40, 10, .55); transform: rotate(35deg);
}
.pin-a { left: 14px; top: 14px; }
.pin-b { right: 14px; top: 14px; }
.pin-c { left: 14px; bottom: 14px; }
.pin-d { right: 14px; bottom: 14px; }

/* Hardboard back panel */
.hardboard {
  background-color: #432d1c;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 90px),
    var(--speck),
    linear-gradient(180deg, #4b3320, #3a2617);
  background-size: 100% 100%, 220px 220px, 100% 100%;
}

/* Amber dial glass */
.amber {
  background-color: #f1b45f;
  background-image:
    radial-gradient(220px 130px at var(--np, 50%) 55%, rgba(255, 248, 220, .8), rgba(255, 226, 160, 0) 70%),
    radial-gradient(170px 150px at 0 50%, rgba(255, 238, 196, .6), rgba(255, 238, 196, 0) 70%),
    radial-gradient(170px 150px at 100% 50%, rgba(255, 238, 196, .6), rgba(255, 238, 196, 0) 70%),
    linear-gradient(180deg, #e39b45 0, #f6c271 38%, #f3b660 72%, #cf8834 100%);
  box-shadow:
    inset 0 0 0 1px rgba(70, 35, 0, .45),
    inset 0 9px 18px rgba(90, 45, 0, .32),
    inset 0 -9px 16px rgba(90, 45, 0, .28);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
}
