/* ==========================================================================
   Nitrate — Golden age streaming
   Tokens and type scale follow the design handoff exactly. Dark only.
   ========================================================================== */

/* --- Fonts ---------------------------------------------------------------
   Self-hosted, latin subset, SIL OFL. Archivo Narrow ships as one variable
   file covering the 600–700 range the design uses; Barlow is three statics. */

@font-face {
  font-family: 'Archivo Narrow';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/archivo-narrow.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/barlow-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/barlow-600.woff2') format('woff2');
}

/* --- Tokens -------------------------------------------------------------- */

:root {
  --bg-base: #14161a;
  --bg-alt: #191c21;
  --surface-card: #1b1e24;
  --surface-raised: #1d2027;

  --line-subtle: #2a2d34;
  --line-default: #2e323a;
  --line-default-strong: #363a43;
  --line-strong: #3c4048;
  --line-strong-hi: #434750;
  --line-accent-tint: #4a3e2c;

  --text-primary: #edeef0;
  --text-secondary: #bfc1c6;
  --text-body: #b4b7bc;
  --text-tertiary: #a2a5ab;
  --text-muted: #7e8188;
  --text-muted-hi: #85888f;

  --accent: #e0a24c;
  --accent-hover: #f5bd73;
  --status-ok: #4fc77e;

  --font-display: 'Archivo Narrow', 'Arial Narrow', Helvetica, sans-serif;
  --font-body: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(20px, 5vw, 80px);
  --radius-poster: 4px;
  --radius-block: 8px;
  --radius-button: 10px;
  --radius-card: 12px;

  /* The image loading state, kept in production per the handoff. */
  --placeholder-fill: repeating-linear-gradient(
    135deg,
    #363b42 0 6px,
    #23262c 6px 12px
  );
  --placeholder-fill-lg: repeating-linear-gradient(
    135deg,
    #363b42 0 10px,
    #23262c 10px 20px
  );

  color-scheme: dark;
}

/* --- Base ---------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--text-primary);
  text-transform: uppercase;
  margin: 0;
}

p {
  margin: 0;
}

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

/* Anchor targets clear the section they land in. */
[id] {
  scroll-margin-top: 32px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--surface-raised);
  color: var(--text-primary);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-block);
}

.skip-link:focus {
  left: var(--gutter);
  top: 12px;
}

/* --- Shared pieces ------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}

.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Buttons — primary is near-white on dark, never amber. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 15px 26px;
  border-radius: var(--radius-button);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--text-primary);
  color: var(--bg-base);
}

.btn--primary:hover {
  background: #fff;
  color: var(--bg-base);
}

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--line-strong);
}

.btn--secondary:hover {
  border-color: var(--line-strong-hi);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.btn--lg {
  font-size: 17px;
  padding: 18px 32px;
}

/* --- Header / footer lockup ---------------------------------------------- */

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: inherit;
}

.lockup:hover {
  color: inherit;
}

.lockup__icon {
  flex: none;
  width: 38px;
  height: 38px;
}

.lockup__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lockup__word {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1;
}

.lockup__sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
  flex-wrap: wrap;
  padding: 24px var(--gutter);
  border-bottom: 1px solid var(--line-subtle);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 15px;
  color: var(--text-body);
}

.site-nav a:hover {
  color: var(--accent-hover);
}

.site-nav a[aria-current='page'] {
  color: var(--accent);
}

.site-footer {
  padding: 48px var(--gutter);
  border-top: 1px solid var(--line-subtle);
}

.site-footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
  flex-wrap: wrap;
}

.site-footer .lockup__icon {
  width: 30px;
  height: 30px;
}

.site-footer .lockup__word {
  font-size: 17px;
}

.site-footer__links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.site-footer__links a {
  font-size: 15px;
  color: var(--text-tertiary);
}

.site-footer__links a:hover {
  color: var(--accent-hover);
}

.site-footer__legal {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --- Image placeholders --------------------------------------------------
   Every dashed element marks an asset slot. Replace the background with the
   real <img> and keep the striped fill as its loading state. */

.ph {
  background-image: var(--placeholder-fill);
  background-color: var(--surface-raised);
  position: relative;
  overflow: hidden;
}

.ph--lg {
  background-image: var(--placeholder-fill-lg);
}

.ph__label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted-hi);
  background: rgba(20, 22, 26, 0.82);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-block);
  padding: 6px 10px;
  margin: 0;
}

.ph__label--tr {
  top: 20px;
  right: 20px;
  max-width: min(46%, 260px);
}

.ph__label--bl {
  left: 8px;
  bottom: 8px;
  padding: 4px 7px;
  font-size: 8px;
}

/* --- Landing: hero ------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line-subtle);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    var(--bg-base) 12%,
    rgba(20, 22, 26, 0.85) 40%,
    rgba(20, 22, 26, 0.35) 68%,
    rgba(20, 22, 26, 0.75)
  );
}

.hero__inner {
  position: relative;
  width: 100%;
  padding: 80px var(--gutter);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 620px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.01em;
}

/* --- Landing: sections --------------------------------------------------- */

.section {
  padding: 100px var(--gutter);
  border-bottom: 1px solid var(--line-subtle);
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 44px;
}

