@font-face {
  font-family: "Big Shoulders Display";
  src: url("/fonts/big-shoulders-display.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@property --eye-open {
  syntax: "<angle>";
  inherits: true;
  initial-value: 40deg;
}

:root {
  color-scheme: dark;

  --wood: #1a120c;
  --wood-2: #231810;
  --glass: #0b0907;
  --cream: #efe3c4;
  --muted: #c9bb9c;
  --faint: #a5977b;
  --amber: #ffb35c;
  --needle: #e8492f;
  --eye: #5cf7a0;
  --ivory: #eee4cf;
  --ink: #2a1c10;
  --line: rgba(239, 227, 196, 0.16);

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='300'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0035 .11' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .33 0 0 0 0 .16 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E");
  --cloth:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.35) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(-45deg, rgba(255, 230, 180, 0.07) 0 1px, transparent 1px 4px);
}

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

html {
  background: var(--wood);
  color: var(--cream);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: #4a3524 var(--wood);
  scrollbar-width: thin;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    var(--grain),
    radial-gradient(ellipse 70% 50% at 70% 10%, #2b1c11, transparent 70%),
    var(--wood);
  background-size: 900px 300px, 100% 100%, auto;
}

::selection {
  background: var(--amber);
  color: var(--wood);
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
  border-radius: 4px;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--ivory);
  color: var(--ink);
  font-weight: 600;
}

.skip:focus {
  top: 16px;
}

html:not(.js) [data-js-only] {
  visibility: hidden;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 800 24px/1 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand svg {
  width: 32px;
  height: 32px;
  color: var(--cream);
}

.brand--small {
  font-size: 20px;
}

.brand--small svg {
  width: 26px;
  height: 26px;
}

.brand + .key {
  margin-left: auto;
}

.nav__links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  color: var(--muted);
  font-size: 15px;
}

.nav__links a {
  transition: color 200ms var(--ease);
}

.nav__links a:hover {
  color: var(--cream);
}

.key {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 4px 4px 7px 7px;
  color: var(--ink);
  font: 800 17px/1 var(--display);
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    0 1px 0 #fff8e8 inset,
    0 5px 0 #6d5638,
    0 8px 18px -6px rgba(0, 0, 0, 0.8);
  transition: transform 120ms var(--ease), box-shadow 120ms var(--ease), background-color 200ms var(--ease);
}

