:root {
  --paper: #f3efe6;
  --card: #fbf8f2;
  --ink: #1c1915;
  --muted: #5e584e;
  --line: #d8d0c3;
  --accent: #0e4d4a;
  --accent-soft: #e5f0ee;
  --shadow: 0 18px 40px rgba(40, 32, 20, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #efe6d4 0%, transparent 55%),
    var(--paper);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 6vw;
  background: rgba(243, 239, 230, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.mark {
  font-family: Newsreader, Georgia, serif;
  font-weight: 650;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

nav { display: flex; gap: 1.25rem; }

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

nav a:hover { color: var(--ink); }

main {
  width: min(1080px, calc(100% - 10vw));
  margin: 0 auto;
  padding-bottom: 4rem;
}

.hero { padding: 4.2rem 0 1.5rem; }

.kicker {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1, h2 {
  font-family: Newsreader, Georgia, serif;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  max-width: 16ch;
}

.lede {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin: 2.2rem 0 3rem;
}

.facts article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.1rem 0.85rem;
}

.fact-value {
  margin: 0;
  font-family: Newsreader, Georgia, serif;
  font-size: 1.9rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.fact-label {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.panel { margin-top: 1rem; }

.panel-head { max-width: 68ch; margin-bottom: 1.2rem; }

h2 { margin: 0 0 0.4rem; font-size: 2rem; }

.panel-head p,
.note,
.site-footer p { color: var(--muted); }

.table-wrap {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

caption {
  caption-side: bottom;
  text-align: left;
  padding: 0.8rem 1rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

th, td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

thead th {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

td { font-variant-numeric: tabular-nums; }

tr.emphasis { background: var(--accent-soft); }

tr.emphasis th { color: var(--accent); }

.note { max-width: 72ch; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filters button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font: inherit;
  cursor: pointer;
}

.filters button[aria-selected="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

.card button.preview {
  display: block;
  padding: 0;
  border: 0;
  background: #fff;
  cursor: zoom-in;
}

.card img,
.card video,
#lightbox img,
#lightbox video {
  width: 100%;
  height: auto;
  display: block;
  background: #fff;
}

.card figcaption { padding: 0.95rem 1rem 1.1rem; }

.card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-family: Newsreader, Georgia, serif;
}

.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.status { color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 6vw 2rem;
}

.site-footer p { margin: 0; }

dialog {
  width: min(960px, calc(100% - 2rem));
  border: 0;
  border-radius: 18px;
  padding: 0.6rem 0.6rem 1rem;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
}

dialog::backdrop { background: rgba(28, 25, 21, 0.72); }

dialog form { display: flex; justify-content: flex-end; }

.close {
  border: 0;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font: inherit;
  cursor: pointer;
}

#lightbox-caption { margin: 0.8rem 0.4rem 0.3rem; color: var(--muted); }

@media (max-width: 800px) {
  .facts,
  .gallery { grid-template-columns: 1fr; }
  .hero { padding-top: 2.4rem; }
  h1 { max-width: none; }
}
