:root {
  --bg: #ebe6dc;
  --bg-warm: #f5f1ea;
  --ink: #1c1916;
  --ink-soft: #3d3832;
  --muted: #6b645a;
  --muted-light: #9a9288;
  --accent: #7a2e2a;
  --accent-soft: #a85a52;
  --card: #faf8f4;
  --card-raised: #fffdf9;
  --border: #cfc7ba;
  --border-light: #e0d9ce;
  --shadow: 0 1px 2px rgba(28, 25, 22, 0.04), 0 8px 24px rgba(28, 25, 22, 0.06);
  --shadow-lg: 0 2px 4px rgba(28, 25, 22, 0.05), 0 16px 40px rgba(28, 25, 22, 0.08);
  --font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --font-ui: "DM Sans", system-ui, -apple-system, sans-serif;
  --max-width: 72rem;
  --label-width: min(28rem, 100%);
  --figure-width: min(22rem, 100%);
  --radius: 2px;
  --radius-lg: 4px;
  --site-header-h: 5rem;
  --site-footer-h: 2.35rem;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1a1816;
  --bg-warm: #242019;
  --ink: #ebe6dc;
  --ink-soft: #cfc7ba;
  --muted: #9a9288;
  --muted-light: #6b645a;
  --accent: #c97a72;
  --accent-soft: #e09a92;
  --card: #1f1c19;
  --card-raised: #262220;
  --border: #3d3832;
  --border-light: #2e2a26;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.25), 0 16px 40px rgba(0, 0, 0, 0.35);
}

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--site-header-h) + 1rem);
  scroll-padding-bottom: var(--site-footer-h);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  margin: 0;
  padding-top: var(--site-header-h);
  padding-bottom: var(--site-footer-h);
  min-height: 100%;
  font-variant-ligatures: no-discretionary-ligatures;
  font-feature-settings: "dlig" 0;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--accent-soft); }

/* —— Site chrome —— */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--card-raised);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-logo {
  color: inherit;
  text-decoration: none;
  display: block;
}
.site-logo:hover { color: inherit; }

.site-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.1;
  color: var(--accent);
}

.site-logo:hover .site-name {
  color: var(--accent-soft);
}

.site-tagline {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.2rem;
}

.site-nav {
  display: flex;
  gap: 0.25rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}
.nav-link:hover {
  color: var(--ink);
  background: var(--bg-warm);
}
.nav-link--active {
  color: var(--accent);
  background: rgba(122, 46, 42, 0.07);
  font-weight: 500;
}

button.nav-link {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  margin-left: 0.15rem;
  color: inherit;
}

.theme-toggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
}

.theme-toggle__icon svg {
  width: 1.15rem;
  height: 1.15rem;
  color: currentColor;
}

.theme-toggle__icon--moon svg {
  fill: currentColor;
  stroke: none;
}

.theme-toggle__icon--sun svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-theme="light"] .theme-toggle__icon--sun,
[data-theme="dark"] .theme-toggle__icon--moon {
  display: none;
}

.site-main {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  border-top: 1px solid var(--border);
  background: var(--card);
  z-index: 10;
}

.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.55rem 1.5rem;
  text-align: center;
}

.framing {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--muted);
  margin: 0;
}

.framing a {
  color: var(--muted);
  text-decoration: none;
}

.framing a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.image-credit {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  line-height: 1.35;
  color: var(--muted-light);
  margin: 0.45rem 0 0;
}

.image-credit a {
  color: var(--muted);
  text-decoration: none;
}

