/* Brand tokens from docs/BRAND.md, set for long-form reading. */
:root {
  --ink: #0B0B0C;
  --ink-sunken: #060607;
  --amber: #E8A54B;
  --paper: #F2EEE7;
  --paper-muted: #9A968E;
  --sealed: #5C6472;
  --hairline: rgba(242, 238, 231, 0.10);
  --display: "Fraunces", ui-serif, Georgia, serif;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background-color: var(--ink);
  background-image:
    radial-gradient(110% 40% at 50% 0%, rgba(232, 165, 75, 0.12) 0%, rgba(232, 165, 75, 0.03) 40%, transparent 68%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-sunken) 100%);
  background-attachment: fixed;
  color: var(--paper);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page {
  position: relative;
  max-width: 40rem;
  margin: 0 auto;
  padding: max(2.5rem, env(safe-area-inset-top)) 1.75rem 4rem;
}

.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.close {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  margin-right: -0.5rem;
  display: grid;
  place-items: center;
  color: var(--paper-muted);
  text-decoration: none;
}

.close:hover { color: var(--paper); }

.close svg {
  width: 1.1rem;
  height: 1.1rem;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--paper);
}

.mark {
  width: 1.375rem;
  height: 1.375rem;
  fill: var(--amber);
}

.wordmark {
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.eyebrow {
  margin: 2.75rem 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-muted);
}

h1 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(2rem, 7vw, 2.75rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  margin: 2.25rem 0 0.5rem;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p, li {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--paper);
}

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

ul {
  padding-left: 1.125rem;
}

li { margin-bottom: 0.375rem; }

dl {
  margin: 0;
}

dt {
  margin-top: 1rem;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-muted);
}

dd {
  margin: 0.125rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: var(--amber);
  text-underline-offset: 3px;
}

.updated {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--sealed);
}

.footer {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
}

.footer a { color: var(--paper-muted); }

/* An unfilled value stays amber and monospaced, so a page that was published
   without running the build is impossible to mistake for a finished one.
   tools/launch.py replaces these spans outright. */
[data-fill] {
  color: var(--amber);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9375rem;
}
