/* The FRAME Archive hub. Tokens, type, header, cards, and footer follow
   propagandaarchive.org (site/static/style.css there). Inter and IBM Plex
   Mono are named first so a visitor who has them installed sees the brand
   system; the system-font fallbacks mean the page still loads with no
   third-party font request. Flat colors only: this hub does not use the
   collage scrims from the archive site. */

:root {
  --paper: #f7f5f0;
  --paper-2: #efece4;
  --mount: #d9d9d6;
  --ink: #0b0b0b;
  --ink-2: #4a4a4a;
  --muted: #6f6f6f;
  --rule: #dcdad4;
  --accent: #c8102e;
  --logo-red: #e30613;
  --accent-ink: #ffffff;
  --gray-badge: #4a4a4a;
  --serif: var(--sans);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --measure: 42rem;
  --wide: 72rem;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --header-h: 5.1rem;
  --radius: 2px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b0b0b;
    --paper-2: #161615;
    --mount: #262625;
    --ink: #f7f5f0;
    --ink-2: #d9d9d6;
    --muted: #9a9a98;
    --rule: #2e2e2c;
    --accent: #e14a5f;
    --logo-red: #e30613;
    --accent-ink: #0b0b0b;
    --gray-badge: #9a9a98;
  }
}
:root[data-theme="dark"] {
  --paper: #0b0b0b;
  --paper-2: #161615;
  --mount: #262625;
  --ink: #f7f5f0;
  --ink-2: #d9d9d6;
  --muted: #9a9a98;
  --rule: #2e2e2c;
  --accent: #e14a5f;
  --logo-red: #e30613;
  --accent-ink: #0b0b0b;
  --gray-badge: #9a9a98;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

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

a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

h1, h2, h3 { font-weight: normal; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: 1.55rem; margin: 2.4rem 0 0.8rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: 0.5rem 1rem; z-index: 10; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow, .breadcrumb-trail, .site-nav a, .footer-inner {
  font-family: var(--sans);
}
.eyebrow, .breadcrumb-trail {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumb-trail { padding: 0.9rem 0 0; }
.breadcrumb-trail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0; }
.breadcrumb-trail li { margin: 0; }
.breadcrumb-trail li + li::before { content: "\203A"; margin: 0 0.5rem; opacity: 0.6; }
.breadcrumb-trail a { text-decoration: none; }
.breadcrumb-trail a:hover, .breadcrumb-trail a:focus-visible { text-decoration: underline; }
.breadcrumb-trail li[aria-current="page"] { color: var(--ink); }

.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 1rem; padding-bottom: 1rem; flex-wrap: wrap; }
.wordmark { display: flex; align-items: center; gap: 1.1rem; text-decoration: none; }
.wordmark .frame-logo { flex: none; height: 2.9rem; width: auto; display: block; }
.frame-logo-brackets { fill: var(--logo-red); }
.frame-logo-word { fill: var(--ink); }
.wordmark:hover .frame-logo-brackets { fill: var(--accent); }
.wordmark-text { display: flex; flex-direction: column; }
.wordmark .expansion { font-family: var(--sans); font-size: 0.55rem; font-weight: 600; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; max-width: 14rem; line-height: 1.6; }
.site-nav { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.site-nav a { font-size: 0.85rem; text-decoration: none; color: var(--ink-2); padding: 0.25rem 0; border-bottom: 1px solid transparent; }
.site-nav a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }
.site-nav a:hover { color: var(--accent); }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; background: none; border: none; padding: 0; margin: 0; color: var(--ink-2); cursor: pointer; }
.theme-toggle:hover { color: var(--accent); }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink);
  cursor: pointer;
  order: 2;
}
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-burger { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 860px) {
  .wordmark .frame-logo { height: 30px; }
  .wordmark .expansion { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header-inner { flex-wrap: nowrap; position: relative; }
  .nav-toggle { display: inline-flex; width: 2.75rem; height: 2.75rem; border: 0; margin-right: -0.6rem; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 0.25rem 1.25rem 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    z-index: 20;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { width: 100%; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
  .site-nav a[aria-current] { border-bottom-color: var(--rule); }
  .theme-toggle { align-self: flex-start; padding: 0.7rem 0; }
}

/* Home hero: the archive site's near-black band, without a photo or scrim. */
.hero-band {
  --hero-bg: #0b0b0b;
  padding: 4.5rem 0 3.25rem;
  color: #f7f5f0;
  background-color: var(--hero-bg);
}
.hero-band > .wrap { width: 100%; }
.hero-band .eyebrow { color: rgba(247, 245, 240, 0.65); margin: 0 0 0.85rem; }
.hero-quote-text {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #f7f5f0;
  margin: 0;
  max-width: 14ch;
  text-wrap: balance;
}
.hero-band .hero-lede { color: rgba(247, 245, 240, 0.8); font-size: 1.125rem; line-height: 1.5; max-width: 38rem; margin: 1.1rem 0 0; }
.hero-band .hero-lede p { margin: 0; }
.hero-band .hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 0; }
.hero-band .hero-actions .button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.3rem; }
.hero-band .button:not(.button-quiet) { background: #e14a5f; border-color: #e14a5f; color: #0b0b0b; }
.hero-band .button:not(.button-quiet):hover { background: #f7f5f0; border-color: #f7f5f0; color: #0b0b0b; }
.hero-band .button-quiet { color: #f7f5f0; border-color: rgba(247, 245, 240, 0.45); background: transparent; }
.hero-band .button-quiet:hover { border-color: #f7f5f0; color: #f7f5f0; background: transparent; }

.page-hero {
  padding: 3.25rem 0 2.5rem;
  background: #0b0b0b;
  color: #f7f5f0;
  margin-bottom: 0.5rem;
}
.page-hero .eyebrow { color: rgba(247, 245, 240, 0.65); margin: 0; }
.page-hero h1 { color: #f7f5f0; margin: 0.55rem 0 0.9rem; max-width: 18ch; }
.page-hero .lede { color: rgba(247, 245, 240, 0.85); font-size: 1.15rem; max-width: 40rem; margin: 0; }
.page-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.4rem 0 0; }
.page-hero .button:not(.button-quiet) { background: #e14a5f; border-color: #e14a5f; color: #0b0b0b; }
.page-hero .button:not(.button-quiet):hover { background: #f7f5f0; border-color: #f7f5f0; color: #0b0b0b; }
.page-hero .button-quiet { color: #f7f5f0; border-color: rgba(247, 245, 240, 0.45); background: transparent; }
.page-hero .button-quiet:hover { color: #f7f5f0; border-color: #f7f5f0; background: transparent; }

.button { display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 0.9rem; padding: 0.7rem 1.2rem; background: var(--accent); color: var(--accent-ink); text-decoration: none; border-radius: 4px; border: 1px solid var(--accent); }
.button:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.button-quiet { background: transparent; color: var(--ink); border-color: var(--rule); }
.button-quiet:hover { background: transparent; border-color: var(--accent); color: var(--accent); }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.4rem 1rem; border-bottom: 1px solid var(--rule); margin: 2.75rem 0 1.25rem; padding-bottom: 0.6rem; }
.section-head h2 { margin: 0; }
.section-head a { font-size: 0.85rem; white-space: nowrap; text-decoration: none; }
.section-head a:hover { text-decoration: underline; }
.section-intro { color: var(--ink-2); max-width: 40rem; margin: 0 0 1.25rem; }

.card-grid { display: grid; gap: 1.1rem; margin: 0 0 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.frame-card { display: flex; flex-direction: column; background: var(--paper-2); border: 1px solid var(--rule); text-decoration: none; color: inherit; min-width: 0; transition: border-color 0.15s ease, transform 0.15s ease; }
.frame-card:hover { border-color: var(--accent); transform: translateY(-2px); color: inherit; }
.frame-card:hover .frame-card-title { color: var(--accent); }
.frame-card-media { display: flex; background: var(--mount); aspect-ratio: 16 / 10; overflow: hidden; }
.frame-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.frame-card-body { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.9rem 1rem 1.1rem; flex: 1; }
.frame-card-kicker { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.frame-card-title { font-family: var(--sans); font-weight: 600; font-size: 1.15rem; line-height: 1.3; }
.frame-card-text { font-size: 0.95rem; line-height: 1.5; color: var(--ink-2); }
.frame-card-more { font-family: var(--sans); font-size: 0.85rem; color: var(--accent); margin-top: auto; padding-top: 0.45rem; }
.frame-card-more::after { content: " \2192"; }
@media (max-width: 68rem) {
  .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 36rem) {
  .card-grid, .card-grid-3 { grid-template-columns: minmax(0, 1fr); gap: 0.8rem; }
  .frame-card { flex-direction: row; }
  .frame-card-media { flex: 0 0 6.5rem; aspect-ratio: auto; min-height: 6.5rem; }
  .frame-card-body { padding: 0.7rem 0.85rem; }
}

.archive-index { list-style: none; margin: 1.5rem 0 2rem; padding: 0; }
.archive-index li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1.1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--rule); }
.archive-index .thumb { display: block; background: var(--mount); }
.archive-index .thumb img { width: 100%; height: 5.2rem; object-fit: cover; }
.archive-index h2 { font-size: 1.35rem; font-weight: 600; margin: 0 0 0.25rem; }
.archive-index h2 a { text-decoration: none; }
.archive-index h2 a:hover { color: var(--accent); }
.archive-index .kicker { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.4rem; }
.archive-index .tagline { margin: 0 0 0.45rem; color: var(--ink-2); font-size: 1rem; }
.archive-index .links { margin: 0; font-size: 0.9rem; }
.archive-index .links a { text-decoration: none; }
.archive-index .links a:hover { text-decoration: underline; }
@media (max-width: 36rem) {
  .archive-index li { grid-template-columns: minmax(0, 1fr); }
  .archive-index .thumb img { height: 9rem; }
}

.prose { max-width: 42rem; }
.prose h2 { font-size: 1.45rem; margin: 2.2rem 0 0.7rem; }
.prose h3 { font-size: 1.15rem; margin: 1.6rem 0 0.5rem; }
.prose a { text-decoration: underline; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.prose li { margin: 0.25rem 0; }
.prose code { font-family: var(--mono); font-size: 0.85em; background: var(--paper-2); padding: 0.05em 0.3em; }

.archive-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 0.5rem 0 2rem; }
.archive-table th, .archive-table td { border-bottom: 1px solid var(--rule); text-align: left; padding: 0.55rem 0.75rem 0.55rem 0; vertical-align: top; }
.archive-table th { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.archive-table a { text-decoration: none; }
.archive-table a:hover { text-decoration: underline; }

.site-footer { margin-top: 4.5rem; border-top: 1px solid var(--rule); background: var(--paper-2); }
.footer-inner { padding-top: 2.5rem; padding-bottom: 3rem; font-size: 0.85rem; color: var(--ink-2); }
.footer-inner p { max-width: 44rem; }
.motto { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.page-main { padding-bottom: 1rem; }
