/* ============================================================
   NOPE. — case file against romance
   tokens
   ============================================================ */
:root {
  --void: #0B0E13;
  --panel: #12171F;
  --panel-2: #0F141B;
  --line: #222B37;
  --steel: #5E6F82;
  --frost: #E9EEF4;
  --verdict: #D63A2E;
  --gold: #D8A72E;
  --font-display: 'Anton', Impact, sans-serif;
  --font-body: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
  --maxw: 76rem;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

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

body {
  margin: 0;
  background:
    linear-gradient(rgba(255, 255, 255, .012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .012) 1px, transparent 1px),
    radial-gradient(1100px 560px at 85% -8%, rgba(214, 58, 46, .07), transparent 60%),
    var(--void);
  background-size: 44px 44px, 44px 44px, auto, auto;
  color: var(--frost);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(214, 58, 46, .35); }

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

.mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .7rem;
  color: var(--steel);
}

/* ============================================================
   masthead
   ============================================================ */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .55rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 14, 19, .84);
  backdrop-filter: blur(8px);
}

.masthead__case { font-size: .6rem; color: #f0f0f0; }

/* ============================================================
   hero
   ============================================================ */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.5rem);
  animation: detail-in .5s var(--ease) both;
}

.hero__kicker { margin: 0 0 1rem; }

.hero__title {
  margin: 0 0 1.2rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: .98;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--frost);
}

.hero__title::after {
  content: "";
  display: block;
  width: 3.2rem;
  height: 4px;
  margin-top: 1.2rem;
  background: var(--verdict);
}

.hero__lede {
  max-width: 26rem;
  margin: 0 0 1.4rem;
  color: #C6CFDA;
  font-size: 1.05rem;
}

.hero__count { margin: 0; }

/* ============================================================
   docket
   ============================================================ */
.docket {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 4vw, 2.5rem) 4rem;
}

.docket__heading { margin: 0 0 1.4rem; }

.docket__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.docket__empty { margin: 1.5rem 0 0; color: var(--steel); font-size: .68rem; }

/* ============================================================
   record rows
   ============================================================ */
.record { position: relative; border-bottom: 1px solid var(--line); scroll-margin-top: 2rem; }

.record__toggle {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  text-align: left;
  padding: 1.1rem clamp(1rem, 3vw, 1.6rem);
  transition: background .25s var(--ease);
}

.record__toggle:hover { background: var(--panel); }

.record__thumb {
  width: 13rem;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1A2330, #12171F);
  border: 1px solid var(--line);
  overflow: hidden;
  flex: none;
}

.record__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.55) contrast(1.08);
  transition: filter .3s var(--ease);
}

.record__toggle:hover .record__thumb img { filter: saturate(1) contrast(1); }

.record__text { min-width: 0; }

.record__meta { display: block; margin: 0 0 .35rem; font-size: .6rem; }

.record__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.record__lead {
  display: block;
  margin-top: .35rem;
  color: var(--steel);
  font-size: 1.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.record__chevron {
  position: relative;
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  justify-self: end;
}

.record__chevron::before,
.record__chevron::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--steel);
  transition: transform .3s var(--ease), background .3s var(--ease);
}

.record__chevron::before { width: 100%; height: 2px; transform: translate(-50%, -50%); }
.record__chevron::after  { width: 2px; height: 100%; transform: translate(-50%, -50%); }

.record.is-open .record__chevron::before,
.record.is-open .record__chevron::after { background: var(--verdict); }
.record.is-open .record__chevron::after { transform: translate(-50%, -50%) rotate(90deg) scaleY(0); }

/* detail panel */
.record__detail {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  gap: 1.5rem;
  padding: 0 clamp(1rem, 3vw, 1.6rem) 1.6rem;
  animation: detail-in .45s var(--ease) both;
}

.record__detail[hidden] { display: none; }

@keyframes detail-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

.record__player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
  overflow: hidden;
}

.record__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.record__transcript-head { margin: .5rem 0 .8rem; font-size: .6rem; }

.record__lines {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.record__lines li {
  padding: .55rem 0;
  border-bottom: 1px solid var(--line);
  color: #C6CFDA;
  font-size: 1rem;
}

/* analysis / feminist commentary */
.record__analysis {
  grid-column: 1 / -1;
  margin-top: 1.5rem;
  padding: 1.4rem 1.5rem 1.1rem;
  border-top: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  background:
    linear-gradient(90deg, rgba(216, 167, 46, .06), rgba(216, 167, 46, .015)),
    var(--panel-2);
  max-width: 56ch;
}

.record__analysis-head {
  margin: 0 0 1rem;
  font-size: .62rem;
  color: var(--gold);
}

.record__analysis p {
  margin: 0 0 1em;
  color: var(--frost);
  font-size: 1rem;
  line-height: 1.7;
}

.record__analysis p:last-child { margin-bottom: 0; }

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

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 720px) {
  .masthead__case { font-size: .5rem; }
  .masthead__case-extra { display: none; }

  .hero { padding-top: 2.5rem; }
  .hero__title { font-size: 2.1rem; }
  .hero__lede { font-size: .92rem; }

  .record__toggle { grid-template-columns: 8.5rem 1fr auto; gap: .9rem; padding: .9rem 1rem; }
  .record__thumb { width: 8.5rem; }
  .record__lead { display: none; }
  .record__name { font-size: .735rem; }
  .record__detail { grid-template-columns: 1fr; padding: 0 1rem 1.2rem; }
  .record__analysis { margin-top: 1.2rem; padding: 1.2rem 1.1rem 1rem; max-width: none; }
}
