/* =============================================================
   Note-Worthy Chats — page-scoped styles (2026-07-28)

   Approved Gate 3 hybrid:
     · hero            — Direction C "The Season on Air" station opening
     · body            — Direction B "Sleeve Notes" print catalogue
     · host pair       — Direction A polaroid chairs, adapted to paper

   Zero hex literals. Every colour reads a --nw-* custom property that
   note-worthy-chats.html sets from Tailwind tokens via theme(), so the
   frozen token rule holds and there is a single source of truth.

   Not shared: layout-library.html still uses the older
   V-noteworthy-series-feed partial + .host-stack rules in site.css.
   ============================================================= */

.nw {
  position: relative;
  color: var(--nw-ink);
  --nw-rule: color-mix(in srgb, var(--nw-ink) 14%, transparent);
  --nw-rule-soft: color-mix(in srgb, var(--nw-ink) 8%, transparent);
}
.nw-shell { width: min(76rem, calc(100% - 3rem)); margin-inline: auto; }
.nw a { color: inherit; }
.nw a:focus-visible,
.nw button:focus-visible { outline: 2px solid var(--nw-teal); outline-offset: 3px; }

.nw-display {
  font-family: 'Futura', 'Jost', 'Noto Sans HK', 'Noto Sans CJK HK', 'PingFang HK', 'Microsoft JhengHei', sans-serif;
}
.nw-mono {
  font-family: 'IBM Plex Mono', ui-monospace, 'Noto Sans HK', 'PingFang HK', monospace;
  font-variant-numeric: tabular-nums;
}

/* ---------- hero: the station opening (Direction C) ---------- */
.nw-hero {
  position: relative;
  min-height: 56svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 9rem;
  padding-bottom: 8rem;
  overflow: hidden;
  isolation: isolate;
}
.nw-hero__media,
.nw-hero__media img,
.nw-hero__scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.nw-hero__media { z-index: 0; pointer-events: none; }
.nw-hero__media img {
  object-fit: cover;
  object-position: center 42%;
  opacity: 0.38;
  filter: saturate(0.5) contrast(1.04);
  transform: scale(1.025);
}
.nw-hero__scrim {
  background:
    linear-gradient(to right, color-mix(in srgb, var(--nw-dark) 94%, transparent) 0%, color-mix(in srgb, var(--nw-dark) 82%, transparent) 52%, color-mix(in srgb, var(--nw-dark) 68%, transparent) 100%),
    linear-gradient(to bottom, color-mix(in srgb, var(--nw-dark) 72%, transparent) 0%, transparent 50%, var(--nw-dark) 100%);
}
.nw-hero__staff {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.32;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 13px,
    color-mix(in srgb, white 6%, transparent) 13px 13.5px,
    transparent 13.5px 27px
  );
  mask-image: linear-gradient(to bottom, transparent, black 45%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 45%, transparent);
  pointer-events: none;
}
.nw-hero__inner { position: relative; z-index: 2; }
.nw-hero__curve {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 5rem;
  z-index: 3;
}
@media (min-width: 768px) { .nw-hero__curve { height: 6rem; } }
@media (max-width: 767px) {
  .nw-hero__media img { object-position: 62% center; opacity: 0.3; }
}
.nw-hero__title {
  font-size: clamp(2.1rem, 5vw, 4.15rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 600;
}
.nw-mask { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.nw-line { display: inline-block; will-change: transform; }

.nw-hero__stand {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.7;
  color: color-mix(in srgb, white 78%, transparent);
}
.nw-hero__strip {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}
.nw-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.35rem;
  border-radius: 9999px;
  border: 1px solid color-mix(in srgb, white 22%, transparent);
  background: color-mix(in srgb, white 6%, transparent);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s;
}
.nw-chip:hover {
  background: color-mix(in srgb, white 12%, transparent);
  border-color: color-mix(in srgb, white 40%, transparent);
}
.nw-chip svg { width: 1rem; height: 1rem; }
.nw-chip__pulse {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--nw-teal-bright);
  animation: nwPulse 2.4s ease-out infinite;
}
@keyframes nwPulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--nw-teal-bright) 50%, transparent); }
  70% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--nw-teal-bright) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--nw-teal-bright) 0%, transparent); }
}
.nw-hero__season {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, white 50%, transparent);
}

/* ---------- shared type ---------- */
.nw-h2 {
  margin-top: 0.6rem;
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  text-wrap: balance;
}
.nw-prose {
  margin-top: 1.35rem;
  max-width: 38rem;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
  text-wrap: pretty;
}

