/* ============================================================
   NTBLDO — site stylesheet
   Loaded AFTER tokens.css, which owns the palette, the type
   scales and the shared components (.pill, .section, .event-hero).
   Nothing here redefines a token; this file is the rest of the
   prototype stylesheet, rewritten for server-rendered markup.
   ============================================================ */

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main { flex: 1; }

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

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

input, select, textarea { font-family: inherit; }

img { max-width: 100%; }

/* Alpine hides these until it has booted, so the mobile menu never flashes open. */
[x-cloak] { display: none !important; }

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

/* Keyboard users get a way past the navigation. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--paper);
  color: var(--ink);
  padding: 12px 18px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------
   Tags, buttons, small controls
   ------------------------------------------------------------ */

.slash-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.slash-tag-mark { color: var(--paper); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 0;
  border: 1px solid transparent;
  transition: transform .15s ease, opacity .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled,
.btn.is-disabled { opacity: 0.35; cursor: not-allowed; transform: none; pointer-events: none; }
.btn-primary { background: var(--paper); color: #050505; }
.btn-primary:hover { background: var(--chrome); }
.btn-outline { border-color: var(--line); color: var(--paper); }
.btn-outline:hover { border-color: var(--paper); }
.btn-ticket { border: 1px solid var(--paper); color: var(--paper); padding: 10px 16px; font-size: 12px; }
.btn-ticket:hover { background: var(--paper); color: #050505; }
.btn-block { width: 100%; justify-content: center; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--paper);
}
.link-more:hover { color: var(--chrome); }

/* ------------------------------------------------------------
   Navigation
   ------------------------------------------------------------ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; line-height: 1; }
.brand-mark { width: 26px; height: auto; display: block; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; align-items: flex-start; }
.brand-full { font-family: 'IBM Plex Mono', monospace; font-size: 9px; letter-spacing: 0.2em; color: var(--muted); }
.brand-short { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 19px; letter-spacing: 0.06em; }

.nav-links { display: flex; gap: 28px; }
.nav-link { font-size: 14px; font-weight: 600; color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-link:hover { color: var(--paper); }
.nav-link.is-active { color: var(--paper); border-color: var(--paper); }

.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-burger { display: none; }
.nav-mobile { display: none; }

@media (max-width: 860px) {
  .nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    padding: 14px 20px 20px;
  }
  .nav-mobile-link { text-align: left; padding: 12px 4px; font-weight: 700; border-bottom: 1px solid var(--line); }
}

/* ------------------------------------------------------------
   Cover media

   The background image arrives as a custom property, never as an
   inline background/position rule: in the prototype an inline
   position beat the stylesheet and collapsed the event hero to
   zero height. Passing --cover keeps every positioning decision
   in CSS, where the containers below can still override it.
   ------------------------------------------------------------ */

.cover-media {
  background-color: #111111;
  background-image: var(--cover, none);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* tokens.css declares .cover-media { position: relative } AFTER
   .event-hero-media { position: absolute }, so on an element carrying both
   classes the relative rule wins on source order and the hero image collapses
   to nothing. Re-asserting it here — in the later stylesheet — is what keeps
   the hero filled. Do not delete without opening an event page first. */
.event-hero-media { position: absolute; inset: 0; z-index: 0; }

.cover-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.08) 48%, transparent 60%);
  animation: scan 6s ease-in-out infinite;
}
@keyframes scan {
  0% { transform: translateX(-30%); }
  50% { transform: translateX(30%); }
  100% { transform: translateX(-30%); }
}

@media (prefers-reduced-motion: reduce) {
  .cover-scan, .hero-rig span { animation: none; }
  .btn:hover, .event-card:hover { transform: none; }
}

/* ------------------------------------------------------------
   Section furniture
   ------------------------------------------------------------ */

.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.page-lede { color: var(--muted); font-size: 16px; max-width: 560px; margin-bottom: 12px; }

.band-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 44px;
  background: var(--ink-2);
  border: 1px solid var(--line);
}
.band-cta-copy { color: var(--muted); max-width: 420px; margin-top: 6px; }
.band-cta-spaced { margin-top: 56px; }

/* ------------------------------------------------------------
   Event cards
   ------------------------------------------------------------ */

.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 28px; }

