:root {
  --paper: #f3eee4;
  --paper-deep: #e7e0d2;
  --raised: #faf7f1;
  --ink: #1c1714;
  --ink-soft: #3a332c;
  --muted: #4e473f;
  --line: #d5ccbd;
  --line-strong: #b7ab99;
  --violet: #3a274f;
  --violet-soft: #efeaf4;
  --date: #6e4316;
  --focus: #8a5a12;
  --shadow: 0 18px 40px rgba(28, 23, 20, 0.08);
  --serif: "Source Serif 4", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --display: Fraunces, "Source Serif 4", Georgia, serif;
  --sans: "Public Sans", "Avenir Next", "Segoe UI", sans-serif;
  --measure: 66ch;
  --page: 1120px;
  --header: 7.4rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  font-optical-sizing: auto;
}

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

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

a:hover { text-decoration-thickness: 2px; }

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

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 0.9rem;
  z-index: 20;
}

.skip:focus { transform: none; }

.wrap {
  width: min(var(--page), calc(100% - 2.4rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(243, 238, 228, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-bar,
.nav-row {
  width: min(var(--page), calc(100% - 2.4rem));
  margin-inline: auto;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand svg { width: 2.4rem; height: auto; border: 1px solid rgba(28, 23, 20, 0.25); }

.brand-name {
  font-family: var(--display);
  font-weight: 620;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-name span { color: var(--violet); }

.brand-tag {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.menu-btn {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  min-height: 2.6rem;
  cursor: pointer;
}

.site-nav { padding: 0 0 0.7rem; }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-block;
  color: var(--ink-soft);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 550;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

.nav-list a:hover { background: var(--paper-deep); }

.nav-list a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}

@media (max-width: 860px) {
  .site-nav { display: none; padding-bottom: 0.9rem; }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: flex-start; }
  .nav-list a { padding: 0.55rem 0.2rem; }
}

@media (min-width: 861px) {
  .menu-btn { display: none; }
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: end;
  padding: 2.4rem 0 1.4rem;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
}

h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); }

h2 { font-size: clamp(1.55rem, 2.4vw, 2.15rem); margin: 2.2rem 0 0.7rem; }

h3 { font-size: 1.28rem; margin: 1.6rem 0 0.4rem; }

.lede {
  font-size: 1.28rem;
  line-height: 1.45;
  max-width: 36rem;
  margin: 1rem 0 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.8rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 650;
  font-size: 0.98rem;
  text-decoration: none;
}

.button.primary { background: var(--ink); color: var(--paper); }

.button.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.figure {
  margin: 0;
}

.figure img {
  width: 100%;
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.figure figcaption,
.caption {
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
  margin-top: 0.45rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin: 0.6rem 0 2.4rem;
}

.stat {
  padding: 1rem 1rem 1.05rem 0;
  border-right: 1px solid var(--line);
}

.stat:last-child { border-right: 0; padding-right: 0; }

.stat b {
  display: block;
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat span {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--sans);
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--ink-soft);
  max-width: 16rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-top: 1px solid var(--ink);
  padding-top: 0.8rem;
  margin-top: 2.4rem;
}

.section-head h2 { margin: 0; }

.section-head a {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 650;
  white-space: nowrap;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin: 1rem 0 0.4rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: var(--raised);
  border: 1px solid var(--line);
  padding: 1rem 1rem 1.05rem;
  color: inherit;
  text-decoration: none;
  min-height: 100%;
}

.card:hover { border-color: var(--ink); }

.card strong {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.card span {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.45;
}

.card em {
  margin-top: auto;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--date);
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
  margin-top: 1rem;
}

.prose p,
.prose li { max-width: var(--measure); }

.prose p { margin: 0.8rem 0; }

.prose ul,
.prose ol { padding-left: 1.2rem; }

.page-head { padding: 2rem 0 0.4rem; }

.page-head p { max-width: 44rem; font-size: 1.22rem; line-height: 1.45; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
}

.crumbs a { color: var(--muted); }

.layout {
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
}

.layout > * { min-width: 0; }

.toc {
  position: sticky;
  top: 7.6rem;
  align-self: start;
  font-family: var(--sans);
  font-size: 0.88rem;
}

.toc p {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}

.toc ol { list-style: none; margin: 0; padding: 0; }

.toc a {
  display: block;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.28rem 0;
  border-top: 1px solid var(--line);
}

.chart { margin: 1rem 0 1.4rem; max-width: 52rem; }

.bar {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr) 5.4rem;
  gap: 0.7rem;
  align-items: center;
  margin: 0.38rem 0;
  font-family: var(--sans);
  font-size: 0.92rem;
}

.bar-name { font-weight: 650; min-width: 0; }

.track {
  height: 0.72rem;
  background: var(--paper-deep);
  border-radius: 999px;
  overflow: hidden;
}

.fill {
  display: block;
  height: 100%;
  width: calc(var(--p) * 1%);
  background: var(--c, var(--ink));
  border-radius: inherit;
}

.bar-val {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.table-wrap {
  display: block;
  overflow-x: auto;
  margin: 1rem 0 1.3rem;
  max-width: 100%;
  border-top: 1px solid var(--ink);
  -webkit-overflow-scrolling: touch;
  container-type: inline-size;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.35;
}

caption {
  caption-side: bottom;
  text-align: left;
  padding: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  width: 100cqi;
  max-width: 100cqi;
  box-sizing: border-box;
  position: sticky;
  inset-inline-start: 0;
}

th, td {
  text-align: left;
  padding: 0.48rem 0.7rem 0.48rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

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

td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; padding-left: 0.8rem; }

tr.total td { font-weight: 750; border-bottom-color: var(--ink); }

.note {
  background: var(--violet-soft);
  border-left: 3px solid var(--violet);
  padding: 0.8rem 1rem;
  margin: 1.1rem 0;
  max-width: 46rem;
}

.note p { margin: 0.35rem 0; }

.pull {
  margin: 1.2rem 0;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 3px solid var(--ink);
  max-width: 36rem;
}

.pull b {
  display: block;
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1;
}

.pull p { margin: 0.3rem 0 0; }

.province-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-top: 1rem;
}

.province {
  background: var(--raised);
  border: 1px solid var(--line);
  padding: 1rem 1rem 0.8rem;
}

.province h3 { margin-top: 0; }

.province p { margin: 0.35rem 0; font-size: 1rem; }

.mini {
  display: grid;
  grid-template-columns: 2.4rem 1fr 3.4rem;
  gap: 0.4rem;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.8rem;
  margin: 0.2rem 0;
}

.mini .track { height: 0.45rem; }

.timeline { list-style: none; margin: 1rem 0 0; padding: 0; }

.timeline li {
  position: relative;
  padding: 0 0 1.35rem 1.3rem;
  border-left: 2px solid var(--line-strong);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--violet);
}

.when {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--date);
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 0.75rem 0;
  max-width: 46rem;
}