.image-credit a:hover {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 540px) {
  :root { --site-header-h: 7.25rem; --site-footer-h: 2.75rem; }
  .site-footer { position: static; }
  body { padding-bottom: 0; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 100;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  padding: 0.5rem 0.85rem;
  background: var(--card-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
}
.skip-link:focus {
  left: 0.5rem;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* —— Edition header (nav + title) —— */

.edition-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem 1.25rem;
  margin-bottom: 2.5rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  font-family: var(--font-ui);
  overflow: hidden;
}

.edition-header__prev {
  justify-self: start;
  min-width: 0;
  max-width: 100%;
}

.edition-header__next {
  justify-self: end;
  min-width: 0;
  max-width: 100%;
  text-align: right;
}

.edition-header__title {
  text-align: center;
  min-width: 0;
  padding: 0 0.25rem;
}

.edition-header__title .edition-kicker {
  margin-bottom: 0.25rem;
}

.edition-header__title .edition-date {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

@media (max-width: 640px) {
  .edition-header {
    gap: 0.65rem 0.75rem;
  }

  .edition-header .edition-nav-link,
  .edition-nav .edition-nav-link {
    font-size: 0.78rem;
  }
}

/* —— Edition intro (standalone, e.g. home date link) —— */

.edition-intro {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.edition-kicker {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.35rem;
}

.edition-date {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}

.edition-date a {
  color: inherit;
  text-decoration: none;
}
.edition-date a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.edition-note {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
  max-width: 36rem;
}

/* —— Work layout —— */

.work {
  margin-bottom: 3.5rem;
}

.work:last-child { margin-bottom: 0; }

.work-header {
  margin-bottom: 1.25rem;
}

.work-badge {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.work-layout {
  display: grid;
  grid-template-columns: var(--figure-width) 1fr;
  gap: 2rem 2.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .work-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.work-figure {
  margin: 0;
  position: sticky;
  top: calc(var(--site-header-h) + 1rem);
}

@media (max-width: 768px) {
  .work-figure { position: static; }
}

.artwork-img-link {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  text-align: inherit;
  text-decoration: none;
  cursor: zoom-in;
}
.artwork-img-link:hover .artwork-img {
  border-color: var(--muted-light);
  box-shadow: var(--shadow-lg);
}

.artwork-img {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.work-caption {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-light);
}

.work-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.35rem;
  color: var(--ink);
}

.work-lead {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.work-share {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-light);
}

.work-share-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 0.85rem;
  align-items: start;
}

.work-share-preview {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.work-share-platforms {
  min-width: 0;
  overflow: hidden;
}

.work-share-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.3rem;
  list-style: none;
  margin: 0 0 0.45rem;
  padding: 0;
}

.work-share-list:last-child {
  margin-bottom: 0;
}

.work-share-icon {
  display: block;
  width: 1rem;
  height: 1rem;
}

[data-theme="dark"] .work-share-icon {
  filter: invert(1);
  opacity: 0.72;
}

[data-theme="dark"] .work-share-link:hover .work-share-icon,
[data-theme="dark"] .work-share-link:focus-visible .work-share-icon,
[data-theme="dark"] .work-share-link--done .work-share-icon {
  opacity: 0.95;
}

.work-share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1.85rem;
  height: 1.85rem;
  margin: 0 auto;
  padding: 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.work-share-link:hover,
.work-share-link:focus-visible {
  color: var(--accent);
  border-color: var(--border);
  background: var(--card-raised);
}

.work-share-link--done {
  color: var(--accent);
  border-color: var(--accent-soft);
}

.work-share-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border-light);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--card);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.work-share-thumb:hover,
.work-share-thumb:focus-visible {
  border-color: var(--border);
  box-shadow: 0 2px 8px rgba(28, 25, 22, 0.08);
}

.work-share-thumb-img {
  display: block;
  width: 100%;
  height: auto;
}

.work-share-preview-label {
  display: block;
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border-light);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--accent);
  color: var(--card-raised);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.work-share-preview-label:hover,
.work-share-preview-label:focus-visible {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
}

@media (max-width: 540px) {
  .work-share-panel {
    grid-template-columns: 1fr;
  }
}

.share-redirect {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  margin: 1.25rem 0 0;
}

.share-landing {
  max-width: 28rem;
  margin: 0 auto;
}

.share-landing-figure {
  margin: 0 0 1.25rem;
}

.share-landing-img {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.share-landing-composite {
  max-width: 36rem;
}

.share-landing-lead {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}

/* —— Occidental label (primary voice) —— */

.voice {
  background: var(--card-raised);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 0;
  position: relative;
}

.voice::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-soft) 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.voice-header {
  padding: 1.25rem 1.75rem 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 0;
}

.voice-institution {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 0.25rem;
}

.voice-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.voice-curator {
  font-family: var(--font-ui);
  font-size: 0.92em;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-muted, var(--ink-soft));
  white-space: nowrap;
}

.voice-curator-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent);
}

.voice-curator-link:hover,
.voice-curator-link:focus-visible {
  color: var(--accent);
  border-bottom-color: currentColor;
}

.curator-intro {
  margin-bottom: 2rem;
}

.curator-meta {
  margin: 0.35rem 0 0;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--muted);
}

.curator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.85rem;
}

