/* ==========================================================================
   STARSTRUCK — site stylesheet
   Observatory / editorial look: warm near-black, serif headlines,
   museum-label captions. Every page uses this one file.
   ========================================================================== */

:root {
  --bg: #0e0d0b;
  --bg-raised: #15130f;
  --surface: #1b1814;
  --line: #2a2620;
  --line-strong: #3d372e;
  --text: #ede6d8;
  --text-2: #bcb3a3;
  --text-3: #8c8476;
  --accent: #d2a55a;          /* brass */
  --accent-soft: rgba(210, 165, 90, 0.14);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-read: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --font-ui: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --page: 1240px;
  --measure: 700px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 3px;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9rem;
}
.kicker a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.kicker a:hover { border-bottom-color: currentColor; }
.kicker span[aria-hidden] { color: var(--text-3); margin: 0 0.4em; }

.meta { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--text-3); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 13, 11, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 3px double var(--line-strong);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 68px;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}
.wordmark b { font-weight: 400; color: var(--accent); font-style: normal; }
.wordmark { display: inline-flex; align-items: center; gap: 0.4em; }
.wordmark .logo-mark { width: 1.3em; height: 1.3em; flex: none; position: relative; top: -0.06em; }
body[data-page="home"] .site-header .wordmark { font-size: 2rem; }

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav > a, .nav-toggle {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.nav > a:hover, .nav-toggle:hover, .nav > a[aria-current], .nav-toggle[data-current] { color: var(--text); }
.nav > a[aria-current], .nav-toggle[data-current] { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-toggle svg { transition: transform 0.2s; }
.nav-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.gallery-menu { position: relative; }
.gallery-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  width: 440px;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.75rem;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}
.gallery-panel.open { display: grid; }
.gallery-panel a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.6rem 0.75rem;
  text-decoration: none;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.gallery-panel a:hover, .gallery-panel a[aria-current] { background: var(--surface); }
.gallery-panel a[aria-current] { color: var(--accent); }
.gallery-panel .count { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3); }

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-2);
  flex: none;
}
.icon-btn:hover { color: var(--text); border-color: var(--text-3); }
.menu-btn { display: none; }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--bg);
  display: none;
  flex-direction: column;
  overflow-y: auto;
}
.drawer.open { display: flex; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; height: 68px; padding: 0 var(--gutter); border-bottom: 3px double var(--line-strong); flex: none; }
.drawer nav { padding: 1.5rem var(--gutter) 3rem; }
.drawer h2 { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin: 1.5rem 0 0.5rem; }
.drawer a { display: flex; justify-content: space-between; align-items: baseline; padding: 0.7rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--font-display); font-size: 1.35rem; }
.drawer a[aria-current] { color: var(--accent); }
.drawer .count { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3); }

