@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/playfair-display-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/playfair-display-italic-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-italic-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/manrope-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Allura';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/allura-latin.woff') format('woff');
}
/* One display family, two sources. local() is tried first, so Apple devices
   render their installed Marker Felt and download nothing; every other
   platform falls through to the self-hosted Permanent Marker (Apache 2.0).
   Marker Felt is never redistributed — the browser only uses a copy the
   visitor already owns. Declare this as ONE family: two competing families
   let the cascade pick either one, which is how the headline ended up in
   the wrong face on 2026-09-05. */
@font-face {
  font-family: 'CVLTIVAR Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Marker Felt'),
       local('MarkerFelt-Thin'),
       local('Marker Felt Thin'),
       url('assets/fonts/permanent-marker-latin.woff2') format('woff2');
}

:root {
  --font-display: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-ui: 'Manrope', system-ui, sans-serif;
  --display: 'CVLTIVAR Display', 'Marker Felt', 'Segoe Print', cursive;
  --paper: #fff7e4;
  --paper-deep: #f6e9cd;
  --oyster: #fffaf0;
  --ink: #26180f;
  --muted: #86715c;
  --coral: #e85d4d;
  --coral-light: #f08080;
  --coral-deep: #c0392b;
  --burnt: #f35a5a;
  --ochre: #f35a5a;
  --silver: #d9cdb4;
  --line: rgba(101, 63, 27, 0.22);
  --line-strong: rgba(101, 63, 27, 0.35);
  --surface: rgba(255, 250, 240, 0.84);
  --shadow: 0 24px 70px rgba(49, 30, 12, 0.15);
  --header-h: 84px;
  color-scheme: light;
}

html[data-theme='dark'] {
  --paper: #1b120c;
  --paper-deep: #281a11;
  --oyster: #211610;
  --ink: #f7efdd;
  --muted: #bda88f;
  --coral: #e85d4d;
  --coral-light: #f08080;
  --coral-deep: #c0392b;
  --burnt: #f35a5a;
  --ochre: #f77070;
  --silver: #7a6f60;
  --line: rgba(247, 239, 221, 0.18);
  --line-strong: rgba(247, 239, 221, 0.28);
  --surface: rgba(30, 25, 21, 0.87);
  --shadow: 0 28px 75px rgba(0, 0, 0, 0.38);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  html[data-theme='auto'] {
    --paper: #1b120c;
    --paper-deep: #281a11;
    --oyster: #211610;
    --ink: #f7efdd;
    --muted: #bda88f;
    --coral: #e85d4d;
    --coral-light: #f08080;
    --coral-deep: #c0392b;
    --burnt: #f35a5a;
    --ochre: #f77070;
    --silver: #7a6f60;
    --line: rgba(247, 239, 221, 0.18);
    --surface: rgba(30, 25, 21, 0.87);
    --shadow: 0 28px 75px rgba(0, 0, 0, 0.38);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 18px;
  line-height: 1.6;
  transition: background-color 280ms ease, color 280ms ease;
}
button, input { font: inherit; }
a { color: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
::selection { color: var(--oyster); background: var(--burnt); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr minmax(180px, 300px) 1fr;
  align-items: center;
  padding: 0 34px;
  border-bottom: 1px solid color-mix(in srgb, var(--coral) 48%, var(--line));
  background: color-mix(in srgb, var(--paper) 91%, transparent);
  backdrop-filter: blur(18px) saturate(120%);
}

.brand {
  position: relative;
  justify-self: center;
  width: min(30vw, 286px);
  aspect-ratio: 4 / 1;
}
.brand-mark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 200ms ease;
}
.brand-mark--ink { opacity: 1; }
.brand-mark--bone { opacity: 0; }
html[data-theme='dark'] .brand-mark--ink { opacity: 0; }
html[data-theme='dark'] .brand-mark--bone { opacity: 1; }
@media (prefers-color-scheme: dark) {
  html[data-theme='auto'] .brand-mark--ink { opacity: 0; }
  html[data-theme='auto'] .brand-mark--bone { opacity: 1; }
}

.nav-trigger,
.theme-toggle,
.site-menu a,
.platform-list button,
.footer-links button,
.footer-links a {
  border: 0;
  background: none;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 13px;
  font-weight: 600;
}

.nav-trigger {
  justify-self: start;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  cursor: pointer;
}

.theme-toggle {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
}
.theme-toggle__symbol { font-size: 19px; color: var(--coral); }

.site-menu {
  position: fixed;
  inset: var(--header-h) auto auto 0;
  width: min(420px, 100vw);
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 48px 34px;
  background: var(--oyster);
  border-right: 1px solid var(--line);
  transform: translateX(-105%);
  transition: transform 280ms cubic-bezier(.22,.61,.36,1);
}
.site-menu.is-open { transform: translateX(0); }
.site-menu a {
  display: flex;
  align-items: center;
  min-height: 66px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: clamp(31px, 4.08vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: none;
}
.site-menu a:hover { color: var(--coral); }

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--header-h) + 80px) 24px 60px;
  isolation: isolate;
}
.hero__texture {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(rgba(242, 234, 220, 0.18), rgba(242, 234, 220, 0.45)), url('assets/evidence-wall.png');
  background-size: cover;
  background-position: center;
  filter: saturate(78%);
  transform: scale(1.01);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at center, transparent 30%, rgba(80, 44, 14, 0.12) 100%);
  pointer-events: none;
}
html[data-theme='dark'] .hero__texture { filter: brightness(0.27) sepia(0.22) saturate(80%); }
html[data-theme='dark'] .hero::after { background: rgba(10, 8, 6, 0.18); }
@media (prefers-color-scheme: dark) {
  html[data-theme='auto'] .hero__texture { filter: brightness(0.27) sepia(0.22) saturate(80%); }
  html[data-theme='auto'] .hero::after { background: rgba(10, 8, 6, 0.18); }
}

