@font-face { font-family: "OpenTUI"; src: url("/fonts/opentui-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "OpenTUI"; src: url("/fonts/opentui-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --cobalt: oklch(0.44 0.2 263);
  --cobalt-deep: oklch(0.34 0.17 263);
  --cobalt-tint: oklch(0.93 0.035 263);
  --paper: oklch(0.985 0.004 95);
  --ink: oklch(0.19 0.012 263);
  --ink-soft: oklch(0.32 0.012 263);
  --muted: oklch(0.47 0.015 263);
  --rule: oklch(0.87 0.01 263);
  --good: oklch(0.55 0.13 150);
  --bad: oklch(0.55 0.17 25);

  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "OpenTUI", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--cobalt-tint); padding: 0.05em 0.3em; border-radius: 2px; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }

.wrap { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -3rem; z-index: 10; padding: 0.5rem 0.75rem; background: var(--ink); color: var(--paper); }
.skip:focus { top: 1rem; }

/* Brand */
.wordmark { font-family: var(--sans); font-weight: 700; font-size: 1.875rem; line-height: 1; letter-spacing: -0.055em; color: var(--paper); }

/* Masthead */
.masthead { background: var(--cobalt); color: var(--paper); }
.masthead__row { display: flex; align-items: center; gap: 2rem; height: 4rem; }
.masthead__sections { display: none; gap: 1.5rem; font-size: 0.9375rem; }
.masthead__sections a, .masthead__mobile a { opacity: 0.85; }
.masthead__sections a:hover, .masthead__mobile a:hover, .masthead a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.masthead__actions { display: flex; align-items: center; gap: 0.625rem; margin-left: auto; }
.masthead__mobile { display: flex; gap: 1.25rem; height: 2.5rem; align-items: center; font-size: 0.875rem; border-top: 1px solid oklch(1 0 0 / 0.18); overflow-x: auto; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 2.25rem; padding: 0 0.875rem; border-radius: 2px;
  background: var(--paper); color: var(--cobalt);
  font-size: 0.875rem; font-weight: 500; white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease;
}
.button:hover { background: var(--cobalt-tint); }
.button--outline { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px oklch(1 0 0 / 0.55); }
.button--outline:hover { background: oklch(1 0 0 / 0.12); }
.button--solid { background: var(--cobalt); color: var(--paper); }
.button--solid:hover { background: var(--cobalt-deep); }
.button--dark { background: var(--ink); color: var(--paper); }
.button--dark:hover { background: var(--ink-soft); }
.button--quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }
.button--quiet:hover { background: var(--cobalt-tint); }
.button--lg { height: 2.75rem; padding: 0 1.125rem; font-size: 0.9375rem; }
.button--block { display: flex; width: 100%; height: 2.75rem; }