.key:not(.key--ghost) {
  background: linear-gradient(180deg, #f6eedc, var(--ivory) 55%, #d6cab0 88%, #b9aa8a);
}

.key:not(.key--ghost):hover {
  background: linear-gradient(180deg, #fbf4e4, #f2e9d5 55%, #dbcfb5 88%, #bfb091);
}

.key:not(.key--ghost):active,
.key.is-down {
  transform: translateY(4px);
  box-shadow:
    0 1px 0 #fff8e8 inset,
    0 1px 0 #6d5638,
    0 3px 8px -4px rgba(0, 0, 0, 0.8);
}

.key--ghost {
  background: transparent;
  color: var(--cream);
  box-shadow: inset 0 0 0 1.5px rgba(239, 227, 196, 0.45);
}

.key--ghost:hover {
  background: rgba(239, 227, 196, 0.07);
}

.key--ghost:active {
  box-shadow: inset 0 0 0 1.5px rgba(239, 227, 196, 0.6);
}

.key--small {
  height: 40px;
  padding: 0 18px;
  font-size: 15px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  min-height: calc(100svh - 76px);
  padding: 16px 0 72px;
}

.hero h1 {
  font: 800 clamp(52px, 7vw, 104px)/0.9 var(--display);
  text-transform: uppercase;
  text-wrap: balance;
}

.hero__lead {
  max-width: 40ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 20px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
  margin-top: 34px;
}

.radio {
  position: relative;
  padding: 22px;
  border-radius: 26px;
  background:
    var(--grain),
    linear-gradient(180deg, #3a2616, #24170e 60%, #1b110a);
  background-size: 900px 300px, auto;
  box-shadow:
    0 1px 0 rgba(255, 220, 170, 0.18) inset,
    0 -2px 0 rgba(0, 0, 0, 0.5) inset,
    0 40px 80px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px #0d0805;
}

.grille {
  display: grid;
  place-items: center;
  height: 170px;
  border-radius: 14px 14px 6px 6px;
  background: var(--cloth), linear-gradient(180deg, #4a3a28, #3a2c1d);
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(255, 220, 170, 0.12);
}

.emblem {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #e7c77a, #b88b3a 55%, #8a6326);
  color: var(--ink);
  font: 900 22px/1 var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow:
    0 1px 0 #fff0c2 inset,
    0 -1px 0 rgba(60, 30, 0, 0.5) inset,
    0 6px 12px -4px rgba(0, 0, 0, 0.8);
}

.emblem svg {
  width: 30px;
  height: 30px;
  color: var(--ink);
}

.dial {
  position: relative;
  margin-top: 18px;
  height: 132px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(ellipse 60% 90% at 50% 60%, rgba(255, 170, 80, 0.22), transparent 70%),
    linear-gradient(180deg, #0d0b09, var(--glass));
  box-shadow:
    inset 0 0 0 1px rgba(255, 220, 170, 0.14),
    inset 0 8px 18px rgba(0, 0, 0, 0.8);
}

.dial::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 85% at 50% 60%, rgba(255, 180, 90, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 500ms var(--ease);
  pointer-events: none;
}

.radio.is-tuned .dial::before {
  opacity: 1;
}

.dial::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.08), transparent 35%);
  pointer-events: none;
}

.scale {
  position: absolute;
  inset: 14px 62px 12px;
}

.scale__nums {
  display: flex;
  justify-content: space-between;
  color: var(--cream);
  font: 700 13px/1 var(--display);
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.scale__ticks {
  height: 20px;
  margin: 6px 0 4px;
  background:
    repeating-linear-gradient(90deg, rgba(239, 227, 196, 0.7) 0 1px, transparent 1px 10px) bottom / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, rgba(239, 227, 196, 0.9) 0 1.5px, transparent 1.5px 50px) bottom / 100% 20px no-repeat;
}

.scale__cities {
  display: flex;
  justify-content: space-between;
  color: var(--faint);
  font: 600 11px/1 var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stations {
  position: relative;
  height: 30px;
  margin-top: 10px;
}

.station {
  position: absolute;
  top: 0;
  translate: -50% 0;
  padding: 4px 6px;
  color: var(--cream);
  font: 800 16px/1 var(--display);
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.75;
  transition: opacity 200ms var(--ease), color 200ms var(--ease);
}

.station:hover,
.station.is-tuned {
  opacity: 1;
  color: #ffd9a0;
}

.station--p12 { left: 12%; }
.station--p38 { left: 38%; }
.station--p62 { left: 62%; }
.station--p88 { left: 88%; }

.needle {
  position: absolute;
  top: -6px;
  bottom: -4px;
  left: 12%;
  width: 2px;
  translate: -1px 0;
  background: var(--needle);
  transition: left 700ms var(--ease);
}

.eye {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 34px;
  height: 34px;
  translate: 0 -50%;
  border-radius: 50%;
  background: conic-gradient(from calc(180deg - var(--eye-open)), #0e2a1b 0 calc(var(--eye-open) * 2), var(--eye) 0);
  box-shadow:
    0 0 0 3px #1a1510,
    0 0 0 4px rgba(255, 220, 170, 0.18),
    inset 0 0 8px rgba(0, 0, 0, 0.6);
  transition: --eye-open 400ms var(--ease);
}

.eye::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: var(--glass);
}

.radio.is-tuned .eye {
  --eye-open: 6deg;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
}

.keys {
  display: flex;
  gap: 6px;
}

.key--piano {
  height: 58px;
  padding: 0 14px;
  border-radius: 3px 3px 8px 8px;
  font-size: 14px;
}

.knob {
  position: relative;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #5a3b24, #2a1a0f 55%, #150d08);
  box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 220, 170, 0.2) inset;
  rotate: var(--knob, 32deg);
  transition: rotate 700ms var(--ease);
}

.knob::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(0, 0, 0, 0.35) 0 6deg, transparent 6deg 12deg);
}

.knob::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 3px;
  height: 16px;
  translate: -50% 0;
  border-radius: 2px;
  background: var(--ivory);
}

