/* Holy Hinder Hole Sound Society
   Visual system: the jukebox title strip. Every record in the app is a
   cream card-stock strip with a boxed selection code, sitting in the dark
   interior of the cabinet. */

:root {
  --field:     #191218;
  --field-2:   #221a20;
  --oxblood:   #6b2029;
  --stock:     #f0e8d8;
  --stock-2:   #ded3bd;
  --amber:     #f2a83c;
  --steel:     #8f8a93;
  --ink:       #1e181c;

  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body:    'Archivo', system-ui, -apple-system, sans-serif;
  --util:    'Space Mono', ui-monospace, monospace;

  --gutter: 1.25rem;
  --strip-radius: 2px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(120% 60% at 50% 0%, var(--field-2) 0%, var(--field) 70%);
  color: var(--stock);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
}

a { color: var(--amber); }
a:hover { color: var(--stock); }

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

.cabinet {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 var(--gutter) 3rem;
}

/* ---------------------------------------------------------------
   Marquee: the lit header above the rack
   --------------------------------------------------------------- */

.marquee {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.marquee--small { padding: 2rem 0 1.5rem; }

.marquee__eyebrow {
  margin: 0 0 1rem;
  font-family: var(--util);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
}

.marquee__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.75rem, 13vw, 5.5rem);
  line-height: 0.82;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--stock);
  text-shadow: 0 0 32px rgba(242, 168, 60, 0.28);
}

.marquee__title span { display: block; }

.marquee__sub {
  margin: 1rem 0 0;
  font-family: var(--util);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber);
}

/* ---------------------------------------------------------------
   Title strips
   --------------------------------------------------------------- */

.panel { padding-bottom: 2rem; }

.rack__heading {
  margin: 0 0 0.75rem;
  font-family: var(--util);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
}

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

.strip {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--stock);
  color: var(--ink);
  border-radius: var(--strip-radius);
  border-top: 1px solid #fff8ec;
  border-bottom: 2px solid var(--stock-2);
  overflow: hidden;
}

.strip__code {
  flex: 0 0 3rem;
  display: grid;
  place-items: center;
  background: var(--oxblood);
  color: var(--amber);
  font-family: var(--util);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.strip__body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.7rem 0.9rem;
  text-align: center;
}

.strip__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.strip__meta {
  margin: 0.3rem 0 0;
  font-family: var(--util);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: #6d6169;
}

.strip__state {
  flex: 0 0 5.25rem;
  display: grid;
  place-items: center;
  padding: 0 0.35rem;
  border-left: 1px dashed var(--stock-2);
  font-family: var(--util);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: #6d6169;
}

.strip--submitting .strip__state,
.strip--voting .strip__state {
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
}

.strip--draft { opacity: 0.55; }

.strip--message {
  display: block;
  padding: 1.1rem 1.25rem;
}

.strip--message p { margin: 0; }

/* ---------------------------------------------------------------
   Now playing
   --------------------------------------------------------------- */

.now {
  margin: 0 0 2rem;
  padding: 1.4rem 1.25rem;
  background: var(--oxblood);
  border-radius: var(--strip-radius);
  border-bottom: 2px solid #4a151c;
  text-align: center;
}

.now__label {
  margin: 0;
  font-family: var(--util);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
}

.now__title {
  margin: 0.5rem 0 0.6rem;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.7rem, 7vw, 2.6rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--stock);
}

.now__due {
  margin: 0;
  font-family: var(--util);
  font-size: 0.75rem;
  color: #e4c9c5;
}

.now__count {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.45rem;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  border-radius: 2px;
}

/* ---------------------------------------------------------------
   Form
   --------------------------------------------------------------- */

.strip--form {
  display: block;
  padding: 1.25rem;
}

.field { display: block; }

.field__label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--util);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6d6169;
}

.field__input {
  width: 100%;
  padding: 0.7rem 0.75rem;
  background: #fffaf0;
  border: 1px solid var(--stock-2);
  border-radius: 2px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
}