.faq details:last-child { border-bottom: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  font-weight: 560;
}

.faq details p { margin: 0.6rem 0 0.2rem; }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--ink);
  margin-top: 2rem;
  padding-top: 1rem;
  max-width: 52rem;
}

.pager a {
  font-family: var(--sans);
  font-weight: 650;
  text-decoration: none;
  color: var(--ink);
}

.pager a:hover { text-decoration: underline; }

.pager small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.gallery {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 0.8rem;
  margin: 1rem 0;
}

.gallery .stack { display: grid; gap: 0.8rem; }

.site-footer {
  border-top: 1px solid var(--ink);
  margin-top: 2rem;
  padding: 1.6rem 0 2.4rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer h2 {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }

.site-footer li { margin: 0.25rem 0; }

.site-footer a { color: var(--ink); text-decoration: none; }

.site-footer a:hover { text-decoration: underline; }

.footnote { margin-top: 1.2rem; color: var(--muted); font-size: 0.82rem; max-width: 50rem; }

@media (max-width: 900px) {
  .hero, .split, .cards, .stats, .province-grid, .footer-grid, .gallery, .layout {
    grid-template-columns: 1fr;
  }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 0.85rem 0; }
  .stat:last-child { border-bottom: 0; }
  .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 0.35rem 0.8rem; }
  .toc a { border-top: 0; padding: 0; }
  .bar { grid-template-columns: 5.4rem minmax(0, 1fr) 4.6rem; gap: 0.4rem; }
}

@media (max-width: 560px) {
  body { font-size: 1.05rem; }
  .wrap, .header-bar, .nav-row { width: min(var(--page), calc(100% - 1.4rem)); }
  .pager { flex-direction: column; }
}

@media print {
  .site-header, .menu-btn, .toc, .pager, .actions, .site-footer { display: none !important; }
  body { background: white; }
  a { color: black; text-decoration: none; }
  .layout { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