.curator-thumb-link {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm, 4px);
  background: var(--surface-alt, #f8f6f2);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.curator-thumb-link:hover,
.curator-thumb-link:focus-visible {
  border-color: var(--accent-soft);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.curator-thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.voice-body {
  padding: 1.5rem 1.75rem 1.75rem;
  font-size: 1.02rem;
}

.voice-body p { margin: 0 0 1.1rem; }
.voice-body p:last-child { margin-bottom: 0; }
.voice-body em { font-style: italic; }

.entry-classification {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.3;
  color: var(--accent);
  margin: 0 0 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

/* —— Source catalog record (secondary, collapsible) —— */

.meta-disclosure {
  margin: 1rem 0 0;
  font-family: var(--font-ui);
  font-size: 0.78rem;
}

.meta-disclosure summary {
  cursor: pointer;
  color: var(--muted);
  list-style: none;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0;
  transition: color 0.15s;
}

.meta-disclosure summary::-webkit-details-marker { display: none; }

.meta-disclosure summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.15s, border-color 0.15s;
}

.meta-disclosure[open] summary::before {
  content: "−";
  border-color: var(--accent-soft);
  color: var(--accent);
}

.meta-disclosure summary:hover { color: var(--ink-soft); }
.meta-disclosure summary:hover::before { border-color: var(--muted); }

.meta-label {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.meta-hint {
  color: var(--muted-light);
  font-weight: 400;
}

.meta-panel {
  margin-top: 0.5rem;
  padding: 1rem 1.1rem;
  background: var(--bg-warm);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--ink-soft);
}

.meta-panel dl {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.45rem 1rem;
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
}

.meta-panel dt {
  color: var(--muted);
  font-weight: 500;
  margin: 0;
}

.meta-panel dd { margin: 0; }
.meta-panel a { word-break: break-all; }

/* —— Supplementary grid (homepage) —— */

.section-heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
}

.edition-supplementary {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.25rem;
}

.work-compact {
  margin: 0;
}

.work-compact-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  background: var(--card-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.work-compact-link:hover {
  color: inherit;
  border-color: var(--border);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.work-compact-img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
}

.work-compact-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
}

.work-compact-body {
  padding: 1rem 1.1rem 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.work-compact-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-compact-class {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-style: italic;
  color: var(--accent);
  margin: 0 0 0.5rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-compact-meta {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--muted);
  margin: auto 0 0;
}

.edition-link-wrap {
  margin-top: 1.75rem;
  text-align: center;
}

.edition-link {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-raised);
  transition: background 0.15s, border-color 0.15s;
}

.edition-link:hover {
  background: var(--bg-warm);
  border-color: var(--muted-light);
}

/* —— Day page dividers —— */

.work-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

.work--secondary .work-badge { color: var(--muted); }

/* —— Archive calendar —— */

.archive-intro {
  margin-bottom: 1.75rem;
}

.archive-calendar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.archive-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.4rem;
  margin-bottom: -1rem;
}

.archive-weekday {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted-light);
}

.archive-month {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.archive-month-heading {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: 0.01em;
}

.archive-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.4rem;
}

.archive-day {
  position: relative;
  display: block;
  aspect-ratio: 1;
  min-height: 3.25rem;
  border-radius: var(--radius);
  overflow: visible;
}

.archive-day--empty {
  background: var(--bg-warm);
  border: 1px dashed var(--border-light);
}

.archive-day--filled {
  background: var(--card-raised);
  border: 1px solid var(--border-light);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.archive-day--filled:hover,
.archive-day--filled:focus-visible {
  color: inherit;
  border-color: var(--border);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
  z-index: 5;
}

.archive-day-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.2rem;
  background: #fff;
  display: block;
}

.archive-day-num {
  position: absolute;
  bottom: 0.12rem;
  right: 0.18rem;
  font-family: var(--font-ui);
  font-size: 0.58rem;
  font-weight: 600;
  line-height: 1;
  color: var(--muted);
  background: rgba(255, 253, 249, 0.88);
  padding: 0.12rem 0.28rem;
  border-radius: 2px;
  pointer-events: none;
}

.archive-day-hover {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  transform: translateX(-50%);
  width: min(13rem, 42vw);
  aspect-ratio: 4 / 3;
  padding: 0.4rem;
  background: var(--card-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 30;
}

.archive-day-hover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}

.archive-day--filled:hover .archive-day-hover,
.archive-day--filled:focus-visible .archive-day-hover {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 540px) {
  .archive-weekdays {
    gap: 0.25rem;
  }
  .archive-week-grid {
    gap: 0.25rem;
  }
  .archive-day {
    min-height: 2.5rem;
  }
  .archive-day-hover {
    display: none;
  }
}

@media (hover: none) {
  .archive-day-hover {
    display: none;
  }
}

/* —— Legacy entry formats —— */

.entry-meta {
  margin: 0 0 1.25rem;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1rem;
  font-size: 0.92rem;
}
.entry-meta dt { color: var(--muted); margin: 0; }
.entry-meta dd { margin: 0; }

.entry-section { margin: 0 0 1.25rem; }
.entry-section h3 {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 0.5rem;
  font-weight: 500;
}
.entry-section p { margin: 0 0 0.75rem; }
.entry-section p:last-child { margin-bottom: 0; }

