@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #17171a;
  --ink-2: #55544e;
  --ink-3: #85847c;
  --line: #e2e0d8;
  --primary: #17171a;
  --primary-ink: #ffffff;
  --gutter: clamp(16px, 5vw, 64px);
}
:root[data-resolved="dark"] {
  color-scheme: dark;
  --bg: #111113;
  --surface: #1a1a1c;
  --ink: #f0efec;
  --ink-2: #b6b5ae;
  --ink-3: #85847d;
  --line: #2f2f33;
  --primary: #f0efec;
  --primary-ink: #17171a;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
code { font: 13.5px "JetBrains Mono", ui-monospace, Consolas, monospace; background: var(--line); padding: 1px 5px; border-radius: 4px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; text-decoration: none; }
.top-nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.top-nav a:not(.cta) { text-decoration: none; color: var(--ink-2); }
.top-nav a:not(.cta):hover { color: var(--ink); }
.cta { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 20px; border-radius: 10px; background: var(--primary); color: var(--primary-ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.cta:hover { opacity: .88; }
.cta.small { height: 36px; padding: 0 14px; font-size: 14.5px; border-radius: 8px; }

.hero { padding: clamp(32px, 7vw, 84px) var(--gutter) 0; max-width: 1240px; margin: 0 auto; }
.hero h1 { font: 500 clamp(38px, 6.4vw, 76px)/1.04 "Fraunces", Georgia, serif; letter-spacing: -.022em; max-width: 15em; }
.lede { margin-top: 20px; font-size: clamp(18px, 2vw, 21px); line-height: 1.45; color: var(--ink-2); max-width: 36em; }
.lede.small { font-size: 18px; margin-top: 10px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero-note { color: var(--ink-3); font-size: 14.5px; }
.shot { margin-top: clamp(32px, 5vw, 56px); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: 0 1px 2px rgba(23, 23, 26, .05), 0 24px 70px rgba(23, 23, 26, .12); }
.shot img { display: block; width: 100%; height: auto; }

.block { padding: clamp(48px, 8vw, 96px) var(--gutter) 0; max-width: 1240px; margin: 0 auto; }
.block h2 { font: 500 clamp(28px, 4vw, 44px)/1.12 "Fraunces", Georgia, serif; letter-spacing: -.015em; max-width: 20em; }
.nouns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); margin-top: 32px; }
.nouns h3 { font-size: 19px; font-weight: 600; padding-top: 14px; border-top: 1px solid var(--ink); }
.nouns p { margin-top: 8px; color: var(--ink-2); }
.swaps { margin-top: 28px; border-top: 1px solid var(--line); }
.swap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 32px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.swap span { color: var(--ink-3); }
.swap strong { font-weight: 500; }
.foot { display: flex; gap: 22px; flex-wrap: wrap; margin-top: clamp(56px, 8vw, 100px); padding: 22px var(--gutter) 36px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14.5px; }
.foot span { margin-right: auto; }

.doc { max-width: 760px; margin: 0 auto; padding: clamp(20px, 5vw, 56px) var(--gutter) 0; }
.doc h1 { font: 500 clamp(36px, 5vw, 52px)/1.1 "Fraunces", Georgia, serif; letter-spacing: -.02em; }
.doc-lede { margin-top: 10px; color: var(--ink-2); }
.doc-toc { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); font-size: 15px; }
.doc-toc a { color: var(--ink-2); text-underline-offset: 3px; }
.doc section { margin-top: 38px; scroll-margin-top: 16px; }
.doc h2 { font: 500 26px/1.2 "Fraunces", Georgia, serif; letter-spacing: -.01em; margin-bottom: 10px; }
.doc p { margin-top: 10px; }
.doc ul { margin: 10px 0 0; padding-left: 20px; }
.doc li { margin-top: 6px; }
.doc li code, .doc p code { font-size: 13.5px; }
.doc pre { margin: 12px 0 0; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: auto; font: 13px/1.55 "JetBrains Mono", ui-monospace, Consolas, monospace; }
.examples { list-style: none; padding-left: 0 !important; }
.doc-table { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 15px; }
.doc-table th { text-align: left; font-weight: 500; color: var(--ink-2); padding: 8px 16px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; width: 38%; }
.doc-table td { padding: 8px 0; border-bottom: 1px solid var(--line); }

@media (max-width: 760px) {
  .nouns { grid-template-columns: 1fr; }
  .swap { grid-template-columns: 1fr; }
  .top-nav a:not(.cta):not([href="/prism/app/"]) { display: none; }
}
