:root {
  --paper:      #faf6ee;   
  --surface:    #ffffff;   
  --surface-2:  #f3ecdf;   

  --ink:        #241f19;   
  --ink-2:      #574f45;
  --ink-3:      #857b6d;

  --rule:       #e2d9c8;
  --rule-2:     #ede6d9;

  --accent:     #1d3d5a;   
  --accent-2:   #e9edf1;
  --flag:       #8a3a30;   
  --flag-2:     #f6ece4;

  --serif: Charter, "Bitstream Charter", "Iowan Old Style", "Sitka Text",
           Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;

  --letter:  44rem;   
  --wide:    76rem;   
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:     #1a1714;
    --surface:   #221e19;
    --surface-2: #2a251f;
    --ink:       #efe9de;
    --ink-2:     #bdb4a6;
    --ink-3:     #8f8577;
    --rule:      #3e382f;
    --rule-2:    #2e2921;
    --accent:    #9db9d3;
    --accent-2:  #232a33;
    --flag:      #d69384;
    --flag-2:    #2f2119;
  }
}

:root[data-theme="dark"] {
  --paper:     #1a1714;
  --surface:   #221e19;
  --surface-2: #2a251f;
  --ink:       #efe9de;
  --ink-2:     #bdb4a6;
  --ink-3:     #8f8577;
  --rule:      #3e382f;
  --rule-2:    #2e2921;
  --accent:    #9db9d3;
  --accent-2:  #232a33;
  --flag:      #d69384;
  --flag-2:    #2f2119;
}

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  overflow-x: hidden;   
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: 20px;
}

.band { padding-block: 2.75rem; border-top: 1px solid var(--rule-2); }
.band--plain  { border-top: 0; }
.band--sunken { background: var(--surface-2); border-top: 1px solid var(--rule); }

.label {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.35rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.label::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

.sitenav {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 10;
}
.sitenav .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1.4rem;
  padding-block: 0.8rem;
}
.sitenav a.nav {
  font-size: 0.895rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  padding-bottom: 2px;
}
.sitenav a.nav:hover { border-bottom: 2px solid var(--accent); }
.sitenav a.nav[aria-current="page"] {
  color: var(--ink);
  border-bottom: 2px solid var(--flag);
}
@media (max-width: 30rem) {
  .sitenav { position: static; }
}

h1, h2, h3 { margin: 0 0 0.55em; line-height: 1.22; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.012em; }

h2 { text-wrap: pretty; }
h1 { font-size: clamp(1.55rem, 4.4vw, 2.6rem); letter-spacing: -0.022em; }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 650; }

p { margin: 0 0 1.05em; }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.06rem, 2.2vw, 1.24rem);
  line-height: 1.5;
  color: var(--ink-2);
}

.note { font-size: 0.83rem; color: var(--ink-3); line-height: 1.6; }

.prose { max-width: var(--letter); margin-inline: auto; }
.prose h2 { margin: 2.3rem 0 0.5em; font-size: clamp(1.1rem, 2.4vw, 1.3rem); }
.prose h2:first-of-type { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { margin: 0 0 1.05em; padding-left: 1.35rem; }
.prose li { margin-bottom: 0.35em; }
.prose > :last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

strong, b { font-weight: 650; }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  position: fixed; left: 0; top: 0; z-index: 20;
  background: var(--accent); color: var(--surface);
  padding: 0.6rem 1rem; text-decoration: none;
}

.masthead { padding-block: 2.5rem 2.25rem; }

.masthead .lede { margin-top: 1rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.75rem; }

.btn {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  padding: 0.68rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: 2px;
  text-decoration: none;
}
.btn-primary   { background: var(--accent); color: var(--surface); }
.btn-primary:hover { filter: brightness(1.15); }
.btn-secondary { background: transparent; color: var(--accent); }
.btn-secondary:hover { background: var(--accent-2); }

.btn-inert {
  color: var(--ink-3);
  border-color: var(--rule);
  cursor: default;
}
.btn-inert:hover { background: transparent; }