.section {
  padding: clamp(96px, 11vw, 150px) 0 0;
}

.section h2 {
  font: 800 clamp(40px, 5vw, 72px)/0.95 var(--display);
  text-transform: uppercase;
  text-wrap: balance;
}

.section__lead {
  max-width: 52ch;
  margin-top: 18px;
  color: var(--muted);
}

.listing {
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.listing article:focus {
  outline: none;
}

.listing article {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: baseline;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.listing h3 {
  font: 800 clamp(32px, 3.4vw, 48px)/1 var(--display);
  text-transform: uppercase;
  transition: color 400ms var(--ease);
}

.listing article:is(:target, .is-target) h3 {
  color: var(--amber);
}

.listing p {
  max-width: 60ch;
  color: var(--muted);
}

.listing strong {
  color: var(--cream);
  font-weight: 600;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.plate {
  position: relative;
  padding: 32px 36px;
  border-radius: 6px;
  background: linear-gradient(160deg, #ecd28e, #d2ab5c 50%, #bf9444);
  color: var(--ink);
  box-shadow:
    0 1px 0 #fff0c4 inset,
    0 -1px 0 rgba(60, 30, 0, 0.5) inset,
    0 24px 50px -20px rgba(0, 0, 0, 0.9);
}

.plate::before,
.plate::after {
  content: "";
  position: absolute;
  top: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff2c8, #8a6326);
}

.plate::before {
  left: 12px;
}

.plate::after {
  right: 12px;
}

.plate__title {
  font: 900 22px/1 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.plate dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 22px;
  margin-top: 18px;
  font: 700 18px/1.3 var(--display);
  letter-spacing: 0.06em;
}

.plate dt {
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.82;
}

.plate dd {
  letter-spacing: 0.03em;
}

.plate a {
  text-decoration: underline;
  text-decoration-color: rgba(42, 28, 16, 0.4);
  text-underline-offset: 3px;
}

.contact {
  margin-top: clamp(96px, 11vw, 150px);
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 64px);
  border-radius: 24px;
  background: var(--cloth), linear-gradient(180deg, #3d2f20, #2c2016);
  box-shadow: inset 0 3px 12px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.contact h2 {
  font: 800 clamp(48px, 7vw, 100px)/0.9 var(--display);
  text-transform: uppercase;
}

.contact > p {
  max-width: 44ch;
  margin: 18px auto 30px;
  color: var(--muted);
}

.contact__keys {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.contact__status {
  min-height: 1.6em;
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 32px 0 40px;
  color: var(--faint);
  font-size: 14px;
}

.footer p a {
  text-decoration: underline;
  text-decoration-color: rgba(239, 227, 196, 0.3);
  text-underline-offset: 3px;
}

.footer p a:hover {
  color: var(--cream);
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: 24px;
  }

  .listing article {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .about {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav__links {
    display: none;
  }

  .nav {
    justify-content: space-between;
  }
}

@media (max-width: 560px) {
  .radio {
    padding: 14px;
    border-radius: 20px;
  }

  .grille {
    height: 120px;
  }

  .scale {
    inset: 12px 14px 10px 58px;
  }

  .scale__cities {
    display: none;
  }

  .station {
    font-size: 12px;
    letter-spacing: 0.5px;
  }

  .knob {
    display: none;
  }

  .keys {
    width: 100%;
  }

  .key--piano {
    flex: 1;
    min-width: 0;
    padding: 0 4px;
    font-size: 12px;
    letter-spacing: 0.5px;
  }

  .hero__actions .key,
  .contact__keys .key {
    width: 100%;
  }

  .plate {
    padding: 30px 22px 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
  }
}

.lost {
  display: grid;
  justify-items: center;
  gap: 22px;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 10vh, 120px) 0 96px;
  text-align: center;
}

.lost__dial {
  width: 100%;
  margin: 0 0 18px;
}

.lost__needle {
  left: 71%;
}

.lost h1 {
  font: 800 clamp(40px, 6vw, 76px)/0.95 var(--display);
  text-transform: uppercase;
  text-wrap: balance;
}

.lost p {
  max-width: 44ch;
  color: var(--muted);
}

.lost__keys {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}