@media (max-width: 880px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .site-header .wrap { gap: 0.6rem; height: 60px; }
  .wordmark { font-size: 1.4rem; }
  body[data-page="home"] .site-header .wordmark { font-size: 1.7rem; }
  .drawer-head { height: 60px; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 3px double var(--line-strong); margin-top: 6rem; padding: 3.5rem 0 2.5rem; color: var(--text-3); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer .wordmark { color: var(--text); display: inline-flex; margin-bottom: 0.5rem; }
.site-footer p { margin: 0.25rem 0; font-size: 0.9rem; }
.site-footer h2 { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin: 0 0 0.75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 1.5rem; }
.site-footer li a { display: inline-block; color: var(--text-2); text-decoration: none; font-size: 0.9rem; padding: 0.2rem 0; }
.site-footer li a:hover { color: var(--text); }
.footer-base { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.footer-base .flag img { border-radius: var(--radius); opacity: 0.9; max-width: 100%; }
@media (max-width: 760px) {
  .site-footer .wrap { grid-template-columns: 1fr; }
}

/* ---------- Page heading (galleries, index pages) ---------- */
.page-head { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); margin-bottom: clamp(2rem, 4vw, 3rem); }
.page-head h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 1.25rem;
}
.page-head .lede { font-family: var(--font-read); font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.5; color: var(--text-2); max-width: 44rem; margin: 0; }
.page-head .meta { margin-top: 1.25rem; }

/* ---------- Gallery (masonry plates) ---------- */
.plates { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 48px 28px; align-items: start; }
.plate { margin: 0; }
@media (max-width: 640px) { .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; } .plate h2 { font-size: 1.05rem; } .plate p.desc { display: none; } }
.plate-frame {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: var(--radius);
  outline: 1px solid var(--line);
  outline-offset: -1px;
}
.plate-frame img { width: 100%; transition: transform 0.6s ease, opacity 0.4s ease; opacity: 0; }
.plate-frame img.loaded { opacity: 1; }
.plate:hover .plate-frame img { transform: scale(1.025); }
.plate figcaption { padding-top: 0.9rem; }
.plate .no { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; color: var(--text-3); }
.plate h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; line-height: 1.25; margin: 0.2rem 0 0.35rem; letter-spacing: -0.01em; }
.plate .spec { font-family: var(--font-mono); font-size: 0.74rem; color: var(--accent); margin: 0 0 0.5rem; }
.plate .when { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em; color: var(--text-3); margin: -0.25rem 0 0.5rem; }
.plate p.desc {
  font-family: var(--font-read);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.state { color: var(--text-3); font-family: var(--font-mono); font-size: 0.85rem; padding: 3rem 0; }

/* Links made automatically: glossary words in descriptions, and "Read more" articles */
a.term-link { color: inherit; text-decoration: underline dotted var(--accent); text-underline-offset: 3px; }
a.term-link:hover { color: var(--accent); }
.prose a.term-link { color: inherit; text-decoration: underline dotted var(--accent); text-decoration-thickness: 1px; }
.prose a.term-link:hover { color: var(--accent); }
a.photo-link { color: var(--accent); text-decoration: none; }
a.photo-link:hover { text-decoration: underline; }
.related { font-family: var(--font-ui); font-size: 0.82rem; color: var(--text-3); margin: 0.6rem 0 0; }
.related a { color: var(--accent); text-decoration: none; }
.related a:hover { text-decoration: underline; }
.viewer-info .related { font-size: 0.9rem; margin-top: 1.25rem; }

/* "In the gallery" photos at the end of an article */
.article-photos { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.article-photos h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; margin: 0 0 0.25rem; }
.article-photos > p { color: var(--text-3); font-size: 0.9rem; margin: 0 0 1.25rem; }
.ap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.ap-grid a { text-decoration: none; color: var(--text-2); }
.ap-grid a:hover { color: var(--accent); }
.ap-img { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: #000; outline: 1px solid var(--line); outline-offset: -1px; }
.ap-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.ap-grid a:hover .ap-img img { transform: scale(1.04); }
.ap-title { display: block; font-size: 0.85rem; line-height: 1.35; margin-top: 0.45rem; }

/* ---------- Viewer (full-size photo) ---------- */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 7, 6, 0.98);
  display: none;
  grid-template-columns: 1fr 380px;
}
.viewer.open { display: grid; }
.viewer-stage { position: relative; display: grid; place-items: center; padding: 56px 72px; min-height: 0; overflow: hidden; touch-action: pan-y; }
.viewer-stage img { max-width: 100%; max-height: calc(100vh - 112px); max-height: calc(100dvh - 112px); width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: opacity 0.2s; }
.viewer-stage img.swap { opacity: 0.35; }
.viewer-info {
  border-left: 1px solid var(--line);
  background: var(--bg-raised);
  padding: 72px 32px 32px;
  overflow-y: auto;
}
.viewer-info h2 { font-family: var(--font-display); font-weight: 300; font-size: 2rem; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 1.25rem; }
.viewer-info dl { margin: 0 0 1.5rem; border-top: 1px solid var(--line); }
.viewer-info dl div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.viewer-info dt { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); padding-top: 0.15rem; }
.viewer-info dd { margin: 0; font-size: 0.9rem; color: var(--text); }
.viewer-info .desc { font-family: var(--font-read); font-size: 1.02rem; line-height: 1.65; color: var(--text-2); white-space: pre-line; }
.viewer-info .original { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.5rem; font-size: 0.85rem; color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-soft); }
.viewer-info .original:hover { border-bottom-color: var(--accent); }
.viewer-count { position: absolute; left: 24px; top: 20px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--text-3); }
.viewer-status { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3); letter-spacing: 0.08em; }
.viewer-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.viewer-nav.prev { left: 14px; }
.viewer-nav.next { right: 14px; }
.viewer .icon-btn { background: rgba(14, 13, 11, 0.7); }
body.viewer-lock { overflow: hidden; }

@media (max-width: 880px) {
  .viewer { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: start; overflow-y: auto; overscroll-behavior: contain; }
  .viewer-stage { padding: 52px 8px 36px; height: 62vh; height: 62dvh; }
  .viewer-stage img { max-height: calc(62vh - 88px); max-height: calc(62dvh - 88px); }
  .viewer-nav { display: none; }
  .viewer-info { border-left: 0; border-top: 1px solid var(--line); padding: 24px var(--gutter) 48px; overflow: visible; }
  .viewer-info h2 { font-size: 1.6rem; }
  .viewer-count { left: 16px; top: 18px; }
  .viewer-status { bottom: 10px; }
}

