/* PLAT-427 — the public site's one stylesheet (ADR-059). No page carries a
   <style> element or a style attribute; everything is here. */

@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/spectral-latin-500-normal.woff2') format('woff2');
}

:root {
  --bg: #fafaf7;
  --fg: #1a1a1a;
  --muted: #555;
  --accent: #2a4a3a;
  --rule: #d4d4d0;
  --gutter: 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 1.0625rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

/* Long unbroken strings (the SHA-256, file names, URLs) wrap at 320 px. */
code,
.page a {
  overflow-wrap: anywhere;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

/* The wordmark and the headline are the only Spectral text. The wordmark
   wraps only between words. */
.wordmark,
.headline {
  font-family: 'Spectral', Georgia, serif;
  font-weight: 500;
  color: var(--accent);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

/* The front page's hero. The text sits on the artwork's flat left field, never
   over the V; below 720 px it stacks above the artwork. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 1920px;
  margin: 0 auto;
  overflow: hidden;
}

.hero-text {
  padding: 2.5rem var(--gutter) 1rem;
}

.hero .wordmark {
  margin: 0;
  font-size: 2.25rem;
  line-height: 1.15;
}

.headline {
  margin: 0.75rem 0 0;
  font-size: 1.375rem;
  line-height: 1.3;
}

/* Below 720 px the artwork is drawn at 170% of the column, cropped to the V's
   band, and shifted so the V (centred at 76.9% of the artwork's width) sits in
   the middle of the column, about 45% of it wide. The artwork's width is
   capped at 40rem (a V of about 10.5rem), so a wide window zoomed past the
   breakpoint does not draw it larger than a phone does. The centring is a
   transform, whose percentage is of the artwork's own width: WebKit under
   page zoom miscomputes a length inside min() in a margin calc(). The
   overflow is the page background and is clipped by the hero. */
.hero-art {
  display: block;
  width: 170%;
  max-width: 40rem;
  aspect-ratio: 170 / 52;
  height: auto;
  margin-left: 50%;
  transform: translateX(-76.9%);
  object-fit: cover;
  object-position: center;
}

@media (min-width: 720px) {
  .hero-text,
  .hero-art {
    grid-area: 1 / 1;
  }

  .hero-text {
    align-self: center;
    z-index: 1;
    max-width: 56%;
    padding: 0 0 0 5%;
  }

  .hero .wordmark {
    font-size: clamp(2.25rem, 4.4vw, 5rem);
  }

  .headline {
    font-size: clamp(1.25rem, 1.9vw, 2.125rem);
  }

  /* The artwork's field is the page background, so it shrinks to the capped
     height, pinned right, with no visible edge; the V stops growing with the
     window. */
  .hero-art {
    width: 100%;
    max-width: none;
    aspect-ratio: auto;
    margin-left: 0;
    transform: none;
    height: 24rem;
    object-fit: contain;
    object-position: right center;
  }
}

/* Body text. */
.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 3rem;
}

.roster h2 {
  margin: 2.5rem 0 0.5rem;
  font-size: 1.375rem;
}

.persona {
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
}

.persona h3 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.persona p {
  margin: 0.5rem 0;
}

.door {
  font-weight: 600;
}

/* PLAT-487 — a persona's links, side by side: on the front page its about page
   then its door, and on an about page the two ways in. The list keeps its role
   for VoiceOver, as the Perspectives index does. */
.links {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

/* PLAT-487 — an about page's cost section follows the persona's own words; a
   rule keeps it from reading as part of the last of them. */
.cost {
  margin-top: 2.5rem;
  border-top: 1px solid var(--rule);
}

.cost + .links {
  margin-top: 1.5rem;
}

/* The Terms and Credits pages: the wordmark as a link home. */
.site-header {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 0;
}

.site-header .wordmark {
  font-size: 1.5rem;
  line-height: 1.2;
  text-decoration: none;
}

.site-header .wordmark:hover {
  text-decoration: underline;
}

.document h1 {
  font-size: 1.875rem;
  line-height: 1.25;
  margin: 2.5rem 0 1rem;
}

.document h2 {
  font-size: 1.375rem;
  line-height: 1.3;
  margin: 2rem 0 0.75rem;
}

.publication-note,
.exact-text {
  color: var(--muted);
}

/* The note follows the agreement; a rule keeps it from reading as part of the
   agreement's last section. */
.publication-note {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer ul {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 2.5rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

/* PLAT-474 — the Perspectives index: one item per entry, its question as the
   link and its note beneath. The list keeps its role for VoiceOver, which
   drops it from a list styled without markers unless the role is stated. */
.entries {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.entries li {
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
}

.entries a {
  font-size: 1.25rem;
  font-weight: 600;
}

.entries p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

/* A video entry. The video fills the column up to 22.5rem wide, its height
   following from its width and height attributes, so a portrait video is at
   most 40rem tall and fits a desktop window; on a short window its height is
   capped and the frame letterboxes rather than overflow. */
.entry-video {
  display: block;
  width: 100%;
  max-width: 22.5rem;
  height: auto;
  max-height: 85vh;
  margin: 1.5rem auto;
}

.transcript,
.revisions {
  margin-top: 2.5rem;
}

.revisions {
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}

.revisions ul {
  padding-left: 1.25rem;
}
