/* theofdn.org
   Tokens, type and film layout from psubhashish.com (marginalized-aadhaar).
   Citation block from archivingthepresent.cc/manual. */

:root {
  --font-display: 'Urbanist', system-ui, sans-serif;
  --font-body: 'Spectral', Georgia, serif;
  --font-condensed: 'Fira Sans Condensed', 'Arial Narrow', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --color-bg: #FDFBF7;
  --color-band: #E9E7DA;
  --color-surface: #F9F5EE;
  --color-border: #1A1714;
  --color-rule: #CDBFAE;
  --color-text: #1A1714;
  --color-text-muted: #3A2E28;
  --color-accent: #7A1F0E;
  --color-accent-hover: #5A1508;

  --space-xs: 0.25rem; --space-sm: 0.5rem; --space-md: 1rem; --space-lg: 1.5rem;
  --space-xl: 2.5rem; --space-2xl: 4rem; --space-3xl: 6rem;
  --max-prose: 68ch;
  --radius-sm: 3px;
  --radius-media: 16px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #141312;
    --color-band: #24221E;
    --color-surface: #1E1C1A;
    --color-border: #8A8279;
    --color-rule: #3A3632;
    --color-text: #F0EDE9;
    --color-text-muted: #C9C3BB;
    --color-accent: #7FCBA4;
    --color-accent-hover: #A3DBBF;
  }
}
:root[data-theme="dark"] {
  --color-bg: #141312; --color-band: #24221E; --color-surface: #1E1C1A; --color-border: #8A8279; --color-rule: #3A3632;
  --color-text: #F0EDE9; --color-text-muted: #C9C3BB; --color-accent: #7FCBA4; --color-accent-hover: #A3DBBF;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; font-size: 16px; }
body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.1875rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
audio { width: 100%; max-width: 32rem; }
a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--color-accent-hover); }
a:focus-visible, button:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.skip-link {
  position: absolute; top: -9rem; left: 1rem; z-index: 10;
  background: var(--color-text); color: var(--color-bg);
  font-family: var(--font-display); font-size: 0.9rem; padding: 0.5rem 1rem;
}
.skip-link:focus { top: 0.75rem; color: var(--color-bg); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Header: the site's own colours turned around, same in both themes.
   Off-white text on warm black: 17.3:1. Logo in 10% grey: 14.3:1. */
.site-header {
  --header-bg: #1A1714; --header-text: #FDFBF7; --header-logo: #E6E6E6;
  position: sticky; top: 0; z-index: 20;
  background-color: var(--header-bg); color: var(--header-text);
  display: flex; align-items: center; gap: var(--space-sm) var(--space-lg);
  padding: 0.75rem 2rem;
}
.site-header a:focus-visible, .site-header button:focus-visible,
.site-menu a:focus-visible { outline: 2px solid #FDFBF7; outline-offset: 3px; }
.site-logo { display: inline-flex; align-items: center; min-height: 44px; color: var(--header-logo); text-decoration: none; margin-right: auto; }
.site-logo:hover { color: var(--header-logo); }
.site-logo__mark { display: block; height: 30px; width: auto; }
.site-nav__list { display: flex; flex-wrap: wrap; list-style: none; gap: 0.4rem 1.5rem; }
.site-nav__list a {
  display: inline-block; padding: 0.2rem 0;
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  color: var(--header-text); border-bottom: 2px solid transparent;
}
.site-nav__list a:hover, .site-nav__list a[aria-current="page"] { color: var(--header-text); border-bottom-color: var(--header-text); }
.site-header__tools { display: flex; align-items: center; gap: 0.25rem; }
.header-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--header-text); cursor: pointer;
}
.header-btn:hover { background-color: rgba(253, 251, 247, 0.14); }
.header-btn svg { display: block; }
.menu-toggle { display: none; }
.menu-toggle .menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }
.js .menu-toggle { display: inline-flex; }
/* With JavaScript, small screens get the menu button instead of the row of links. */
@media (max-width: 999px) {
  .js .site-nav { display: none; }
  .site-header { flex-wrap: wrap; }
}