/* ---------- Search ---------- */
.search {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(8, 7, 6, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh var(--gutter) 2rem;
}
.search.open { display: flex; }
.search-box { width: 100%; max-width: 680px; background: var(--bg-raised); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6); display: flex; flex-direction: column; max-height: 80vh; }
.search-field { display: flex; align-items: center; gap: 0.75rem; padding: 0 1rem; border-bottom: 1px solid var(--line); color: var(--text-3); }
.search-field input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); font-family: var(--font-display); font-size: 1.4rem; padding: 1.1rem 0; min-width: 0; }
.search-field input::placeholder { color: var(--text-3); }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.search-field kbd { font-family: var(--font-mono); font-size: 0.7rem; border: 1px solid var(--line-strong); border-radius: 3px; padding: 0.1rem 0.4rem; }
.search-results { overflow-y: auto; padding: 0.5rem; }
.search-results h3 { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin: 0.9rem 0.6rem 0.4rem; }
.search-results a { display: flex; gap: 0.9rem; align-items: center; padding: 0.55rem 0.6rem; text-decoration: none; border-radius: var(--radius); }
.search-results a:hover, .search-results a.active { background: var(--surface); }
.search-results img { width: 52px; height: 40px; object-fit: cover; border-radius: 2px; background: #000; flex: none; }
.search-results .r-title { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.25; }
.search-results .r-sub { font-size: 0.78rem; color: var(--text-3); display: block; }
.search-results mark { background: none; color: var(--accent); }
.search-empty { padding: 1.5rem 1rem; color: var(--text-3); font-size: 0.9rem; }

/* ---------- Home ---------- */
.feature { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; padding: clamp(2rem, 5vw, 4rem) 0; border-bottom: 1px solid var(--line); }
.feature .plate-frame { outline: none; width: auto; background: none; }
.feature .plate-frame img { width: auto; max-width: 60vw; max-height: min(78vh, 760px); opacity: 1; }
.feature-label { max-width: 34rem; }
.feature-label h1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.02; letter-spacing: -0.025em; margin: 0 0 1.5rem; }
.feature-label dl { margin: 0 0 1.5rem; border-top: 1px solid var(--line); }
.feature-label dl div { display: grid; grid-template-columns: 7rem 1fr; gap: 0.75rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.feature-label dt { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); padding-top: 0.15rem; }
.feature-label dd { margin: 0; font-size: 0.92rem; }
.feature-label p { font-family: var(--font-read); font-size: 1.05rem; line-height: 1.6; color: var(--text-2); margin: 0 0 1.5rem; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 880px) {
  .feature { grid-template-columns: 1fr; }
  .feature .plate-frame { justify-self: center; }
  .feature .plate-frame img { max-width: 100%; max-height: 70vh; }
}

.more { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 500; color: var(--accent); text-decoration: none; }
.more::after { content: "\2192"; transition: transform 0.2s; }
.more:hover::after { transform: translateX(4px); }

.section { padding: clamp(3rem, 6vw, 5rem) 0 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.section-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 3.5vw, 2.4rem); letter-spacing: -0.015em; margin: 0; }

.intro-line { font-family: var(--font-read); font-style: italic; font-size: clamp(1.15rem, 2.2vw, 1.45rem); color: var(--text-2); max-width: 40rem; margin: 0; }

