:root {
  --ink: #0b0b0b;
  --ink-soft: #151514;
  --paper: #f2eee7;
  --paper-muted: #c8c1b7;
  --gold: #c6a15b;
  --gold-soft: #e4cc9d;
  --line: rgba(242, 238, 231, 0.16);
  --error: #ed9c90;
  --success: #a9c8a7;
  --display: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --content: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 16px/1.65 var(--sans);
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 80% -10%, rgba(198, 161, 91, 0.11), transparent 38rem),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
  content: "";
  pointer-events: none;
}

a { color: inherit; }

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

button, input, select, textarea { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.shell { width: min(calc(100% - 2rem), var(--content)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 11, 11, 0.9);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  font: 1rem/1 var(--display);
  transform: rotate(45deg);
}

.brand__mark span { transform: rotate(-45deg); }

.brand__name { font-size: 0.82rem; letter-spacing: 0.19em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }

.site-nav a {
  color: var(--paper-muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--paper); }

.site-nav .nav-cta { padding: 0.65rem 0.95rem; border: 1px solid var(--gold); color: var(--gold); }

.menu-toggle { display: none; border: 0; background: transparent; color: var(--paper); }

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; }

h1 { max-width: 12ch; margin: 0; font-size: clamp(3.5rem, 9vw, 8rem); letter-spacing: -0.045em; }

h2 { margin: 0 0 1.2rem; font-size: clamp(2.25rem, 5vw, 4.7rem); letter-spacing: -0.035em; }

h3 { margin: 0 0 0.65rem; font-size: 1.65rem; }

.lede { max-width: 650px; color: var(--paper-muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }

.hero { padding: clamp(5rem, 12vw, 10rem) 0 5rem; }

.hero__grid { display: grid; grid-template-columns: 1.3fr 0.7fr; align-items: end; gap: 3rem; }

.hero__aside { padding: 2rem; border-top: 1px solid var(--gold); background: rgba(255,255,255,.025); }

.hero__aside strong { display: block; margin-bottom: 1rem; font: 2rem/1 var(--display); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.button--quiet { background: transparent; color: var(--paper); border-color: var(--line); }

.button:disabled { cursor: wait; opacity: 0.6; }

.section { padding: clamp(4rem, 9vw, 8rem) 0; border-top: 1px solid var(--line); }

.section--paper { background: var(--paper); color: var(--ink); }

.section--paper .eyebrow { color: #795a25; }

.section--paper .lede, .section--paper .muted { color: #554f47; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }

.section-heading h2 { max-width: 12ch; margin-bottom: 0; }

.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }

.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card { min-height: 280px; padding: 2rem; background: var(--ink-soft); }

.card__number { display: block; margin-bottom: 4rem; color: var(--gold); font: 0.75rem/1 var(--sans); letter-spacing: .16em; }

.card p { color: var(--paper-muted); }

.theme-card { display: grid; min-height: 520px; padding: 2rem; align-content: space-between; background: linear-gradient(145deg, #161616, #090909); }

.theme-card--future { background: repeating-linear-gradient(135deg, #101010, #101010 12px, #131313 12px, #131313 24px); }

.theme-card__status { color: var(--gold); font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; }

.theme-card h3 { font-size: clamp(2.5rem, 5vw, 4rem); }

.theme-card p { max-width: 32ch; color: var(--paper-muted); }

.text-link { color: var(--gold); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; text-underline-offset: .35rem; }

.site-footer { padding: 3rem 0; border-top: 1px solid var(--line); color: var(--paper-muted); }

.site-footer__inner { display: flex; justify-content: space-between; gap: 2rem; }

.site-footer nav { display: flex; flex-wrap: wrap; gap: 1rem; }

.site-footer a { text-underline-offset: .25rem; }

.docs-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); padding: 4rem 0 8rem; }

.docs-sidebar { position: sticky; top: 100px; align-self: start; }

.docs-search { position: relative; margin-bottom: 1.5rem; }

.docs-search input { width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); background: var(--ink-soft); color: var(--paper); }

.docs-nav { display: grid; gap: .15rem; }

.docs-nav a { padding: .35rem 0; color: var(--paper-muted); font-size: .88rem; text-decoration: none; }

.docs-nav a:hover { color: var(--gold); }

.docs-article { min-width: 0; }

.docs-article__header { padding-bottom: 4rem; }

.docs-article__header h1 { max-width: 9ch; font-size: clamp(3.5rem, 8vw, 7rem); }

.doc-section { padding: 3rem 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }

.doc-section h2 { font-size: clamp(2rem, 4vw, 3.3rem); }

.doc-section h3 { margin-top: 2rem; }

.doc-section p, .doc-section li { max-width: 76ch; color: var(--paper-muted); }

.doc-section li + li { margin-top: .5rem; }

.note { margin: 1.5rem 0; padding: 1.25rem 1.5rem; border-left: 2px solid var(--gold); background: var(--ink-soft); color: var(--paper-muted); }

.search-empty { display: none; padding: 2rem; border: 1px solid var(--line); color: var(--paper-muted); }

.support-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(3rem, 8vw, 8rem); padding: clamp(4rem, 9vw, 8rem) 0; }

.support-intro { position: sticky; top: 120px; align-self: start; }

.support-intro h1 { max-width: 8ch; font-size: clamp(3.7rem, 8vw, 6.5rem); }

.support-promise { display: grid; gap: 1rem; margin-top: 2.5rem; }

.support-promise div { padding-top: 1rem; border-top: 1px solid var(--line); color: var(--paper-muted); }

.form-panel { padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--line); background: var(--ink-soft); }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

.field { display: grid; gap: .45rem; }

.field--full { grid-column: 1 / -1; }

.field label, .field legend { color: var(--paper); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }

.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  padding: .85rem 1rem;
}

.field textarea { min-height: 190px; resize: vertical; }

.field small { color: var(--paper-muted); }

.field input[type="file"] { padding: .7rem; }

.checkbox { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; }

.checkbox input { width: 1rem; height: 1rem; margin-top: .25rem; accent-color: var(--gold); }

.checkbox label { color: var(--paper-muted); font-size: .88rem; }

.honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }

.form-status { min-height: 1.5em; margin: 1rem 0; color: var(--paper-muted); }

.form-status[data-state="error"] { color: var(--error); }

.form-status[data-state="success"] { color: var(--success); }

.privacy-copy { max-width: 820px; padding: clamp(4rem, 9vw, 8rem) 0; }

.privacy-copy h1 { max-width: 10ch; }

.privacy-copy h2 { margin-top: 3rem; font-size: 2rem; }

.privacy-copy p, .privacy-copy li { color: var(--paper-muted); }

@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { position: absolute; top: 76px; left: 0; right: 0; display: none; padding: 1.5rem 1rem 2rem; background: var(--ink); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; }
  .site-nav[data-open="true"] { display: flex; }
  .hero__grid, .support-layout { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; min-width: 0; overflow: hidden; }
  .docs-nav { display: flex; width: 100%; max-width: 100%; overflow-x: auto; gap: .5rem; padding-bottom: .5rem; scrollbar-width: thin; }
  .docs-nav a { flex: 0 0 auto; padding: .5rem .7rem; border: 1px solid var(--line); }
  .support-intro { position: static; }
}

@media (max-width: 560px) {
  .shell { width: min(calc(100% - 1.25rem), var(--content)); }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .section-heading, .site-footer__inner { align-items: start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