.notes {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--muted);
}
.notes ol { margin: 0; padding-left: 1.25rem; }
.notes li { margin: 0.35rem 0; }

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 500;
  margin: 0 0 1.25rem;
  color: var(--ink);
}

/* —— Breadcrumbs —— */

.breadcrumbs {
  margin-bottom: 1rem;
}

.breadcrumb-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--muted);
}

.breadcrumb-list li:not(:last-child)::after {
  content: "›";
  margin-left: 0.35rem;
  color: var(--muted-light);
}

.breadcrumb-list a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumb-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* —— Edition navigation —— */

.edition-header {
  margin-bottom: 2.5rem;
}

.edition-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.25rem 0;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  font-family: var(--font-ui);
  overflow: hidden;
}

.edition-nav--bottom {
  margin-top: 3rem;
  margin-bottom: 0;
}

.edition-nav-link {
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.35;
  white-space: nowrap;
}
.edition-nav-link:hover {
  color: var(--accent-soft);
  text-decoration: underline;
}

.edition-nav-link--disabled {
  color: var(--muted-light);
  cursor: default;
  white-space: nowrap;
}

.edition-nav-arrow {
  font-size: 1rem;
  line-height: 1;
}

/* —— Print —— */

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .edition-nav,
  .edition-header,
  .theme-toggle,
  .breadcrumbs,
  .edition-link-wrap,
  .edition-supplementary,
  .archive-day-hover {
    display: none !important;
  }
  body {
    padding: 0;
    background: #fff;
    color: #000;
  }
  .site-main {
    max-width: none;
    padding: 0;
  }
  .work-figure {
    position: static;
    break-inside: avoid;
  }
  .voice {
    box-shadow: none;
    break-inside: avoid-page;
  }
  .meta-disclosure summary { display: none; }
  .meta-panel {
    display: block !important;
    border: 1px solid #ccc;
  }
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.75em;
    color: #666;
  }
  .work-compact-link[href]::after,
  .archive-day--filled[href]::after {
    content: "";
  }
}

/* —— Image lightbox —— */

body.lightbox-open { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  background: rgba(28, 25, 22, 0.92);
  cursor: zoom-out;
}

.lightbox[hidden] { display: none; }

.lightbox__figure {
  margin: 0;
  max-width: min(95vw, 72rem);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  cursor: default;
}

.lightbox__media {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
}

.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 2.5rem);
  width: auto;
  height: auto;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.lightbox__copy {
  position: absolute;
  right: 0.65rem;
  top: 0.65rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 1px solid rgba(245, 241, 234, 0.35);
  border-radius: var(--radius);
  background: rgba(28, 25, 22, 0.78);
  color: rgba(245, 241, 234, 0.95);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.lightbox__copy svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox__copy:hover,
.lightbox__copy:focus-visible {
  background: rgba(28, 25, 22, 0.92);
  border-color: rgba(245, 241, 234, 0.55);
  color: #fff;
}

.lightbox__copy--done {
  border-color: rgba(201, 122, 114, 0.85);
  color: #fff;
}

.lightbox__copy--error {
  border-color: rgba(220, 120, 120, 0.85);
  color: #fff;
}

.lightbox__caption {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(245, 241, 234, 0.82);
  text-align: center;
  max-width: 42rem;
}

.lightbox__close {
  position: fixed;
  top: calc(var(--site-header-h) + 0.5rem);
  right: clamp(0.75rem, 3vw, 1.5rem);
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(245, 241, 234, 0.25);
  border-radius: var(--radius);
  background: rgba(28, 25, 22, 0.55);
  color: var(--bg-warm);
  font-family: var(--font-ui);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox__close:hover {
  background: rgba(28, 25, 22, 0.8);
  border-color: rgba(245, 241, 234, 0.45);
}

/* —— About modal —— */

body.about-open { overflow: hidden; }

.about-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.about-modal[hidden] { display: none; }

.about-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 22, 0.72);
  cursor: pointer;
}

.about-modal__panel {
  position: relative;
  z-index: 1;
  width: min(42rem, 100%);
  flex-shrink: 0;
  margin: auto;
  padding: 1.75rem 2rem 2.25rem;
  background: var(--card-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.about-modal__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 2.5rem 1.25rem 0;
  color: var(--ink);
}

.about-modal__body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
}

.about-modal__body p {
  margin: 0 0 1rem;
}

.about-modal__body p:last-child {
  margin-bottom: 0;
}

.about-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-warm);
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.about-modal__close:hover {
  color: var(--ink);
  border-color: var(--accent);
}
