:root {
  color-scheme: light;
  --text: #1f2430;
  --muted: #6b7280;
  --accent: #2c3e50;
  --rule: #d9dce3;
  --bg: #fbfbfa;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --img-filter: brightness(0.88);
  --text: #e3e6eb;
  --muted: #9aa1ad;
  --accent: #aab8c8;
  --rule: #3a3f4a;
  --bg: #16181d;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --img-filter: brightness(0.88);
    --text: #e3e6eb;
    --muted: #9aa1ad;
    --accent: #aab8c8;
    --rule: #3a3f4a;
    --bg: #16181d;
  }
}
* { margin: 0; box-sizing: border-box; }
body {
  position: relative;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}
body > header { text-align: center; margin-bottom: 2rem; }
h1 { font-size: 1.9rem; color: var(--accent); }
body > header p { color: var(--muted); }
.site-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a:focus { text-decoration: underline; }
.site-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}
.site-nav a[aria-current="page"]:hover { text-decoration: none; }
.utilities {
  position: absolute;
  top: 2.3rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}
.utilities button {
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
  background: none;
  border: none;
  padding: 0.75rem;
  margin: -0.75rem -0.75rem -0.75rem 0;
  color: var(--accent);
  cursor: pointer;
}
.contact { margin-top: 0.4rem; font-size: 0.95rem; }
.contact a { margin: 0 0.25rem; }
.download a {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-size: 0.95rem;
  text-decoration: none;
}
.download a:hover { border-color: var(--accent); }
a { color: var(--accent); }
h2 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.2rem;
  margin: 1.8rem 0 0.7rem;
}
article { margin-bottom: 0.9rem; }
article header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
}
article h3 { font-size: 1rem; }
time, .when { color: var(--muted); font-style: italic; white-space: nowrap; font-size: 0.95rem; }
.where { color: var(--muted); font-style: italic; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1rem; }
dt { font-weight: 600; }
dd { margin: 0; }
main p + p, main ul + p { margin-top: 0.8rem; }
main ul { padding-left: 1.2em; margin-top: 0.5rem; }
main li { margin-bottom: 0.2rem; }
figure { margin: 1.5rem 0; }
figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--rule);
  filter: var(--img-filter, none);
}
figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 0.4rem;
}
@media (max-width: 28rem) {
  article header { flex-direction: column; gap: 0; }
  dl { grid-template-columns: 1fr; gap: 0; }
  dd { margin-bottom: 0.4rem; }
}
footer { margin-top: 2.5rem; text-align: center; color: var(--muted); font-size: 0.9rem; }

@media print {
  :root, :root[data-theme="dark"], :root:not([data-theme="light"]) {
    --text: #000;
    --muted: #444;
    --accent: #000;
    --rule: #999;
    --bg: #fff;
    --img-filter: none;
  }
  .site-nav, .utilities, .download, footer { display: none; }
  body { max-width: none; padding: 0; }
  a { color: inherit; text-decoration: none; }
  article, figure { break-inside: avoid; }
}