.hero__eyebrow,
.kicker,
.section-label,
.entry-number,
.awaiting {
  text-transform: uppercase;
  letter-spacing: 0.19em;
  font-size: 13px;
  font-weight: 600;
}
.hero__eyebrow { margin-bottom: clamp(34px, 4.5vw, 62px); color: var(--burnt); }

.manifesto {
  width: 100%;
  max-width: 1220px;
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 400;
  text-wrap: balance;
  text-shadow: 0 1px rgba(255,255,255,0.3);
}
.decree__declaration {
  max-width: 1240px;
  margin: 0 auto;
  color: #f35a5a;
  font-family: var(--display);
  font-size: clamp(95px, 11.47vw, 178px);
  font-weight: 400;
  line-height: .92;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255,255,255,.3), 0 8px 30px rgba(87,43,15,.08);
}
.decree__declaration span { display: block; }
.decree__declaration span:last-child { margin-top: .06em; }
html[data-theme='dark'] .decree__declaration { color: #f35a5a; }
@media (prefers-color-scheme: dark) {
  html[data-theme='auto'] .decree__declaration { color: #f35a5a; }
}
.decree__testimony {
  position: relative;
  max-width: 860px;
  margin: clamp(36px, 4.8vw, 64px) auto 0;
  padding-top: clamp(30px, 3.5vw, 46px);
  font-size: clamp(26px, 2.35vw, 37px);
  line-height: 1.04;
  letter-spacing: -.03em;
  opacity: .88;
}
.decree__testimony::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(380px, 46vw);
  height: 1px;
  background: color-mix(in srgb, var(--coral) 58%, transparent);
  transform: translateX(-50%);
}
.decree__testimony p { margin: .2em 0; }
.decree__seal {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: clamp(28px, 3.2vw, 42px);
  color: var(--coral);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  line-height: 1.4;
  text-transform: uppercase;
}
.decree__seal span:first-child,
.decree__seal span:last-child { font-size: 8px; }
.enter-link {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: clamp(38px, 5vw, 68px);
  padding: 12px 0;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 13px;
  font-weight: 600;
}
.enter-link:hover { color: var(--coral); }

.platforms {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 3fr;
  align-items: center;
  gap: 30px;
  padding: 26px 5vw;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--oyster);
}
.section-label { color: var(--muted); }
.platform-list {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 26px;
}
.platform-list button {
  min-height: 44px;
  padding: 0;
  cursor: pointer;
  border-bottom: 1px solid transparent;
}
.platform-list button:hover { color: var(--coral); border-color: var(--coral); }

.evidence-section { padding: clamp(88px, 12vw, 180px) 5vw; }
.section-heading { max-width: 850px; }
.latest .section-heading { max-width: none; }
#latest-title { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: 0; margin: 0; }
.kicker { margin: 0 0 22px; color: var(--coral); }
.section-heading h2,
.witness h2,
.destination-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(51px, 7.34vw, 109px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.section-intro {
  max-width: 650px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 1.43vw, 22px);
}
.latest .section-intro {
  max-width: 900px;
  color: var(--ochre);
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 53px);
  line-height: 1.12;
}

.media-stage { margin: clamp(62px, 8vw, 120px) 0 0; }
.media-stage__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #171310;
  color: #fbf5e6;
  box-shadow: var(--shadow);
}
.media-stage__screen::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url('assets/evidence-wall.png');
  background-size: cover;
  filter: grayscale(1) brightness(0.3) sepia(0.4);
  pointer-events: none;
}
.media-stage__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  place-items: center;
  padding: 28px;
}
.entry-number { align-self: start; justify-self: start; color: var(--coral-light); }
.play-seal {
  display: grid;
  place-items: center;
  width: clamp(72px, 9vw, 124px);
  aspect-ratio: 1;
  padding-left: 0.25em;
  border: 1px solid rgba(242,234,220,.6);
  border-radius: 50%;
  color: var(--paper-deep);
  font-size: clamp(19px, 2.04vw, 31px);
}
.awaiting { align-self: end; color: rgba(242,234,220,.74); }
.media-stage__caption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.principle-room {
  min-height: min(58svh, 620px);
  display: grid;
  place-items: center;
  padding: clamp(48px, 7vw, 80px) 5vw;
  background-image: linear-gradient(rgba(51,29,12,.35), rgba(51,29,12,.44)), url('assets/evidence-wall.png');
  background-size: cover;
  background-position: center;
}
.room-plaque {
  width: min(920px, 90vw);
  padding: clamp(34px, 5vw, 72px) clamp(28px, 7vw, 104px);
  text-align: center;
  background: rgba(248, 241, 229, 0.92);
  border: 1px solid rgba(94,58,20,.3);
  box-shadow: 0 38px 90px rgba(32, 18, 8, .22);
  color: #201a16;
}
.rotating-principle {
  min-height: 2.1em;
  display: grid;
  place-items: center;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 5.71vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-wrap: balance;
  transition: opacity 180ms ease, transform 180ms ease;
}
.rotating-principle.is-changing { opacity: 0; transform: translateY(8px); }
.principle-controls { display: flex; justify-content: center; gap: 13px; margin-top: 28px; }
.principle-controls button {
  width: 44px;
  height: 44px;
  padding: 19px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.principle-controls button::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9c8e7f;
}
.principle-controls button.is-active::after { background: var(--burnt); transform: scale(1.5); }