/* ---------- the series + your hosts (merged, tightened) ---------- */
.nw-series { padding-block: 4.5rem 3.5rem; }
@media (min-width: 768px) { .nw-series { padding-block: 5.5rem 4rem; } }
.nw-series__grid { display: grid; gap: 2.75rem; align-items: center; }
@media (min-width: 900px) {
  .nw-series__grid { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; }
}
.nw-hosts__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nw-muted);
  margin-bottom: 1rem;
  text-align: center;
}
.nw-chairs {
  position: relative;
  display: flex;
  justify-content: center;
  padding-block: 0.75rem 2.5rem;
}

/* Polaroid chairs (Direction A) on paper: the white card needs a hairline
   so it separates from the light page, which the dark original did not. */
.nw-chair {
  position: relative;
  width: 46%;
  max-width: 258px;
  display: block;
  background: white;
  padding: 10px 10px 0;
  border: 1px solid var(--nw-rule-soft);
  border-radius: 10px;
  box-shadow: 0 22px 50px -20px color-mix(in srgb, var(--nw-dark) 45%, transparent);
  text-decoration: none;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s;
}
.nw-chair--front { transform: rotate(-3deg); z-index: 2; }
.nw-chair--back { transform: rotate(2.5deg) translateY(14px); margin-left: -6%; z-index: 1; }
.nw-chair:hover,
.nw-chair:focus-visible {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 0 30px 70px -18px color-mix(in srgb, var(--nw-teal) 40%, transparent);
  z-index: 3;
}
.nw-chair img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 15%; /* studio portraits — keep faces inside the square crop */
  border-radius: 5px;
  display: block;
}
.nw-chair__caption { display: block; padding: 0.85rem 0.35rem 0.95rem; }
/* The front polaroid overlaps the back one's lower-left corner, which is
   exactly where a left-aligned caption would sit. Mirror the back card's
   caption to the right so both hosts stay fully readable at every width. */
.nw-chair--back .nw-chair__caption { text-align: right; }
.nw-chair__name { display: block; font-weight: 600; font-size: 0.98rem; }
.nw-chair__role { display: block; font-size: 0.72rem; color: var(--nw-muted); margin-top: 0.2rem; line-height: 1.4; }