.event-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--ink-2);
  position: relative;
  transition: transform .18s ease, border-color .18s ease;
}
.event-card:hover { transform: translateY(-4px); border-color: var(--paper); }
.event-card-cover { height: 150px; position: relative; }
.event-card-pill { position: absolute; top: 12px; left: 12px; z-index: 2; }
.event-card-body { padding: 16px 16px 20px; }
.event-card-date { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.event-card-artist { font-weight: 800; font-size: 18px; margin-bottom: 6px; }
.event-card-loc { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.event-card-arrow { position: absolute; top: 14px; right: 14px; color: var(--paper); z-index: 2; }
.event-card-tri { position: absolute; width: 36px; height: 36px; right: 10px; bottom: 110px; stroke: rgba(247, 247, 247, 0.18); stroke-width: 4; fill: none; z-index: 1; }

.empty-note { color: var(--muted); margin-top: 28px; }

/* ------------------------------------------------------------
   Home
   ------------------------------------------------------------ */

.hero { position: relative; padding: 110px 32px 90px; overflow: hidden; }
.hero-media {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(5, 5, 5, 0.5), rgba(5, 5, 5, 0.94) 85%), var(--cover, none);
  background-size: cover;
  background-position: center;
}
.hero-rig { position: absolute; inset: 0; display: flex; justify-content: space-between; opacity: 0.5; pointer-events: none; }
.hero-rig span {
  width: 1px;
  background: linear-gradient(to bottom, var(--chrome), transparent);
  flex: 1;
  margin: 0 2px;
  animation: sweep 4s ease-in-out infinite;
  opacity: 0.5;
}
.hero-rig span:nth-child(odd) { animation-delay: 0.6s; background: linear-gradient(to bottom, var(--amber), transparent); }
@keyframes sweep { 0%, 100% { opacity: 0.15; } 50% { opacity: 0.7; } }

.hero-inner { position: relative; max-width: 720px; z-index: 1; }
.hero-mark { width: 54px; height: auto; display: block; margin-bottom: 22px; }
.hero-overline {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.hero-tag { font-size: 17px; color: var(--muted); margin: 18px 0 30px; max-width: 420px; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.next-live { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.next-live-media { min-height: 340px; position: relative; }
.next-live-info { padding: 56px 40px; display: flex; flex-direction: column; justify-content: center; }
.next-live-artist { font-size: clamp(36px, 6vw, 56px); margin: 4px 0 16px; }
.next-live-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.next-live-meta span { display: flex; align-items: center; gap: 6px; }
.next-live-venue { font-weight: 700; margin-bottom: 22px; }
@media (max-width: 800px) {
  .next-live { grid-template-columns: 1fr; }
  .next-live-info { padding: 36px 22px; }
}

.services-strip {
  display: grid;
  /* Fixed at three across: six services then fill two complete rows, instead of
     auto-fit leaving orphan cells that read as empty panels. */
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 28px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 800px) { .services-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-strip { grid-template-columns: 1fr; } }
.services-strip-item { background: var(--ink); padding: 22px 20px; display: flex; flex-direction: column; gap: 8px; }
.services-strip-n { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }
.services-strip-title { font-weight: 800; font-size: 15px; }
.services-strip-short { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ------------------------------------------------------------
   Events index
   ------------------------------------------------------------ */

.tabs { display: flex; gap: 8px; margin-top: 24px; }
.tab { padding: 9px 16px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; border: 1px solid var(--line); color: var(--muted); }
.tab:hover { color: var(--paper); }
.tab.is-active { color: var(--paper); border-color: var(--paper); }

/* ------------------------------------------------------------
   Event detail
   ------------------------------------------------------------ */

.event-hero-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; margin-bottom: 16px; }
.event-hero-meta span { display: flex; align-items: center; gap: 6px; }
.event-attendance { font-family: 'IBM Plex Mono', monospace; color: var(--paper); }
.event-hero-title { margin: 6px 0 14px; }
.event-hero-cta { margin-top: 18px; }
/* The back link sits on its own line, above the city tag. */
.event-hero-back { display: block; margin-bottom: 14px; }

.event-body { display: grid; grid-template-columns: 1fr 300px; gap: 48px; }
@media (max-width: 820px) { .event-body { grid-template-columns: 1fr; } }
.event-body-side { min-width: 0; }

.block-h {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  font-family: 'IBM Plex Mono', monospace;
  margin: 34px 0 12px;
}
.event-desc { line-height: 1.7; color: #DDDDDD; }

.cat-list { display: flex; flex-direction: column; gap: 1px; border: 1px solid var(--line); overflow: hidden; }
.cat-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; background: var(--ink-2); font-size: 14px; }
.cat-price { font-family: 'IBM Plex Mono', monospace; color: var(--paper); }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; font-size: 14px; }
@media (max-width: 560px) { .info-grid { grid-template-columns: 1fr; } }
.info-label { display: block; font-size: 11px; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; }

.faq-item { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { flex-shrink: 0; transition: transform .2s ease; }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item p { color: var(--muted); margin-top: 10px; font-size: 14px; }

.partner-row { display: flex; gap: 10px; flex-wrap: wrap; }
.partner-chip { border: 1px solid var(--line); padding: 6px 12px; font-size: 13px; color: var(--muted); }

.ticket-box { position: sticky; top: 100px; border: 1px solid var(--line); padding: 22px; background: var(--ink-2); }
.ticket-box-h { font-weight: 800; margin-bottom: 12px; }
.ticket-box-cta { margin-top: 14px; }
.ticket-box-note { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ------------------------------------------------------------
   Services
   ------------------------------------------------------------ */

.service-list { margin-top: 36px; border-top: 1px solid var(--line); }
.service-row { border-bottom: 1px solid var(--line); }
.service-row summary { display: flex; align-items: center; gap: 24px; padding: 22px 4px; text-align: left; cursor: pointer; list-style: none; }
.service-row summary::-webkit-details-marker { display: none; }
.service-title { font-weight: 800; font-size: 17px; width: 260px; flex-shrink: 0; }
.service-short { color: var(--muted); font-size: 14px; flex: 1; }
.service-chevron { transition: transform .2s ease; flex-shrink: 0; }
.service-row[open] .service-chevron { transform: rotate(180deg); color: var(--paper); }
.service-full { padding: 0 4px 24px; color: #DDDDDD; max-width: 640px; line-height: 1.7; margin: 0; }
@media (max-width: 700px) {
  .service-row summary { flex-wrap: wrap; gap: 8px; }
  .service-title { width: 100%; }
}

/* ------------------------------------------------------------
   Story
   ------------------------------------------------------------ */

.story-body { max-width: 680px; margin-top: 20px; }
.story-body p { color: #DDDDDD; line-height: 1.8; margin-bottom: 16px; font-size: 16px; }
.story-pillars { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 32px; border-top: 1px solid var(--line); padding-top: 24px; }
.story-pillars div { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.story-pillar-n { font-family: 'IBM Plex Mono', monospace; color: var(--paper); }

.founder { display: grid; grid-template-columns: 340px 1fr; border-top: 1px solid var(--line); }
.founder-portrait { min-height: 420px; background: linear-gradient(160deg, #242424, #050505 70%); }
.founder-copy { padding: 64px 40px; max-width: 640px; }
.founder-name { font-size: clamp(40px, 7vw, 64px); margin: 4px 0; }
.founder-role { color: var(--muted); font-size: 13px; letter-spacing: 0.04em; margin-bottom: 14px; }
.founder-social { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--paper); margin-bottom: 20px; }
.founder-social:hover { color: var(--chrome); }
.founder-quote {
  display: flex;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  color: var(--paper);
  margin: 0 0 24px;
}
.founder-quote svg { flex-shrink: 0; margin-top: 4px; }
.founder-copy p { color: #DDDDDD; line-height: 1.75; margin-bottom: 14px; }
@media (max-width: 820px) {
  .founder { grid-template-columns: 1fr; }
  .founder-portrait { min-height: 220px; }
  .founder-copy { padding: 36px 22px; }
}

/* ------------------------------------------------------------
   Forms
   ------------------------------------------------------------ */

.contact-form { display: flex; flex-direction: column; gap: 16px; max-width: 620px; margin-top: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: 11px 12px;
  color: var(--paper);
  font-size: 14px;
  border-radius: 0;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: 1px solid var(--paper); outline-offset: 0; }
.contact-form input[aria-invalid="true"],
.contact-form select[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] { border-color: var(--red); }

/* Specificity, not !important: `.contact-form label` is (0,1,1) and would
   otherwise keep the checkbox stacked above its own wording. */
.contact-form label.check-row {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  color: var(--paper);
  font-weight: 400;
  font-size: 14px;
}
.check-row input { margin-top: 3px; }

.field-error { color: var(--red); font-size: 12px; font-weight: 400; }
.hint { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 400; }

.contact-sent {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--ink-2);
  border: 1px solid rgba(143, 224, 168, 0.35);
  padding: 22px;
  margin-top: 24px;
  color: var(--green);
  max-width: 620px;
}
.contact-sent svg { flex-shrink: 0; }
.contact-sent strong { display: block; font-weight: 700; }
.contact-sent span { color: var(--muted); font-size: 14px; }

.form-errors {
  border: 1px solid rgba(255, 77, 77, 0.4);
  color: var(--red);
  padding: 14px 18px;
  max-width: 620px;
  margin-top: 24px;
  font-size: 13px;
}
.form-errors ul { margin: 8px 0 0; padding-left: 18px; }

/* ------------------------------------------------------------
   Partners strip + footer
   ------------------------------------------------------------ */

.partners-strip { border-top: 1px solid var(--line); padding: 52px 32px; }
.partners-strip-inner { max-width: 1240px; margin: 0 auto; }
.partners-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.partner-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 8px 18px;
  background: var(--paper);
  filter: grayscale(1);
  opacity: 0.6;
  transition: opacity .15s ease, filter .15s ease;
}
.partner-logo-box:hover { opacity: 1; filter: grayscale(0); }
.partner-logo-box img { max-height: 100%; max-width: 130px; object-fit: contain; }
.partner-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 13px;
  color: #050505;
}

.footer { border-top: 1px solid var(--line); padding: 48px 32px 24px; margin-top: auto; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; max-width: 1240px; margin: 0 auto; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-mark { width: 40px; height: auto; display: block; }
.footer-ntbl { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 26px; letter-spacing: 0.04em; }
.footer-cols { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-h { font-size: 11px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; margin-bottom: 12px; }
.footer-cols a { display: flex; align-items: center; gap: 6px; font-size: 14px; margin-bottom: 10px; color: var(--paper); }
.footer-cols a:hover { color: var(--chrome); }
.footer-bottom {
  max-width: 1240px;
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.footer-powered { font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.04em; }
/* I tre documenti legali: link veri, non testo. Restano in grigio come il
   resto della riga e si accendono al passaggio, per non competere con il
   credito STREAM che è l'unico elemento cliccabile per cui il footer esiste. */
.footer-legal a { color: var(--muted); text-decoration: none; }
.footer-legal a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.footer-powered strong { color: var(--paper); font-weight: 600; }
.footer-powered a:hover strong { color: var(--chrome); }

@media (max-width: 640px) {
  .hero { padding: 72px 20px 64px; }
  .partners-strip { padding: 40px 20px; }
  .footer { padding: 36px 20px 20px; }
  .band-cta { padding: 28px 22px; }
}

.nav-team {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nav-team:hover { color: var(--paper); }
@media (max-width: 860px) { .nav-team { display: none; } }

/* ------------------------------------------------------------
   Contact: form and booking widget side by side
   ------------------------------------------------------------ */

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; margin-top: 24px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

.booking-widget { border: 1px solid var(--line); padding: 26px; background: var(--ink-2); min-width: 0; }
@media (max-width: 480px) { .booking-widget { padding: 18px; } }
.booking-widget .contact-form { margin-top: 0; }

/* Wrapping rather than scrolling: five short tabs never needed a scrollbar,
   and the one overflow-x produced sat across the widget. */
.book-days { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.book-day {
  flex-shrink: 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-family: 'IBM Plex Mono', monospace;
  white-space: nowrap;
  color: var(--muted);
  cursor: pointer;
}
.book-day:hover { color: var(--paper); }
.book-day.is-active { color: var(--paper); border-color: var(--paper); background: var(--ink-3); }

.book-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }

/* The radio itself is the control; the label is what you see. Keeping a real
   input means the widget still works with the script switched off. */
.book-time {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  font-size: 12px;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--paper);
  text-align: center;
  cursor: pointer;
}
.book-time span { display: block; padding: 9px 4px; }
.book-time input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.book-time:hover { border-color: var(--paper); }
.book-time:has(input:checked) { background: var(--paper); border-color: var(--paper); }
.book-time:has(input:checked) span { color: #050505; }
.book-time:has(input:focus-visible) { outline: 2px solid var(--paper); outline-offset: 2px; }
.book-time.is-taken { color: var(--muted); opacity: 0.4; cursor: not-allowed; }
.book-time.is-taken span { text-decoration: line-through; }
.book-time.is-taken input { cursor: not-allowed; }

.book-group { margin-bottom: 18px; }
.book-group-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}
.book-form { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.book-note { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.5; }

.book-title { margin-top: 0; }
.book-lede { margin-bottom: 18px; }
