:root {
  color: #171a18;
  background: #fffdf8;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
  line-height: 1.6;
  --ink: #171a18;
  --muted: #5a615d;
  --paper: #fffdf8;
  --line: #d9d8cf;
  --green: #174f38;
  --green-soft: #e5f0e9;
  --danger: #7d221c;
  --danger-soft: #fff0ec;
  --focus: #075fbb;
  --radius: 0.8rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: var(--green);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

a:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 0.2rem solid var(--focus);
  outline-offset: 0.2rem;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.65rem 0.9rem;
  color: white;
  background: var(--focus);
  border-radius: 0.35rem;
  transform: translateY(-200%);
}

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

.draft-banner {
  padding: 0.7rem 1rem;
  color: white;
  background: var(--danger);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 70rem;
  margin: 0 auto;
  padding: 1.2rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 0.0625rem solid var(--line);
}

.wordmark {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

nav a {
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.4rem;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  background: var(--green-soft);
}

.page-shell {
  width: min(100% - 2rem, 64rem);
  margin: 0 auto;
  padding: 3.5rem 0 5rem;
}

.page-shell > section,
.page-shell > aside {
  max-width: 50rem;
  margin-top: 3rem;
}

.page-shell > .hero {
  margin-top: 0;
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.4rem, 4vw, 2rem);
  letter-spacing: -0.02em;
}

h3 {
  margin-top: 1.7rem;
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.lede {
  max-width: 48rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
}

.notice {
  padding: 1.2rem 1.35rem;
  background: var(--green-soft);
  border: 0.0625rem solid #c1d8c8;
  border-left: 0.35rem solid var(--green);
  border-radius: var(--radius);
}

.notice.danger {
  background: var(--danger-soft);
  border-color: #e4bcb3;
  border-left-color: var(--danger);
}

.metadata {
  display: grid;
  gap: 0;
  margin: 1.5rem 0 0;
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.metadata > div {
  display: grid;
  grid-template-columns: minmax(10rem, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: #f9f8f3;
  border-top: 0.0625rem solid var(--line);
}

.metadata > div:first-child {
  border-top: 0;
}

.metadata dt {
  font-weight: 800;
}

.metadata dd {
  margin: 0;
}

code {
  padding: 0.12rem 0.28rem;
  color: var(--danger);
  background: var(--danger-soft);
  border-radius: 0.2rem;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 44rem;
  border-collapse: collapse;
}

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

thead th {
  background: var(--green-soft);
}

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

ul,
ol {
  padding-left: 1.4rem;
}

li + li {
  margin-top: 0.45rem;
}

address {
  padding: 1rem;
  background: #f9f8f3;
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius);
  font-style: normal;
}

.site-footer {
  padding: 2rem max(1rem, calc((100% - 64rem) / 2));
  color: var(--muted);
  background: #f5f3ed;
  border-top: 0.0625rem solid var(--line);
  font-size: 0.9rem;
}

.site-footer p {
  margin-bottom: 0.3rem;
}

@media (max-width: 48rem) {
  .metadata > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

@media (max-width: 34rem) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
  }

  nav a {
    flex: 1;
    text-align: center;
  }

  .page-shell {
    width: min(100% - 1.25rem, 64rem);
    padding-top: 2.5rem;
  }
}

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

@media print {
  .skip-link,
  nav {
    display: none;
  }

  body {
    color: black;
    background: white;
  }

  .page-shell {
    width: auto;
    padding: 1rem 0;
  }
}
