:root {
  --paper: #fbf7f0;
  --panel: #f4ece0;
  --ink: #2f2620;
  --ink-soft: #55473d;
  --rule: #d8cab6;
  --accent: #8c3b17;
  --accent-dark: #6f2e11;
  --band: #efe4d4;
  --radius: 5px;
  --measure: 710px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

h1, h2, h3, .site-name, .footer-site {
  font-family: "Literata", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

h1 { font-size: 1.85rem; margin: 0 0 .6rem; }
h2 { font-size: 1.32rem; margin: 2.1rem 0 .6rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }

p, li, dd, dt, td, th, caption { font-size: 1rem; }
p { margin: 0 0 1rem; }

a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-dark);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 10;
}
.skip-link:focus {
  left: 0;
}

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--band);
}

.topbar {
  max-width: var(--measure);
  margin: 0 auto;
  padding: .7rem 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
}

.site-name {
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.menu-button {
  font: inherit;
  font-size: .95rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: .4rem .8rem;
  cursor: pointer;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  width: 100%;
  flex-direction: column;
}

.menu.is-open { display: flex; }

.menu li { border-top: 1px solid var(--rule); }

.menu a {
  display: block;
  padding: .6rem .2rem;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: .97rem;
}

.menu a:hover,
.menu a[aria-current="page"] { color: var(--accent-dark); }

@media (min-width: 720px) {
  .menu-button { display: none; }
  .menu {
    display: flex;
    flex-direction: row;
    width: auto;
    gap: 1rem;
    flex-wrap: wrap;
  }
  .menu li { border-top: 0; }
  .menu a { padding: .2rem 0; }
}

/* ---------- main ---------- */

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.6rem 16px 2.5rem;
}

section { margin-top: 1.4rem; }

.hero, .page-head { padding-bottom: .4rem; }

.lede { font-size: 1.1rem; color: var(--ink-soft); }

.effective { color: var(--ink-soft); font-size: .95rem; }

ul.plain-list, ol.steps, ul.checklist, .glance ul, .watch-out ul, ul.resource-list {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}
li { margin-bottom: .5rem; }

ul.checklist { list-style: none; padding-left: 0; }
ul.checklist li {
  border-bottom: 1px solid var(--rule);
  padding: .5rem 0 .5rem 1.6rem;
  position: relative;
}
ul.checklist li::before {
  content: "\2610";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ---------- boxes ---------- */

.disclosure, .quick-answer, .watch-out, .glance, .method {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1rem 1.1rem;
  margin: 1.4rem 0;
}

.disclosure {
  border-left: 5px solid var(--accent);
}

.disclosure h2, .quick-answer h2, .watch-out h2, .glance h2 {
  margin-top: 0;
  font-size: 1.12rem;
}

.disclosure p:last-child, .quick-answer p:last-child { margin-bottom: 0; }

.watch-out { border-left: 5px solid var(--accent-dark); }

/* ---------- cta ---------- */

.cta {
  margin: 1.4rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.button {
  display: inline-block;
  background: var(--accent-dark);
  color: #fdf8f1;
  text-decoration: none;
  padding: .65rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 500;
}
.button:hover { background: var(--accent); color: #fdf8f1; }

.cta-note {
  margin: .7rem 0 0;
  font-size: .95rem;
  color: var(--ink-soft);
}

/* ---------- tables ---------- */

.table-wrap { overflow-x: auto; }

table {
  border-collapse: collapse;
  width: 100%;
  margin: .6rem 0 1rem;
}

caption {
  text-align: left;
  color: var(--ink-soft);
  padding-bottom: .4rem;
  font-size: .95rem;
}

th, td {
  border: 1px solid var(--rule);
  padding: .55rem .65rem;
  text-align: left;
  vertical-align: top;
}

thead th { background: var(--panel); }

/* ---------- definition lists ---------- */

dl.glossary, dl.details { margin: 0 0 1rem; }
dl.glossary dt, dl.details dt { font-weight: 600; margin-top: .7rem; }
dl.glossary dd, dl.details dd { margin: 0 0 .2rem; color: var(--ink-soft); }

/* ---------- accordion ---------- */

.accordion { border-top: 1px solid var(--rule); }

.acc-heading { margin: 0; font-size: 1rem; }

.acc-button {
  width: 100%;
  text-align: left;
  font: inherit;
  font-family: "Literata", Georgia, serif;
  font-weight: 600;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: .8rem 1.6rem .8rem 0;
  cursor: pointer;
  color: var(--ink);
  position: relative;
}

.acc-button::after {
  content: "\2212";
  position: absolute;
  right: .2rem;
  color: var(--accent);
}
.acc-button[aria-expanded="false"]::after { content: "+"; }

.acc-panel {
  padding: .8rem 0;
  border-bottom: 1px solid var(--rule);
}
.acc-panel[hidden] { display: none; }
.acc-panel p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--band);
  border-top: 1px solid var(--rule);
  margin-top: 2.5rem;
}

.footer-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.6rem 16px 2rem;
}

.footer-site { font-size: 1.1rem; margin: 0 0 .9rem; }

.footer-heading {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-soft);
  margin: 0 0 .3rem;
}

.footer-publisher, .footer-legal, .footer-tm, .footer-date {
  font-size: .95rem;
  color: var(--ink-soft);
}

.footer-tm { max-width: 60ch; }

.footer-date { margin-bottom: 0; }