.letterref {
  display: inline-block;
  margin-left: 0.4rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid var(--rule);
}
.letterref:hover { border-bottom-color: var(--accent); }

.numlist {
  list-style: none;
  counter-reset: numlist;
  margin: 0;
  padding-left: 2rem;
  font-size: 1rem;
}
.numlist > li {
  counter-increment: numlist;
  position: relative;
  margin-bottom: 0.7rem;
}
.numlist > li::before {
  content: counter(numlist) ".";
  position: absolute;
  left: -2rem;
  width: 1.6rem;
  text-align: right;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--flag);
}
.numlist > li:last-child { margin-bottom: 0; }

.exhibits { list-style: none; margin: 0; padding: 0; }
.exhibits > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1.2rem;
  align-items: start;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--rule-2);
}
.exhibits > li:first-child { padding-top: 0; }
.exhibits > li:last-child  { border-bottom: 0; }
.tab {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--surface);
  background: var(--ink);
  padding: 0.3rem 0.55rem;
  white-space: nowrap;
  margin-top: 0.15rem;
}
.exhibits h3 { margin-bottom: 0.3rem; }
.exhibits p { margin: 0 0 0.55rem; font-size: 0.9rem; color: var(--ink-2); max-width: none; }
.exhibits .where { font-family: var(--mono); font-size: 0.72rem; overflow-wrap: break-word; }

.logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(13.5rem, 100%), 1fr));
  gap: 1px;
  background: var(--rule-2);
  border: 1px solid var(--rule-2);
}
.logos > li {
  background: #ffffff;
  min-height: 8.75rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.6rem;
  padding: 1.15rem;
  text-align: center;
}

.logos img {
  display: block;
  max-width: 100%;
  max-height: 4rem;
  width: auto;
  height: auto;
}

.logos .wordmark {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
  color: #241f19;}

.logos--signoff {
  margin-top: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(10.5rem, 100%), 1fr));
}
.logos--signoff > li { min-height: 7rem; padding: 0.9rem; }
.logos--signoff img { max-height: 3.1rem; }
.logos--signoff .person { font-size: 0.78rem; }

.logos .person {
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.3;
  color: #241f19;
}

.logos .role {
  display: block;
  font-family: var(--sans);
  font-size: 0.79rem;
  font-weight: 400;
  color: #857b6d;  margin-top: 0.28rem;
}

.steps {
  list-style: none;
  counter-reset: steps;
  margin: 0;
  padding-left: 2rem;
}
.steps > li {
  counter-increment: steps;
  position: relative;
  margin-bottom: 0.6rem;
}
.steps > li::before {
  content: counter(steps) ".";
  position: absolute;
  left: -2rem;
  width: 1.6rem;
  text-align: right;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--flag);
}

.optional {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.08rem 0.35rem;
  margin-left: 0.45rem;
  white-space: nowrap;
}

.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: 1.5rem;
}
.contacts > div { border-top: 2px solid var(--ink); padding-top: 0.85rem; }
.contacts h3 { margin-bottom: 0.2rem; }
.contacts p { margin-bottom: 0.3rem; font-size: 0.9rem; max-width: none; }
.contacts .addr { font-family: var(--mono); font-size: 0.85rem; overflow-wrap: break-word; }

footer {
  border-top: 1px solid var(--rule);
  padding-block: 1.75rem 2.5rem;
  background: var(--surface-2);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.3rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--ink-3);
}
footer a { font-weight: 600; text-decoration: none; }
footer a:hover { text-decoration: underline; }

.letter-sheet { background: var(--surface); }

.letter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  max-width: var(--letter);
  margin-inline: auto;
  padding: 1.75rem 20px;
}

.letter {
  font-family: var(--serif);
  font-size: 1.04rem;
  line-height: 1.68;
  max-width: var(--letter);
  margin-inline: auto;
  padding-block: 2.5rem 2.75rem;
  padding-inline: 20px;
}
.letter p { max-width: none; margin-bottom: 1.1em; }
.letter p[id], .notes li[id], sup.fn a[id] { scroll-margin-top: 8rem; }

