@font-face {
  font-family: "Space Grotesk";
  src: url(space-grotesk.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url(inter.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url(ibm-plex-mono.woff2) format("woff2");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --canvas: #0e0d13;
  --display: "Space Grotesk", Inter, system-ui, sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --surface: #1d1b23;
  --hover: #26232e;
  --text: #f2eff6;
  --secondary: #b7b1c1;
  --muted: #a199ab;
  --accent: #cdbaef;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: clamp(20px, 6vw, 58px);
}

:root[data-theme="light"] {
  color-scheme: light;
  --canvas: #faf9fc;
  --surface: #efecf3;
  --hover: #e7e0ef;
  --text: #1c1822;
  --secondary: #4f475a;
  --muted: #62596d;
  --accent: #5c3687;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 22px; }
html:has(.home-page) {
  --controls-top: max(12px, env(safe-area-inset-top));
  --controls-clearance: calc(var(--controls-top) + 58px);
  scroll-padding-top: var(--controls-clearance);
  scrollbar-gutter: stable;
}
html:has(.archive-search:modal) { overflow: hidden; }
body { margin: 0; background: var(--canvas); color: var(--text); font: 1rem/1.6 Inter, system-ui, sans-serif; }
h1, h2, p, ol, ul, dl, dd { margin: 0; }
a { color: inherit; }
button { font: inherit; }
:where(a, button, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--canvas); }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; transform: translateY(-170%); padding: .45rem .8rem; background: var(--text); color: var(--canvas); border-radius: 5px; }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The white star field moves independently from the title and the entries. */
.journey {
  --surface: #191919;
  --hover: #262626;
  --text: #f6f6f6;
  --secondary: #bfbfc2;
  --muted: #a5a5aa;
  --accent: #ebebf0;
  background: #000;
  color: var(--text);
  position: relative;
  isolation: isolate;
}
.space-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.title-screen { min-height: 100svh; display: grid; place-items: center; padding: 32px var(--gutter); overflow: clip; }
.title-center { display: grid; place-items: center; perspective: 760px; width: 100%; padding-bottom: 2.5vh; }
.title-object {
  font: 700 clamp(3.15rem, 11vw, 8.1rem)/.78 var(--display);
  text-align: center;
  transform-style: preserve-3d;
  transform: none;
}
.title-mark { display: grid; justify-items: center; gap: .13em; transform-style: preserve-3d; }
.title-word { display: block; position: relative; transform-style: preserve-3d; }
.title-ai { font-size: 1.27em; letter-spacing: -.11em; padding-right: .11em; }
.title-timeline { letter-spacing: -.082em; padding-right: .082em; }
.title-face { position: relative; display: block; color: #f5f5f5; }
.title-layer { position: absolute; inset: 0; padding-right: inherit; transform: translate3d(calc(.31 * var(--depth)), calc(.24 * var(--depth)), calc(-1 * var(--depth))); color: var(--shade); -webkit-text-stroke: .65px var(--shade); pointer-events: none; }
@supports (background-clip: text) {
  .title-face {
    color: transparent;
    background: linear-gradient(176deg, #fff 0%, #f1f1f4 43%, #acadb4 100%);
    background-clip: text;
  }
} 


.feed { width: min(730px, 100% - var(--gutter) * 2); margin-inline: auto; padding-bottom: 32px; }
.feed:focus { outline: none; }
.feed-controls {
  position: fixed;
  inset: 0 0 auto;
  z-index: 5;
  padding: var(--controls-top) 0 18px;
  background: linear-gradient(#000 0%, #000d 64%, #0000 100%);
  pointer-events: none;
}
.feed-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: min(730px, 100% - var(--gutter) * 2);
  margin-inline: auto;
  pointer-events: auto;
}
.current-date { grid-column: 2; grid-row: 1; padding: 9px 13px; border-radius: 7px; background: #1a1a1b; color: var(--text); font: .875rem/1.25 var(--mono); white-space: nowrap; }
.control-small-label { display: none; }
.open-search, .year-jump summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--secondary);
  font-size: .875rem;
  white-space: nowrap;
  cursor: pointer;
}
.open-search { grid-column: 1; grid-row: 1; justify-self: start; }
.open-search[hidden] { display: none; }
.year-jump { grid-column: 3; grid-row: 1; position: relative; justify-self: end; }
.year-jump summary { list-style: none; }
.year-jump summary::-webkit-details-marker { display: none; }
.open-search:hover, .year-jump summary:hover, .year-jump[open] summary { background: #ffffff12; color: var(--text); }
.year-jump[open] summary svg { transform: rotate(180deg); }
.year-menu {
  position: absolute;
  inset: calc(100% + 8px) 0 auto auto;
  width: min(288px, 100vw - 32px);
  max-height: min(350px, 100dvh - var(--controls-clearance) - 12px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  padding: 8px;
  border-radius: 14px;
  background: #161617;
  box-shadow: 0 0 0 1px #ffffff20, 0 16px 36px #0009;
  overflow: auto;
  overscroll-behavior: contain;
}
.year-menu a { display: grid; place-items: center; min-height: 42px; border-radius: 7px; color: var(--secondary); font: .875rem/1.5 var(--mono); text-decoration: none; }
.year-menu a:hover, .year-menu a:focus-visible { background: var(--hover); color: var(--text); }
.year-menu a:focus-visible { outline-offset: -2px; }

.timeline-list { list-style: none; padding: 0; }
.timeline-entry { display: grid; place-items: center; min-height: clamp(330px, 69svh, 620px); padding: 45px 0; }
.timeline-entry:focus { outline: none; }
.entry { display: grid; justify-items: center; width: 100%; text-align: center; }
.entry-date { color: var(--muted); font: .8125rem/1.45 var(--mono); }
.entry-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.entry-meta time { font-family: var(--mono); }
.entry-meta span::before { content: "Â·"; color: var(--muted); margin-right: 9px; }
.entry-copy { display: grid; justify-items: center; }
.entry h2 { max-width: 25ch; margin-top: 7px; font: 520 clamp(1.4rem, 3.8vw, 2.08rem)/1.1 var(--display); letter-spacing: -.049em; text-wrap: balance; }
.entry h2 a { text-decoration: none; text-underline-offset: .15em; }
.entry h2 a:hover, .entry h2 a:focus-visible { text-decoration: underline; text-decoration-color: var(--accent); }
.timeline-entry:target .entry h2 a { color: var(--accent); }
.entry p { margin-top: 13px; max-width: 41ch; color: var(--secondary); font-size: 1rem; line-height: 1.58; text-wrap: balance; }

@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) { scroll-behavior: smooth; }
  html:not([data-motion="off"]) [data-intro-state="playing"] .title-object { animation: title-enter 1320ms var(--ease-out) both; }
  html:not([data-motion="off"]) [data-intro-state="departing"] .title-object { animation: title-depart 420ms var(--ease-out) both; }
  html:not([data-motion="off"]) .just-arrived .entry-copy { animation: arrive 480ms var(--ease-out) both; }
  html:not([data-motion="off"]) :is(.archive-search[open], .year-jump[open] .year-menu) { animation: overlay-enter 180ms var(--ease-out) both; }
}
@keyframes overlay-enter {
  from { opacity: 0; transform: translateY(var(--overlay-offset, -5px)); }
  to { opacity: 1; transform: none; }
}
@keyframes title-enter {
  0% { opacity: .18; transform: translate3d(0,24px,-100px) scale(.93); }
  58% { opacity: 1; transform: translate3d(0,-4px,12px); }
  100% { opacity: 1; transform: none; }
}
@keyframes title-depart {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translate3d(0,-40px,-90px) scale(.95); }
}
@keyframes arrive {
  from { opacity: .45; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.reading-main { width: min(850px, 100% - var(--gutter) * 2); margin-inline: auto; padding: 34px 0 64px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); text-decoration: none; font-size: .875rem; }
.back-link:hover { text-decoration: underline; }
.reading-intro { max-width: 710px; margin: 32px 0; }
.reading-intro h1 { margin: 8px 0 11px; font: 580 clamp(2.1rem, 5.6vw, 3.8rem)/1.06 var(--display); letter-spacing: -.063em; text-wrap: balance; }
.reading-deck { font-size: clamp(1rem, 2.25vw, 1.1875rem); color: var(--secondary); max-width: 59ch; line-height: 1.55; }
.reading-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(195px, 30%); gap: clamp(22px, 5vw, 54px); }
.reading-body section + section { margin-top: 24px; }
.reading-body h2, .citation h2 { font-size: 1rem; font-weight: 620; letter-spacing: -.025em; margin-bottom: 5px; }
.reading-body p { color: var(--secondary); line-height: 1.7; }
.citation { align-self: start; padding: 16px; border-radius: 8px; background: var(--surface); }
.citation dl { margin: 9px 0 13px; }
.citation dt { color: var(--muted); font-size: .8125rem; }
.citation dt:not(:first-child) { margin-top: 8px; }
.citation dd { font-size: .9rem; overflow-wrap: anywhere; }
.citation button { display: inline-flex; align-items: center; gap: 5px; padding: 2px 0; border: none; background: none; color: var(--accent); font-size: .875rem; cursor: pointer; }
.citation button:hover { text-decoration: underline; }
.citation details { margin-top: 6px; color: var(--muted); font-size: .8125rem; }
.citation details summary { cursor: pointer; }
.citation details p { color: var(--secondary); margin-top: 4px; overflow-wrap: anywhere; }
.source-list { padding: 0; list-style: none; }
.source-list a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); text-underline-offset: 4px; padding: 2px 0; }
.source-list a svg { flex: none; }
.next-entry { display: grid; gap: 1px; width: fit-content; margin-top: 33px; text-decoration: none; }
.next-entry small { color: var(--muted); font-size: .8125rem; }
.next-entry span { color: var(--accent); }
.next-entry:hover span { text-decoration: underline; }