/* Shared text */
.meta { font-family: var(--mono); font-size: 0.75rem; line-height: 1.4; color: var(--muted); }
.meta a:hover { color: var(--cobalt); text-decoration: underline; text-underline-offset: 3px; }
.section-title { font-size: 1rem; font-weight: 700; }
.block { padding-top: 2.5rem; }
.block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-top: 0.625rem; margin-bottom: 1.25rem; border-top: 3px solid var(--ink); }
.more-link { font-size: 0.875rem; color: var(--cobalt); }
.more-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Media */
[class$="__media"] { position: relative; display: block; overflow: hidden; background: var(--cobalt-tint); }
.lead__media, .card__media, .row__media, .mini__media { aspect-ratio: 16 / 9; }
[class$="__media"] img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms cubic-bezier(0.2, 0, 0, 1); }
a[class$="__media"]:hover img { transform: scale(1.02); }
.runtime { position: absolute; left: 0.5rem; bottom: 0.5rem; padding: 0.125rem 0.375rem; background: var(--cobalt); color: var(--paper); font-family: var(--mono); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
[class$="__title"] a:hover, .ranked__title:hover { color: var(--cobalt); }

/* Cards */
.lead { display: grid; gap: 1.25rem; }
.lead__text { display: flex; flex-direction: column; gap: 0.75rem; }
.lead__title { font-size: 1.75rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
.lead__summary { color: var(--muted); text-wrap: pretty; }

.card { display: flex; flex-direction: column; gap: 0.75rem; }
.card__text { display: flex; flex-direction: column; gap: 0.5rem; }
.card__title { font-size: 1.0625rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.012em; text-wrap: balance; }

.mini { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.875rem; align-items: start; }
.mini + .mini { padding-top: 1rem; border-top: 1px solid var(--rule); }
.mini__text { display: flex; flex-direction: column; gap: 0.375rem; }
.mini__title { font-size: 0.9375rem; font-weight: 700; line-height: 1.28; letter-spacing: -0.01em; }
.mini .runtime { display: none; }

.row { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; align-items: start; }
.row__text { display: flex; flex-direction: column; gap: 0.375rem; }
.row__title { font-size: 1.0625rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.012em; text-wrap: balance; }
.row__summary { display: none; color: var(--muted); font-size: 0.9375rem; text-wrap: pretty; }
.row .runtime { display: none; }

.stack { display: flex; flex-direction: column; gap: 1.25rem; }
.stack > * + * { padding-top: 1.25rem; border-top: 1px solid var(--rule); }

.grid { display: grid; gap: 2rem 1.5rem; grid-template-columns: 1fr; }

/* Home */
.home { padding-top: 1.5rem; padding-bottom: 3.5rem; }
.top { display: grid; gap: 1.75rem; }
.top__side { display: flex; flex-direction: column; gap: 1rem; }
.split { display: grid; gap: 0 3rem; }

.ranked { counter-reset: rank; }
.ranked li { display: grid; grid-template-columns: 2rem 1fr; gap: 0.5rem; padding: 0.875rem 0; }
.ranked li + li { border-top: 1px solid var(--rule); }
.ranked li:first-child { padding-top: 0; }
.rank { font-family: var(--mono); font-weight: 700; font-size: 1.25rem; line-height: 1.1; color: var(--cobalt); }
.ranked__title { display: block; font-weight: 700; font-size: 0.9375rem; line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 0.375rem; }
.ranked__views { display: flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.ranked__bar { flex: 0 0 4.5rem; height: 4px; background: var(--rule); }
.ranked__bar span { display: block; height: 100%; background: var(--cobalt); }

.shorts { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 1rem; overflow-x: auto; padding-bottom: 0.5rem; scroll-snap-type: x mandatory; }
.shorts li { scroll-snap-align: start; }
.short { display: flex; flex-direction: column; gap: 0.5rem; }
.short__media { aspect-ratio: 9 / 16; }
.short__title { font-size: 0.875rem; font-weight: 700; line-height: 1.3; }
.short:hover .short__title { color: var(--cobalt); }

.band { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 3rem; padding: 1.75rem; background: var(--cobalt); color: var(--paper); }
.band h2 { font-size: 1.5rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Listing pages */
.listing { padding-top: 2rem; padding-bottom: 3.5rem; }
.listing__title { font-size: 2rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 1.5rem; }
.top--single { padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 3px solid var(--ink); }
.stack--wide .row { grid-template-columns: 9rem 1fr; }
.notfound > p { margin-bottom: 2rem; color: var(--muted); }

.author { display: grid; grid-template-columns: 5rem 1fr; gap: 1.25rem; align-items: start; }
.author__avatar { width: 5rem; height: 5rem; border-radius: 50%; object-fit: cover; }
.author__text .listing__title { margin-bottom: 0.5rem; }
.author__text p { max-width: 40rem; color: var(--ink-soft); margin-bottom: 1rem; }
.author__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Article */
.article { padding-bottom: 3.5rem; }
.article__head { padding-top: 2rem; padding-bottom: 1.5rem; }
.article__head h1 { max-width: 48rem; font-size: 2rem; font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; margin-bottom: 0.75rem; }
.article__dek { max-width: 42rem; font-size: 1.125rem; line-height: 1.45; color: var(--ink-soft); margin-bottom: 1rem; text-wrap: pretty; }

.player { position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.player iframe, .player__facade, .player__facade img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__facade img { object-fit: cover; }
.player__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); transition: transform 150ms ease; }
.player__facade:hover .player__play { transform: translate(-50%, -50%) scale(1.06); }

.article__body { display: grid; gap: 2.5rem; padding-top: 2rem; }
.prose { max-width: 40rem; min-width: 0; }
.prose > p { font-size: 1.0625rem; line-height: 1.65; margin-bottom: 1.25rem; text-wrap: pretty; }
.prose > h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; margin: 2rem 0 0.75rem; }
.prose > ul, .prose > ol { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.prose > ul { list-style: disc; }
.prose > ol { list-style: decimal; }
.prose > ul li, .prose > ol li { font-size: 1.0625rem; line-height: 1.6; padding-left: 0.25rem; margin-bottom: 0.5rem; text-wrap: pretty; }
.prose li::marker { color: var(--cobalt); font-weight: 700; }
.prose a:not(.button) { color: var(--cobalt); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:not(.button):hover { color: var(--cobalt-deep); }

.verdict { margin-top: 2rem; padding-top: 1rem; border-top: 3px solid var(--ink); }
.verdict h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 0.5rem; }
.verdict > p { font-size: 1.125rem; font-weight: 500; line-height: 1.5; margin-bottom: 1.25rem; text-wrap: pretty; }
.verdict__lists { display: grid; gap: 1.25rem; }
.verdict h3 { font-size: 0.875rem; font-weight: 700; margin-bottom: 0.5rem; }
.verdict li { position: relative; padding-left: 1.5rem; font-size: 0.9375rem; line-height: 1.45; margin-bottom: 0.5rem; }
.verdict li::before { position: absolute; left: 0; top: 0; font-family: var(--mono); font-weight: 700; }
.pros li::before { content: "+"; color: var(--good); }
.cons li::before { content: "−"; color: var(--bad); }

.follow { margin-top: 2.25rem; padding: 1.5rem; background: var(--cobalt); color: var(--paper); }
.follow p { font-size: 1.125rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 1rem; }
.follow__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.follow .button { height: 2.75rem; padding: 0 1.125rem; }

.rail { display: flex; flex-direction: column; gap: 1.25rem; align-self: start; min-width: 0; }
.rail .section-title { padding-top: 0.625rem; border-top: 3px solid var(--ink); margin-bottom: 0.25rem; }
.chapters li + li { border-top: 1px solid var(--rule); }
.chapters button { display: grid; grid-template-columns: 3rem 1fr 3rem; align-items: center; gap: 0.75rem; width: 100%; padding: 0.625rem 0; font-size: 0.875rem; line-height: 1.35; }
.chapters button:hover .chapter__label { color: var(--cobalt); }
.chapter__time { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.chapter__bar { height: 4px; background: var(--rule); }
.chapter__bar span { display: block; height: 100%; background: var(--cobalt); }
.rail__actions { display: flex; flex-direction: column; gap: 0.625rem; }

/* Footer */
.footer { margin-top: 1rem; background: var(--cobalt); color: var(--paper); }
.footer__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; padding-top: 2.5rem; padding-bottom: 2rem; }
.footer__brand { grid-column: 1 / -1; }
.footer h2 { font-size: 0.875rem; font-weight: 700; margin-bottom: 0.75rem; opacity: 0.75; }
.footer li + li { margin-top: 0.5rem; }
.footer li a { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9375rem; }
.footer li a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__base { padding-top: 1rem; padding-bottom: 1.5rem; border-top: 1px solid oklch(1 0 0 / 0.18); font-family: var(--mono); font-size: 0.75rem; opacity: 0.75; }

@media (max-width: 559px) {
  .hide-sm { display: none; }
  .masthead__actions { gap: 0.5rem; }
}

@media (min-width: 640px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .shorts { grid-auto-columns: 30%; }
  .verdict__lists { grid-template-columns: 1fr 1fr; }
  .row__summary { display: block; }
  .row { grid-template-columns: 12rem 1fr; }
  .stack--wide .row { grid-template-columns: 16rem 1fr; }
  .footer__grid { grid-template-columns: 2fr repeat(3, 1fr); }
  .footer__brand { grid-column: auto; }
}

@media (min-width: 960px) {
  .wrap { padding-inline: 2rem; }
  .wordmark { font-size: 2.125rem; }
  .masthead__sections { display: flex; }
  .masthead__mobile { display: none; }
  .home { padding-top: 2.5rem; }
  .top { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 2.5rem; }
  .top--single { grid-template-columns: 1fr; }
  .top--single .lead { grid-template-columns: 7fr 5fr; gap: 2rem; align-items: center; }
  .lead__title { font-size: 2.25rem; }
  .top:not(.top--single) .lead__title { font-size: 2rem; }
  .top__side { padding-left: 2.5rem; border-left: 1px solid var(--rule); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .shorts { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; }
  .band { flex-direction: row; align-items: center; justify-content: space-between; padding: 2rem 2.25rem; }
  .listing__title { font-size: 2.5rem; }
  .author { grid-template-columns: 7.5rem 1fr; gap: 2rem; }
  .author__avatar { width: 7.5rem; height: 7.5rem; }
  .article__head h1 { font-size: 2.5rem; }
  .article__body { grid-template-columns: minmax(0, 1fr) 20rem; gap: 4rem; }
  .rail { position: sticky; top: 1.5rem; }
}

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