:root {
  --wood: #a56b34;
  --wood-dark: #7a4a22;
  --plastic: #3a4450;
  --plastic-hi: #4b5766;
  --rubber: #c45c26;
  --lcd: #5e6c42;
  --lcd-text: #d7ec9a;
  --lcd-dim: #9bb06a;
  --metal: #8a939c;
  --paper: #f3ead6;
  --ink: #1f1710;
  --focus: #f0c14b;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Figtree, "Segoe UI", sans-serif;
  color: var(--paper);
  background: var(--wood-dark);
}

a {
  color: inherit;
}

a:focus-visible,
.skip:focus {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--plastic);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
  z-index: 2;
}

.skip:focus {
  top: 1rem;
}

.bench {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem) 1.25rem;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 220, 160, 0.18), transparent 40%),
    repeating-linear-gradient(
      90deg,
      transparent 0 14px,
      rgba(0, 0, 0, 0.05) 14px 16px
    ),
    linear-gradient(180deg, var(--wood) 0%, var(--wood-dark) 100%);
}

.brand-bar,
footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand {
  margin: 0;
  font-weight: 500;
}

.brand a {
  text-decoration: none;
}

.channel {
  margin: 0;
  opacity: 0.72;
}

.transmitter {
  position: relative;
  width: min(42rem, 100%);
  margin: 2rem auto;
  padding: 1.6rem 1.4rem 1.4rem;
  background:
    linear-gradient(180deg, var(--plastic-hi), var(--plastic));
  border-radius: 1.8rem;
  box-shadow:
    0 28px 40px rgba(40, 18, 6, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.screws span {
  position: absolute;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background:
    conic-gradient(from 40deg, #6d757d, #c5ccd3, #6d757d);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.screws span:nth-child(1) { top: 0.7rem; left: 0.7rem; }
.screws span:nth-child(2) { top: 0.7rem; right: 0.7rem; }
.screws span:nth-child(3) { bottom: 0.7rem; left: 0.7rem; }
.screws span:nth-child(4) { bottom: 0.7rem; right: 0.7rem; }

.lcd {
  background:
    linear-gradient(180deg, #6d7c4d, var(--lcd));
  color: var(--lcd-text);
  border-radius: 0.55rem;
  padding: 1.1rem 1.15rem 1rem;
  box-shadow:
    inset 0 0 0 3px #2b3320,
    inset 0 10px 24px rgba(0, 0, 0, 0.28);
  text-shadow: 0 0 10px rgba(215, 236, 154, 0.35);
}

.lcd::after {
  content: "";
  display: block;
  height: 0;
  box-shadow: 0 0 0 100vmax rgba(255, 255, 255, 0);
}

.lcd-label,
.lcd-meta {
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lcd-dim);
}

h1 {
  font-family: Tektur, "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 6vw, 3rem);
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0.45rem 0 0.35rem;
}

.coming-soon {
  margin: 0 0 0.85rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
}

.coming-soon::after {
  content: "▍";
  animation: blink 1.2s steps(1) infinite;
}

.lcd-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.led {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #e2b23a;
  box-shadow: 0 0 8px #e2b23a;
  animation: pulse 1.8s ease-in-out infinite;
}

.grip {
  height: 0.7rem;
  margin: 1.1rem 0 1.2rem;
  border-radius: 999px;
  background: repeating-linear-gradient(
    90deg,
    var(--rubber) 0 10px,
    #a84b1d 10px 12px
  );
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25);
}

.sticks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
}

.well {
  aspect-ratio: 1;
  max-width: 9.5rem;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, #2a323c 42%, #1c232b 68%, #4a5562 100%);
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: inset 0 8px 16px rgba(0, 0, 0, 0.45);
}

.stick {
  width: 38%;
  height: 38%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d8dee5, var(--metal) 70%);
  box-shadow: 0 4px 0 #5d656d;
  animation: idle 4.5s ease-in-out infinite;
}

.stick.right {
  animation-delay: -1.8s;
}

.well span {
  position: absolute;
  bottom: -1.35rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  opacity: 0.7;
}

.tagline {
  margin: 1.8rem 0 0.2rem;
  text-align: center;
  color: #d7dde4;
  font-size: 1.02rem;
  line-height: 1.45;
}

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 0.9rem;
}

footer a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.manual {
  width: min(42rem, 100%);
  margin: 1.5rem auto 2rem;
}

.manual article {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(1.3rem, 4vw, 2.2rem);
  border-radius: 0.4rem;
  box-shadow: 0 16px 30px rgba(40, 18, 6, 0.28);
}

.kicker {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
  color: var(--rubber);
}

.manual h1 {
  color: var(--plastic);
  margin-top: 0;
}

.lede,
.manual p,
.manual li {
  line-height: 1.55;
}

.manual a {
  color: #8a3b12;
}

.manual h2 {
  font-family: Tektur, "Arial Narrow", sans-serif;
  font-size: 1.15rem;
  margin: 1.6rem 0 0.5rem;
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes pulse {
  50% { opacity: 0.35; }
}

@keyframes idle {
  0%, 100% { transform: translate(6%, -4%); }
  50% { transform: translate(-8%, 6%); }
}

@media (max-width: 640px) {
  .transmitter {
    padding: 1.3rem 1rem 1.2rem;
  }

  .sticks {
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .coming-soon::after,
  .led,
  .stick {
    animation: none;
  }
}
