/* Shared styles for Sanctum's text pages (privacy, and any others).
   Mirrors the homepage's tokens so the pages read as one site. */
:root {
  --bg: #0E0D0B;
  --bg-2: #15130F;
  --surface: #1C1915;
  --line: #2B2721;
  --ink: #EDE7DE;
  --ink-2: #A69D91;
  --ink-3: #6E665C;
  --paper: #F4EFE7;
  --paper-2: #EAE3D8;
  --paper-ink: #1C1915;
  --paper-ink-2: #5E554B;
  --paper-line: #DAD1C4;
  /* The app's own greens: the ox's lime and the Today card's evergreen */
  --lime: #C6F27A;
  --evergreen: #2F8F5E;
  --rose: #F0225F;

  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-6: 1.5rem;
  --space-8: 2rem; --space-12: 3rem; --space-16: 4rem;
  --section-sm: clamp(3rem, 6vw, 5rem);
  --section-md: clamp(5rem, 10vw, 7.5rem);
  --radius-sm: 4px; --radius-md: 8px; --radius-full: 9999px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.65 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3 { margin: 0; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 2px; }
.container { width: min(var(--container), 100% - 2 * clamp(1rem, 5vw, 3rem)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--ink); color: var(--bg); padding: 8px 14px; }
.eyebrow { font: 700 11px/1.2 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--lime); }

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease-out-expo), transform .6s var(--ease-out-expo); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].in { opacity: 1; transform: none; }
}

/* Nav */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(14,13,11,.86); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav .container { display: flex; align-items: center; height: 64px; gap: var(--space-8); }
.brand { display: flex; align-items: flex-end; gap: 9px; text-decoration: none; color: var(--ink); }
.brand .ox { width: 21px; height: 20px; background: linear-gradient(#DDF7A9, var(--lime)); -webkit-mask: url(img/ox-mark.png) center / contain no-repeat; mask: url(img/ox-mark.png) center / contain no-repeat; }
.brand .wordmark { height: 15px; width: auto; margin-bottom: 1px; }
.brand .stop { width: 6px; height: 6px; margin: 0 0 3px -2px; background: var(--rose); transform: rotate(45deg); box-shadow: 0 0 8px rgba(240,34,95,.55); }
.nav-links { display: flex; gap: var(--space-8); margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: 14px; font-weight: 500; transition: color 150ms ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta { text-decoration: none; font-size: 14px; font-weight: 700; padding: 9px 16px; border-radius: var(--radius-full); background: var(--ink); color: var(--bg); transition: transform 200ms var(--ease-out-quart); }
.nav-cta:hover { transform: translateY(-1px); }
@media (max-width: 760px) { .nav-links { display: none; } .nav-cta { margin-left: auto; } }

/* Head: dark, one evergreen glow, a giant ox in the corner */
.head { position: relative; overflow: hidden; isolation: isolate; padding: clamp(5rem, 11vw, 9rem) 0 clamp(4rem, 8vw, 6rem); }
.head::before { content: ""; position: absolute; z-index: -1; width: 760px; height: 760px; right: -220px; top: -260px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in oklab, var(--evergreen) 45%, transparent), transparent); }
.head .ghost { position: absolute; z-index: -1; right: clamp(-60px, -2vw, 0px); bottom: -40px; width: clamp(220px, 32vw, 420px); aspect-ratio: 600 / 577; background: var(--lime); opacity: .07; -webkit-mask: url(img/ox-mark.png) center / contain no-repeat; mask: url(img/ox-mark.png) center / contain no-repeat; }
.head h1 { font: 300 clamp(2.6rem, 1.4rem + 4.8vw, 5.6rem)/1.02 var(--font-body); letter-spacing: -0.045em; margin-top: var(--space-6); max-width: 13ch; }
.head h1 em { font: italic 400 1.08em/1 var(--font-serif); letter-spacing: -0.02em; color: var(--lime); }
.head .lede { color: var(--ink-2); font-size: var(--text-lg); line-height: 1.6; max-width: 46ch; margin-top: var(--space-6); }
.head .updated { margin-top: var(--space-8); font-size: 13px; color: var(--ink-3); }

/* Summary strip */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts div { padding: var(--space-8) var(--space-6); border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; padding-left: 0; }
.facts b { display: block; font: 500 17px/1.2 var(--font-body); }
.facts span { display: block; color: var(--ink-2); font-size: 13px; margin-top: var(--space-2); }
@media (max-width: 760px) {
  .facts .container { grid-template-columns: 1fr 1fr; }
  .facts div { padding: var(--space-6) var(--space-4); }
  .facts div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Long-form body on paper: sticky contents left, sections right */
.doc { background: var(--paper); color: var(--paper-ink); padding: var(--section-md) 0; }
.doc .container { display: grid; grid-template-columns: 240px 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.toc { position: sticky; top: 96px; }
.toc p { font: 700 11px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--paper-ink-2); margin-bottom: var(--space-4); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--paper-line); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; font-size: 14px; color: var(--paper-ink-2); transition: color 150ms ease, border-color 150ms ease; }
.toc a:hover { color: var(--paper-ink); }
.toc a.on { color: var(--paper-ink); border-left-color: var(--evergreen); font-weight: 600; }
.doc section { padding: var(--space-12) 0; border-top: 1px solid var(--paper-line); max-width: 68ch; }
.doc section:first-child { border-top: 0; padding-top: 0; }
.doc h2 { font: 300 clamp(1.6rem, 1.3rem + 1vw, 2.2rem)/1.15 var(--font-body); letter-spacing: -0.03em; }
.doc h2 em { font: italic 400 1.08em/1 var(--font-serif); color: var(--evergreen); }
.doc .text { margin-top: var(--space-4); color: var(--paper-ink-2); }
.doc .text p + p, .doc .text p + ul, .doc .text ul + p { margin-top: var(--space-4); }
.doc .text strong { color: var(--paper-ink); font-weight: 600; }
.doc .text a { color: var(--evergreen); text-underline-offset: 3px; }
.doc ul { padding-left: 20px; margin: 0; }
.doc li { margin-bottom: var(--space-2); }
.doc li::marker { color: var(--evergreen); }
.callout { margin-top: var(--space-6); padding: var(--space-4) var(--space-6); border-left: 3px solid var(--evergreen); background: var(--paper-2); font-size: 15px; }
.aside { margin-top: var(--space-6); font: italic 400 20px/1.35 var(--font-serif); color: var(--paper-ink); }
@media (max-width: 900px) { .doc .container { grid-template-columns: 1fr; } .toc { display: none; } }

/* Footer */
footer { padding: var(--section-sm) 0 var(--space-12); color: var(--ink-2); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; gap: var(--space-6) var(--space-12); align-items: flex-end; justify-content: space-between; }
.foot p { margin-top: var(--space-4); max-width: 34ch; }
.foot nav { display: flex; flex-wrap: wrap; gap: var(--space-6); }
.foot nav a { text-decoration: none; transition: color 150ms ease; }
.foot nav a:hover { color: var(--ink); }
.legal { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
