/* Lead with Bubba Scott: "The Feature" magazine world.
   White coated stock, navy ink, condensed caps nameplate, navy duotone
   portraits. Hierarchy comes from scale and tone, not boxes. */

:root {
  --navy: #09233c;
  --navy-deep: #061a2e;
  --paper: #f4f8fc;
  --slate: #4f6276;
  --rule: rgba(9, 35, 60, 0.16);
  --on-navy-soft: rgba(244, 248, 252, 0.74);

  --display: "Archivo", "Arial Narrow", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;

  --gutter: clamp(1rem, 3.5vw, 3.5rem);
  --measure: 1328px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--navy) var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--paper);
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  caret-color: var(--navy);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--navy);
  color: var(--paper);
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

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

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

[id] {
  scroll-margin-top: 4.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* One governing measure: the nameplate's width sets every column edge. */
.page {
  width: min(100% - 2 * var(--gutter), var(--measure));
  margin-inline: auto;
}

.caps {
  text-wrap: balance;
  font-family: var(--display);
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.005em;
}

/* ---------- Nameplate ---------- */

.nameplate {
  padding-top: clamp(1rem, 2.5vw, 1.75rem);
}

.nameplate a {
  display: block;
  text-decoration: none;
}

.nameplate-text {
  display: inline-block;
  white-space: nowrap;
  /* Fitted to the column width by site.js; this is the pre-font estimate. */
  font-size: calc((min(100vw - 2 * var(--gutter), var(--measure))) / 8.6);
}

/* ---------- Issue bar (sticky nav) ---------- */

.issue-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  margin-top: clamp(0.5rem, 1.2vw, 0.9rem);
  border-top: 3px solid var(--navy);
  border-bottom: 1px solid var(--rule);
}

.issue-bar .page {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.6rem;
}

.issue-links {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  font-family: var(--display);
  font-stretch: 85%;
  font-weight: 600;
  font-size: 1rem;
}

.issue-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.issue-links a:hover {
  text-decoration: underline;
}

.issue-line {
  font-style: italic;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 760px) {
  .issue-line {
    display: none;
  }
}

/* Phones keep all three links; the button shortens to "Follow". */
@media (max-width: 520px) {
  .issue-bar .page {
    gap: 0.75rem;
  }
  .issue-links {
    gap: 1rem;
  }
  .follow-long {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border: 2px solid var(--navy);
  font-family: var(--display);
  font-stretch: 85%;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  color: var(--navy);
  background: transparent;
  cursor: pointer;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}

.btn svg,
.btn img {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.btn-fill {
  background: var(--navy);
  color: var(--paper);
}

.btn-fill:hover {
  background: var(--paper);
  color: var(--navy);
}

.btn-line:hover {
  background: var(--navy);
  color: var(--paper);
}

.btn-sm {
  min-height: 44px;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
}

.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

/* ---------- Duotone portraits ---------- */

.duotone {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  isolation: isolate;
}

.duotone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  transition: filter 900ms var(--ease-out);
}

.duotone::before,
.duotone::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 900ms var(--ease-out);
  z-index: 1;
}

/* Shadows go navy, highlights go paper. */
.duotone::before {
  background: var(--navy);
  mix-blend-mode: lighten;
}

.duotone::after {
  background: var(--paper);
  mix-blend-mode: darken;
}

/* Only the focused guest is in full color. */
.duotone.is-color img,
a:hover > .duotone img,
a:focus-visible > .duotone img,
.cover:hover .duotone img,
.guest-card:hover .duotone img,
.guest-card:focus-within .duotone img {
  filter: none;
}

.duotone.is-color::before,
.duotone.is-color::after,
a:hover > .duotone::before,
a:hover > .duotone::after,
a:focus-visible > .duotone::before,
a:focus-visible > .duotone::after,
.cover:hover .duotone::before,
.cover:hover .duotone::after,
.guest-card:hover .duotone::before,
.guest-card:hover .duotone::after,
.guest-card:focus-within .duotone::before,
.guest-card:focus-within .duotone::after {
  opacity: 0;
}

/* Before a thumbnail exists: the plate shows its episode number. */
.plate-number {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--paper);
  font-size: clamp(3rem, 8vw, 6rem);
  z-index: 2;
}

/* The number holds the plate until its picture has actually arrived. */
.duotone img.thumb:not(.is-loaded) {
  opacity: 0;
}

.duotone img.thumb.is-loaded + .plate-number {
  display: none;
}

/* ---------- Feature spread ---------- */

.feature {
  scroll-margin-top: 4.5rem;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  padding: clamp(1.5rem, 3vw, 2.25rem) 0 clamp(3.5rem, 7vw, 6rem);
}

.cover {
  position: relative;
  aspect-ratio: 5 / 4;
}