.field__input::placeholder { color: #a89c95; }

.button {
  width: 100%;
  margin-top: 0.9rem;
  padding: 0.8rem 1rem;
  background: var(--oxblood);
  border: 0;
  border-radius: 2px;
  color: var(--stock);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 120ms ease;
}

.button:hover { background: #83262f; }
.button:active { transform: translateY(1px); }

.fineprint {
  margin: 1.1rem 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--steel);
}

.notice {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 2px;
  font-size: 0.9rem;
}

.notice--bad {
  background: var(--oxblood);
  color: var(--stock);
}

/* ---------------------------------------------------------------
   Signed in bar
   --------------------------------------------------------------- */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 0;
  font-family: var(--util);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}

.bar form { margin: 0; }

.bar__out {
  padding: 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--steel);
  color: var(--steel);
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.bar__out:hover { color: var(--amber); border-color: var(--amber); }

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

.footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #2f2530;
  font-family: var(--util);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #574c56;
}

.footer__mark { color: var(--oxblood); font-weight: 700; }

/* ---------------------------------------------------------------
   Wider screens
   --------------------------------------------------------------- */

@media (min-width: 34rem) {
  .strip__code { flex-basis: 3.75rem; font-size: 1.1rem; }
  .strip__body { padding: 0.85rem 1.1rem; }
  .strip__title { font-size: 1.6rem; }
  .strip__meta { font-size: 0.7rem; }
  .strip__state { flex-basis: 6.5rem; font-size: 0.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------------------------------------------------------------
   Round detail: the pick, the facts plate, the correction form
   --------------------------------------------------------------- */

.bar__back {
  font-family: var(--util);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}

.facts {
  margin: 0 0 2rem;
  padding: 0;
  border-top: 1px solid rgba(240, 232, 216, .14);
}

.facts__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem 0;
  border-bottom: 1px solid rgba(240, 232, 216, .14);
}

.facts dt {
  font-family: var(--util);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--steel);
}

.facts dd {
  margin: 0;
  font-family: var(--util);
  font-size: .8rem;
  text-align: right;
}

/* The pick reads as a strip pulled out of the rack and laid face up. */
.pick {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--stock);
  color: var(--ink);
  border-radius: var(--strip-radius);
  padding: .85rem;
  margin-bottom: 1.25rem;
}

.pick__art {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 1px;
  background: var(--stock-2);
  flex: none;
}

.pick__body { min-width: 0; }

.pick__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1.05;
  margin: 0 0 .15rem;
  text-transform: uppercase;
}

.pick__artist {
  margin: 0 0 .5rem;
  font-size: .9rem;
  color: #4a4048;
}

.pick__source {
  margin: 0;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  font-size: .8rem;
}

.pick__source a { color: var(--oxblood); }

.tag {
  font-family: var(--util);
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .15rem .4rem;
  border: 1px solid currentColor;
  border-radius: 1px;
}

.tag--youtube { color: var(--oxblood); }
.tag--spotify { color: #2f6b46; }
.tag--upload  { color: #4a4048; }
.tag--late    { color: #8a5a12; background: rgba(242, 168, 60, .22); border-color: transparent; }

.form__hint {
  margin: 0 0 .75rem;
  font-size: .85rem;
  color: var(--steel);
}

.field__input--area {
  resize: vertical;
  font-family: var(--body);
}

.drawer {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(240, 232, 216, .14);
  padding-top: 1rem;
}

.drawer__summary {
  cursor: pointer;
  font-family: var(--util);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--steel);
}

.drawer__summary:hover { color: var(--stock); }

.button--quiet {
  background: none;
  color: var(--steel);
  border: 1px solid rgba(240, 232, 216, .24);
}

.button--quiet:hover {
  color: var(--stock);
  border-color: var(--stock);
}

.notice--good {
  background: rgba(47, 107, 70, .18);
  border-left: 3px solid #4f9c6c;
}

.notice--warn {
  background: rgba(242, 168, 60, .14);
  border-left: 3px solid var(--amber);
}

/* Rounds in the rack become links once they are actionable. */
.strip--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.strip--link:hover { background: #fff; }

@media (max-width: 30rem) {
  .pick { flex-direction: column; }
  .pick__art { width: 100%; height: 140px; }
}

/* Whole-strip hit target, so the row is tappable on a phone. */
.strip--round { position: relative; }

.strip__hit {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.strip__hit:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: -2px;
}
