/* Rare legal site. Colors and type mirror brand/tokens.json (Heirloom, L2). */
:root {
  --bg: #F4EEE4;
  --surface: #FFFDF9;
  --ink: #1A1412;
  --muted: #6B5F57;
  --primary: #A51C30;
  --primary-pressed: #7E1222;
  --on-primary: #FBF6EE;
  --blush: #F2E2DE;
  --line: #E3D8CA;
  --warning: #94561A;
  --link: #A51C30;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17120F;
    --surface: #231C18;
    --ink: #F4EEE4;
    --muted: #B9ACA2;
    --blush: #2E2420;
    --line: #3A302A;
    --warning: #E0A15F;
    --link: #E7A5A0;
  }
}
:root[data-theme="dark"] {
  --bg: #17120F; --surface: #231C18; --ink: #F4EEE4; --muted: #B9ACA2; --blush: #2E2420;
  --line: #3A302A; --warning: #E0A15F; --link: #E7A5A0;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 680px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 560px) { .wrap { padding: 0 24px; } }

/* Logo: fixed-colour symbols from brand/logo/dist/web (snippet.html); brand/red on light, cream on dark. */
.on-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .on-light { display: none !important; }
  :root:not([data-theme="light"]) .on-dark { display: block !important; }
}
:root[data-theme="dark"] .on-light { display: none !important; }
:root[data-theme="dark"] .on-dark { display: block !important; }

/* Header / nav */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; }
.brand svg { height: 26px; aspect-ratio: 2.3046; display: block; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--primary); text-underline-offset: 6px; }

/* Document pages */
main.doc { padding: 40px 0 64px; }
.overline { font-size: 12px; line-height: 16px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin: 0 0 12px; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 400; font-variation-settings: "SOFT" 0; color: var(--ink); }
h1 { font-size: 36px; line-height: 1.1; letter-spacing: -.01em; margin: 0 0 12px; }
h2 { font-size: 24px; line-height: 1.2; margin: 44px 0 10px; }
h3 { font-size: 19px; line-height: 1.3; margin: 26px 0 6px; }
@media (min-width: 560px) { h1 { font-size: 44px; } h2 { font-size: 26px; } }
.lede { font-size: 17px; line-height: 1.55; color: var(--muted); margin: 0 0 8px; }
.meta { font-size: 14px; color: var(--muted); margin: 0; }
p, li { margin: 0 0 12px; }
ul, ol { padding-left: 22px; margin: 0 0 14px; }
li { padding-left: 2px; }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 28px 0 8px; }
.toc p { margin: 0 0 8px; font-weight: 600; font-size: 14px; }
.toc ol { margin: 0; font-size: 15px; columns: 1; }
@media (min-width: 560px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc li { margin: 0 0 4px; break-inside: avoid; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--link); text-decoration: underline; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 18px 0; }
.card > :last-child { margin-bottom: 0; }
.card.blush { background: var(--blush); border-color: transparent; }
.card h3 { margin-top: 0; }

.placeholder { background: var(--blush); color: var(--ink); border-radius: 6px; padding: 0 5px; font-weight: 600; white-space: nowrap; }

table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 18px; }
th, td { text-align: left; vertical-align: top; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); }
th { font-weight: 600; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 559px) {
  table.stack thead { display: none; }
  table.stack tr { display: block; border-bottom: 1px solid var(--line); padding: 10px 0; }
  table.stack td { display: block; border: 0; padding: 2px 0; }
  table.stack td:first-child { font-weight: 600; }
}

.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 38px; margin-bottom: 14px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-size: 13px; font-weight: 600; display: grid; place-items: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 13px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 10px; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: 0 0 6px; }

/* Landing */
body.landing { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.hero { flex: 1; display: flex; align-items: center; padding: 56px 0 40px; }
.hero .wrap { text-align: center; }
.hero .logo { display: inline-block; }
.hero .logo svg { height: 104px; aspect-ratio: 1.8744; display: block; margin: 0 auto; }
@media (min-width: 560px) { .hero .logo svg { height: 132px; } }
.hero h1 { font-size: 44px; line-height: 46px; letter-spacing: -.015em; margin: 40px 0 12px; font-variation-settings: "SOFT" 0, "opsz" 144; }
@media (min-width: 560px) { .hero h1 { font-size: 56px; line-height: 1.05; } }
.positioning { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin: 0 0 36px; }
.pill { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 12px 20px; font-size: 15px; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dot { background: var(--link); } }
.hero .support-line { margin: 28px 0 0; font-size: 15px; color: var(--muted); }
.landing .site-footer { text-align: center; }
.landing .site-footer nav { justify-content: center; }
