/* Train the Bench - under-construction splash. No external fonts or scripts. */

:root {
  --gold: #c9a227;
  --gold-hi: #f0cf6a;
  --navy-900: #070e1d;
  --navy-800: #0b1426;
  --navy-700: #13203d;
  --wood: #3d2314;

  /* light theme tokens */
  --bg: #f5f1e8;
  --surface: #ffffff;
  --surface-2: #faf7f0;
  --text: #1a1f2b;
  --muted: #545b6b;
  --border: #ddd4c0;
  --accent: #8a6a12;          /* gold dark enough for text on light */
  --accent-strong: #6b520c;
  --focus: #1d4ed8;
  --ok: #1f6b3a;

  --radius: 14px;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--navy-900);
    --surface: #0f1a31;
    --surface-2: #13203d;
    --text: #ece6d6;
    --muted: #aab3c5;
    --border: #25365e;
    --accent: var(--gold-hi);
    --accent-strong: #f6dc85;
    --focus: #8ab4ff;
    --ok: #7fd49a;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--surface);
  color: var(--text);
  padding: .5rem .9rem;
  border-radius: 8px;
  z-index: 10;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* ---------- Banner (always dark: it is the "courtroom") ---------- */

.banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #f4ecd6;
  background: linear-gradient(180deg, var(--navy-800), var(--wood));
  min-height: clamp(300px, 42vw, 440px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2.5rem 1rem 5.5rem;
  border-bottom: 4px solid var(--gold);
}

.banner__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

/* vignette for legibility and a cinematic feel */
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(7, 14, 29, .15), rgba(7, 14, 29, .75) 80%),
    linear-gradient(180deg, rgba(7, 14, 29, .35), rgba(7, 14, 29, 0) 40%);
}

.banner__content { max-width: 64rem; }

.gavel {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto .5rem;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .55));
}

.banner__eyebrow {
  display: inline-block;
  margin: 0 0 .75rem;
  padding: .25rem .9rem;
  border: 1px solid rgba(240, 207, 106, .6);
  border-radius: 999px;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-hi);
  background: rgba(7, 14, 29, .55);
}

.banner__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.3rem, 7vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-hi);
  background: linear-gradient(180deg, #fbe7a1 0%, #e0b94a 55%, #a98217 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

.banner__tagline {
  margin: .9rem auto 0;
  max-width: 38rem;
  font-family: var(--serif);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: #e9dfc4;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
}

/* ---------- Banner Menu ---------- */

.banner__menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(1.5rem, 4vw, 2.5rem);
  z-index: 10;
  padding: 0 1rem;
}

.banner__menu-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(.6rem, 1.5vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.banner__menu-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1rem;
  font-weight: 600;
  font-size: clamp(.8rem, 1.8vw, 1rem);
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--gold-hi);
  background: rgba(7, 14, 29, .7);
  border: 1px solid rgba(240, 207, 106, .35);
  border-radius: 999px;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.banner__menu-link:hover,
.banner__menu-link:focus {
  color: #fff;
  background: linear-gradient(180deg, rgba(240, 207, 106, .95), rgba(201, 162, 39, .9));
  border-color: var(--gold);
  box-shadow: 0 6px 20px -8px rgba(201, 162, 39, .6);
}

.banner__menu-link:active {
  transform: scale(.98);
}

/* Adjust banner padding to make room for menu */
.banner {
  padding-bottom: clamp(5.5rem, 14vw, 7rem);
}

/* ---------- Two-column layout ---------- */

.layout {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: minmax(250px, 320px) 1fr;
  gap: 2.5rem;
  align-items: start;
}

.channels {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .45);
}

.channels__heading {
  margin: 0 0 .75rem;
  padding: 0 .5rem .6rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--serif);
  font-size: .85rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}

.channels__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .25rem;
}

.channel {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .45rem .5rem;
  border-radius: 10px;
  font-weight: 600;
  line-height: 1.3;
}
.channel:nth-child(odd) { background: var(--surface-2); }

.channel img {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: var(--navy-800);
  box-shadow: 0 0 0 2px var(--gold), 0 4px 10px rgba(0, 0, 0, .35);
}

.about {
  padding: .5rem 0;
  max-width: 44rem;
}

.about__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1rem;
  padding: .3rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.dot {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(201, 162, 39, .6);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 162, 39, .55); }
  80%, 100% { box-shadow: 0 0 0 .6rem rgba(201, 162, 39, 0); }
}

.about__heading {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.2;
}

.about p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Waitlist ---------- */

.waitlist {
  margin-top: 2rem;
  padding: 1.4rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
}
.waitlist__heading {
  margin: 0 0 .75rem;
  font-family: var(--serif);
  font-size: 1.2rem;
}
.waitlist__label { display: block; font-weight: 600; margin-bottom: .35rem; }
.waitlist__row { display: flex; gap: .6rem; flex-wrap: wrap; }

.waitlist input {
  flex: 1 1 16rem;
  min-width: 0;
  min-height: 48px;
  padding: .7rem .9rem;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.waitlist input::placeholder { color: var(--muted); opacity: .8; }

.waitlist button {
  flex: 0 0 auto;
  min-height: 48px;
  padding: .7rem 1.25rem;
  font: inherit;
  font-weight: 700;
  color: #1a1204;
  background: linear-gradient(180deg, #f3d67a, #c9a227);
  border: 1px solid #8a6a12;
  border-radius: 10px;
  cursor: pointer;
}
.waitlist button:hover { filter: brightness(1.06); }

.waitlist__note { margin: .6rem 0 0; font-size: .88rem; }
.waitlist__status { margin: .6rem 0 0; font-weight: 600; min-height: 1.5em; }
.waitlist__status.is-ok { color: var(--ok); }
.waitlist__status.is-error { color: #c0392b; }
@media (prefers-color-scheme: dark) {
  .waitlist__status.is-error { color: #ff8f80; }
}

/* ---------- Footer ---------- */

.footer {
  padding: 1.25rem 1rem 2rem;
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.footer p { margin: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 767px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.75rem 1rem 2.5rem;
  }
  /* description first on phones, channel list after it */
  .about { order: -1; }
  .channels__list { grid-template-columns: 1fr; }
  .banner { padding-bottom: 4.5rem; }
  .waitlist button { width: 100%; }
}

@media (min-width: 480px) and (max-width: 767px) {
  .channels__list { grid-template-columns: 1fr 1fr; }
  .channel:nth-child(odd) { background: none; }
  .channel { background: var(--surface-2); }
}

@media (prefers-reduced-motion: reduce) {
  .dot { animation: none; }
}