@media (max-width: 540px) {
  .reading-layout { grid-template-columns: 1fr; }
}

@media (max-height: 460px) {
  .title-center { padding-bottom: 0; }
  .title-object { font-size: clamp(2.5rem, 14svh, 4.5rem); }
}

@font-face {
  font-family: "Instrument Serif";
  src: url(instrument-serif-italic.woff2) format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

.comparison { min-height: 100svh; padding: 24px clamp(20px, 4.6vw, 72px) 35px; }
.comparison-controls, .comparison-grid { width: min(1220px, 100%); margin-inline: auto; }
.comparison-controls { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.comparison-controls h1 { font: 560 clamp(1.05rem, 2.4vw, 1.4rem)/1.3 var(--display); letter-spacing: -.03em; }
.comparison-controls > a { color: var(--secondary); font-size: .8125rem; text-decoration-thickness: 1px; text-underline-offset: 3px; white-space: nowrap; }
.comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 74px); margin-top: 30px; }
.comparison-panel { min-width: 0; min-height: clamp(560px, 82svh, 760px); position: relative; }
.comparison-label { color: var(--muted); font: .8125rem/1.5 var(--mono); }
.baseline { display: grid; place-items: center; }
.baseline .comparison-label { position: absolute; top: 5px; left: 0; }
.baseline .entry { padding: 24px 7px; }
.baseline .entry h2 { font-size: clamp(1.25rem, 2.55vw, 2.08rem); }
.baseline .entry p, .exhibit-copy > p { font-size: clamp(.9375rem, 1.4vw, 1rem); }

