/* Clark editorial stylesheet — shared by all static docs/marketing pages. */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/dm-sans-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2212;
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-sans-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2212;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/newsreader-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2212;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/newsreader-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2212;
}

:root {
  color-scheme: light;
  --bg-primary: #faf8f5;
  --bg-secondary: #f2efe9;
  --bg-elevated: #fcfcfb;
  --bg-sunken: #e8e4db;
  --text-primary: #2e2925;
  --text-secondary: #57504a;
  --text-muted: #80776f;
  --text-faint: #b3aba0;
  --accent: #8c6b5d;
  --accent-hover: #7a5c4f;
  --border: rgba(60, 50, 40, 0.12);
  --border-subtle: rgba(60, 50, 40, 0.06);
  --shadow-card: 0 30px 80px -30px rgba(52, 38, 24, 0.25);
  --shadow-glow: 0 0 24px rgba(140, 107, 93, 0.18), 0 8px 24px rgba(0, 0, 0, 0.06);
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --max-width: 1320px;
}

* { box-sizing: border-box; }
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  position: relative;
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 12% 14%, rgba(140, 107, 93, 0.18), transparent 32%),
    radial-gradient(circle at 86% 10%, rgba(107, 130, 102, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(252, 252, 251, 0.6) 0%, rgba(250, 248, 245, 0.94) 50%, rgba(242, 239, 233, 0.98) 100%);
  background-attachment: fixed;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

a { color: var(--accent); text-decoration: none; transition: color 150ms ease; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: -0.005em;
}

p, li {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.72;
}

::selection { background: rgba(140, 107, 93, 0.22); color: inherit; }

/* ─── Site header ─── */
.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(140, 107, 93, 0.18);
  background: rgba(250, 248, 245, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-nameplate {
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: var(--text-primary);
}
.site-nameplate__mark {
  font-family: var(--font-display);
  font-size: 30px;
  font-style: italic;
  font-weight: 500;
  line-height: 1;
}
.site-nameplate__divider {
  width: 1px;
  height: 18px;
  background: rgba(140, 107, 93, 0.4);
}
.site-nameplate__rubric {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav__link {
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-radius: 999px;
  transition: color 150ms ease;
}
.site-nav__link:hover { color: var(--text-primary); }
.site-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid rgba(140, 107, 93, 0.35);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 200ms ease;
}
.site-nav__cta:hover {
  border-color: rgba(140, 107, 93, 0.55);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  color: var(--text-primary);
}

/* ─── Page container ─── */
.page {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 40px 40px;
}
.page--narrow { max-width: 1040px; }

/* ─── Section rubrics and rules ─── */
.rubric {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.rubric::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: rgba(140, 107, 93, 0.5);
}
.section-rule {
  position: relative;
  margin: 56px 0;
  border: none;
  border-top: 1px solid rgba(140, 107, 93, 0.18);
}
.section-rule::after {
  content: '·';
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 14px;
  background: var(--bg-primary);
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  color: rgba(140, 107, 93, 0.6);
}

/* ─── Display headings ─── */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(52px, 8.5vw, 104px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.018em;
  color: var(--text-primary);
  margin: 0;
}
.display-xl em { font-style: italic; }
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 60px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.012em;
  color: var(--text-primary);
  margin: 0 0 12px;
}
.display-lg em { font-style: italic; }
.display-md {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--text-primary);
  margin: 0 0 12px;
}
.display-md em { font-style: italic; }

