:root {
  color-scheme: light;
  --paper: #f4f0e7;
  --paper-deep: #e8e0d1;
  --sheet: #fffdf8;
  --ink: #17211b;
  --muted: #5d685f;
  --line: #cfc6b5;
  --forest: #194f3b;
  --forest-deep: #103a2b;
  --gold: #aa7b2f;
  --focus: #1565c0;
  --measure: 74ch;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(
      90deg,
      transparent 0 49.8%,
      rgb(23 33 27 / 3%) 50%,
      transparent 50.2%
    ),
    var(--paper);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: var(--forest);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--forest-deep);
  text-decoration-thickness: 0.14em;
}

a:focus-visible,
summary:focus-visible {
  border-radius: 0.15rem;
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.65rem 0.9rem;
  background: var(--ink);
  color: white;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(100% - 2rem, 76rem);
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgb(244 240 231 / 95%);
}

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

.brand {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

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

.header-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 1rem;
  font-size: 0.875rem;
}

.page-shell {
  width: min(100% - 2rem, 76rem);
  margin-inline: auto;
  padding-block: clamp(2.5rem, 7vw, 5.5rem);
}

.draft-banner {
  margin: 0 0 2rem;
  padding: 0.85rem 1rem;
  border: 2px solid #8b2f28;
  background: #fff2ed;
  color: #6f201b;
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.document-header {
  max-width: 62rem;
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--forest);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.17;
  text-wrap: balance;
}

h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.25rem);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.lede {
  max-width: var(--measure);
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.document-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.85rem;
  margin: 1.8rem 0 0;
  padding: 1rem 0;
  border-block: 1px solid var(--line);
}

.document-meta div {
  min-width: 0;
}

.document-meta dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.document-meta dd {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  font-weight: 650;
}

.notice {
  max-width: var(--measure);
  margin-top: 1.75rem;
  padding: 1.15rem 1.25rem;
  border-left: 0.3rem solid var(--gold);
  background: #f2ead9;
}

.notice strong {
  color: #684812;
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, var(--measure));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.toc {
  position: sticky;
  top: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  background: rgb(255 253 248 / 70%);
}

.toc p {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc ol,
.toc ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.82rem;
}

.document {
  min-width: 0;
}

.document > section {
  scroll-margin-top: 1rem;
  padding-bottom: 2.4rem;
}

.document > section + section {
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
}

.document h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.document h3 {
  margin: 1.5rem 0 0.55rem;
  font-size: 1.13rem;
}

.document p,
.document ul,
.document ol,
.document table,
.document dl {
  max-width: var(--measure);
}

.document p,
.document ul,
.document ol {
  margin-block: 0.75rem;
}

.document li + li {
  margin-top: 0.38rem;
}

.document strong {
  color: #101712;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--sheet);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

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

th {
  background: var(--paper-deep);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.document-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.document-card {
  display: flex;
  min-height: 12rem;
  flex-direction: column;
  padding: 1.2rem;
  border: 1px solid var(--line);
  background: var(--sheet);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 140ms ease,
    transform 140ms ease;
}

.document-card:hover {
  border-color: var(--forest);
  color: inherit;
  transform: translateY(-2px);
}

.document-card h2,
.document-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.document-card p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.document-card small {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--forest);
  font-weight: 700;
}

.related {
  margin-top: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--sheet);
}

.related ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.2rem;
  margin: 0.7rem 0 0;
  padding-left: 1.1rem;
}

.site-footer {
  padding-block: 2rem;
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer .shell {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 48rem) {
  .site-header .shell {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 0.9rem;
  }

  .header-nav {
    justify-content: flex-start;
  }

  .legal-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .toc {
    position: static;
  }
}

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

  .document-card {
    transition: none;
  }
}

@media print {
  @page {
    margin: 1.8cm;
  }

  body {
    background: white;
    color: black;
    font-size: 10.5pt;
  }

  .site-header,
  .site-footer,
  .toc,
  .skip-link,
  .related {
    display: none;
  }

  .page-shell {
    width: 100%;
    padding: 0;
  }

  .document-header {
    max-width: none;
  }

  .legal-grid {
    display: block;
    margin-top: 2rem;
  }

  .document > section {
    break-inside: avoid-page;
  }

  a {
    color: black;
    text-decoration: none;
  }
}