/* Search field in the header: only in the small header after scrolling down */
.search-form--header { display: none; flex: 1; max-width: 26rem; margin-inline: auto; }
.search-form input {
  width: 100%; min-height: 2.5rem; padding: 0.4rem 0.9rem;
  font: 1rem var(--font-display); color: #1A1714; background: #FDFBF7;
  border: 0; border-radius: 999px;
}
.search-form input::placeholder { color: #5A4E46; }
.search-form input:focus-visible { outline: 2px solid #FDFBF7; outline-offset: 2px; }
.search-form--page input:focus-visible { outline-color: var(--color-accent); }
.site-logo__mark { transition: height 0.2s ease; }

/* Small header after scrolling down: small logo, search and menu button */
.site-header--compact { padding-block: 0.35rem; }
.site-header--compact .site-logo { margin-right: 0; min-height: 36px; }
.site-header--compact .site-logo__mark { height: 18px; }
.site-header--compact .site-nav,
.site-header--compact .theme-toggle,
.site-header--compact .search-link { display: none; }
.site-header--compact .search-form--header { display: block; }

/* Search page */
.search-form--page { max-width: 40rem; margin-bottom: var(--space-lg); font-family: var(--font-display); }
.search-form--page label { display: block; font-weight: 600; margin-bottom: var(--space-sm); }
.search-form__row { display: flex; gap: var(--space-sm); }
.search-form--page input { border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.search-form--page button {
  font: 500 1rem var(--font-display); color: #FDFBF7; background: #1A1714;
  border: 1px solid #1A1714; border-radius: var(--radius-sm); padding: 0.4rem 1.1rem; min-height: 2.5rem; cursor: pointer;
}
.search-status { font-family: var(--font-display); margin-bottom: var(--space-lg); color: var(--color-text-muted); }
.search-results .card__meta { text-transform: none; }

/* Full menu, opened from the menu button */
.site-menu {
  position: fixed; inset: 0; z-index: 15; overflow-y: auto;
  background: #1A1714; color: #FDFBF7;
  padding: calc(4.5rem + var(--space-xl)) var(--space-lg) var(--space-2xl);
}
.site-menu[hidden] { display: none; }
.site-menu__inner {
  max-width: 60rem; margin-inline: auto;
  display: grid; gap: var(--space-xl) var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}
.site-menu__heading {
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: #E6E6E6; margin-bottom: var(--space-md);
}
.site-menu ul { list-style: none; }
.site-menu li + li { margin-top: 0.6rem; }
.site-menu a {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 500;
  color: #FDFBF7; text-decoration: none;
}
.site-menu a:hover, .site-menu a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; color: #FDFBF7; }
body.menu-open { overflow: hidden; }
/* With the full menu open, the header keeps only the logo and buttons. */
body.menu-open .site-nav, body.menu-open .search-form--header, body.menu-open .search-link { display: none; }
.site-menu__group--main a { font-size: 1.5rem; }

main { flex: 1; }
/* Section links land below the sticky header. */
main [id] { scroll-margin-top: 5rem; }

/* Footer: same dark blue in both themes */
.site-wrapper { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--space-lg); }
.site-footer {
  --footer-bg: #0B1A36; --footer-text: #D5DEEF; --footer-heading: #FFFFFF; --footer-link: #D5DEEF;
  background: var(--footer-bg); color: var(--footer-text);
  margin-top: var(--space-3xl); width: 100%;
}
.site-footer__inner {
  max-width: 1240px; margin-inline: auto; padding: var(--space-2xl) var(--space-lg) var(--space-xl);
  display: grid; gap: var(--space-xl) var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  font-family: var(--font-condensed); font-size: 1.05rem; line-height: 1.5;
}
.site-footer__brand { grid-column: 1 / -1; max-width: 34rem; }
.site-footer__brand p + p { margin-top: 0.6rem; }
.site-footer__logo { display: inline-block; color: #FFFFFF; margin-bottom: var(--space-md); }
.site-footer__logo .site-logo__mark { height: 34px; }
.site-footer__heading {
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--footer-heading); margin-bottom: 0.6rem;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer a { color: var(--footer-link); text-decoration-thickness: 1px; }
.site-footer a:hover { color: #FFFFFF; }
.site-footer a:focus-visible { outline-color: #FFFFFF; }
.site-footer__legal { grid-column: 1 / -1; border-top: 1px solid #2E4470; padding-top: var(--space-md); }
@media (min-width: 900px) {
  .site-footer__brand { grid-column: span 2; }
  .site-footer__legal { text-align: right; }
}

/* Site or page status (data/site.yml, or "status:" in a page).
   Yellow and dark red in both themes: 7.6:1. */
.status-banner {
  width: 100%; background: #FFE033; color: #8B0000;
  border-bottom: 3px solid #8B0000;
  padding: 0.9rem var(--space-lg);
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; line-height: 1.4; text-align: center;
}
.status-banner strong { font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.maintenance { min-height: 40vh; }

/* Image viewer for stills and posters */
[data-viewer] { cursor: zoom-in; }
.viewer {
  border: 0; padding: 0; margin: auto; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.94); color: #FFFFFF;
}
.viewer::backdrop { background: rgba(0, 0, 0, 0.94); }
.viewer__inner { display: grid; grid-template-rows: auto 1fr auto; height: 100%; padding: 0.75rem; gap: 0.5rem; }
.viewer__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--font-display); font-size: 1rem; }
.viewer__figure { display: flex; align-items: center; justify-content: center; min-height: 0; margin: 0; }
.viewer__figure img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--radius-sm); }
.viewer__nav { display: flex; justify-content: center; gap: 1rem; }
.viewer button {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  color: #FFFFFF; background: #1A1714; border: 2px solid #FFFFFF; border-radius: 999px;
  min-width: 44px; min-height: 44px; padding: 0.4rem 1.1rem; cursor: pointer;
}
.viewer button:hover { background: #3A2E28; }
.viewer button:focus-visible { outline: 3px solid #FFE033; outline-offset: 2px; }
.viewer a { color: #FFFFFF; }

/* Quotes: one look everywhere */
.quote { margin: 0; }
.quote blockquote, .prose .quote blockquote { border: 0; padding: 0; color: var(--color-text); }
.quote blockquote p {
  font-family: var(--font-body); font-size: 1.3rem; line-height: 1.45; font-style: normal;
  max-width: none; hanging-punctuation: first;
}
.quote blockquote p + p { margin-top: 0.6em; }
.quote .quote__rating { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.08em; color: var(--color-accent); }
.quote figcaption {
  font-family: var(--font-display); font-size: 0.95rem; line-height: 1.45;
  color: var(--color-text-muted); margin-top: var(--space-sm);
}
.quote figcaption strong { font-weight: 700; color: var(--color-text); }
.quote figcaption em { font-style: normal; }
.quotes { display: grid; gap: var(--space-xl) var(--space-xl); grid-template-columns: 1fr; margin-block: var(--space-lg) var(--space-2xl); }
@media (min-width: 1100px) { .film__main .quotes { grid-template-columns: 1fr 1fr; } }
.prose > .quote + *, .prose > .quotes + * { margin-top: var(--space-lg); }
.quotes > .quote { margin-top: 0; }

/* Section links, as on psubhashish.com */
.heading-anchor {
  display: inline-flex; align-items: center; margin-left: 0.4em; opacity: 0;
  font-size: 0.7em; color: var(--color-text-muted); text-decoration: none; vertical-align: middle;
  min-width: 24px; min-height: 24px; justify-content: center;
}
h2:hover .heading-anchor, h3:hover .heading-anchor, h2:focus-within .heading-anchor, h3:focus-within .heading-anchor { opacity: 1; }
@media (hover: none) { .heading-anchor { opacity: 0.6; } }
.heading-anchor:hover { color: var(--color-accent); }
.heading-anchor .anchor-copied {
  display: none; font-family: var(--font-display); font-size: 0.75rem;
  background: var(--color-text); color: var(--color-bg); padding: 0.1em 0.5em; border-radius: var(--radius-sm); margin-left: 0.25em;
}
.heading-anchor.just-copied .anchor-copied { display: inline; }

/* Page layout */
.page__wrap, .film__wrap {
  width: 100%; max-width: 1240px; margin-inline: auto;
  padding: var(--space-2xl) var(--space-lg) 0;
}
.page__header, .film__header { max-width: 52rem; margin-bottom: var(--space-xl); }
/* Yellow-grey band behind page titles, full width. It reaches up to the header. */
.page__wrap { --wrap-pad: var(--space-2xl); }
.page__header {
  background: var(--color-band); padding-bottom: var(--space-xl);
  box-shadow: 0 0 0 100vmax var(--color-band);
  clip-path: inset(calc(-1 * var(--wrap-pad)) -100vmax 0 -100vmax);
  max-width: none; margin-bottom: var(--space-2xl);
}
.page__header > * { max-width: 52rem; }
.eyebrow {
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent);
  margin-bottom: var(--space-sm);
}
.page__title, .film__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.25rem, 6vw, 4.25rem); line-height: 1.04; letter-spacing: -0.02em;
  overflow-wrap: break-word;
}
.film__lede, .page__lede {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem); line-height: 1.45; max-width: 44rem; margin-top: var(--space-lg);
}
.byline { font-family: var(--font-display); font-weight: 600; margin-top: var(--space-md); }
.page-langs { font-family: var(--font-display); margin-top: var(--space-md); }
.page-langs a { display: inline-block; min-height: 24px; padding-block: 2px; }
.notice {
  max-width: var(--max-prose); margin-bottom: var(--space-xl);
  padding: 0.75rem 1rem; border-left: 4px solid var(--color-accent); background: var(--color-surface);
  font-family: var(--font-display); font-size: 1rem;
}
.label {
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--space-lg);
}