.cover .duotone {
  position: absolute;
  inset: 0;
}

/* The whole picture is a play button: press it and the video plays in its
   place. The Watch video button beside Play does the same. */
.cover-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: clamp(0.75rem, 1.5vw, 1.1rem);
  border: 0;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}

.cover-play[hidden] {
  display: none;
}

.cover-play:focus-visible {
  outline-offset: -6px;
  outline-color: var(--paper);
}

.guest-photo.has-video {
  cursor: pointer;
}

/* Watch video plays here, over the photo. */
.cover iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--navy);
  z-index: 3;
}


.feature-text h1 {
  font-size: clamp(3.75rem, 9vw, 8.5rem);
}

.feature-dek {
  margin-top: 1.1rem;
  max-width: 30em;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.45;
}

.feature.is-offline {
  grid-template-columns: minmax(0, 1fr);
}

.feature-episode {
  scroll-margin-top: 5rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding-top: 1.1rem;
  border-top: 3px solid var(--navy);
}

.feature-episode h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
}

.feature-episode h2 .title-dek {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78em;
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
}

.meta {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}

.meta span + span::before {
  content: "/";
  margin: 0 0.5em;
  opacity: 0.5;
}

.takeaway {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.55;
}

/* A: the takeaway fills the space under the photo. The photo shows the
   whole 16:9 thumbnail, and the takeaway sits at the bottom of the column
   so both columns end on the same line. */
.feature-media {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.feature-media .cover {
  aspect-ratio: 16 / 9;
}

.feature-takeaway {
  margin-top: auto;
  padding-left: clamp(1rem, 2vw, 1.5rem);
  border-left: 3px solid var(--navy);
}

.feature-takeaway .takeaway {
  margin-top: 0;
  max-width: 34em;
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  line-height: 1.45;
}

.feature-takeaway figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--slate);
}

.feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

@media (max-width: 900px) {
  .feature {
    grid-template-columns: 1fr;
  }
  /* On phones the guest's face leads, above the headline. */
  .cover {
    aspect-ratio: 16 / 9;
    order: -1;
  }
  /* Phones: photo, headline and episode first, then the takeaway. */
  .feature-media {
    display: contents;
  }
  .feature-takeaway {
    order: 1;
    margin-top: 0;
  }
}

@media (max-width: 520px) {
  .feature-actions .btn {
    flex: 1 1 100%;
  }
}

/* ---------- Sections ---------- */

.section {
  padding-top: 4rem;
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: 4rem;
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  border-top: 3px solid var(--navy);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-title {
  font-size: clamp(2.75rem, 6vw, 5.5rem);
}

.section-note {
  max-width: 32em;
  color: var(--slate);
  font-size: 1.05rem;
}

/* ---------- Archive: numbered plates ---------- */

.plates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 2.5vw, 2rem);
  padding: 0;
  list-style: none;
}

.plate a {
  display: block;
  text-decoration: none;
}

.plate .duotone {
  aspect-ratio: 16 / 9;
}

.plate-no {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.9rem;
  font-family: var(--display);
  font-stretch: 85%;
  font-weight: 700;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  color: var(--slate);
}

.plate h3 {
  margin-top: 0.3rem;
  font-family: var(--display);
  font-stretch: 70%;
  font-weight: 800;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1;
  text-transform: uppercase;
}

.plate a:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.plate p {
  margin-top: 0.4rem;
  font-style: italic;
  line-height: 1.45;
}

.plate .meta {
  margin-top: 0.4rem;
}

.plate[hidden] {
  display: none;
}

.archive-more {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .plates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .plates {
    grid-template-columns: 1fr;
  }
}

.archive-error {
  max-width: 36em;
  font-size: 1.15rem;
}

/* ---------- Reviews ---------- */

.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding: 0;
  list-style: none;
}

.review blockquote p {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.3;
}

.review-title {
  font-family: var(--display);
  font-stretch: 70%;
  font-weight: 800;
  font-size: 1.3rem;
  text-transform: uppercase;
}

.stars {
  display: flex;
  gap: 2px;
  margin-bottom: 0.75rem;
}

.stars svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: var(--navy);
}

.review figcaption {
  margin-top: 0.9rem;
  color: var(--slate);
  font-size: 0.95rem;
}

/* ---------- Host profile ---------- */

