/* Terms in the Acquerello system. Tokens and fonts come from /assets/acquerello.css. */
:root {
  --soft: var(--vellum);
  --border: var(--rule);
  --accent: var(--cobalt);
  /* A lemon wash marks the fields that are still to be completed. */
  --missing-bg: #f5e3a3;
  --missing-ink: #5a3c00;
  font-size: 18px;
  line-height: 1.65;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: var(--accent);
  text-underline-offset: 4px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  border-radius: 2px;
}

.site-header,
main,
.site-footer {
  width: min(100% - 48px, 780px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 28px;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 28px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand .mark {
  width: 36px;
  height: 36px;
}

.back-link {
  font-size: 16px;
  font-style: italic;
}

main {
  padding-block: 36px 60px;
  overflow-wrap: anywhere;
}

.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
}

h1 {
  font-size: clamp(36px, 6vw, 54px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.06;
  margin-block: 16px;
}

h2 {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.3;
  margin-block: 0 18px;
  scroll-margin-top: 24px;
}

h3 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  margin-block: 26px 12px;
}

p {
  margin-block: 14px;
}

.meta,
.site-footer {
  color: var(--muted);
  font-size: 15px;
}

.notice {
  padding: 20px 26px;
  margin-block: 30px;
  border: 1px solid var(--rule-strong);
  outline: 1px solid var(--rule);
  outline-offset: -7px;
  border-radius: 3px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.notice strong {
  display: block;
  margin-bottom: 8px;
}

.contents {
  border-block: 1px solid var(--border);
  padding-block: 26px;
  margin-block: 32px 48px;
}

.contents h2 {
  font-size: 17px;
}

.contents ol {
  columns: 2;
  column-gap: 40px;
  padding-left: 22px;
  margin: 0;
}

.contents li {
  break-inside: avoid;
  padding-block: 5px;
}

section + section {
  margin-top: 44px;
}

.missing {
  background: var(--missing-bg);
  color: var(--missing-ink);
  padding: 1px 4px;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

dt {
  font-weight: 600;
  margin-top: 16px;
}

dd {
  margin-left: 0;
}

li + li {
  margin-top: 8px;
}

.contents li + li {
  margin-top: 0;
}

ul {
  padding-left: 22px;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin-block: 48px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 24px 48px;
}

.site-footer p {
  margin-top: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 16px;
  padding: 10px 16px;
  background: var(--soft);
  transform: translateY(-200%);
}

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

@media (max-width: 560px) {
  .site-header,
  main,
  .site-footer {
    width: calc(100% - 40px);
  }

  .site-header {
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 20px;
  }

  main {
    padding-top: 20px;
  }

  h2 {
    font-size: 21px;
  }

  .contents ol {
    columns: 1;
  }
}

@media print {
  :root {
    color-scheme: light;
    background: white;
    color: #172a24;
    font-size: 11pt;
  }

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

  main {
    width: 100%;
    padding: 0;
  }

  h2,
  h3 {
    break-after: avoid;
  }

  a {
    color: inherit;
  }
}