.collection { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; }
@media (max-width: 880px) { .collection { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; } .coll-label strong { font-size: 1.1rem; } }
.coll { text-decoration: none; display: block; }
.coll-img { aspect-ratio: 4 / 3; background: #000; overflow: hidden; border-radius: var(--radius); outline: 1px solid var(--line); outline-offset: -1px; }
.coll-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.coll:hover .coll-img img { transform: scale(1.04); }
.coll-label { display: flex; justify-content: space-between; align-items: baseline; padding-top: 0.75rem; }
.coll-label strong { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; }
.coll:hover .coll-label strong { color: var(--accent); }

/* Article lists */
.notes { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; }
.notes-side { display: flex; flex-direction: column; }
@media (max-width: 880px) { .notes { grid-template-columns: 1fr; } }

.card { text-decoration: none; display: block; }
.card-img { aspect-ratio: 16 / 9; overflow: hidden; background: #000; border-radius: var(--radius); margin-bottom: 1rem; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card-img img { transform: scale(1.03); }
.card h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.6rem; }
.card:hover h3 { color: var(--accent); }
.card p { font-family: var(--font-read); color: var(--text-2); font-size: 1.02rem; line-height: 1.6; margin: 0; }

.row { display: grid; grid-template-columns: 140px 1fr; gap: 1.25rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); text-decoration: none; align-items: start; }
.row:first-child { padding-top: 0; }
.row-img { aspect-ratio: 4 / 3; overflow: hidden; background: #000; border-radius: var(--radius); }
.row-img img { width: 100%; height: 100%; object-fit: cover; }
.row h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; line-height: 1.25; margin: 0.15rem 0 0.4rem; }
.row:hover h3 { color: var(--accent); }
.row p { font-family: var(--font-read); color: var(--text-2); font-size: 0.95rem; line-height: 1.55; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row .kicker { margin: 0; font-size: 0.66rem; }

/* Articles index page */
.article-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 3rem 2.5rem; margin-top: 3.5rem; }
.article-list .card h3 { font-size: 1.45rem; }
.article-list .card p { font-size: 0.98rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lead-article { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; text-decoration: none; }
.lead-article .card-img { margin: 0; }
.lead-article h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 1rem; }
.lead-article:hover h2 { color: var(--accent); }
.lead-article p { font-family: var(--font-read); font-size: 1.1rem; color: var(--text-2); line-height: 1.6; margin: 0 0 1.25rem; }
@media (max-width: 760px) {
  .lead-article { grid-template-columns: 1fr; }
  .row { grid-template-columns: 96px 1fr; gap: 1rem; }
}

/* ---------- News (observatory log) ---------- */
.log { max-width: 960px; }
.log-entry { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 2rem; padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.log-entry:first-child { padding-top: 0; }
.log-date { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--accent); padding-top: 0.55rem; }
.log-entry h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 1rem; }
.log-body { font-family: var(--font-read); font-size: 1.06rem; line-height: 1.7; color: var(--text-2); }
.log-body p { margin: 0 0 1rem; }
.log-body a { color: var(--accent); word-break: break-word; }
.log-figure { float: right; width: min(42%, 340px); margin: 0.35rem 0 1rem 1.75rem; }
.log-figure .plate-frame img { opacity: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; clear: both; }
.tag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--text-3); border: 1px solid var(--line-strong); border-radius: 99px; padding: 0.15rem 0.6rem; }
@media (max-width: 760px) {
  .log-entry { grid-template-columns: 1fr; gap: 0.5rem; }
  .log-date { padding-top: 0; }
  .log-figure { float: none; width: 100%; margin: 0 0 1.25rem; }
}

