/* Site-wide Paper palette and navigation. Content layouts live with each section. */
:root {
  color-scheme: light;
  --site-bg: #f6f3ef;
  --site-surface: #fff;
  --site-ink: #1a1823;
  --site-muted: #514e60;
  --site-accent: #6142b3;
  --site-hover: #432981;
  --site-rule: #d8d2df;
  --site-wash: #eeebf4;
  --site-halo: #e3e0f1;
  --site-footer: #eae6e2;
  --site-teal: #08726b;
  --site-sans: "Segoe UI", Arial, sans-serif;
  --site-serif: Georgia, "Times New Roman", serif;
  --site-mono: Consolas, "Courier New", monospace;
  --site-gutter: clamp(22px,6vw,88px);
  background: var(--site-bg);
  accent-color: var(--site-accent);
}
.wrap {
  width: min(1280px,100%);
  margin-inline: auto;
  padding-inline: var(--site-gutter);
}
.masthead, body > footer {
  color: var(--site-ink);
  background: var(--site-bg);
  font: 14px/1.5 var(--site-sans);
}
.topbar, body > footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}
.topbar { position: relative; }
.topbar::after {
  content: "";
  position: absolute;
  inset: auto var(--site-gutter) 0;
  border-bottom: 1px solid var(--site-rule);
}
.masthead a, body > footer a { color: inherit; text-decoration: none; }
.masthead a:hover, body > footer a:hover {
  color: var(--site-accent);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.055em;
}
.brand i {
  display: block;
  width: 19px;
  height: 19px;
  transform: rotate(45deg);
  border: 2px solid var(--site-accent);
  background: var(--site-accent);
  box-shadow: inset 0 0 0 4px var(--site-bg);
}
.topbar nav { display:flex; gap:clamp(13px,3vw,36px); margin-left:auto; }
.section-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--site-muted);
  border-left: 1px solid var(--site-rule);
  padding-left: 18px;
}
.section-links [aria-current] { color: var(--site-accent); font-weight: 600; }
body > footer { border-top:1px solid var(--site-rule); background:var(--site-footer); }
body > footer .wrap { min-height:76px; }
body > footer .brand { font-size:18px; }
body > footer .brand i { width:14px; height:14px; box-shadow:inset 0 0 0 2px var(--site-footer); }
:focus-visible { outline:3px solid var(--site-accent); outline-offset:3px; }
@media(max-width:900px) {
  :root { --site-gutter:4vw; }
}
@media(max-width:790px) {
  .topbar:has(.section-links) { flex-wrap:wrap; gap:8px 14px; padding-block:12px; }
  .topbar:has(.section-links) nav { width:100%; justify-content:space-between; }
  .section-links { padding-left:0; border:0; }
}
@media(max-width:690px) {
  :root { --site-gutter:20px; }
  .topbar { min-height:59px; }
  .topbar nav { gap:12px; font-size:13px; }
  .brand { font-size:19px; gap:9px; }
  .brand i { width:15px; height:15px; box-shadow:inset 0 0 0 3px var(--site-bg); }
}
@media(max-width:460px) {
  .topbar { flex-wrap:wrap; gap:7px 12px; padding-block:12px; }
  .topbar nav { width:100%; justify-content:space-between; flex-wrap:wrap; }
  .section-links { font-size:12px; gap:10px; }
}
@media(max-width:360px) {
  :root { --site-gutter:14px; }
  .topbar nav { gap:8px; }
}
@media print { .topbar nav, .section-links, body > footer { display:none; } }

.redirect-page { margin:0; padding:var(--site-gutter); font:16px/1.6 var(--site-sans); color:var(--site-ink); }
.redirect-page a { color:var(--site-accent); text-underline-offset:3px; }