.exhibit { container-type: inline-size; display: grid; grid-template-rows: auto minmax(215px, 1fr) auto; align-content: center; }
.exhibit-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.exhibit-top button { background: none; border: 0; padding: 4px 0; color: var(--secondary); font: inherit; font-size: .8125rem; cursor: pointer; }
.exhibit-top button:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.zeta-figure { position: relative; min-height: 0; margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; align-self: stretch; padding: 15px 0 12px; }
.zeta-figure canvas { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; }
.zeta-figure figcaption { display: flex; justify-content: center; align-items: baseline; gap: 13px; color: var(--muted); font: .75rem/1.5 var(--mono); }
.zeta-figure figcaption a { text-underline-offset: 3px; }
.exhibit-copy { padding: 17px 6px clamp(28px, 5vh, 58px); }
.exhibit-copy .entry-date { display: block; margin-bottom: 14px; }
.exhibit-copy h2 { font: 510 clamp(1.1rem, 4.7cqw, 1.55rem)/1.15 var(--display); letter-spacing: -.033em; }
.exhibit-copy h2 a { display: block; text-decoration: none; }
.exhibit-copy h2 a:hover em { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }
.exhibit-copy h2 span { display: block; }
.exhibit-copy h2 em { display: block; margin-top: 3px; font: italic 400 clamp(2.7rem, 13.2cqw, 5.25rem)/.91 "Instrument Serif", Georgia, serif; letter-spacing: -.038em; text-wrap: balance; }
.exhibit-copy > p { max-width: 43ch; margin-top: 13px; color: var(--secondary); line-height: 1.55; }

