:root {
  --bg: #f8f6f1;
  --text: #1b1e21;
  --muted: #666b70;
  --rule: #dcd8ce;
  --accent: #7a2e2e;
  --button-bg: #1b1e21;
  --button-text: #f8f6f1;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131517;
    --text: #e9e6df;
    --muted: #9a9c9e;
    --rule: #2c3033;
    --accent: #d99a8b;
    --button-bg: #e9e6df;
    --button-text: #131517;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 920px;
  margin: 0 auto;
  padding: 88px 24px 48px;
}

a { color: inherit; }

/* Hero */
.hero { margin-bottom: 72px; }

h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
}

.tagline {
  max-width: 34em;
  margin: 0 0 28px;
  font-size: 1.15rem;
  color: var(--muted);
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--text);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.button.primary { background: var(--button-bg); color: var(--button-text); }
.button.primary:hover { opacity: 0.85; }
.button:not(.primary):hover { background: var(--button-bg); color: var(--button-text); }

/* Sections: label above, entries at full width */
section {
  padding: 32px 0 36px;
  border-top: 1px solid var(--rule);
}

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

.entry + .entry { margin-top: 24px; }

.row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}

h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}

.org-note { font-weight: 400; color: var(--muted); font-size: 1rem; margin-left: 6px; }

.meta {
  flex: none;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.sub { margin-top: 2px; }
.role { font-style: italic; }

sup { font-size: 0.65em; line-height: 0; }

ul {
  margin: 10px 0 0;
  padding-left: 1.15em;
}

li { margin: 4px 0; padding-left: 2px; }
li::marker { color: var(--muted); }

.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; }
.facts div + div { margin-top: 10px; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 720px) {
  main { padding: 56px 20px 40px; }
  .hero { margin-bottom: 48px; }
  section { padding: 28px 0; }
  h2 { margin-bottom: 18px; }
  .row { flex-direction: column; gap: 0; }
  .meta { text-align: left; }
  .sub { margin-top: 4px; }
  .facts div { grid-template-columns: 1fr; gap: 0; }
}

@media print {
  :root { --bg: #fff; --text: #000; --muted: #444; --rule: #bbb; --accent: #000; }
  body { font-size: 10.5pt; }
  main { max-width: none; padding: 0; }
  .hero { margin-bottom: 20px; }
  .button { border: 0; padding: 0; background: none !important; color: #000 !important; }
  .button[download] { display: none; }
  section { padding: 12px 0; }
  h2 { margin-bottom: 8px; }
  .entry { break-inside: avoid; }
  .entry + .entry { margin-top: 12px; }
}
