/* design.agents.sovereignweb.site. design 1 family tokens (sovereignwebsite.ai theme.css), system fonts, no external requests. */
:root {
  color-scheme: light dark;
  --bg: #fbf6ee; --surface: #fffdf9; --fg: #2a1f17; --muted: #5e5148;
  --accent: #a5432a; --accent-soft: #f6e3d9; --line: #eadccd; --note: #f7ecdc; --family-fg: #4a3d33;
  --max: 68rem; --text: 44rem;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1a1512; --surface: #231c18; --fg: #f1e9e1; --muted: #c2b5aa; --accent: #f0a084; --accent-soft: #3a261d; --line: #3a2f28; --note: #2b221b; --family-fg: #d9cdc2; }
}
*, *::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; }
.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; }
.muted { color: var(--muted); } .small { font-size: .92rem; }

.family { font-size: .875rem; border-bottom: 1px solid var(--line); background: var(--note); }
.family ul { list-style: none; margin: 0 auto; padding: .1rem 1rem; display: flex; flex-wrap: wrap; gap: 0 1rem; max-width: var(--max); }
.family a { color: var(--family-fg); text-decoration: none; display: inline-block; padding: .2rem 0; min-height: 24px; }
.family a:hover, .family a:focus-visible { color: var(--fg); text-decoration: underline; }
.family .family-sep { margin-left: auto; }
@media (max-width: 40rem) { .family .family-sep { margin-left: 0; } }

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem 1.5rem; padding-top: .7rem; padding-bottom: .7rem; }
.brand { font-weight: 700; color: var(--fg); text-decoration: none; display: inline-flex; align-items: center; gap: .55rem; }
.brand svg { width: 1.5rem; height: 1.5rem; color: var(--accent); }
nav.pages { display: flex; flex-wrap: wrap; gap: 0 1rem; font-size: .95rem; }
nav.pages a { color: var(--muted); text-decoration: none; padding: .3rem 0; }
nav.pages a:hover { color: var(--fg); text-decoration: underline; }
nav.pages a[aria-current="page"] { color: var(--fg); font-weight: 600; box-shadow: inset 0 -2px var(--accent); }

main.wrap { padding-top: clamp(2rem, 7vw, 4rem); padding-bottom: 3rem; }
.mark { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 650; margin: 0 0 .6rem; }
h1, h2 { font-family: var(--serif); font-weight: 700; }
h1 { font-size: clamp(2.2rem, 6.5vw, 3.6rem); line-height: 1.07; letter-spacing: -.015em; margin: 0 0 1rem; max-width: 20ch; }
.prose h1 { max-width: none; font-size: clamp(2rem, 5.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); line-height: 1.2; margin: 2.6rem 0 .7rem; }
.prose h2 { padding-top: 1.4rem; border-top: 1px solid var(--line); }
h3 { font-size: 1.12rem; margin: 1.5rem 0 .4rem; }
p, ul, ol { margin: 0 0 1rem; }
.lead { font-size: clamp(1.1rem, 2.4vw, 1.28rem); color: var(--muted); max-width: var(--text); }
.prose { max-width: var(--text); }
.prose li { margin: .3rem 0; }
code { font: .9em var(--mono); background: var(--accent-soft); padding: .05rem .3rem; border-radius: .25rem; overflow-wrap: anywhere; }
pre { font: .85rem/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
blockquote { margin: 1.2rem 0; padding-left: 1rem; border-left: 3px solid var(--accent); color: var(--muted); }

.hero { padding-bottom: 1rem; background: radial-gradient(circle at 90% 0%, var(--accent-soft), transparent 55%); }
.cards { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.cards a { display: block; height: 100%; padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: .6rem; text-decoration: none; color: var(--fg); }
.cards a:hover { border-color: var(--accent); }
.cards b { display: block; font: 700 1.2rem/1.25 var(--serif); margin-bottom: .3rem; color: var(--accent); }
.cards span { color: var(--muted); font-size: .97rem; }
.card { margin-top: 2rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--surface); max-width: var(--text); }
.card-title { margin-top: 0; font-size: 1.25rem; }
.list li { margin: .4rem 0; }

.table-wrap { overflow-x: auto; margin: 1.2rem 0 1.5rem; }
table { border-collapse: collapse; width: 100%; font-size: .96rem; }
th, td { text-align: left; vertical-align: top; padding: .6rem .7rem; border-bottom: 1px solid var(--line); }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.meter { display: inline-flex; gap: 3px; vertical-align: middle; }
.meter i { width: .8rem; height: .8rem; border-radius: 2px; border: 1px solid var(--accent); }
.meter i.on { background: var(--accent); }
@media (max-width: 40rem) {
  table.ratings, table.ratings tbody, table.ratings tr, table.ratings td { display: block; }
  table.ratings thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.ratings tr { border-bottom: 1px solid var(--line); padding: .6rem 0; }
  table.ratings td { border: 0; padding: .15rem 0; }
  table.ratings td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--muted); }
}

.site-footer { border-top: 1px solid var(--line); padding: 1.6rem 0 2.4rem; color: var(--muted); font-size: .92rem; }
.site-footer p { max-width: var(--text); margin: 0; }

/* synthetic-user runs: screenshots */
.prose figure.shot{display:inline-block;vertical-align:top;margin:0 1rem 1.5rem 0;max-width:min(100%,560px)}
.prose figure.shot img{display:block;max-width:100%;height:auto;border:1px solid var(--line);border-radius:.4rem}
.prose figure.shot figcaption{font-size:.9rem;color:var(--muted);margin-top:.3rem}

/* The pipeline's version chip sits in the footer: full text colour, so it keeps 4.5:1 after the seed's opacity. */
.site-footer .sws-version { color: var(--fg); opacity: 1; }