@media (max-width: 600px) {
  .comparison { padding-block: 18px 22px; }
  .comparison-grid { grid-template-columns: 1fr; gap: 34px; margin-top: 20px; }
  .baseline { min-height: 270px; }
  .exhibit { min-height: 515px; }
  .exhibit-copy { padding-bottom: 6px; }
}

.archive-search {
  position: fixed;
  inset: var(--controls-clearance) 0 auto;
  width: min(540px, 100% - 28px);
  max-height: min(620px, 100dvh - var(--controls-clearance) - 14px);
  margin: 0 auto;
  padding: 15px 18px;
  border: 0;
  border-radius: 17px;
  background: #141415;
  color: #f6f6f6;
  box-shadow: 0 0 0 1px #ffffff24, 0 24px 70px #000a;
  overflow: hidden;
  overscroll-behavior: contain;
}
.archive-search[open] { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 8px; }
.archive-search::backdrop { background: #0008; backdrop-filter: blur(4px); overscroll-behavior: contain; }
.search-heading { display: flex; justify-content: space-between; align-items: center; min-height: 36px; padding-left: 3px; }
.search-heading h2 { font: 560 1.3rem/1.25 var(--display); letter-spacing: -.04em; }
.archive-search button, .guide-link {
  border: 0;
  color: #bdbdc2;
  background: none;
  font: inherit;
  font-size: .8125rem;
  cursor: pointer;
}
.search-heading button { display: grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 8px; }
.archive-search button:hover, .guide-link:hover { color: #fff; }
.search-heading button:hover { background: #ffffff12; }
.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border-radius: 9px;
  background: #09090a;
  box-shadow: inset 0 0 0 1px #ffffff18;
  color: #a7a7ad;
}
.search-field:focus-within { box-shadow: inset 0 0 0 1px #82828b; }
.search-field svg { flex: none; }
.search-field input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0;
  outline: none;
  border: 0;
  background: none;
  color: #f5f5f5;
  font: inherit;
}
.search-field input::placeholder { color: #a7a7ad; }
.search-body { min-height: 0; overflow: auto; overscroll-behavior: contain; scroll-padding: 4px; }
.result-count { margin: 8px 8px 4px; color: #adadb5; font: .75rem/1.5 var(--mono); }
.search-results { list-style: none; padding: 0; }
.search-results a { display: grid; gap: 4px; padding: 9px 8px; border-radius: 8px; color: #f4f4f6; text-decoration: none; font-size: .9375rem; line-height: 1.35; overflow-wrap: anywhere; }
.search-results a:hover, .search-results a:focus-visible { background: #ffffff10; }
.search-results a:focus-visible { outline-offset: -2px; }
.search-results small { color: #adadb5; font-size: .75rem; line-height: 1.3; }
.more-results, .guide-link { min-height: 38px; padding: 6px 8px; }
.guide-link { display: inline-flex; align-items: center; justify-self: start; text-underline-offset: 3px; }
.pdf-link { display: inline-block; color: var(--accent); text-underline-offset: 4px; margin-top: 5px; }
.paper-reader { margin-top: 8px; }
.paper-reader summary { width: fit-content; cursor: pointer; color: var(--accent); }
.paper-reader iframe { display: block; width: 100%; height: min(74vh, 760px); min-height: 360px; margin-top: 9px; border: 0; background: var(--surface); }
@media (max-width: 600px) {
  .archive-search {
    --overlay-offset: 8px;
    inset: auto 0 max(10px, env(safe-area-inset-bottom));
    width: calc(100% - 20px);
    max-height: min(580px, 100dvh - 24px);
    padding: 12px 14px max(12px, env(safe-area-inset-bottom));
  }
}
@media (max-width: 490px) {
  .feed-tools { width: calc(100% - 24px); gap: 4px; }
  .open-search, .year-jump summary { gap: 4px; padding-inline: 4px; font-size: .8125rem; }
  .control-wide-label { display: none; }
  .control-small-label { display: inline; }
  .current-date { padding-inline: 9px; font-size: .8125rem; }
}