.archive { background: var(--oyster); }
.archive__top {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 7vw;
}
.date-index {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.date-index__month { border-bottom: 1px solid var(--line); }
.date-index__summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: color 180ms ease;
}
/* Replace the native triangle with a marker that rotates when open. */
.date-index__summary::-webkit-details-marker { display: none; }
.date-index__summary::after {
  content: '+';
  color: var(--gold);
  font-size: 16px;
  line-height: 1;
  transition: transform 220ms ease;
}
.date-index__month[open] > .date-index__summary::after { content: '−'; }
.date-index__summary:hover { color: var(--ink); }
.date-index__month[open] > .date-index__summary { color: var(--ink); }
.date-index__entries {
  display: flex;
  flex-direction: column;
  padding-bottom: 8px;
}
.date-index__entry {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 0 11px 16px;
  border-left: 1px solid var(--line);
  margin-left: 3px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease;
}
.date-index__entry:hover { border-left-color: var(--coral); color: var(--coral); }
.date-index__day {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.date-index__entry:hover .date-index__day { color: var(--coral); }
.date-index__title { font-size: 15px; line-height: 1.3; }
@media (prefers-reduced-motion: reduce) {
  .date-index__summary,
  .date-index__summary::after,
  .date-index__entry { transition: none; }
}
.empty-ledger {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  margin-top: 100px;
  color: var(--muted);
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
}
.ledger-rule { height: 1px; background: var(--line); }

.witness {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10vw;
  padding: clamp(88px, 12vw, 170px) 5vw;
  background: var(--ink);
  color: var(--paper);
}
.witness h2 { font-size: clamp(51px, 6.12vw, 89px); }
.witness > div > p:last-child { max-width: 580px; color: var(--paper-deep); }
.witness-form { align-self: center; }
.witness-form label {
  display: block;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 13px;
}
.witness-form__row { display: grid; grid-template-columns: 1fr auto; }
.witness-form input,
.witness-form button {
  min-height: 58px;
  border: 1px solid rgba(242,234,220,.4);
}
.witness-form input {
  min-width: 0;
  padding: 0 18px;
  background: transparent;
  color: var(--paper);
  border-right: 0;
}
.witness-form button {
  padding: 0 22px;
  background: var(--coral-light);
  color: #171310;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.form-note { font-size: 14px; color: var(--paper-deep); }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  padding: 34px 5vw;
  border-top: 1px solid var(--line);
  background: var(--paper);
  font-size: 14px;
}
.footer-brand { font-family: var(--font-display); font-size: 26px; letter-spacing: .1em; text-decoration: none; }
.site-footer p { color: var(--muted); text-align: center; }
.footer-links { justify-self: end; display: flex; gap: 22px; }
.footer-links button, .footer-links a { padding: 10px 0; cursor: pointer; text-decoration: none; }
.footer-links button:hover, .footer-links a:hover { color: var(--coral); }

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  max-width: min(380px, calc(100vw - 48px));
  padding: 15px 18px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
  transform: translateY(140%);
  opacity: 0;
  transition: 220ms ease;
  font-size: 15px;
}
.toast.is-visible { transform: translateY(0); opacity: 1; }

