/* sovereignwebsite.ai: one stylesheet, system fonts, no external requests. */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --fg: #1d1d1b;
  --muted: #55544f;
  --accent: #2a6148;
  --accent-soft: #e6efe9;
  --line: #e1ddd2;
  --note: #f4efe2;
  --max: 68rem;
  --text: 42rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141513;
    --surface: #1c1d1a;
    --fg: #ecebe6;
    --muted: #b0aea6;
    --accent: #86c9a6;
    --accent-soft: #1f2c25;
    --line: #2f302b;
    --note: #25231c;
  }
}
*, *::before, *::after { 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: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
img, svg { max-width: 100%; height: auto; }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--fg); color: var(--bg); padding: .5rem .8rem; z-index: 10;
}
.skip:focus { top: 1rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem 1.5rem; padding-top: .9rem; padding-bottom: .9rem;
}
.brand {
  font-weight: 700; letter-spacing: .01em; color: var(--fg); text-decoration: none;
  display: inline-flex; align-items: center; gap: .55rem;
}
.brand svg { width: 1.6rem; height: 1.6rem; flex: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.site-nav a:hover { color: var(--fg); text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--fg); font-weight: 600; }

/* Type */
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 6.5vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.45rem, 3.6vw, 2rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p, ul, ol { margin: 0 0 1rem; }
.eyebrow {
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); font-weight: 650; margin-bottom: .6rem;
}
.lead { font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: var(--muted); max-width: var(--text); }
.prose { max-width: var(--text); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Sections */
.hero { padding: clamp(3rem, 10vw, 6.5rem) 0 clamp(2rem, 6vw, 4rem); }
.section { padding: clamp(2.2rem, 6vw, 4rem) 0; border-top: 1px solid var(--line); }
.section > .wrap > h2 { max-width: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.button {
  display: inline-block; padding: .7rem 1.1rem; border-radius: .4rem;
  background: var(--accent); color: var(--bg); text-decoration: none; font-weight: 600;
}
.button:hover { filter: brightness(1.08); }
.button.secondary { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }

/* Cards and grids */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); margin: 1.5rem 0 0; padding: 0; list-style: none; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: .6rem;
  padding: 1.15rem 1.2rem 1.2rem;
}
.card h3 { margin-bottom: .4rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .num {
  display: inline-block; font-size: .8rem; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); border-radius: 1rem; padding: .05rem .55rem; margin-bottom: .55rem;
}
.answer { color: var(--muted); }
.answer strong { color: var(--fg); }

/* Steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.5rem 0 0; max-width: var(--text); }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.3rem 3rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: .05rem;
  width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .95rem;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: .97rem; top: 2.3rem; bottom: .3rem; width: 2px; background: var(--line);
}
.steps h3 { margin-bottom: .25rem; }
.steps p { margin-bottom: 0; color: var(--muted); }

/* Notes and quotes */
.note {
  background: var(--note); border-left: 4px solid var(--accent); border-radius: .3rem;
  padding: 1rem 1.15rem; max-width: var(--text); margin: 1.5rem 0;
}
.note p:last-child { margin-bottom: 0; }
blockquote {
  margin: 1.5rem 0; padding: 0 0 0 1.1rem; border-left: 3px solid var(--line);
  font-size: 1.15rem; max-width: var(--text);
}
blockquote p { margin-bottom: .4rem; }
blockquote footer { font-size: .9rem; color: var(--muted); }

.checklist { list-style: none; padding: 0; max-width: var(--text); }
.checklist li { position: relative; padding-left: 1.6rem; margin-bottom: .55rem; }
.checklist li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* Price */
.price { font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin: .2rem 0 .4rem; }
.tag {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .12rem .5rem; border-radius: .25rem; border: 1px solid currentColor; color: var(--muted);
}

