:root {
  --bg: #fbf9f5;
  --surface: #ffffff;
  --surface-alt: #f3efe6;
  --ink: #0f172a;
  --ink-muted: #334155;
  --accent: #0b4f6c;
  --accent-dark: #07384d;
  --accent-soft: #e6f2f7;
  --border: #94a3b8;
  --placeholder-bg: #fffbeb;
  --placeholder-border: #b45309;
  --placeholder-ink: #78350f;
  --focus: #0b4f6c;
  --base-size: 20px;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

html[data-text-size="large"] {
  --base-size: 23px;
}

html[data-text-size="xlarge"] {
  --base-size: 26px;
}

html[data-contrast="high"] {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --ink: #000000;
  --ink-muted: #111827;
  --accent: #003b5c;
  --accent-dark: #00263b;
  --accent-soft: #dbeafe;
  --border: #0f172a;
  --placeholder-bg: #fef3c7;
  --placeholder-border: #78350f;
  --placeholder-ink: #451a03;
  --focus: #000000;
}

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

html {
  font-size: var(--base-size);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 2px;
}

a:hover {
  color: var(--accent-dark);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-dark);
  color: #ffffff;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 1rem;
  z-index: 1000;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

.preview-bar {
  background: var(--accent-dark);
  color: #ffffff;
  padding: 12px 20px;
  font-size: 0.9rem;
  border-bottom: 3px solid #f59e0b;
}

.preview-bar-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.preview-badge {
  display: inline-block;
  background: #fef3c7;
  color: #451a03;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 999px;
  margin-right: 8px;
  font-size: 0.85em;
  letter-spacing: 0.02em;
}

.a11y-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.a11y-btn {
  appearance: none;
  background: #ffffff;
  color: #0f172a;
  border: 2px solid #ffffff;
  border-radius: 8px;
  padding: 8px 14px;
  min-height: 44px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.a11y-btn[aria-pressed="true"] {
  background: #fef3c7;
  color: #451a03;
  border-color: #f59e0b;
}

.a11y-btn:hover {
  background: #e2e8f0;
}

.site-header {
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  padding: 28px 20px 36px;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-nav {
  max-width: 1040px;
  margin: 0 auto 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 4px 2px;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-bottom-color: var(--accent);
}

.hero {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

.hero-subtitle {
  margin: 0 0 18px;
  font-size: 1.15rem;
  color: var(--ink-muted);
  font-weight: 600;
}

.hero-dates {
  margin: 0 0 20px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.dates-box {
  display: inline-block;
  background: var(--placeholder-bg);
  border: 2px dashed var(--placeholder-border);
  color: var(--placeholder-ink);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.hero-lead {
  margin: 0;
  font-size: 1.05rem;
  max-width: 58ch;
}

.hero-figure {
  margin: 0;
  background: var(--surface-alt);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 20%;
}

.hero-figure figcaption {
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

main {
  padding: 40px 0 64px;
}

.section {
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type {
  border-bottom: none;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  line-height: 1.25;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
}

h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--accent-dark);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

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

.quote-card {
  margin: 28px 0;
  padding: 26px 28px;
  background: var(--accent-soft);
  border-left: 6px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.quote-card blockquote {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink);
}

.quote-card cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-dark);
}

.placeholder-card {
  margin-top: 24px;
  background: var(--placeholder-bg);
  border: 2px dashed var(--placeholder-border);
  border-radius: var(--radius);
  padding: 22px 24px;
  color: var(--ink);
}

.placeholder-tag {
  display: inline-block;
  background: var(--placeholder-border);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.gallery-intro {
  max-width: 65ch;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.photo-card {
  margin: 0;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.photo-frame {
  background: var(--surface-alt);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  border-bottom: 1px solid var(--border);
}

.photo-frame img {
  max-height: 360px;
  width: auto;
  max-width: 100%;
  border-radius: 6px;
}

.photo-frame--inset img {
  max-height: 206px;
  border-radius: 50%;
  border: 3px solid var(--accent);
}

.photo-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.photo-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}

.photo-caption {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.photo-source {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.photo-actions {
  margin-top: auto;
  padding-top: 8px;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  background: var(--accent);
  color: #ffffff;
  border: 2px solid var(--accent);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
}

.btn-link:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #ffffff;
}

.details-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 12px;
}

.details-list li {
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

dialog.lightbox {
  max-width: min(94vw, 960px);
  max-height: 92vh;
  padding: 0;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

dialog.lightbox::backdrop {
  background: rgba(15, 23, 42, 0.82);
}

.lightbox-inner {
  padding: 20px;
  display: grid;
  gap: 14px;
}

.lightbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.lightbox-img {
  max-height: 68vh;
  width: auto;
  margin: 0 auto;
  border-radius: 6px;
}

.site-footer {
  background: var(--surface);
  border-top: 2px solid var(--border);
  padding: 32px 20px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

.optional-card {
  margin-top: 24px;
  background: #eef6fb;
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.optional-tag {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 16px;
}
.poster-card .photo-frame {
  background: #000;
  min-height: 0;
  padding: 0;
}
.poster-card .photo-frame img {
  max-height: none;
  width: 100%;
  height: auto;
  border-radius: 0;
}
.sources ol {
  padding-left: 1.4em;
}
.sources li {
  margin: 0 0 10px;
}
.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.photo-frame img {
  max-height: 320px;
}
.hero-figure img {
  aspect-ratio: 4 / 5;
  object-position: center 15%;
}
.note-inline {
  font-size: 0.95rem;
  color: var(--ink-muted);
}
