/* Static white paper stylesheet. Formal document layout with Founder System site shell. */

:root {
  --site-bg: #121218;
  --site-text: #f3eee7;
  --site-muted: #b9afa2;
  --gold: #c9a04b;
  --gold-2: #e3c56e;
  --site-line: rgba(214, 177, 96, 0.16);
  --paper: #f7f3ed;
  --paper-ink: #17130f;
  --paper-muted: #5f5a53;
  --paper-soft: #83786b;
  --paper-line: #d8d0c4;
  --paper-band: #eee7dc;
  --link: #174b8a;
  --content-edge-x: clamp(24px, 5vw, 72px);
  --shell: min(1180px, calc(100vw - (var(--content-edge-x) * 2)));
  --document: min(960px, calc(100vw - (var(--content-edge-x) * 2)));
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(ellipse 115% 85% at 50% -18%, rgba(227, 197, 110, 0.14) 0%, rgba(201, 160, 75, 0.05) 32%, rgba(201, 160, 75, 0) 52%),
    linear-gradient(180deg, #18181f 0%, #14141a 42%, #101014 100%);
  color: var(--site-text);
  font-family: "Inter", Arial, Helvetica, sans-serif;
}

body,
a,
p,
h1,
h2,
h3 {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.page {
  min-height: 100vh;
}

.site-header {
  position: relative;
  z-index: 3;
  padding: 18px var(--content-edge-x) 16px;
  border-bottom: 1px solid var(--site-line);
}

.site-header-inner {
  width: var(--shell);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 24px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 75px;
  overflow: hidden;
}

.brand img {
  width: 360px;
  max-width: 100%;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.18));
}

.site-header-links,
.site-footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-header-links {
  justify-content: flex-end;
}

.site-footer-links {
  justify-content: center;
}

.site-header-links a,
.site-footer-links a {
  color: rgba(241, 223, 191, 0.9);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-header-links a:hover,
.site-footer-links a:hover {
  color: #f7e6be;
  border-bottom-color: rgba(227, 197, 110, 0.82);
}

.whitepaper-hero {
  width: var(--document);
  margin: 0 auto;
  padding: 46px 0 24px;
}

.whitepaper-kicker {
  margin: 0 0 12px;
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.whitepaper-hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(2.35rem, 4vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.whitepaper-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--site-muted);
  font-size: clamp(1.02rem, 1vw, 1.18rem);
  line-height: 1.65;
}

.document-wrap {
  width: var(--document);
  margin: 0 auto;
  padding: 0 0 76px;
}

.whitepaper-document {
  background: var(--paper);
  color: var(--paper-ink);
  border: 1px solid rgba(214, 177, 96, 0.22);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
}

.document-inner {
  padding: clamp(30px, 5vw, 58px);
}

.document-title {
  padding-bottom: 22px;
  border-bottom: 3px solid var(--paper-ink);
}

.document-title h2 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(1.9rem, 2.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.document-subtitle {
  margin: 14px 0 0;
  max-width: 760px;
  color: var(--paper-muted);
  font-size: 1.06rem;
  line-height: 1.62;
}

.document-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 22px;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
}

.document-meta div {
  padding: 12px;
  background: var(--paper-band);
}

.document-meta span {
  display: block;
  margin-bottom: 4px;
  color: var(--paper-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.abstract,
.toc,
.paper-section,
.paper-disclaimer {
  margin-top: 30px;
}

.abstract {
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  background: #fffaf1;
}

.abstract h2,
.toc h2,
.paper-section h2,
.paper-disclaimer h2 {
  margin: 0 0 10px;
  color: var(--paper-ink);
  font-size: 1.22rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.paper-section h2 {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--paper-line);
}

.paper-section h3 {
  margin: 22px 0 8px;
  color: var(--paper-ink);
  font-size: 1.04rem;
  line-height: 1.3;
}

.whitepaper-document p {
  margin: 0 0 1rem;
  color: var(--paper-muted);
  line-height: 1.72;
}

.whitepaper-document p:last-child {
  margin-bottom: 0;
}

.toc ol {
  columns: 2;
  margin: 0;
  padding-left: 1.25rem;
  color: var(--paper-muted);
  line-height: 1.8;
}

.toc a {
  color: var(--paper-ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(23, 19, 15, 0.22);
}

.toc a:hover {
  border-bottom-color: var(--paper-ink);
}

.framework-table,
.formula-table,
.claims-table {
  width: 100%;
  margin: 14px 0 18px;
  border-collapse: collapse;
  table-layout: fixed;
}

.framework-table th,
.framework-table td,
.formula-table th,
.formula-table td,
.claims-table th,
.claims-table td {
  padding: 11px 12px;
  border: 1px solid var(--paper-line);
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}

.framework-table th,
.formula-table th,
.claims-table th {
  background: var(--paper-band);
  color: var(--paper-ink);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.framework-table td,
.formula-table td,
.claims-table td {
  color: var(--paper-muted);
}

.claim-list {
  margin: 0.5rem 0 1.1rem;
  padding-left: 1.25rem;
  color: var(--paper-muted);
  line-height: 1.7;
}

.claim-list li + li {
  margin-top: 0.2rem;
}

.reference-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--paper-muted);
  line-height: 1.65;
}

.reference-list li + li {
  margin-top: 1rem;
}

.whitepaper-document a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

.paper-disclaimer {
  padding: 18px 20px;
  border: 1px solid var(--paper-line);
  background: #fffaf1;
}

.site-footer {
  border-top: 1px solid var(--site-line);
  background: rgba(7, 7, 9, 0.88);
  padding: 24px var(--content-edge-x) 40px;
  color: rgba(239, 229, 215, 0.88);
}

.site-footer-inner {
  width: var(--shell);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-align: center;
}

.site-footer-tagline {
  margin: -8px 0 0;
  color: rgba(241, 223, 191, 0.92);
  font-size: 0.95rem;
  font-weight: 600;
}

@media (max-width: 767px) {
  :root {
    --content-edge-x: 20px;
  }

  .site-header {
    padding-top: 22px;
    padding-bottom: 6px;
  }

  .site-header-inner {
    flex-direction: column;
    align-items: center;
  }

  .site-header-links,
  .site-footer-links {
    justify-content: center;
    font-size: 0.9rem;
    gap: 14px 16px;
  }

  .brand a {
    height: 52px;
  }

  .brand img {
    width: 220px;
  }

  .whitepaper-hero {
    padding: 30px 0 18px;
  }

  .document-inner {
    padding: 24px 18px;
  }

  .document-meta {
    grid-template-columns: 1fr 1fr;
  }

  .toc ol {
    columns: 1;
  }

  .framework-table,
  .formula-table,
  .claims-table {
    table-layout: auto;
  }

  .site-footer {
    padding-top: 20px;
    padding-bottom: 36px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .site-header,
  .site-footer,
  .cookie-banner,
  .skip-link,
  .whitepaper-hero {
    display: none !important;
  }

  .document-wrap {
    width: auto;
    padding: 0;
  }

  .whitepaper-document {
    border: 0;
    box-shadow: none;
  }

  .document-inner {
    padding: 0.45in;
  }
}