/* ─── Lede and body ─── */
.lede {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 52ch;
  margin: 0;
}
.body-lg {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 60ch;
}
.body {
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--text-secondary);
  max-width: 62ch;
}
.footnote {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── Layout helpers ─── */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.col-8 { grid-column: span 8; }
.col-4 { grid-column: span 4; }
@media (max-width: 900px) {
  .grid-12 { grid-template-columns: 1fr; gap: 28px; }
  .col-8, .col-4 { grid-column: 1 / -1; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ─── Breadcrumbs ─── */
.crumbs {
  margin: 0 0 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--text-primary); }
.crumbs span { margin: 0 10px; color: rgba(140, 107, 93, 0.5); }

/* ─── Numbered manifesto list ─── */
.numbered {
  list-style: none;
  padding: 0;
  margin: 0;
}
.numbered > li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid rgba(140, 107, 93, 0.18);
}
.numbered > li:first-child { border-top: none; }
.numbered__serial {
  font-family: var(--font-display);
  font-size: 64px;
  font-style: italic;
  font-weight: 500;
  line-height: 0.85;
  color: rgba(140, 107, 93, 0.8);
}
.numbered__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0 0 10px;
}
.numbered__body {
  color: var(--text-secondary);
  max-width: 58ch;
  margin: 0;
}

/* ─── Cards ─── */
.card {
  display: block;
  border: 1px solid rgba(140, 107, 93, 0.18);
  background: rgba(252, 252, 251, 0.82);
  border-radius: 22px;
  padding: 24px 26px;
  transition: all 250ms ease;
}
.card:hover {
  border-color: rgba(140, 107, 93, 0.35);
  background: var(--bg-elevated);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}
.card__kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
.card__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--text-primary);
}
.card__body { margin: 0; color: var(--text-secondary); }

/* ─── Comparison table ─── */
.ledger {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}
.ledger th, .ledger td {
  padding: 18px 16px;
  text-align: left;
  border-top: 1px solid rgba(140, 107, 93, 0.18);
  vertical-align: top;
}
.ledger thead th {
  border-top: none;
  border-bottom: 1px solid rgba(140, 107, 93, 0.35);
  padding-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ledger td:first-child {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  width: 30%;
}
.ledger td:last-child { color: var(--text-secondary); }

/* ─── Primary call to action banner ─── */
.launch-banner {
  position: relative;
  margin-top: 96px;
  overflow: hidden;
  border-radius: 40px;
  background: var(--accent);
  color: #fff;
  padding: 56px 48px;
  box-shadow: 0 40px 100px -30px rgba(52, 38, 24, 0.45);
}
.launch-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.35), transparent 40%),
    radial-gradient(circle at 78% 80%, rgba(255, 255, 255, 0.18), transparent 45%);
  opacity: 0.5;
  pointer-events: none;
}
.launch-banner__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.launch-banner__rubric {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 14px;
}
.launch-banner__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0;
  max-width: 18ch;
}
.launch-banner__title em { font-style: italic; }
.launch-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 30px;
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.35);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.launch-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 48px -12px rgba(0, 0, 0, 0.4);
  color: var(--accent-hover);
}
.launch-cta__arrow { display: inline-block; transition: transform 200ms ease; }
.launch-cta:hover .launch-cta__arrow { transform: translateX(3px); }

/* ─── Footer ─── */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(140, 107, 93, 0.18);
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  margin-top: 96px;
}
.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 44px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.site-footer__links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 150ms ease;
}
.site-footer__links a:hover { color: var(--text-primary); }

/* ─── Utility lists ─── */
.bullets {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.bullets li {
  position: relative;
  padding: 10px 0 10px 26px;
  border-top: 1px solid rgba(140, 107, 93, 0.12);
  color: var(--text-secondary);
}
.bullets li:first-child { border-top: none; }
.bullets li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 22px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

/* ─── Responsive tweaks ─── */
@media (max-width: 720px) {
  .site-header__inner { padding: 16px 22px; }
  .site-nameplate__divider, .site-nameplate__rubric { display: none; }
  .site-nav__link { display: none; }
  .page { padding: 48px 22px 32px; }
  .launch-banner { padding: 40px 28px; margin-top: 64px; border-radius: 28px; }
  .site-footer__inner { padding: 32px 22px; }
  .numbered > li { grid-template-columns: 64px 1fr; gap: 18px; padding: 24px 0; }
  .numbered__serial { font-size: 44px; }
  .section-rule { margin: 40px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}