/* ---------- Glossary ---------- */
.glossary-tools { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; margin-bottom: 2.5rem; }
.filter { display: flex; align-items: center; gap: 0.6rem; border-bottom: 1px solid var(--line-strong); color: var(--text-3); min-width: min(100%, 320px); }
.filter input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); font-family: var(--font-display); font-size: 1.2rem; padding: 0.6rem 0; min-width: 0; }
.alpha { display: flex; flex-wrap: wrap; gap: 0.15rem; }
.alpha a, .alpha span { font-family: var(--font-mono); font-size: 0.8rem; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border-radius: var(--radius); text-decoration: none; }
.alpha a { color: var(--text); }
.alpha a:hover { background: var(--surface); color: var(--accent); }
.alpha span { color: var(--line-strong); }
.terms { max-width: 900px; }
.letter { font-family: var(--font-display); font-weight: 300; font-size: 3rem; color: var(--accent); margin: 2.5rem 0 0.5rem; line-height: 1; }
.term { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 2rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.term dt { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.3; }
.term dd { margin: 0; font-family: var(--font-read); font-size: 1.04rem; line-height: 1.65; color: var(--text-2); }
.term dd p { margin: 0 0 0.75rem; }
@media (max-width: 760px) { .term { grid-template-columns: 1fr; gap: 0.4rem; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about .prose { margin: 0; }
.about aside dl { margin: 0; border-top: 1px solid var(--line); }
.about aside dl div { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.about aside dt { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 0.25rem; }
.about aside dd { margin: 0; }
@media (max-width: 880px) { .about { grid-template-columns: 1fr; } }

/* ==========================================================================
   Articles (long-form reading)
   ========================================================================== */
.article-wrap { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) 0; width: 100%; }
.prose { font-family: var(--font-read); font-size: 1.16rem; line-height: 1.75; color: var(--text); }
.prose h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 1.5rem;
}
.prose h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.55rem, 3.4vw, 2rem); line-height: 1.2; letter-spacing: -0.015em; margin: 3rem 0 1rem; }
.prose h3 { font-family: var(--font-ui); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.01em; margin: 2.25rem 0 0.6rem; color: var(--text); }
.prose p { margin: 0 0 1.35rem; color: #ddd5c6; }
.prose a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong { font-weight: 600; color: var(--text); }
.prose ul, .prose ol { margin: 0 0 1.5rem; padding-left: 1.4rem; }
.prose li { margin: 0 0 0.5rem; color: #ddd5c6; }
.prose li::marker { color: var(--accent); }
.prose img {
  width: calc(100% + 2 * min(var(--gutter), 60px));
  max-width: none;
  margin: 2rem calc(-1 * min(var(--gutter), 60px));
  border-radius: var(--radius);
  background: #000;
  cursor: zoom-in;
}
@media (max-width: 760px) { .prose img { width: 100%; margin: 1.5rem 0; } }
.prose figure { margin: 2rem 0; }
.prose figure img { margin-bottom: 0.75rem; }
.prose figcaption, .prose .caption-text { font-family: var(--font-ui); font-size: 0.85rem; color: var(--text-3); line-height: 1.5; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 2rem; font-family: var(--font-ui); font-size: 0.92rem; }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.prose .table-scroll { overflow-x: auto; }

/* Call-out boxes used throughout the older articles */
.prose .fact-box, .prose .fact-highlight, .prose .event-flare, .prose .gold-forge, .prose .poem-block {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--accent);
  background: var(--bg-raised);
  font-family: var(--font-ui);
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-2);
}
.prose .fact-box p, .prose .event-flare p, .prose .gold-forge p { font-family: inherit; font-size: inherit; color: inherit; }
.prose .fact-box p:last-child, .prose .event-flare p:last-child, .prose .gold-forge p:last-child { margin-bottom: 0; }
.prose .fact-box strong, .prose .fact-highlight strong { color: var(--accent); font-weight: 600; }
.prose .poem-block { font-family: var(--font-read); font-style: italic; font-size: 1.1rem; }
.prose .fact-list { padding-left: 1.2rem; }
.prose .subtle-list { list-style: none; padding: 0; }
.prose .featured-image, .prose .article-image { margin-top: 0; }

/* Subtitle blocks (neutron-stars, thin-crescent-moon, binocular guides) */
.prose .page-title { margin-bottom: 1.5rem; }
.prose .page-title h1, .prose .page-header h1 { margin-bottom: 0.75rem; }
.prose .subtitle, .prose .page-header > p { font-family: var(--font-read); font-style: italic; font-size: 1.3rem; color: var(--text-2); margin: 0 0 0.75rem; }
.prose .page-header { margin-bottom: 2rem; }
.prose .sub-coord { font-size: 0.9rem !important; color: var(--text-3) !important; }
.prose .crucible-heading { font-family: var(--font-display); font-size: clamp(1.55rem, 3.4vw, 2rem); margin: 2rem 0 1rem; }
.prose .lead, .prose .intro-text p:first-child { font-size: 1.28rem; line-height: 1.6; color: var(--text); }
.prose .term { color: var(--accent); font-weight: 500; display: inline; }
.prose .highlight-stat { font-family: var(--font-mono); font-size: 0.95em; color: var(--accent); white-space: nowrap; }
.prose .closing { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); text-align: center; font-style: italic; color: var(--text-3); }
.prose .closing strong { color: var(--accent); }
.prose .intro-text br { display: none; }

/* Binocular guides: numbered objects */
.prose .object { margin: 3.5rem 0 0; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.prose .object h2 { margin-top: 0; }
.prose .obj-number { font-family: var(--font-mono); font-size: 0.55em; color: var(--accent); vertical-align: 0.35em; margin-right: 0.4rem; letter-spacing: 0.05em; }
.prose .details { display: grid; gap: 0.4rem; margin: 0 0 1rem; padding: 0.9rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--font-ui); font-size: 0.9rem; }
.prose .details .label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-right: 0.35rem; }
.prose .details .value { color: var(--text); }
.prose .image-wrap img { margin-top: 1rem; }
.prose .outro { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }

/* Older-/newer-article links */
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 4rem; padding-top: 2rem; border-top: 3px double var(--line-strong); }
.pn { text-decoration: none; display: flex; flex-direction: column; gap: 0.35rem; }
.pn-next { text-align: right; grid-column: 2; }
.pn-dir { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.pn-title { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.25; }
.pn:hover .pn-title { color: var(--accent); }
@media (max-width: 600px) { .prev-next { grid-template-columns: 1fr; } .pn-next { grid-column: 1; text-align: left; } }

/* Utility */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