.section h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.section__intro {
  max-width: 640px;
  color: var(--text-body);
}

/* Catalog grid */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px;
}

.poster {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.poster__art {
  aspect-ratio: 2 / 3;
  border: 1px solid var(--line-default);
  border-radius: var(--radius-poster);
}

.poster__title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-primary);
  text-transform: none;
}

.poster__meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Platform cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.platform-card {
  background: var(--surface-card);
  border: 1px solid var(--line-default);
  border-radius: var(--radius-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.15s ease;
}

.platform-card:hover {
  border-color: var(--line-strong);
}

.platform-card__shot {
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-block);
}

.platform-card h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.platform-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-tertiary);
}

/* Closing CTA */
.closing {
  position: relative;
  background: var(--bg-alt);
  padding: 110px var(--gutter);
  border-bottom: 1px solid var(--line-subtle);
  overflow: hidden;
}

.closing__copy {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.closing h2 {
  font-size: clamp(30px, 4.4vw, 50px);
  font-weight: 700;
  line-height: 0.98;
}

/* --- Legal + support two-column shell ------------------------------------ */

.page {
  padding: 64px var(--gutter) 72px;
}

.page__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  margin-bottom: 56px;
}

.page__head h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 0.95;
}

.layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(32px, 5vw, 72px);
}

.aside {
  position: sticky;
  top: 32px;
  flex: 1 1 230px;
  max-width: 300px;
  min-width: 230px;
}

.toc h2 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.toc a {
  font-size: 15px;
  color: var(--text-tertiary);
}

.toc a:hover {
  color: var(--accent-hover);
}

.article {
  flex: 999 1 420px;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.article section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article h2 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.article h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.article p {
  line-height: 1.7;
}

.article ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article li {
  line-height: 1.65;
}

/* The four "what we collect" entries — 2px left rule, 16px indent. */
.entry {
  border-left: 2px solid var(--line-default-strong);
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.entry h3 {
  font-size: 16px;
  letter-spacing: 0.05em;
}

.entry p {
  font-size: 15px;
  color: var(--text-tertiary);
}

/* Amber-tinted callout — "what we don't collect", "what you may not do". */
.callout {
  background: var(--surface-raised);
  border: 1px solid var(--line-accent-tint);
  border-radius: var(--radius-block);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.callout h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.callout ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.callout li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.55;
}

.callout li::before {
  content: '\2715';
  color: var(--accent);
  font-size: 13px;
  line-height: 1.7;
  flex: none;
}

.callout__note {
  font-size: 14px;
  color: var(--text-muted-hi);
}

.contact-block {
  border-top: 1px solid var(--line-subtle);
  padding-top: 28px;
}

/* Simple data table (subscription terms). */
.table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line-default);
  border-radius: var(--radius-block);
  overflow: hidden;
  font-size: 15px;
}

.table th,
.table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-subtle);
  vertical-align: top;
}

.table tr:last-child th,
.table tr:last-child td {
  border-bottom: 0;
}

.table th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  width: 34%;
  background: var(--surface-raised);
}

.table td {
  color: var(--text-tertiary);
}

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

/* --- Support ------------------------------------------------------------- */

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-bottom: 64px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface-card);
  border: 1px solid var(--line-default);
  border-radius: var(--radius-card);
  padding: 20px;
  color: inherit;
  transition: border-color 0.15s ease;
}

.topic-card:hover {
  border-color: var(--line-strong);
  color: inherit;
}

.topic-card__mark {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.topic-card h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.topic-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-tertiary);
}

.faq {
  border-top: 1px solid var(--line-subtle);
}

.faq > div {
  border-bottom: 1px solid var(--line-subtle);
  padding: 22px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}

.faq p {
  color: var(--text-tertiary);
  line-height: 1.65;
}

.side-card {
  background: var(--surface-card);
  border: 1px solid var(--line-default);
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.side-card--accent {
  background: var(--surface-raised);
  border-color: var(--line-accent-tint);
}

.side-card h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.side-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-tertiary);
}

.side-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-card ul a {
  font-size: 15px;
}

.aside--support {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 700px) {
  .section,
  .closing {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .hero {
    min-height: 560px;
  }

  .hero__inner {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  /* The badge must never crowd the copy column at narrow widths — but it has
     to stay out of the flow to do it. `.hero` is a flex container, so a static
     badge becomes a flex item and shoves the copy column sideways. */
  .ph__label--tr {
    top: 12px;
    right: 12px;
    max-width: 45%;
    font-size: 8px;
    padding: 5px 8px;
  }

  .aside {
    position: static;
    max-width: none;
    min-width: 0;
    flex-basis: 100%;
  }
}

/* Two columns of legal prose in ~330px is unreadable — stack the label above
   its value instead of letting the value column shrink to a ribbon. */
@media (max-width: 560px) {
  .table,
  .table tbody,
  .table tr,
  .table th,
  .table td {
    display: block;
    width: auto;
  }

  .table tr {
    border-bottom: 1px solid var(--line-subtle);
  }

  .table tr:last-child {
    border-bottom: 0;
  }

  .table th,
  .table td {
    border-bottom: 0;
  }

  .table th {
    background: var(--surface-raised);
    padding-bottom: 10px;
  }

  .table td {
    padding-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .aside,
  .btn {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