.letter p:target {
  background: var(--accent-2);
  box-shadow: 0 0 0 0.5rem var(--accent-2);
  border-radius: 2px;
}
.letter > h2 {
  font-size: 1.2rem;
  font-style: italic;
  margin-top: 2.2em;
  padding-top: 0.9em;
  border-top: 1px solid var(--rule-2);
}
.letter > h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 600;
  margin-top: 1.8em;
}
.letter .docdate {
  font-family: var(--mono); font-size: 0.79rem; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1.7em;
}
.letter .re { font-weight: 650; }
.letter blockquote {
  margin: 1.2em 0 1.2em 1.4em;
  padding-left: 1.1em;
  border-left: 2px solid var(--rule);
  color: var(--ink-2);
  font-size: 0.96rem;
}
.letter blockquote p:last-child { margin-bottom: 0; }
.letter ul, .letter ol { padding-left: 1.5em; }
.letter li { margin-bottom: 0.65em; }
.letter figure { margin: 1.6em 0; }
.letter figure img {
  display: block; width: 100%; max-width: 100%; height: auto;
  background: #fff; border: 1px solid var(--rule);
}
.letter figcaption {
  font-family: var(--mono); font-size: 0.72rem; line-height: 1.55;
  color: var(--ink-3); margin-top: 0.5rem;
}
.letter .signoff { margin-top: 2.1em; }
.letter .sigline { font-family: var(--mono); color: var(--ink-3); font-size: 0.85rem; }

sup.fn { font-size: 0.66em; line-height: 0; }
sup.fn a { text-decoration: none; font-weight: 650; padding: 0 0.08em; }

.notes {
  max-width: var(--letter);
  margin-inline: auto;
  padding-block: 0 2.75rem;
  padding-inline: 20px;
}
.notes > ol { border-top: 1px solid var(--rule); padding-top: 1.5rem; }
.notes ol { padding-left: 2rem; margin: 0; }
.notes li {
  font-size: 0.81rem; line-height: 1.55; color: var(--ink-2);
  margin-bottom: 0.65rem; overflow-wrap: break-word;
}
.notes li::marker { font-family: var(--mono); color: var(--ink-3); }

.filterbar { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; margin-block: 1.5rem 0.9rem; }
.filterbar input, .filterbar select {
  font-family: var(--sans); font-size: 0.92rem;
  padding: 0.52rem 0.65rem;
  border: 1px solid var(--rule); border-radius: 2px;
  background: var(--surface); color: var(--ink); min-width: 0;
}
.filterbar input { flex: 1 1 14rem; min-width: 0; max-width: 100%; }
.vh { position: absolute; left: -9999px; }
#count {
  font-family: var(--sans); font-size: 0.74rem; font-weight: 600;
  color: var(--ink-3); letter-spacing: 0.1em; text-transform: uppercase;
}

.table-scroll { overflow-x: auto; border: 1px solid var(--rule); background: var(--surface); }

table.districts { width: 100%; border-collapse: collapse; font-size: 0.895rem; }
table.districts th, table.districts td {
  text-align: left; padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--rule-2); white-space: nowrap;
}
table.districts thead th {
  position: sticky; top: 0;
  font-family: var(--sans); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
  background: var(--surface-2); border-bottom: 1px solid var(--rule);
}

table.districts th:nth-child(2), table.districts td.name { width: 100%; }
table.districts td.name { white-space: normal; min-width: 15rem; }
table.districts td.num, table.districts th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.districts td.rank { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-3); }
table.districts tbody tr:last-child td { border-bottom: 0; }
table.districts .city { display: block; color: var(--ink-3); font-size: 0.8rem; }

@media print {
  .sitenav, .actions, .filterbar, footer, .skip { display: none; }
  body, .letter-sheet { background: #fff; color: #000; }
  .letter { max-width: none; font-size: 11pt; }
  a { color: #000; }
}