/* ---------- the current pressing (compact per PM) ---------- */
.nw-pressing { padding-block: 3rem 4rem; border-top: 1px solid var(--nw-rule-soft); }
@media (min-width: 768px) { .nw-pressing { padding-block: 3.5rem 5rem; } }
.nw-featured { margin-top: 1.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 900px) {
  .nw-featured { grid-template-columns: 1.15fr 1fr; gap: 2.5rem; align-items: center; }
}
.nw-featured__plate {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--nw-surface-card);
  border: 1px solid var(--nw-rule-soft);
  border-radius: 1rem;
  overflow: hidden;
}
.nw-featured__facade {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: block;
}
.nw-featured__facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.nw-featured__facade:hover img,
.nw-featured__facade:focus-visible img { transform: scale(1.03); }
.nw-featured__spindle {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, white 94%, transparent);
  color: var(--nw-teal-deep);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s, color 0.3s;
}
.nw-featured__facade:hover .nw-featured__spindle {
  transform: scale(1.08);
  background: var(--nw-teal);
  color: white;
}
.nw-featured__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.nw-featured__notes { min-width: 0; }
.nw-featured__cat {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--nw-teal-deep);
}
.nw-featured__title {
  margin-top: 0.85rem;
  font-size: clamp(1.25rem, 2.1vw, 1.7rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 600;
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nw-featured__meta {
  margin-top: 0.95rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--nw-rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  font-size: 0.76rem;
  color: var(--nw-muted);
}
.nw-featured__actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
}
.nw-play {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border: 0;
  border-radius: 9999px;
  background: var(--nw-teal);
  color: white;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.nw-play:hover { background: var(--nw-teal-deep); transform: translateY(-2px); }
.nw-featured__link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--nw-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nw-featured__link:hover { color: var(--nw-teal-deep); }

/* ---------- the complete catalogue ---------- */
.nw-catalogue { padding-block: 4rem 5.5rem; }
@media (min-width: 768px) { .nw-catalogue { padding-block: 5rem 7rem; } }
.nw-catalogue__head {
  display: grid;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
}
@media (min-width: 820px) {
  .nw-catalogue__head { grid-template-columns: 1fr auto; align-items: end; gap: 3rem; }
}
.nw-catalogue__note { max-width: 22rem; font-size: 0.85rem; line-height: 1.6; color: var(--nw-muted); }
.nw-catalogue__set { display: block; color: var(--nw-teal-deep); font-weight: 500; }
/* ---------- theme filter chips ---------- */
.nw-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.nw-filter {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.55rem 1.05rem;
  border-radius: 9999px;
  border: 1px solid var(--nw-rule);
  background: transparent;
  color: var(--nw-muted);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.nw-filter:hover { border-color: var(--nw-teal); color: var(--nw-teal-deep); }
.nw-filter[aria-pressed="true"] {
  background: var(--nw-teal);
  border-color: var(--nw-teal);
  color: white;
}

.nw-rows { list-style: none; margin: 0; padding: 0; }
.nw-row { border-bottom: 1px solid var(--nw-rule-soft); }
/* mobile: stacked — full-width image above the text (we love images) */
.nw-row__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.55rem;
  padding-block: 1.35rem;
  text-decoration: none;
  transition: background 0.25s, padding-left 0.25s;
}
@media (min-width: 900px) {
  .nw-row__link {
    grid-template-columns: 19rem 7.5rem minmax(0, 1fr) 5rem;
    align-items: center;
    gap: 1.5rem;
    padding-block: 1.35rem;
  }
}
.nw-row__link:hover,
.nw-row__link:focus-visible { background: var(--nw-teal-light); padding-left: 0.75rem; }
/* every row is a mini plate: white-framed thumbnail echoing the featured pressing */
.nw-row__thumb { display: block; }
.nw-row__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--nw-surface-card);
  border: 3px solid white;
  border-radius: 0.625rem;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--nw-ink) 14%, transparent);
  transition: transform 0.3s;
}
.nw-row__link:hover .nw-row__thumb img,
.nw-row__link:focus-visible .nw-row__thumb img { transform: scale(1.04); }
.nw-row__date, .nw-row__dur {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--nw-muted);
}
.nw-row__dur { text-align: right; }
.nw-row__date, .nw-row__dur { display: none; }
@media (min-width: 900px) { .nw-row__date, .nw-row__dur { display: block; } }
.nw-row__title {
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s;
}
@media (min-width: 900px) { .nw-row__title { font-size: 1rem; line-height: 1.4; -webkit-line-clamp: 2; } }
.nw-row__link:hover .nw-row__title { color: var(--nw-teal-deep); }
.nw-row__mobile { font-size: 0.72rem; color: var(--nw-muted); }
@media (min-width: 900px) { .nw-row__mobile { display: none; } }

/* ---------- colophon ---------- */
.nw-fin { padding-block: 5rem 7rem; }
.nw-fin__inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.nw-fin .nw-prose { margin-inline: auto; }
.nw-cta {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.25rem;
  border-radius: 9999px;
  background: var(--nw-teal);
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
}
.nw-cta:hover { background: var(--nw-teal-deep); transform: translateY(-2px); }
.nw-cta svg { width: 1.1rem; height: 1.1rem; }
.nw-smallprint {
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--nw-rule);
  width: min(34rem, 100%);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--nw-muted);
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .nw-chip__pulse { animation: none; }
  .nw-featured__facade img,
  .nw-row__link,
  .nw-row__thumb img,
  .nw-filter,
  .nw-cta,
  .nw-play,
  .nw-chair { transition: none; }
}

/* ---------- no-JS fallback ---------- */
.nw-nojs { padding-block: 2rem 4rem; }
.nw-nojs__featured { display: block; margin-top: 0.75rem; text-decoration: none; max-width: 40rem; }
.nw-nojs__featured img { width: 100%; border-radius: 0.75rem; display: block; }
.nw-nojs__title { display: block; font-weight: 600; margin-top: 0.85rem; }
.nw-nojs__meta { display: block; font-size: 0.82rem; color: var(--nw-muted); margin-top: 0.3rem; }
.nw-nojs__list { margin-top: 2.5rem; padding: 0; list-style: none; border-top: 1px solid var(--nw-rule); }
.nw-nojs__list li { border-bottom: 1px solid var(--nw-rule-soft); }
.nw-nojs__list a { display: block; padding: 0.9rem 0; text-decoration: none; }
.nw-nojs__ep { font-size: 0.75rem; color: var(--nw-teal-deep); margin-right: 1rem; }
