:root {
  --terracotta: #c4552d;
  --terracotta-dark: #a3431f;
  --cream: #fafaf6;
  --ink: #232019;
  --ink-soft: #4a443a;
  --gold: #d9a441;
  --rule: #e6e0d2;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, Cambria, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: .5rem .75rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: 4px;
  z-index: 10;
}
.skip-link:focus { top: 1rem; }

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  border-top: 6px solid var(--terracotta);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.01em;
}
.brand::before {
  content: "";
  display: inline-block;
  width: .6em;
  height: .6em;
  margin-right: .5em;
  background: var(--gold);
  border-radius: 50%;
  vertical-align: .05em;
}
.site-nav ul {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .95rem;
}
.site-nav a { color: var(--ink-soft); text-decoration: none; }
.site-nav a:hover { color: var(--terracotta-dark); text-decoration: underline; }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: .3em;
}

/* Main */
main { padding: 3rem 0 4rem; }

h1, h2, h3 {
  font-family: var(--serif);
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin: 0 0 1rem; }
h2 {
  font-size: 1.5rem;
  margin: 2.75rem 0 .75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
h3 { font-size: 1.15rem; margin: 1.75rem 0 .5rem; }

.eyebrow {
  margin: 0 0 .75rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
}
.lede {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}
.meta { font-size: .95rem; color: var(--ink-soft); }

a { color: var(--terracotta-dark); text-underline-offset: .15em; }
a:hover { color: var(--ink); }

:focus-visible {
  /* Ink ring for 3:1+ contrast on cream; gold halo for brand accent */
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--gold);
  border-radius: 2px;
}

code {
  font-family: var(--mono);
  font-size: .9em;
  background: #f1ece0;
  padding: .1em .35em;
  border-radius: 3px;
  word-break: break-word;
}

ul, ol { padding-left: 1.4rem; }
li + li { margin-top: .35rem; }

.callout {
  margin: 2rem 0;
  padding: 1.1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--gold);
  border-radius: 4px;
}
.callout p { margin: 0; }
.callout p + p { margin-top: .5rem; }

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.cta li + li { margin-top: 0; }
.button {
  display: inline-block;
  padding: .65rem 1.1rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--terracotta);
}
.button-primary { background: var(--terracotta-dark); border-color: var(--terracotta-dark); color: #fff; }
.button-primary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.button-secondary { color: var(--terracotta-dark); background: transparent; }
.button-secondary:hover { background: var(--terracotta-dark); color: #fff; border-color: var(--terracotta-dark); }

/* Scope table */
.table-wrap { overflow-x: auto; margin: 1.25rem 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
caption {
  text-align: left;
  font-size: .9rem;
  color: var(--ink-soft);
  padding-bottom: .5rem;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: .7rem .75rem;
  border-bottom: 1px solid var(--rule);
}
thead th {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--ink);
}
td code { white-space: nowrap; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  background: #f3efe5;
  font-size: .9rem;
  color: var(--ink-soft);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.site-footer p { margin: 0; }
.site-footer ul {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li + li { margin-top: 0; }
.site-footer a { color: var(--ink); }

@media print {
  .site-nav, .skip-link, .cta { display: none; }
  body { background: #fff; }
}