/* Studio */
.studio-body { min-height: 100vh; background: var(--oyster); }
.studio-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--oyster) 94%, transparent);
  backdrop-filter: blur(16px);
}
.studio-header__brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.studio-header__brand img { width: 150px; }
html[data-theme='dark'] .studio-header__brand img { filter: invert(1) sepia(.12) brightness(1.15); }
@media (prefers-color-scheme: dark) {
  html[data-theme='auto'] .studio-header__brand img { filter: invert(1) sepia(.12) brightness(1.15); }
}
.studio-header__brand span { padding-left: 14px; border-left: 1px solid var(--line); font-size: 14px; text-transform: uppercase; letter-spacing: .15em; }
.preview-badge { padding: 8px 12px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.studio-header .theme-toggle { justify-self: end; }
.studio-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: calc(100vh - 72px); }
.studio-nav {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  padding: 44px 24px;
  border-right: 1px solid var(--line);
  background: var(--paper);
}
.studio-nav__label { margin: 0 0 18px; color: var(--coral); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; }
.studio-nav a { padding: 13px 12px; color: var(--muted); text-decoration: none; font-size: 15px; }
.studio-nav a.is-active { background: var(--oyster); color: var(--ink); }
.studio-nav a:hover { color: var(--coral); }
.studio-nav .back-public { margin-top: auto; }
.studio-workspace { padding: clamp(48px, 6vw, 90px); }
.studio-title-row { display: flex; justify-content: space-between; gap: 40px; align-items: end; }
.studio-title-row h1 { margin: 0; font-family: var(--font-display); font-size: clamp(51px, 6.12vw, 88px); line-height: .95; letter-spacing: -.04em; font-weight: 500; }
.draft-state { color: var(--muted); font-size: 14px; }
.creation-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 62px; background: var(--line); border: 1px solid var(--line); }
.creation-grid button {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  border: 0;
  background: var(--paper);
  text-align: left;
  cursor: pointer;
}
.creation-grid button:hover { background: var(--paper-deep); }
.creation-grid span { color: var(--coral); font-size: 13px; letter-spacing: .14em; }
.creation-grid strong { margin-top: auto; font-family: var(--font-display); font-size: 37px; font-weight: 500; }
.creation-grid small { color: var(--muted); }
.destination-panel { margin-top: 100px; }
.destination-panel__heading { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8vw; align-items: end; }
.destination-panel h2 { font-size: clamp(42px, 5.1vw, 71px); }
.destination-panel__heading > p { color: var(--muted); font-size: 15px; }
.destination-list { margin-top: 50px; border-top: 1px solid var(--line); }
.destination-list label { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 16px; min-height: 80px; border-bottom: 1px solid var(--line); }
.destination-list input { width: 17px; height: 17px; accent-color: var(--coral); }
.destination-list span { display: flex; align-items: baseline; gap: 16px; }
.destination-list small { color: var(--muted); }
.status { font-style: normal; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.status--home { color: var(--coral); }
.studio-boundary { margin-top: 70px; padding: 24px; border: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.studio-boundary p { margin: 0; }

/* Published evidence */
.published-entries { display: grid; margin-top: 72px; border-top: 1px solid var(--line-strong); }
.published-entry { position: relative; display: grid; grid-template-columns: clamp(150px, 12vw, 220px) minmax(0, 1fr) 90px; column-gap: clamp(36px, 4vw, 64px); padding: clamp(42px, 7vw, 96px) 0; border-bottom: 1px solid var(--line-strong); }
.published-entry__meta { grid-column: 1; grid-row: 1 / span 5; display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.published-entry h3 { grid-column: 2; margin: 0; font-family: var(--display); font-size: clamp(54px, 6.12vw, 98px); font-weight: 400; line-height: 1.08; letter-spacing: 0; }
.published-entry__excerpt { grid-column: 2; margin: 22px 0 0; color: var(--ochre); font-family: var(--display); font-size: clamp(34px, 4vw, 53px); line-height: 1.12; }
.published-entry__media { grid-column: 2; display: block; max-width: 100%; width: auto; height: auto; max-height: 720px; margin: 34px auto 0; object-fit: contain; background: #18130f; }
.published-entry__media-link { display: inline-flex; width: auto; justify-self: start; padding: 16px 0; color: var(--coral-deep); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.published-entry__body { grid-column: 2; margin: 34px 0 0; color: var(--ink); font-family: var(--font-display); font-size: clamp(24px, 2.24vw, 33px); line-height: 1.5; white-space: pre-wrap; }
.published-entry__number { position: absolute; right: 0; top: clamp(42px, 7vw, 96px); color: var(--coral-deep); font-size: 11px; letter-spacing: .14em; }
.media-stage__published-media { position: relative; z-index: 1; width: 100%; height: 100%; min-height: 440px; object-fit: contain; background: #171310; }
.media-stage__published-record { min-height: 440px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 34px; background: radial-gradient(circle at center, rgba(167,109,13,.16), transparent 45%), #17120f; color: #f4ead9; text-align: left; }
.media-stage__published-record strong { max-width: 900px; font-family: var(--display); font-size: clamp(51px, 7.14vw, 110px); font-weight: 400; line-height: 1.05; letter-spacing: 0; }

/* Entry page (permalink) */
.entry-page { max-width: 1200px; margin: 0 auto; padding: calc(var(--header-h) + 80px) clamp(24px, 4vw, 60px) 100px; }
.entry-page__header { text-align: left; margin-bottom: clamp(48px, 7vw, 90px); }
.entry-page__meta { display: flex; justify-content: flex-start; gap: 24px; margin-bottom: 24px; color: var(--muted); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.entry-page__type { color: var(--coral); }
.entry-page__title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(51px, 6.12vw, 98px); line-height: 1.08; letter-spacing: 0; text-wrap: balance; }
.entry-page__excerpt { margin: 22px 0 0; color: var(--ochre); font-family: var(--display); font-size: clamp(34px, 4vw, 53px); line-height: 1.12; }
.entry-page__media { margin: clamp(48px, 7vw, 90px) 0 0; max-width: 100%; }
.entry-page__media-image { display: block; margin: 0 auto; max-width: 100%; height: auto; max-height: 720px; object-fit: contain; background: #18130f; box-shadow: var(--shadow); }
.entry-page__media-video { display: block; margin: 0 auto; max-width: 100%; max-height: 720px; background: #171310; box-shadow: var(--shadow); }
.entry-page__media-link { display: inline-flex; padding: 16px 0; color: var(--coral-deep); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.entry-page__body { margin: clamp(48px, 7vw, 90px) 0 0; color: var(--ink); font-family: var(--font-display); font-size: clamp(24px, 2.24vw, 33px); line-height: 1.5; white-space: pre-wrap; }
.entry-page__footer { margin-top: clamp(60px, 9vw, 120px); padding-top: 30px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 15px; }
.entry-page__footer a { color: var(--coral); text-decoration: none; border-bottom: 1px solid transparent; }
.entry-page__footer a:hover { border-color: var(--coral); }

/* Broadcast Matrix */
.broadcast-workspace { max-width: 1500px; width: 100%; }
.prototype-warning {
  margin-bottom: 48px;
  padding: 14px 18px;
  border: 1px solid color-mix(in srgb, var(--coral) 55%, var(--line));
  background: color-mix(in srgb, var(--paper-deep) 44%, transparent);
  color: var(--muted);
  font-size: 14px;
}
.prototype-warning strong { color: var(--ink); }
.matrix-title-row { align-items: end; }
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 64px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.workflow-steps button {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.workflow-steps button:last-child { border-right: 0; }
.workflow-steps button span { color: var(--gold); font-size: 12px; }
.workflow-steps button.is-active { background: var(--paper); color: var(--ink); }
.workflow-panel { padding: clamp(58px, 7vw, 104px) 0 20px; }
.workflow-panel[hidden] { display: none; }
.panel-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: 8vw;
  align-items: end;
}
.panel-heading h2 {
  max-width: 820px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 6.12vw, 85px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .93;
  text-wrap: balance;
}
.panel-heading > p { margin: 0; color: var(--muted); font-size: 15px; }
.matrix-creation-grid button.is-selected {
  position: relative;
  background: var(--paper-deep);
  box-shadow: inset 0 -3px 0 var(--gold);
}
.matrix-creation-grid button.is-selected::after {
  content: 'Selected';
  position: absolute;
  top: 22px;
  right: 22px;
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.entry-fields {
  display: grid;
  grid-template-columns: 1.2fr .7fr 1.1fr;
  gap: 1px;
  margin-top: 34px;
  border: 1px solid var(--line);
  background: var(--line);
}
.entry-fields label,
.source-media-placeholder {
  min-height: 154px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  background: var(--paper);
}
.entry-fields label > span,
.source-media-placeholder > span,
.adapt-fields label > span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.entry-fields input,
.adapt-fields textarea,
.adapt-fields select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}
.entry-fields input { min-height: 48px; font-family: var(--font-display); font-size: 26px; }
.source-media-placeholder strong { margin-top: auto; font-family: var(--font-display); font-size: 27px; font-weight: 500; }
.source-media-placeholder small { color: var(--muted); }
.workflow-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.workflow-actions--end { justify-content: flex-end; }
.matrix-button {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.matrix-button:hover { border-color: var(--gold); color: var(--gold); }
.matrix-button--primary { border-color: var(--gold); background: var(--gold); color: var(--oyster); }
.matrix-button--primary:hover { background: var(--burnt); color: var(--oyster); }
.matrix-legend { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 52px; color: var(--muted); font-size: 13px; }
.matrix-legend span { display: flex; align-items: center; gap: 8px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.legend-dot--home { background: var(--gold); }
.legend-dot--assisted { background: var(--saffron); }
.legend-dot--approval { background: var(--burnt); }
.legend-dot--limited { background: var(--silver); }
.matrix-destinations label { cursor: pointer; }
.matrix-destinations label:hover { background: color-mix(in srgb, var(--paper-deep) 38%, transparent); }
.matrix-destinations label.is-incompatible { opacity: .38; cursor: not-allowed; }
.matrix-destinations label.is-selected { background: color-mix(in srgb, var(--paper-deep) 52%, transparent); }
.matrix-destinations input { accent-color: var(--gold); }
.status--assisted { color: var(--saffron); }
.status--approval { color: var(--burnt); }
.status--limited { color: var(--muted); }
.adapt-preview {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 7vw;
  margin-top: 74px;
  padding: 38px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.adapt-preview h3,
.preflight-card h3,
.ledger-heading h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 3.57vw, 51px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1;
}
.adapt-fields { display: grid; gap: 24px; }
.adapt-fields label { display: grid; gap: 10px; }
.adapt-fields textarea { resize: vertical; padding: 10px 0; line-height: 1.5; }
.adapt-fields select { min-height: 44px; }
.canonical-summary {
  margin-top: 52px;
  padding: 28px;
  border: 1px solid color-mix(in srgb, var(--coral) 55%, var(--line));
  background: var(--paper);
}
.canonical-summary span { color: var(--coral); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.canonical-summary h3 { margin: 10px 0 6px; font-family: var(--font-display); font-size: clamp(37px, 4.08vw, 61px); font-weight: 500; line-height: 1; }
.canonical-summary p { margin: 0; color: var(--muted); font-size: 14px; }
.destination-previews {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  border: 1px solid var(--line);
  background: var(--line);
}
.destination-preview {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: var(--paper);
}
.destination-preview__top { display: flex; justify-content: space-between; gap: 16px; }
.destination-preview__top strong { font-family: var(--font-display); font-size: 32px; font-weight: 500; }
.destination-preview__mode { color: var(--coral); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.destination-preview p { color: var(--muted); font-size: 15px; }
.destination-preview footer { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.destination-preview:last-child:nth-child(odd) { grid-column: 1 / -1; }
.preflight-card { margin-top: 52px; padding: clamp(30px, 5vw, 58px); border: 1px solid var(--line); background: var(--paper); }
.preflight-card dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 38px 0; background: var(--line); border: 1px solid var(--line); }
.preflight-card dl div { min-height: 106px; padding: 18px; background: var(--oyster); }
.preflight-card dt { color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.preflight-card dd { margin: 14px 0 0; font-family: var(--font-display); font-size: 24px; }
.publication-ledger { margin-top: 72px; }
.ledger-heading { display: flex; justify-content: space-between; gap: 30px; align-items: end; }
.ledger-heading > span { color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.ledger-table { margin-top: 28px; border-top: 1px solid var(--line); }
.ledger-row { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 24px; align-items: center; min-height: 74px; border-bottom: 1px solid var(--line); }
.ledger-row strong { font-family: var(--font-display); font-size: 24px; font-weight: 500; }
.ledger-row span { color: var(--muted); font-size: 13px; }
.ledger-result { justify-self: end; text-align: right; }
.ledger-result em { display: block; color: var(--coral); font-style: normal; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.ledger-result small { color: var(--muted); }
.matrix-boundary { margin-top: 100px; }

:focus-visible { outline: 2px solid var(--coral); outline-offset: 4px; }

@media (max-width: 900px) {
  .archive__top, .witness, .destination-panel__heading { grid-template-columns: 1fr; }
  .date-index { margin-top: 50px; }
  .creation-grid { grid-template-columns: repeat(2, 1fr); }
  .studio-shell { grid-template-columns: 1fr; }
  .studio-nav { position: static; height: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 18px; }
  .studio-nav__label, .studio-nav .back-public { display: none; }
  .panel-heading, .adapt-preview { grid-template-columns: 1fr; }
  .panel-heading > p { max-width: 620px; margin-top: 22px; }
  .entry-fields { grid-template-columns: 1fr 1fr; }
  .source-media-placeholder { grid-column: 1 / -1; }
  .preflight-card dl { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  :root { --header-h: 70px; }
  .site-header { grid-template-columns: 1fr 150px 1fr; padding: 0 18px; }
  .theme-toggle__label { display: none; }
  .brand { width: 150px; }
  .hero { padding: calc(var(--header-h) + 46px) 18px 46px; }
  .hero__eyebrow { margin-bottom: 38px; }
  .manifesto {
    width: 100%;
    max-width: calc(100vw - 36px);
  }
  .manifesto p { overflow-wrap: anywhere; }
  .decree__declaration {
    max-width: 360px;
    font-size: clamp(47px, 12.24vw, 53px);
    line-height: .82;
    letter-spacing: -.045em;
  }
  .decree__testimony {
    max-width: 350px;
    margin-top: 32px;
    padding-top: 28px;
    font-size: clamp(20px, 5.1vw, 23px);
    line-height: 1.1;
    letter-spacing: -.02em;
  }
  .decree__testimony p { margin: .35em 0; }
  .decree__seal {
    max-width: 340px;
    margin: 26px auto 0;
    gap: 9px;
    font-size: 10px;
    letter-spacing: .14em;
  }
  .enter-link { margin-top: 34px; }
  .platforms { grid-template-columns: 1fr; }
  .platform-list { justify-content: flex-start; gap: 6px 20px; }
  .platform-list button { min-height: 38px; }
  .media-stage__caption { flex-direction: column; gap: 2px; }
  .archive__top { display: block; }
  .empty-ledger { grid-template-columns: 1fr; }
  .ledger-rule { width: 100%; }
  .witness-form__row { grid-template-columns: 1fr; gap: 10px; }
  .witness-form input { border-right: 1px solid rgba(242,234,220,.4); }
  .site-footer { grid-template-columns: 1fr; text-align: left; }
  .site-footer p { text-align: left; }
  .footer-links { justify-self: start; }
  .studio-header { grid-template-columns: 1fr auto; padding: 0 16px; }
  .studio-header__brand img { width: 120px; }
  .preview-badge { display: none; }
  .studio-workspace { padding: 48px 20px; }
  .studio-title-row { display: block; }
  .draft-state { display: block; margin-top: 20px; }
  .creation-grid { grid-template-columns: 1fr; }
  .creation-grid button { min-height: 170px; }
  .destination-list label { grid-template-columns: 28px 1fr; padding: 16px 0; }
  .destination-list span { display: block; }
  .destination-list small { display: block; }
  .destination-list .status { grid-column: 2; }
  .workflow-steps { margin-top: 42px; }
  .workflow-steps button { min-height: 62px; flex-direction: column; justify-content: center; gap: 2px; padding: 6px; font-size: 11px; }
  .workflow-panel { padding-top: 54px; }
  .panel-heading h2 { font-size: clamp(44px, 13.26vw, 61px); }
  .entry-fields { grid-template-columns: 1fr; }
  .source-media-placeholder { grid-column: auto; }
  .adapt-preview { padding: 24px 18px; }
  .destination-previews { grid-template-columns: 1fr; }
  .preflight-card dl { grid-template-columns: 1fr; }
  .ledger-heading { display: block; }
  .ledger-heading > span { display: block; margin-top: 14px; }
  .ledger-row { grid-template-columns: 1fr auto; gap: 12px; padding: 14px 0; }
  .ledger-row > span { display: none; }
  .published-entry { grid-template-columns: 1fr; padding: 48px 0; }
  .published-entry__meta { grid-column: 1; grid-row: auto; flex-direction: row; justify-content: space-between; padding-right: 76px; }
  .published-entry h3, .published-entry__excerpt, .published-entry__media, .published-entry__body { grid-column: 1; }
  .published-entry h3 { margin-top: 26px; font-size: 54px; }
  .published-entry__body { font-size: 24px; }
  .media-stage__published-media, .media-stage__published-record { min-height: 300px; }
  .media-stage__published-record strong { font-size: 54px; }
  .workflow-actions { flex-direction: column-reverse; }
  .workflow-actions--end { flex-direction: column; }
  .matrix-button { width: 100%; }
}

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

/* Latest-evidence reader: the journal body inside the stage */
.media-stage__screen--reader { aspect-ratio: auto; }
.media-stage__reader {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 320px;
  max-height: 76svh;
  overflow-y: auto;
  padding: clamp(26px, 4.5vw, 56px);
  background: #17120f;
  color: #f4ead9;
  text-align: left;
}
.media-stage__reader-body {
  max-width: 72ch;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.73vw, 27px);
  line-height: 1.65;
  white-space: pre-wrap;
}

/* Live broadcast section */
.live-broadcast { padding: clamp(48px, 6vw, 90px) 5vw; background: #17120f; color: #fbf5e6; }
.live-broadcast .kicker { color: var(--coral); }
.live-broadcast .section-heading h2 { color: #fbf5e6; }
.live-broadcast__frame { width: min(100%, 1080px); margin: 34px auto 0; aspect-ratio: 16 / 9; background: #0d0a08; }
.live-broadcast__frame iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Archive card titles link to the permanent entry page. The link stays quiet
   inside the editorial layout: inherited ink, underline only on intent. */
.published-entry__link {
  color: inherit;
  text-decoration: none;
}

.published-entry__link:hover,
.published-entry__link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Long unbroken words (stretched letter-run titles) must wrap instead of
   overflowing the page — an inline title link otherwise widens the whole
   document and pushes every section off its alignment. */
.published-entry h3, .published-entry__excerpt, .published-entry__body,
.entry-page__title, .entry-page__excerpt, .entry-page__body,
#latest-title, .media-stage__caption, .media-stage__reader-body {
  overflow-wrap: anywhere;
}

/* Rendered entry bodies: markdown becomes real markup, so paragraphs and
   headings carry the rhythm instead of preserved whitespace. */
.published-entry__body, .entry-page__body, .media-stage__reader-body { white-space: normal; }
.published-entry__body p, .entry-page__body p, .media-stage__reader-body p { margin: 0 0 1em; }
.published-entry__body h2, .entry-page__body h2,
.published-entry__body h3, .entry-page__body h3,
.published-entry__body h4, .entry-page__body h4,
.published-entry__body h5, .entry-page__body h5 {
  margin: 1.6em 0 .6em;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.02em;
}
.published-entry__body h2, .entry-page__body h2 { font-size: 1.35em; }
.published-entry__body h3, .entry-page__body h3 { font-size: 1.15em; }
.published-entry__body h4, .entry-page__body h4,
.published-entry__body h5, .entry-page__body h5 { font-size: 1em; }
.published-entry__body hr, .entry-page__body hr {
  margin: 2em 0;
  border: 0;
  border-top: 1px solid var(--line-strong);
}
.published-entry__body ul, .entry-page__body ul,
.published-entry__body ol, .entry-page__body ol {
  margin: 0 0 1em;
  padding-left: 1.2em;
}
.published-entry__body li, .entry-page__body li { margin: .35em 0; }
.published-entry__body blockquote, .entry-page__body blockquote {
  margin: 0 0 1em;
  padding-left: 1em;
  border-left: 2px solid var(--coral);
  color: var(--ochre);
}
.published-entry__body a, .entry-page__body a {
  color: var(--coral-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Founder rule (2026-08-22): heading and sub-heading center ONLY on entries
   that carry an image or video — matching the centered media. Text-only
   entries keep the universal left alignment. */
.published-entry--has-media h3,
.published-entry--has-media .published-entry__excerpt { text-align: center; }
.entry-page--has-media .entry-page__header { text-align: center; }
.entry-page--has-media .entry-page__meta { justify-content: center; }

/* The archive header shares the entry titles' left edge (rail + gap),
   not the section edge — so the section reads as one aligned column. */
.archive .section-heading { margin-left: calc(clamp(150px, 12vw, 220px) + clamp(36px, 4vw, 64px)); }

@media (max-width: 900px) {
  .archive .section-heading { margin-left: 0; }
}

/* Founder request: headers, sub-headers, and entry marginalia read bold.
   Allura ships one weight, so the browser synthesizes the bold stroke. */
.published-entry h3, .published-entry__link,
.published-entry__excerpt,
.published-entry__meta, .published-entry__number,
.entry-page__title, .entry-page__excerpt, .entry-page__meta,
#latest-title, .latest .section-intro {
  font-weight: 700;
}

/* Text-only latest entries flow like the rest of the page: no dark screen
   box — plain ink on the page ground, left-aligned. The dark stage stays
   only when actual media plays inside it. */
.media-stage__screen--reader {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}
.media-stage__screen--reader::before { display: none; }
.media-stage__reader { padding: 0; background: transparent; color: var(--ink); min-height: 0; }
.media-stage__reader-body { color: var(--ink); }
.media-stage__reader .entry-number { color: var(--coral); font-weight: 700; }

/* Kickers and marginalia: coral, bold. */
.kicker,
.published-entry__meta, .published-entry__number,
.entry-page__meta, .entry-page__type, .entry-page__date,
.published-entry__media-link, .entry-page__media-link {
  color: var(--coral);
  font-weight: 700;
}

/* Founder rule: entry headers read coral red, sub-headings read ink. */
.published-entry h3, .published-entry__link,
.entry-page__title,
#latest-title {
  color: var(--burnt);
}
.published-entry__excerpt,
.entry-page__excerpt,
.latest .section-intro {
  color: var(--ink);
}

/* Latest-stage caption strip (date + title) reads coral like the headers. */
.media-stage__caption, .media-stage__caption time, .media-stage__caption span { color: var(--burnt); }

/* Inline code, code blocks, strikethrough, and highlight in entry bodies. */
.published-entry__body code, .entry-page__body code, .media-stage__reader-body code {
  padding: .1em .35em;
  border-radius: 4px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: .78em;
}
.published-entry__body pre, .entry-page__body pre, .media-stage__reader-body pre {
  margin: 0 0 1em;
  padding: 1em 1.2em;
  overflow-x: auto;
  border-radius: 6px;
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  color: var(--paper);
}
.published-entry__body pre code, .entry-page__body pre code, .media-stage__reader-body pre code {
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: .6em;
  line-height: 1.6;
}
.published-entry__body mark, .entry-page__body mark, .media-stage__reader-body mark {
  padding: 0 .15em;
  background: color-mix(in srgb, var(--gold-light) 45%, transparent);
  color: inherit;
}

/* Witness signup on entry pages */
.entry-witness { margin-top: clamp(48px, 7vw, 90px); padding-top: 30px; border-top: 1px solid var(--line); }
.entry-witness__lead { margin: 0 0 14px; font-family: var(--font-display); font-size: 22px; }
.entry-witness__form { display: flex; flex-wrap: wrap; gap: 10px; }
.entry-witness__form input {
  flex: 1 1 260px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--oyster);
  color: var(--ink);
  font-size: 16px;
}
.entry-witness__form button {
  padding: 12px 22px;
  border: 0;
  border-radius: 4px;
  background: var(--burnt);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}
.entry-witness__form button:hover { filter: brightness(1.06); }
.entry-witness__status { margin: 10px 0 0; min-height: 1.2em; color: var(--muted); font-size: 15px; }

/* The chain is five words joined by arrows — set smaller than the surrounding
   testimony so it holds one line instead of breaking like a failed sentence. */
.decree__chain {
  margin: 0 0 .5em;
  font-size: .62em;
  line-height: 1.35;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.decree__chain span[aria-hidden] { padding: 0 .12em; color: var(--gold); }
@media (max-width: 680px) {
  .decree__chain { font-size: .78em; line-height: 1.45; }
}

/* ---- Current status -------------------------------------------------
   One state, above the record. The composer is owner-only and deliberately
   plain — it is a place to type, not another interface to manage. */
.state-note-strip {
  /* Bottom padding matters: without it the composer's dashed edge sits flush
     against the section below and reads as an unclosed box. */
  padding: clamp(28px, 4vw, 44px) 5vw clamp(24px, 3.5vw, 38px);
  background: var(--paper);
}
.state-note-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}
.state-note {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  background: var(--oyster);
}
.state-note__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 10px;
  min-height: 20px;
}
.state-note__mood {
  padding: 3px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gold) 16%, transparent);
  color: var(--gold-deep);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
/* Out of Sync is the one state that should not look comfortable. */
.state-note__mood[data-mood='out-of-sync'] {
  background: color-mix(in srgb, var(--burnt) 16%, transparent);
  color: var(--burnt);
}
.state-note__time {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .08em;
}
.state-note__text {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.45;
  white-space: pre-wrap;
}
.state-note__media {
  width: 100%;
  max-height: 460px;
  margin-top: 16px;
  object-fit: contain;
  background: #18130f;
}
.state-note-composer {
  max-width: 760px;
  margin: 14px auto 0;
  padding: 18px 20px;
  border: 1px dashed var(--line);
  background: color-mix(in srgb, var(--oyster) 70%, transparent);
}
.state-note-composer textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.4;
  resize: vertical;
}
.state-note-composer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.state-note-composer select {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 12px;
}
.state-note-composer__file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.state-note-composer__file input { max-width: 168px; font-size: 11px; }
.state-note-composer__post,
.state-note-composer__clear {
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.state-note-composer__post:disabled { opacity: .5; cursor: default; }
/* Owner-only, and quiet until hovered — removing a note should take intent. */
.state-note__delete {
  margin-left: auto;
  padding: 2px 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.state-note__delete:hover { color: var(--burnt); border-color: var(--burnt); }
.state-note__delete:disabled { opacity: .4; cursor: default; }
.state-note-composer__note {
  margin: 10px 0 0;
  min-height: 15px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .06em;
}
@media (max-width: 680px) {
  .state-note-strip { padding: 22px 18px 0; }
  .state-note { padding: 18px; }
  .state-note-composer__clear { margin-left: 0; }
}