/* Table */
.table-wrap { overflow-x: auto; max-width: 100%; margin: 1.5rem 0; }
table { border-collapse: collapse; width: 100%; min-width: 0; font-size: .97rem; }
th, td { text-align: left; vertical-align: top; padding: .65rem .7rem; border-bottom: 1px solid var(--line); }
thead th { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
@media (max-width: 34rem) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tr { border-bottom: 1px solid var(--line); padding: .5rem 0; }
  th, td { border: 0; padding: .2rem 0; }
  td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--muted); }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; color: var(--muted); font-size: .92rem; margin-top: 1rem; }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin: 0 0 1rem; }
.site-footer p { max-width: var(--text); }
caption { text-align: left; caption-side: bottom; padding-top: .6rem; }

/* Navigation for ten pages: wraps on small screens, never scrolls sideways. */
.site-nav ul { gap: .2rem .95rem; }
@media (max-width: 40rem) {
  .site-nav { width: 100%; }
  .site-nav a { font-size: .9rem; }
}

/* The stack */
.stack { list-style: none; padding: 0; margin: 1.5rem 0 0; max-width: var(--text); display: grid; gap: .5rem; }
.stack li { background: var(--surface); border: 1px solid var(--line); border-radius: .5rem; padding: .8rem 1rem; }
.stack li strong { display: block; }
.stack li span { color: var(--muted); font-size: .95rem; }
.stack li.top { border: 2px solid var(--accent); background: var(--accent-soft); }

/* Maturity levels */
.levels { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .75rem; }
.levels > li { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--lvl, var(--line)); border-radius: .5rem; padding: 1rem 1.15rem; scroll-margin-top: 1rem; }
.levels h3 { margin-bottom: .3rem; }
.levels p { margin-bottom: .6rem; }
.levels > li > :last-child { margin-bottom: 0; }
.lvl-0 { --lvl: #b3412e; } .lvl-1 { --lvl: #c66a28; } .lvl-2 { --lvl: #b68a1f; }
.lvl-3 { --lvl: #7f8f2c; } .lvl-4 { --lvl: #3d8a5a; } .lvl-5 { --lvl: #2a6148; }
@media (prefers-color-scheme: dark) {
  .lvl-0 { --lvl: #e07a66; } .lvl-1 { --lvl: #e39a5f; } .lvl-2 { --lvl: #d8b552; }
  .lvl-3 { --lvl: #b2c25d; } .lvl-4 { --lvl: #78c495; } .lvl-5 { --lvl: #9ad8b6; }
}
.levels.compact > li { padding: .7rem 1rem; }
.levels.compact p { margin: 0; color: var(--muted); }
.badge { display: inline-block; font-weight: 700; font-size: .85rem; padding: .1rem .55rem; border-radius: 1rem; background: var(--accent-soft); color: var(--accent); }

/* Disclosure */
details { border-top: 1px solid var(--line); padding-top: .55rem; margin-top: .6rem; }
summary { cursor: pointer; font-weight: 600; color: var(--accent); }
summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
details[open] summary { margin-bottom: .5rem; }
details > :last-child { margin-bottom: 0; }

/* Self-check */
.check { list-style: none; counter-reset: q; padding: 0; margin: 1.5rem 0 0; max-width: var(--text); }
.check > li { counter-increment: q; background: var(--surface); border: 1px solid var(--line); border-radius: .6rem; padding: 1rem 1.15rem; margin-bottom: .8rem; scroll-margin-top: 1rem; }
.check > li > h3::before { content: "Question " counter(q) ". "; color: var(--accent); }
.check .if { list-style: none; padding: 0; margin: .5rem 0 0; }
.check .if li { padding-left: 0; margin-bottom: .3rem; }
.check .if strong { display: inline-block; min-width: 2.6rem; }

/* Example sites */
.site-card .level { font-weight: 700; }
.site-card dl { margin: .6rem 0 0; display: grid; grid-template-columns: max-content 1fr; gap: .25rem .8rem; font-size: .95rem; }
.site-card dt { color: var(--muted); }
.site-card dd { margin: 0; min-width: 0; }
@media (max-width: 26rem) {
  .site-card dl { grid-template-columns: 1fr; }
  .site-card dd { margin-bottom: .4rem; }
}
code { font: .92em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--accent-soft); padding: .05rem .3rem; border-radius: .25rem; overflow-wrap: anywhere; }

/* 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}}