/* Film hero: large poster, laurels and title over it */
.film-hero { position: relative; background: #000; overflow: hidden; }
.film-hero__image { width: 100%; height: auto; max-height: 86vh; object-fit: cover; }
.film-hero__laurels {
  position: absolute; top: clamp(1rem, 3vw, 2.5rem); left: 0; right: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 2rem;
  list-style: none; padding: 0 1.5rem;
}
.film-hero__laurels img { height: clamp(56px, 7vw, 96px); width: auto; }
.film-hero__title {
  position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%);
  width: min(72%, 46rem); margin: 0;
}
.film-hero__title img { width: 100%; height: auto; }
.film__laurels { list-style: none; display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; margin-top: var(--space-lg); }
.film__laurels img { height: 80px; width: auto; }
.film__trailer { margin-bottom: var(--space-2xl); max-width: 60rem; }
.film__posters { margin-top: var(--space-3xl); }
.posters { list-style: none; display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr)); }
.posters img { width: 100%; height: auto; border-radius: var(--radius-sm); }
.film__stills { margin-top: var(--space-3xl); }
.stills { list-style: none; display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.stills img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); }
@media (max-width: 700px) {
  .film-hero__image { max-height: none; }
  .film-hero__laurels { position: static; background: #000; padding: 1rem; }
  .film-hero__laurels img { height: 64px; }
  .film-hero__title { bottom: 6%; width: 86%; }
  .film-hero--titled .film-hero__laurels + .film-hero__title { bottom: auto; top: 40%; }
}

/* Film and podcast */
.film__body { display: grid; grid-template-columns: 1fr; gap: var(--space-2xl); }
@media (min-width: 900px) {
  .film__body { grid-template-columns: minmax(14rem, 17rem) 1fr; gap: var(--space-3xl); }
  .film__facts { align-self: start; }
  .film__main { order: 2; }
}
.film__facts { font-family: var(--font-display); font-size: 1rem; line-height: 1.45; }
.film__facts dl { margin-bottom: var(--space-xl); }
.film__facts dl > div { margin-bottom: var(--space-md); }
.film__facts dt { font-weight: 700; }
.film__facts dd { color: var(--color-text-muted); overflow-wrap: anywhere; }
.film__facts a { color: var(--color-text); text-decoration-thickness: 1.5px; }
.film__facts a:hover { color: var(--color-accent); }
/* Sections (--- in the text). A section with an <info> block uses the film layout. */
.prose.prose--split { max-width: none; }
.prose--split > section + section { margin-top: var(--space-3xl); padding-top: var(--space-2xl); border-top: 1px solid var(--color-rule); }
.split-plain { max-width: var(--max-prose); }
.prose--split > .split-plain:first-child p { font-size: 1.3rem; line-height: 1.55; }
.split-plain > * + *, .split .film__main > * + * { margin-top: 1.25em; }
.split .film__main > .captioned, .split .film__main > .specimen, .split .film__main > .inuse { margin-top: var(--space-2xl); margin-bottom: var(--space-2xl); }
.split > h2, .split > h3 { margin-top: 0; margin-bottom: 0; }
.split__subtitle { margin: 0.35rem 0 0; font-family: var(--font-display); font-size: 1.15rem; color: var(--color-text-muted); }
.split > .film__body { margin-top: var(--space-2xl); }
.split .film__main > :first-child { margin-top: 0; }
.split .film__main { max-width: 46rem; }
.prose .split__info .infobox { display: block; padding: 0; border: 0; }
.prose .split__info .infobox picture { margin-bottom: var(--space-lg); }
.prose .split__info .infobox picture img { max-width: 17rem; }
.prose .split__info .infobox dl { display: block; }
.prose .split__info .infobox dl > div { display: block; margin-bottom: var(--space-md); }

/* Type tester (<specimen> tag). */
.specimen { margin: var(--space-xl) 0; }
.specimen__controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); font-family: var(--font-condensed); font-size: 1rem; }
.specimen__controls label { display: inline-flex; align-items: center; gap: var(--space-sm); }
.specimen__range { width: 12rem; min-height: 24px; accent-color: var(--color-accent); }
.specimen__text {
  margin-top: var(--space-md); padding: var(--space-md); min-height: 3em;
  font-family: var(--specimen-font), var(--font-body); font-size: 48px; line-height: 1.5;
  background: var(--color-surface); border: 1px solid var(--color-rule); border-radius: var(--radius-sm); overflow-wrap: anywhere;
}
.specimen__text:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.specimen__waterfall { list-style: none; padding: 0; margin-top: var(--space-lg); }
.prose .specimen__waterfall li + li { margin-top: var(--space-sm); }
.specimen__waterfall li { display: grid; grid-template-columns: 3.5rem 1fr; align-items: baseline; gap: var(--space-md); }
.specimen__size { font-family: var(--font-condensed); font-size: 0.95rem; color: var(--color-text-muted); }
.specimen__line { font-family: var(--specimen-font), var(--font-body); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.specimen figcaption { margin-top: var(--space-sm); font-family: var(--font-condensed); font-size: 1rem; color: var(--color-text-muted); }
@media (max-width: 560px) { .specimen__text { font-size: 32px; } }

/* The font in use (<inuse> tag): simple frames, text set live in the font. */
.inuse { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: var(--space-lg); margin: var(--space-xl) 0; align-items: end; }
.inuse figure { margin: 0; }
.inuse p { font-family: var(--specimen-font), var(--font-body); margin: 0; }
.inuse figcaption { margin-top: var(--space-sm); font-family: var(--font-condensed); font-size: 1rem; color: var(--color-text-muted); }
.inuse__book p { padding: 1.5rem 1.25rem; font-size: 1.15rem; line-height: 1.7; background: #F3E9D6; color: #2A2118; border: 1px solid #D8C8AA; box-shadow: 3px 3px 0 #D8C8AA; }
.inuse__sign p { padding: 1.25rem 1rem; font-size: 3rem; line-height: 1.2; text-align: center; background: #1F4D2E; color: #FFFFFF; border: 5px solid #FFFFFF; outline: 2px solid #1F4D2E; border-radius: 6px; }
.inuse__screen p { width: min(100%, 12rem); margin-inline: auto; padding: 3rem 1rem; font-size: 1.6rem; line-height: 1.4; text-align: center; background: #FFFFFF; color: #1A1714; border: 10px solid #1A1714; border-radius: 1.5rem; }

/* Infobox inside the text (<info> block): an optional image beside label/value rows. */
.prose .infobox {
  display: grid; gap: var(--space-lg); align-items: start;
  padding: var(--space-lg) 0; border-top: 1px solid var(--color-rule); border-bottom: 1px solid var(--color-rule);
}
.prose .infobox--image { grid-template-columns: minmax(8rem, 14rem) 1fr; }
.prose .infobox picture img { width: 100%; height: auto; }
.prose .infobox dl {
  display: grid; grid-template-columns: minmax(7rem, max-content) 1fr; gap: 0.35rem var(--space-lg);
  font-family: var(--font-display); font-size: 1rem; line-height: 1.45;
}
.prose .infobox dl > div { display: contents; }
.prose .infobox dt { font-weight: 700; }
.prose .infobox dd { margin: 0; color: var(--color-text-muted); overflow-wrap: anywhere; }
.prose .infobox a { color: var(--color-text); text-decoration-thickness: 1.5px; }
.prose .infobox a:hover { color: var(--color-accent); }
@media (max-width: 560px) {
  .prose .infobox--image { grid-template-columns: 1fr; }
  .prose .infobox picture img { max-width: 16rem; }
  .prose .infobox dl { grid-template-columns: 1fr; gap: 0; }
  .prose .infobox dd { margin-bottom: var(--space-sm); }
}
.film__links { list-style: none; margin-bottom: var(--space-xl); }
.film__links li { margin-bottom: var(--space-sm); }
.film__links a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 24px; }
.film__links .icon { flex: none; width: 20px; height: 20px; color: var(--color-text); }
.film__links-detail { display: block; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 400; color: var(--color-text-muted); }
.film__links a:has(.film__links-detail) { align-items: flex-start; }

/* Reading text */
.prose { max-width: var(--max-prose); }
.film__main.prose { max-width: 46rem; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 1.75rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.4rem; margin-top: 1.8em; }
.prose h4, .prose h5, .prose h6 { font-size: 1.15rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.35em; }
.prose blockquote { border-left: 3px solid var(--color-rule); padding-left: 1em; color: var(--color-text-muted); }
.prose img { border-radius: var(--radius-sm); }
.prose picture { display: block; }
.prose a img { display: inline-block; }
.prose a:has(img) { display: inline-block; min-width: 24px; min-height: 24px; margin: 0 0.5rem 0.5rem 0; vertical-align: middle; }
.prose a picture { display: inline-block; }
.prose a img { min-height: 24px; }
.prose code { font-family: var(--font-mono); font-size: 0.9em; }
.prose { overflow-wrap: break-word; }
.prose a, .prose code { overflow-wrap: anywhere; }
.prose pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.prose hr { border: 0; border-top: 1px solid var(--color-rule); }

.table-wrap { overflow-x: auto; max-width: 100%; }
.prose table { border-collapse: collapse; font-family: var(--font-condensed); font-size: 1rem; min-width: 60%; }
.prose th, .prose td { border: 1px solid var(--color-rule); padding: 0.4rem 0.6rem; text-align: left; vertical-align: top; }
.prose th { background: var(--color-surface); }

/* People: faces, names and a few words (About page). */
.prose .people {
  list-style: none; padding: 0; margin-top: var(--space-lg);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); gap: var(--space-xl) var(--space-md);
}
.prose .people li + li { margin-top: 0; }
.person { text-align: center; }
.prose .person picture { display: block; }
.prose .person__photo {
  display: block; width: 100%; max-width: 8.5rem; margin: 0 auto; aspect-ratio: 1; object-fit: cover; object-position: center 25%;
  border-radius: 50%; background: var(--color-surface);
}
.prose .person__name { margin-top: var(--space-md); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.prose .person__role { margin-top: 0.2rem; font-family: var(--font-condensed); font-size: 0.95rem; line-height: 1.35; color: var(--color-text-muted); }

/* Embeds */
.embed-video {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--radius-media); overflow: hidden; background: #000;
}
.embed-video iframe, .embed-video .embed-play, .embed-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-play img { width: 100%; height: 100%; object-fit: cover; }
.embed-play__button {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: #1A1714; color: #FAF4EC; border: 2px solid #FAF4EC; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; padding: 0.6rem 1.2rem;
}
.embed-play:hover .embed-play__button, .embed-play:focus-visible .embed-play__button { background: #7A1F0E; }
.embed-audio { width: 100%; height: 140px; }
.embed-spotify { clear: both; padding-top: var(--space-sm); }
.embed-spotify iframe { width: 100%; height: 152px; border: 0; border-radius: 12px; }
/* Podcast landing */
.hub-podcast .prose > p:first-child img { width: min(22rem, 100%); height: auto; }
.hub-podcast h3 { margin-top: 2.5em; }
.hub-podcast h3 a { color: var(--color-text); text-decoration-thickness: 1.5px; }
.hub-podcast h3 a:hover { color: var(--color-accent); }
.embed-audio iframe { width: 100%; height: 100%; border: 0; }
.embed-tool { width: 100%; height: 34rem; border: 1px solid var(--color-rule); border-radius: var(--radius-sm); overflow: hidden; }
.embed-tool iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.embed-file figcaption, .embed-link { font-family: var(--font-condensed); font-size: 1rem; }
.captioned img { display: block; max-width: 100%; height: auto; }
.captioned figcaption, .caption { margin-top: var(--space-sm); font-family: var(--font-condensed); font-size: 1rem; line-height: 1.4; color: var(--color-text-muted); }

/* Lists of pages */
.card-list { list-style: none; display: grid; gap: var(--space-lg); max-width: 52rem; }
.card-list--grid { max-width: none; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.card { border-top: 1px solid var(--color-rule); padding-top: var(--space-md); }
.card__title { font-size: 1.3rem; }
.card__title a { color: var(--color-text); text-decoration-thickness: 1.5px; }
.card__title a:hover { color: var(--color-accent); }
.card__meta { font-family: var(--font-display); font-size: 0.95rem; color: var(--color-text-muted); margin-top: 0.2rem; }
.card__text { font-size: 1.05rem; margin-top: 0.4rem; }

/* ARK and citation */
.ark-permalink { font-family: var(--font-display); font-size: 0.95rem; margin-top: var(--space-md); display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.ark-permalink code { font-family: var(--font-mono); word-break: break-all; }
.ark-permalink + .ark-permalink { margin-top: 0.25rem; }
.copy-btn {
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  color: var(--color-text); background: transparent;
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  padding: 0.35rem 0.7rem; min-height: 2rem; cursor: pointer;
}
.copy-btn:hover { color: var(--color-accent); border-color: var(--color-accent); }
.copy-btn.copied::after { content: " \2713"; }
.citation-block { max-width: var(--max-prose); margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: 1px solid var(--color-rule); }
.citation-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; font-family: var(--font-display); font-size: 0.95rem; }
.citation-style {
  font: inherit; color: var(--color-text); background: var(--color-bg);
  border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 0.3rem 0.5rem; min-height: 2rem;
}
.citation-text {
  font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.5; color: var(--color-text);
  background: var(--color-surface); border: 1px solid var(--color-rule); border-radius: 4px;
  padding: 0.85rem 1rem; white-space: pre-wrap; word-break: break-word;
}

@media (max-width: 700px) {
  body { font-size: 1.0625rem; }
  .site-header { padding: 0.75rem 1rem; }
  .page__wrap, .film__wrap { padding: var(--space-xl) 1rem 0; }
  .page__wrap { --wrap-pad: var(--space-xl); }
  .site-header { padding: 0.5rem 1rem; }
  .site-wrapper { padding-inline: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Home page. Short lines only; see content/hub/index.md. */
:root { --home-tint: #D6F2E8; --home-card: #1C1B19; --home-card-text: #F0EDE9; --home-card-muted: #BDB6AD; --home-card-link: #F2B8A8; --home-card-rule: #3A3632; --home-header-h: 68px; }
:root[data-theme="dark"] { --home-tint: #173A30; --home-card: #24221E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --home-tint: #173A30; --home-card: #24221E; } }
.theme-dark-only { display: none; }
:root[data-theme="dark"] .theme-dark-only { display: inline; }
:root[data-theme="dark"] .theme-light-only { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-dark-only { display: inline; }
  :root:not([data-theme="light"]) .theme-light-only { display: none; }
}
.home__inner { max-width: 1200px; margin-inline: auto; padding-inline: var(--space-lg); }

/* Hero: fills the screen under the header; the scroll link sits at the bottom. */
.home-hero {
  background: var(--home-tint); text-align: center;
  min-height: calc(100vh - var(--home-header-h)); min-height: calc(100svh - var(--home-header-h));
  display: flex; flex-direction: column; justify-content: center;
  padding-block: var(--space-2xl) var(--space-lg);
}
.home-hero__body { flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 999px) { :root { --home-header-h: 60px; } }
.home-hero__kicker { font-family: var(--font-body); font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.4; margin: 0 0 var(--space-sm); }
.home-hero__title { width: 100%; font-weight: 800; font-size: clamp(2.25rem, 6vw, 4.25rem); line-height: 1.04; letter-spacing: -0.02em; max-width: 22ch; margin: 0 auto; }
.home-pillars { list-style: none; padding: 0; margin: clamp(3rem, 10vh, 6rem) auto 0; width: 100%; max-width: 1000px; display: grid; gap: var(--space-xl); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); text-align: left; }
.home-pillars__name { font-size: 1.4rem; margin: 0 0 var(--space-sm); }
.home-pillars p { margin: 0; }
.home-hero__scroll { margin: var(--space-2xl) 0 0; }
.home-hero__scroll a {
  display: inline-flex; flex-direction: column; align-items: center; gap: var(--space-sm); min-height: 44px;
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-text-muted); text-decoration: none;
}
.home-hero__scroll a:hover, .home-hero__scroll a:focus-visible { color: var(--color-accent); }
.home-hero__scroll svg { color: var(--color-accent); }
@media (prefers-reduced-motion: no-preference) {
  .home-hero__scroll svg { animation: home-float 2.2s ease-in-out infinite; }
  @keyframes home-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
}

.home-numbers { scroll-margin-top: var(--home-header-h); }
.home-numbers__list { list-style: none; margin-block: var(--space-2xl); padding-block: var(--space-xl); border-block: 1px solid var(--color-rule); display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.home-numbers__list li { padding: var(--space-sm) var(--space-lg); }
.home-numbers__list li + li { border-left: 1px solid var(--color-rule); }
.home-numbers a { display: block; color: var(--color-text); text-decoration: none; }
.home-numbers a:hover .home-numbers__label, .home-numbers a:focus-visible .home-numbers__label { text-decoration: underline; }
.home-numbers__value { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 5vw, 3.4rem); line-height: 1; }
.home-numbers__label { display: block; margin-top: var(--space-sm); }

.home-rule { width: 60%; max-width: 700px; margin: 0 auto; border: 0; border-top: 2px solid var(--color-rule); }
.home-row { padding-block: var(--space-3xl); }
.home-row__grid { display: grid; gap: var(--space-2xl); align-items: center; grid-template-columns: 5fr 7fr; }
.home-row__text > p:not(.eyebrow) { max-width: 40ch; }
.home-row__title { font-size: 1.75rem; margin: 0 0 var(--space-md); }
.home-row__title a { color: var(--color-text); text-decoration: none; }
.home-row__title a:hover, .home-row__title a:focus-visible { text-decoration: underline; }
.home-row__logo { margin: 0 0 var(--space-md); }
.home-row__logo img { height: 4rem; width: auto; display: block; }
.home-row__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--space-md); margin-bottom: var(--space-xl); }
.home-row__head p { max-width: 50ch; margin: 0; }
.home-more { margin-top: var(--space-lg); }
.home-more a { font-family: var(--font-display); font-weight: 500; }

/* Cards beside each initiative. */
.home-card { border-radius: var(--radius-sm); padding: clamp(1.5rem, 4vw, 3rem); }
.home-card p { margin: 0; }
.home-card--dark { background: var(--home-card); color: var(--home-card-text); box-shadow: 0 1px 2px rgb(0 0 0 / 0.08); }
.home-card--dark a { color: var(--home-card-link); }
.home-card--light { background: var(--color-surface); border: 1px solid var(--color-rule); }
.home-card__label { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--home-card-muted); }
.home-card__label--gap { margin-top: var(--space-xl) !important; }
.home-card--light .home-card__label { color: var(--color-text-muted); }
.home-card__rows { list-style: none; padding: 0; margin: var(--space-md) 0 0; }
.home-card__rows li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-xs) var(--space-md); padding-block: var(--space-md); border-top: 1px solid var(--home-card-rule); }
.home-card__name { line-height: 1.3; }
.home-card__meta { font-family: var(--font-mono); font-size: 0.8rem; color: var(--home-card-muted); }
.home-card__paper { line-height: 1.4; margin-top: var(--space-md) !important; }
.home-card__paper span { font-family: var(--font-body); font-size: 0.85rem; color: var(--home-card-muted); }
.home-card__stats { list-style: none; padding: 0; margin: var(--space-xl) 0; display: grid; gap: var(--space-lg); grid-template-columns: repeat(3, 1fr); }
.home-card__stat-label { display: block; font-size: 0.8rem; color: var(--home-card-muted); }
.home-card__value { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; margin-top: var(--space-xs); }
.home-card__head, .home-card__foot { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); }
.home-card__head { padding-bottom: var(--space-lg); border-bottom: 1px solid var(--color-rule); }
.home-chip { font-family: var(--font-mono); font-size: 0.8rem; color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 10%, transparent); padding: 0.15rem 0.5rem; border-radius: var(--radius-sm); }
.home-card__image { display: block; width: 100%; max-width: 420px; height: auto; margin: var(--space-xl) auto; border-radius: var(--radius-sm); }
.home-card__foot { padding-top: var(--space-lg); border-top: 1px solid var(--color-rule); font-size: 0.85rem; color: var(--color-text-muted); }
.home-card__foot a { font-family: var(--font-display); font-weight: 500; }

.home-films__still { margin: 0; }
.home-films__still img { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: cover; border-radius: var(--radius-media); }
.home-films__list { list-style: none; padding: 0; margin: var(--space-xl) 0 0; display: grid; gap: var(--space-sm) var(--space-xl); grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); font-family: var(--font-display); }
.home-quotes { margin-top: var(--space-lg); }
@media (min-width: 800px) { .home-quotes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 800px) {
  .home-row__grid { grid-template-columns: 1fr; }
  .home-numbers__list li + li { border-left: 0; border-top: 1px solid var(--color-rule); }
}

/* OpenSpeaks logo: black paths, turned white in dark mode. */
:root[data-theme="dark"] img[src$="/logos/openspeaks.svg"] { filter: invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) img[src$="/logos/openspeaks.svg"] { filter: invert(1); } }
.eyebrow a { color: inherit; }
