:root {
  --bg: #fbfaf7;
  --fg: #1d1d1b;
  --muted: #55544f;
  --accent: #2b6349;
  --accent-soft: #e6efe9;
  --line: #e1ded4;
  --panel: #f3f1eb;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141513;
    --fg: #ecebe6;
    --muted: #b0aea6;
    --accent: #86c9a6;
    --accent-soft: #1d2a23;
    --line: #2e2f2b;
    --panel: #1b1c1a;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-wrap: break-word;
}

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .skip:focus { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--bg);
  padding: 0.5rem 0.75rem;
}
.skip:focus { left: 1rem; }

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

header.site { border-bottom: 1px solid var(--line); }
header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.25rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand {
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--fg);
  text-decoration: none;
}
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: 0.95rem; }

.hero { padding: 3.5rem 0 1.5rem; }
.mark {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 650;
  margin: 0;
}
h1 { font-size: clamp(2rem, 7vw, 3rem); line-height: 1.12; margin: 0.5rem 0 1rem; }
.lede { font-size: 1.15rem; color: var(--muted); margin: 0 0 1rem; }
.address {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95em;
  background: var(--accent-soft);
  padding: 0.05em 0.35em;
  border-radius: 4px;
}

section { padding: 2rem 0; border-top: 1px solid var(--line); }
h2 { font-size: 1.5rem; line-height: 1.25; margin: 0 0 0.75rem; }
h3 { font-size: 1.05rem; margin: 1.25rem 0 0.25rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }

ol.steps { list-style: none; counter-reset: step; margin: 1rem 0; padding: 0; }
ol.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1rem 2.5rem;
}
ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

ul.plain { padding-left: 1.2rem; margin: 0 0 1rem; }
ul.plain li { margin-bottom: 0.5rem; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  margin: 1rem 0;
}
.panel p:last-child { margin-bottom: 0; }

.links { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin: 1rem 0; }
.links a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: var(--fg);
}
.links a:hover { border-color: var(--accent); }
.links strong { display: block; color: var(--accent); }
.links span { color: var(--muted); font-size: 0.95rem; }

footer.site { border-top: 1px solid var(--line); margin-top: 1rem; padding: 1.5rem 0 3rem; font-size: 0.9rem; color: var(--muted); }
footer.site p { margin: 0 0 0.5rem; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* The Sovereign Website family bar: the same on every site in the family. */
.family{font-size:.8rem;border-bottom:1px solid rgba(127,127,127,.25);background:rgba(127,127,127,.06)}
.family ul{list-style:none;margin:0 auto;padding:.35rem 1rem;display:flex;flex-wrap:wrap;gap:.25rem .9rem;max-width:72rem}
.family a{color:inherit;opacity:.8;text-decoration:none}
.family a:hover,.family a:focus-visible{opacity:1;text-decoration:underline}
.family a[aria-current="true"]{opacity:1;font-weight:600}
.family .family-sep{margin-left:auto}
@media (max-width:40rem){.family .family-sep{margin-left:0}}
