/* Sipmill — Swiss cobalt. White, ink, one cobalt accent. 2D only. */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/space-grotesk-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/space-grotesk-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/space-grotesk-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/jetbrains-mono-latin-600-normal.woff2) format("woff2"); }

:root {
  --bg: #FFFFFF;
  --ink: #0A0A0A;
  --cobalt: #1F3BFF;        /* large text, buttons, active lines */
  --cobalt-text: #1431D9;   /* small cobalt text */
  --grey: #6B6B6B;
  --hair: #0A0A0A;
  --wash: #F2F2F2;          /* flat fill for disabled / code, no gradients */
  --rule: 3px;
  --gut: 32px;
  --hang: 96px;             /* hanging column for section numbers */
  --max: 1280px;
  --sans: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.45;
  font-feature-settings: "ss01" 0; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--cobalt-text); }
button, input { font: inherit; color: inherit; }
code, .mono, kbd, samp { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.btn:focus-visible, .chip[aria-pressed="true"]:focus-visible { outline-color: var(--ink); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }

/* ---------- skip ---------- */
.skip { position: absolute; left: 8px; top: -60px; z-index: 10; background: var(--ink); color: #fff; padding: 10px 14px; font-family: var(--mono); font-size: 14px; }
.skip:focus { top: 8px; }

/* ---------- top bar ---------- */
.top { border-bottom: var(--rule) solid var(--ink); background: var(--bg); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.wordmark { font-weight: 700; font-size: 22px; letter-spacing: 0.02em; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.wordmark:hover { color: var(--ink); }
.wordmark .mark { width: 24px; height: 24px; flex: none; }
.menu-btn { display: none; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border: 2px solid var(--ink); background: var(--bg); font-weight: 600; font-size: 15px; cursor: pointer; }
.menu-btn:hover { background: var(--ink); color: #fff; }
.menu-ic { width: 14px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
.menu-ic::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid currentColor; }
.menu-btn[aria-expanded="true"] { background: var(--ink); color: #fff; }
.ca { display: flex; align-items: center; gap: 0; border: 2px solid var(--ink); min-width: 0; flex: 0 1 auto; height: 40px; }
.ca-label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; padding: 0 10px; height: 100%; display: flex; align-items: center; border-right: 2px solid var(--ink); white-space: nowrap; background: var(--ink); color: #fff; }
.ca-addr { font-family: var(--mono); font-size: 13px; padding: 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; color: var(--grey); }
.ca.live .ca-addr { color: var(--ink); }
.ca-act { height: 100%; border: 0; border-left: 2px solid var(--ink); background: var(--bg); font-family: var(--mono); font-size: 12px; padding: 0 10px; cursor: pointer; text-decoration: none; display: flex; align-items: center; white-space: nowrap; }
.ca-act:hover { background: var(--ink); color: #fff; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: 16px; padding: 8px 10px; border-bottom: 3px solid transparent; }
.nav a[aria-current="page"] { border-bottom-color: var(--cobalt); }
.nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.buy { min-height: 40px; padding: 0 18px; transition: background-color 150ms, color 150ms; }
.btn.buy[aria-disabled="true"] { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); cursor: default; font-weight: 700; }
.btn.buy[aria-disabled="true"]:hover { background: var(--bg); color: var(--ink); }
.buy-at { font-family: var(--mono); font-weight: 400; font-size: 12.5px; margin-left: 6px; color: var(--grey); }
.buy:not([aria-disabled="true"]) .buy-at { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 2px;
  background: var(--cobalt); color: #fff; font-weight: 700; font-size: 17px; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn { transition: background-color 150ms, color 150ms, box-shadow 150ms; }
.btn:hover { background: var(--ink); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--wash); color: var(--grey); box-shadow: inset 0 0 0 2px #BDBDBD; cursor: not-allowed; }
.btn .arr { width: 22px; height: 14px; flex: none; }
.btn.small { min-height: 44px; padding: 0 14px; font-size: 15px; }

/* ---------- sections ---------- */
.sec { border-top: var(--rule) solid var(--ink); padding: 48px 0 64px; }
.sec-head { display: grid; grid-template-columns: var(--hang) minmax(0, 1fr); column-gap: 0; align-items: baseline; margin-bottom: 32px; }
.hang { padding-left: var(--hang); }
.sec-no { grid-column: 1; font-family: var(--mono); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; }
.sec-no b { color: var(--cobalt-text); }
.sec-title { grid-column: 2; margin: 0; font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; line-height: 1.02; letter-spacing: -0.025em; }
.lbl { font-family: var(--mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); }
.muted { color: var(--grey); }
.small { font-size: 14px; }
.cobalt { color: var(--cobalt); }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; border-top: 2px solid var(--ink); }
table.tbl { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; padding: 10px 12px 10px 0; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.tbl td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--ink); white-space: nowrap; vertical-align: top; }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl a { text-decoration: none; border-bottom: 1px solid currentColor; }
.tag { display: inline-block; font-family: var(--mono); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; padding: 1px 6px; border: 1.5px solid var(--ink); line-height: 1.5; vertical-align: 1px; }
.tag.c { border-color: var(--cobalt-text); color: var(--cobalt-text); }
.empty { font-family: var(--mono); font-size: 14px; color: var(--grey); padding: 18px 0; }

/* ---------- banner ---------- */
.banner { background: var(--cobalt); color: #fff; font-family: var(--mono); font-size: 14px; }
.banner .wrap { padding-top: 10px; padding-bottom: 10px; }

/* ---------- footer ---------- */
.foot { border-top: var(--rule) solid var(--ink); padding: 40px 0 56px; margin-top: 0; }
.foot .grid { row-gap: 24px; }
.foot-word { grid-column: 1 / span 3; font-weight: 700; font-size: 22px; letter-spacing: 0.02em; }
.foot-disc { grid-column: 4 / span 6; margin: 0; font-size: 15px; line-height: 1.5; max-width: 62ch; }
.foot-links { grid-column: 10 / span 3; display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 13px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-contract { grid-column: 4 / span 9; font-family: var(--mono); font-size: 12.5px; color: var(--grey); }
.cp { font-family: var(--mono); font-size: 11px; font-weight: 600; border: 1.5px solid var(--ink); background: var(--bg); color: var(--ink); padding: 2px 8px; cursor: pointer; min-height: 28px; }
.cp:hover { background: var(--ink); color: #fff; }

/* ---------- prose (docs) ---------- */
.prose { max-width: 68ch; }
.prose p, .prose li { font-size: 17px; }
.prose h3 { font-size: 20px; margin: 28px 0 8px; letter-spacing: -0.01em; }
.prose code { font-size: 0.86em; background: var(--wash); padding: 1px 5px; }
.codebox { position: relative; border: 2px solid var(--ink); background: var(--bg); }
.codebox pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.6; }
.codebox .copy { position: absolute; top: 0; right: 0; height: 40px; min-height: 40px; }

@media (max-width: 900px) {
  :root { --hang: 64px; }
  .top .wrap { flex-wrap: wrap; }
  .menu-btn { display: inline-flex; margin-left: auto; }
  .nav { order: 6; flex: 1 1 100%; margin: 8px 0 2px; display: none; flex-direction: column; align-items: stretch; border: 2px solid var(--ink); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 16px; border-bottom: 0; border-top: 1px solid var(--ink); }
  .nav a:first-child { border-top: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--cobalt); }
  .foot-word { grid-column: 1 / -1; }
  .foot-disc { grid-column: 1 / -1; }
  .foot-links { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 14px; }
  .foot-contract { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  :root { --gut: 16px; }
  body { font-size: 16px; }
  .grid, .sec-head { column-gap: 12px; }
  .top .wrap { flex-wrap: wrap; gap: 0 8px; min-height: 0; padding-top: 6px; padding-bottom: 8px; }
  .wordmark { height: 44px; font-size: 19px; gap: 8px; }
  .wordmark .mark { width: 22px; height: 22px; }
  .buy { min-height: 44px; padding: 0 12px; font-size: 15px; }
  .buy-at { font-size: 11px; margin-left: 3px; }
  .menu-btn { order: 3; width: 44px; padding: 0; justify-content: center; margin-left: 8px; }
  .menu-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .buy { order: 2; margin-left: auto; }
  .wordmark { font-size: 18px; }
  .ca { order: 5; flex: 1 1 100%; height: 36px; margin-top: 8px; }
  .ca-addr { flex: 1; font-size: 12px; padding: 0 8px; }
  .ca-label { font-size: 11px; padding: 0 8px; }
  .ca.live { flex-wrap: wrap; height: auto; }
  .ca.live .ca-label { height: 36px; }
  .ca.live .ca-label { width: 34px; padding: 0; justify-content: center; }
  .ca.live .ca-addr { flex: 1 1 calc(100% - 34px); height: 36px; display: flex; align-items: center; font-size: 10.4px; padding: 0 6px; overflow: hidden; letter-spacing: -0.01em; }
  .ca.live .ca-act { flex: 1 1 0; justify-content: center; height: 40px; border-left: 0; border-top: 2px solid var(--ink); }
  .ca.live .ca-act + .ca-act { border-left: 2px solid var(--ink); }
  .sec { padding: 32px 0 44px; }
  .sec-head { margin-bottom: 22px; }
  :root { --hang: 0px; }
  .sec-head { grid-template-columns: minmax(0, 1fr); }
  .sec-no { grid-column: 1; margin-bottom: 6px; }
  .sec-title { grid-column: 1; }
}
@media (min-width: 701px) and (max-width: 1000px) {
  .top .wrap { gap: 12px; }
  .buy-at { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .btn.buy[aria-disabled="true"]::after { content: ""; width: 8px; height: 8px; border: 2px solid var(--grey); border-radius: 50%; margin-left: 8px; }
  .buy { padding: 0 14px; }
}
@media (max-width: 359px) { .buy-at { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
