/*!
 * Motion Harbor editorial video layout
 *
 * Design language: a real front page. One lead story at editorial scale, a
 * secondary rail beside it, then section blocks — not a uniform card grid.
 * Serif display type, a thin rule system, and a masthead with the date line.
 */

:root {
  --brand: oklch(45% 0.15 24);
  --harbor-ink: #171716;
  --harbor-paper: #f5f3ee;
  --harbor-signal: #b9cf45;
  --kit-section-y: 3.5rem;
}

@media (width >= 768px) { :root { --kit-section-y: 4.5rem; } }

/* --------------------------------------------------------------- Masthead */

.masthead-top {
  border-bottom: 1px solid var(--bs-fg-body);
  padding-block: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.masthead-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.25rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  color: inherit;
}

.site-header { border-bottom: 1px solid var(--bs-border-color); }

/* --------------------------------------------------------------- Editorial type */

.headline {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
  text-wrap: balance;
}

.headline a { color: inherit; text-decoration: none; }
.headline a:hover { text-decoration: underline; text-underline-offset: 3px; }

.kicker {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bs-primary-base);
}

.byline { font-size: 0.8125rem; color: var(--bs-fg-3); }

.rule-top { border-top: 2px solid var(--bs-fg-body); padding-top: 0.75rem; }

.section-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 2px solid var(--bs-fg-body);
  padding-top: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-rule h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
}

/* --------------------------------------------------------------- Cards */

.story-media { border-radius: var(--bs-radius-4); overflow: hidden; margin-bottom: 0.875rem; }
.story-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.story:hover .story-media img { transform: scale(1.04); }

.story-lead .story-media { margin-bottom: 1.25rem; }

/* Secondary rail: text-only items separated by rules */
.rail-item { padding-block: 1rem; border-bottom: 1px solid var(--bs-border-color); }
.rail-item:first-child { padding-top: 0; }
.rail-item:last-child { border-bottom: 0; padding-bottom: 0; }

/* Most-read numbered list */
.ranked { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.ranked li { counter-increment: r; display: flex; gap: 1rem; padding-block: 0.875rem; border-bottom: 1px solid var(--bs-border-color); }
.ranked li:last-child { border-bottom: 0; }
.ranked li::before {
  content: counter(r);
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: color-mix(in oklab, var(--bs-primary-base), transparent 45%);
  flex: none;
  width: 1.5rem;
}

.author-chip { width: 1.75rem; height: 1.75rem; border-radius: var(--bs-radius-pill); object-fit: cover; }

/* --------------------------------------------------------------- Article */

.article-hero img { width: 100%; border-radius: var(--bs-radius-5); display: block; }

.article-body { font-size: 1.0625rem; }
.article-body p { line-height: 1.75; }

figure.inset { margin-block: 2rem; }
figure.inset img { width: 100%; border-radius: var(--bs-radius-5); display: block; }
figure.inset figcaption { font-size: 0.8125rem; color: var(--bs-fg-3); margin-top: 0.625rem; }

.toc { position: sticky; top: 5.5rem; }
.toc a {
  display: block; padding: 0.3125rem 0 0.3125rem 0.75rem;
  border-left: 2px solid var(--bs-border-color);
  color: var(--bs-fg-3); font-size: 0.875rem; text-decoration: none;
}
.toc a:hover { color: var(--bs-fg-1); }
.toc a.active { color: var(--bs-primary-base); border-left-color: var(--bs-primary-base); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .story-media img { transition: none; }
  .story:hover .story-media img { transform: none; }
}

/* Motion Harbor adaptation ------------------------------------------------ */

body { overflow-x: hidden; }

.brand-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.5rem;
}

.brand-note {
  max-width: 18rem;
  text-align: right;
  color: var(--bs-fg-3);
  font-size: 0.8rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.compact-header .masthead-title { font-size: 2rem; }

.story-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  color: inherit;
  background: var(--bs-bg-2);
}

.story-lead .story-media { aspect-ratio: 5 / 3; }

.video-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 68%, rgb(0 0 0 / 0.48));
  pointer-events: none;
}

.play-mark {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 1;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 0.7);
  border-radius: 50%;
  background: rgb(20 20 19 / 0.74);
  color: #fff;
  backdrop-filter: blur(4px);
}

.play-mark svg { width: 1.25rem; fill: currentColor; }

.duration {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 1;
  padding: 0.18rem 0.42rem;
  border-radius: 2px;
  background: rgb(15 15 14 / 0.84);
  color: #fff;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.section-link {
  margin-left: auto;
  color: var(--bs-fg-2);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) auto auto;
  align-items: end;
  gap: 2rem;
}

.footer-grid nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-grid nav a { color: var(--bs-fg-2); font-size: 0.82rem; }
.footer-brand { color: inherit; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; font-weight: 700; text-decoration: none; }

.watch-main { padding-top: 2rem; }
.player-shell { width: min(1280px, calc(100% - 2rem)); margin-inline: auto; background: #080808; }
.main-player { display: block; width: 100%; aspect-ratio: 16 / 9; background: #080808; object-fit: contain; }

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr);
  gap: 4rem;
  padding-top: 3rem;
}

.watch-title { max-width: 52rem; margin-bottom: 1rem; font-size: 2.6rem; }
.watch-deck { max-width: 46rem; color: var(--bs-fg-2); font-size: 1.15rem; line-height: 1.55; }
.film-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-block: 1.25rem; color: var(--bs-fg-3); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.film-meta span + span::before { content: "/"; margin-right: 1rem; color: var(--bs-border-color); }

.up-next {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--bs-border-color);
  color: inherit;
  text-decoration: none;
}

.up-next img { width: 7rem; aspect-ratio: 16 / 10; object-fit: cover; }
.up-next strong { display: block; font-family: Georgia, "Times New Roman", serif; line-height: 1.2; }
.up-next small { display: block; margin-top: 0.4rem; color: var(--bs-fg-3); }

.archive-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--bs-fg-body);
  margin-bottom: 2rem;
}

.archive-filters { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.filter-button {
  min-height: 2.25rem;
  padding-inline: 0.85rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 3px;
  background: transparent;
  color: var(--bs-fg-2);
  font-size: 0.78rem;
  cursor: pointer;
}

.filter-button:hover,
.filter-button.active { border-color: var(--bs-fg-body); background: var(--bs-fg-body); color: var(--bs-bg-body); }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 1.5rem;
}

.archive-grid [hidden], [data-searchable][hidden] { display: none !important; }

.about-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1.2fr);
  gap: 5rem;
  align-items: start;
}

.about-layout .article-body { max-width: 44rem; }

@media (max-width: 767.98px) {
  .masthead-title { font-size: 2rem; }
  .brand-row { align-items: center; padding-block: 1rem; }
  .brand-note { display: none; }
  .story-lead .story-media { aspect-ratio: 16 / 10; }
  .play-mark { left: 0.8rem; bottom: 0.8rem; width: 2.5rem; height: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr; align-items: start; }
  .watch-layout, .about-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .watch-title { font-size: 2rem; }
  .archive-head { align-items: flex-start; flex-direction: column; }
  .archive-grid { grid-template-columns: 1fr; }
  .film-meta span + span::before { display: none; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