.profile {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.profile .duotone {
  aspect-ratio: 4 / 5;
}

.profile-text .section-title {
  margin-bottom: 1.5rem;
}

.profile-text p {
  max-width: 34em;
}

.profile-text p + p {
  margin-top: 1em;
}

.profile-text .lede {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.45;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

@media (max-width: 860px) {
  .profile {
    grid-template-columns: 1fr;
  }
  .profile .duotone {
    max-width: 440px;
  }
}

/* Bubba as a guest elsewhere: the feature spread's shape, smaller. */
.guest-turn {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: center;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--rule);
}

.guest-turn-cover {
  aspect-ratio: 16 / 9;
}

.guest-turn-cover .duotone {
  position: absolute;
  inset: 0;
}

.guest-turn-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.guest-turn-quote {
  margin: 1rem 0 0.9rem;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-style: italic;
  line-height: 1.2;
}

.guest-turn-text > p:not(.meta) {
  max-width: 32em;
}

.guest-turn-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

@media (max-width: 860px) {
  .guest-turn {
    grid-template-columns: 1fr;
  }
}

/* ---------- Sponsor ---------- */

.sponsor {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1.5rem clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.sponsor-name {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.sponsor-by {
  display: block;
  margin-top: 0.5rem;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--slate);
}

.sponsor p {
  max-width: 34em;
  font-size: 1.15rem;
}

.sponsor .btn {
  margin-top: 1.5rem;
}

@media (max-width: 860px) {
  .sponsor {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2rem clamp(2rem, 5vw, 4.5rem);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label {
  font-family: var(--display);
  font-stretch: 85%;
  font-weight: 700;
  font-size: 1rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 0;
  border-bottom: 2px solid var(--navy);
  border-radius: 0;
  background: rgba(9, 35, 60, 0.05);
  color: var(--navy);
  font: inherit;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2309233c' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.1rem;
  padding-right: 2.5rem;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline-offset: 0;
  background: rgba(9, 35, 60, 0.09);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--slate);
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.form-status {
  font-size: 1rem;
}

.form-status[data-state="error"] {
  font-weight: 600;
}

.honeypot {
  display: none;
}

@media (max-width: 860px) {
  .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .contact-form {
    grid-template-columns: 1fr;
  }
}

/* ---------- Back cover (follow + footer) ---------- */

.back-cover {
  background: var(--navy);
  color: var(--paper);
  padding: clamp(3.5rem, 7vw, 6rem) 0 2.5rem;
}

.back-cover :focus-visible {
  outline-color: var(--paper);
}

.back-cover ::selection {
  background: var(--paper);
  color: var(--navy);
}

.follow-title {
  font-size: clamp(3.5rem, 9vw, 8rem);
}

.follow-copy {
  max-width: 32em;
  margin-top: 1rem;
  font-size: 1.2rem;
  color: var(--on-navy-soft);
}

.follow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.back-cover .btn {
  border-color: var(--paper);
  color: var(--paper);
}

.back-cover .btn-fill {
  background: var(--paper);
  color: var(--navy);
}

.back-cover .btn-fill:hover {
  background: transparent;
  color: var(--paper);
}

.back-cover .btn-line:hover {
  background: var(--paper);
  color: var(--navy);
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.75rem;
  margin-top: 2.5rem;
  padding: 0;
  list-style: none;
  font-family: var(--display);
  font-stretch: 85%;
  font-weight: 600;
}

.platforms a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-navy-soft);
  text-decoration: none;
}

.platforms a:hover {
  color: var(--paper);
  text-decoration: underline;
}

.colophon {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(244, 248, 252, 0.25);
  font-size: 0.92rem;
  color: var(--on-navy-soft);
}

@media (max-width: 520px) {
  .follow-actions .btn {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

.contact-note {
  margin-top: 1rem;
}

/* ================================================================
   Variant B: the archive kept as a logbook ledger. Ruled lines,
   time in decimal hours, totals carried forward at the foot.
   ================================================================ */

.ledger-wrap {
  overflow-x: auto;
}

.ledger {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.ledger thead th {
  padding: 0 0.75rem 0.6rem 0;
  border-bottom: 3px solid var(--navy);
  font-family: var(--display);
  font-stretch: 85%;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: left;
}

.ledger thead td {
  border-bottom: 3px solid var(--navy);
}

.ledger tbody td,
.ledger tbody th {
  padding: 0.7rem 0.75rem 0.7rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: baseline;
  text-align: left;
  font-weight: 400;
}

.ledger-thumb {
  width: 7.5rem;
  vertical-align: top !important;
}

.ledger .ledger-hours {
  padding-right: 0;
}

.ledger-thumb .duotone {
  width: 6.75rem;
  aspect-ratio: 16 / 9;
}

.ledger-thumb .plate-number {
  font-size: 1.4rem;
}

.ledger-no,
.ledger-date {
  white-space: nowrap;
  color: var(--slate);
  width: 1%;
}

.ledger-entry a {
  display: block;
  padding: 0.35rem 0;
  text-decoration: none;
}

.ledger-headline {
  display: block;
  font-family: var(--display);
  font-stretch: 70%;
  font-weight: 800;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.ledger-entry a:hover .ledger-headline {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.ledger-dek {
  display: block;
  margin-top: 0.2rem;
  font-style: italic;
  line-height: 1.4;
}

.ledger-hours {
  text-align: right !important;
  white-space: nowrap;
  width: 1%;
  font-family: var(--display);
  font-stretch: 85%;
  font-weight: 700;
  font-size: 1.1rem;
}

.ledger tfoot th,
.ledger tfoot td {
  padding: 0.9rem 0 0;
  border-top: 3px double var(--navy);
  font-family: var(--display);
  font-stretch: 85%;
  font-weight: 800;
  font-size: 1.1rem;
  text-align: left;
}

@media (max-width: 640px) {
  .ledger-thumb,
  .ledger-date {
    display: none;
  }
}

/* ---------- Feature player ---------- */

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 0.25rem;
  font-family: var(--display);
  font-stretch: 85%;
  font-weight: 700;
}

.text-link[hidden] {
  display: none;
}

.player {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.player[hidden] {
  display: none;
}

.player-seek {
  flex: 1;
  min-width: 0;
  height: 44px;
  margin: 0;
  background: transparent;
  accent-color: var(--navy);
  cursor: pointer;
}

.player-time {
  font-size: 0.95rem;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.player-status:empty {
  display: none;
}

.player-status {
  margin-top: 0.6rem;
  font-weight: 600;
}

/* ---------- Guest rail (the jukebox) ---------- */

.rail-wrap {
  position: relative;
}

.rail-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin: calc(-1 * clamp(1.25rem, 3vw, 2rem)) 0 1.25rem;
}

.rail-btn,
.rail-motion {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 48px;
  min-height: 48px;
  padding: 0 0.75rem;
  border: 2px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font-family: var(--display);
  font-stretch: 85%;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}

.rail-motion {
  margin-right: auto;
  border-color: transparent;
  padding-left: 0;
}

.rail-motion[hidden] {
  display: none;
}

.rail-btn svg,
.rail-motion svg {
  width: 1.25rem;
  height: 1.25rem;
}

.rail-motion svg {
  width: 0.95rem;
  height: 0.95rem;
}

.rail-btn:hover:not(:disabled) {
  background: var(--navy);
  color: var(--paper);
}

.rail-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.rail-count {
  min-width: 4.5rem;
  text-align: center;
  font-family: var(--display);
  font-stretch: 85%;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.rail {
  /* Positioned so screen-reader-only labels inside the cards are clipped by
     the rail instead of widening the page. */
  position: relative;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--navy) transparent;
  padding-bottom: 1rem;
}

.rail:focus-visible {
  outline-offset: 6px;
}

.rail-track {
  display: flex;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 3.5 cards on a wide screen: the half card says there is more. */
.guest {
  flex: 0 0 calc((100% - 3 * clamp(1.25rem, 2.5vw, 2rem)) / 3.5);
  scroll-snap-align: start;
}

.guest-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-top: 1rem;
  border-top: 3px solid var(--navy);
}

.guest-photo {
  aspect-ratio: 16 / 9;
}

.guest-photo .plate-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

/* The guest the rail has landed on is the one in full color. */
.guest.is-active .guest-photo img {
  filter: none;
}

.guest.is-active .guest-photo::before,
.guest.is-active .guest-photo::after {
  opacity: 0;
}

.guest-name {
  margin-top: 1rem;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  line-height: 0.95;
}

.guest-who {
  margin-top: 0.55rem;
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.45;
}

.guest-message {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--rule);
  font-size: 1.15rem;
  line-height: 1.4;
}

.guest-message.is-takeaway {
  font-style: italic;
}

.guest-message.is-title {
  font-family: var(--display);
  font-stretch: 80%;
  font-weight: 700;
  font-size: 1.2rem;
}

.guest-meta {
  margin-top: auto;
  padding-top: 1rem;
}

.guest-standout {
  font-weight: 600;
  color: var(--navy);
}

.guest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.btn[hidden] {
  display: none;
}

.guest-end .guest-card {
  justify-content: flex-start;
}

.guest-end-count {
  font-size: clamp(5rem, 9vw, 8rem);
  line-height: 0.85;
}

.guest-end .guest-name {
  margin-top: 0.5rem;
}

.guest-end-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

@media (max-width: 1100px) {
  .guest {
    flex-basis: calc((100% - 2 * clamp(1.25rem, 2.5vw, 2rem)) / 2.5);
  }
}

/* Phones: one card and a peek of the next; controls sit under the rail,
   in thumb reach. The rail never moves on its own here. */
@media (max-width: 640px) {
  .guest {
    flex-basis: 84%;
  }
  .rail-wrap {
    display: flex;
    flex-direction: column;
  }
  .rail-controls {
    order: 2;
    justify-content: center;
    margin: 0.75rem 0 0;
  }
}

/* The colophon's sponsor link gets a full-size tap target. */
.colophon a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
