/* Frieze: inner pages (token, chat, docs). The same dark room and wide carved capitals as the stone home page. */
@font-face { font-family: "Archivo"; src: url("../home/shared/Archivo-Var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --paper: #0a0a0a; --ink: #f1efea; --night: #000; --mute: rgba(241, 239, 234, .6); --line: rgba(241, 239, 234, .16); --edge: rgba(241, 239, 234, .34);
  --pad: clamp(16px, 5vw, 72px);
  --display: "Archivo", "Arial Black", sans-serif;
  --ui: "Archivo", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); font-synthesis: none; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--ui); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.grain { position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .7;
  background: url("../home/img/grain-a.png") 0 0 / 479px 479px repeat, url("../home/img/grain-b.png") 211px 97px / 631px 631px repeat; }

/* header */
.top { position: sticky; top: 0; z-index: 20; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--pad); background: var(--paper); border-bottom: 1px solid var(--edge); }
.lockup { display: inline-flex; align-items: center; gap: 10px; font: 500 19px/1 var(--display); letter-spacing: -0.02em; text-decoration: none; }
.lockup img { width: 24px; height: 24px; display: block; }
.lockup .mk-l, .theme { display: none !important; }
.top nav { display: flex; align-items: center; gap: 2px; font: 500 14px/1 var(--ui); }
.top nav a { padding: 9px 11px; text-decoration: none; }
.top nav a:hover, .top nav a.on { text-decoration: underline; text-underline-offset: 4px; }
.top nav a.solid { margin-left: 8px; background: var(--ink); color: var(--paper); padding: 9px 16px; }
.top nav a.solid:hover { text-decoration: none; opacity: .88; }
.top .ic { display: inline-flex; padding: 8px; opacity: .78; }
.top .ic:hover { opacity: 1; }
.theme { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 8px; display: inline-flex; opacity: .78; }
.theme .sun, html[data-theme="dark"] .theme .moon { display: none; }
html[data-theme="dark"] .theme .sun { display: block; }
.menu-btn { display: none; height: 34px; padding: 0 12px; border: 1px solid var(--edge); background: transparent; color: var(--ink); font: 500 14px/1 var(--ui); cursor: pointer; }

/* common blocks */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--pad); }
.eyebrow { margin: 0 0 16px; font: 500 12px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; }
h1.big { margin: 0; font: 500 clamp(40px, 5vw, 76px)/1 var(--display); letter-spacing: -0.045em; }
.lede { margin: 20px 0 0; max-width: 40em; font-size: 18px; color: var(--mute); }
.btn { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; background: var(--ink); color: var(--paper); border: 0; font: 500 15px/1 var(--ui); text-decoration: none; cursor: pointer; }
.btn::after { content: ""; width: 7px; height: 7px; margin-left: 12px; border-top: 1.5px solid; border-right: 1.5px solid; transform: rotate(45deg); }
.btn.plain::after { display: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--edge); }
.btn:disabled { opacity: .4; cursor: default; }
.ul { padding: 6px 0; border-bottom: 1px solid var(--edge); text-decoration: none; font: 500 15px/1 var(--ui); }
code, pre { font-family: var(--mono); }
:not(pre) > code { font-size: .88em; padding: 1px 5px; border: 1px solid var(--line); }
pre { margin: 18px 0; padding: 18px 20px; overflow-x: auto; background: var(--ink); color: var(--paper); font-size: 13.5px; line-height: 1.6; }
.copy-pre { position: relative; }
.copy-pre button { position: absolute; top: 10px; right: 10px; border: 1px solid currentColor; background: transparent; color: var(--paper); font: 500 11px/1 var(--ui); padding: 5px 8px; cursor: pointer; opacity: .7; }
.copy-pre button:hover { opacity: 1; }
table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 500 12px/1.2 var(--ui); letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--edge); }

/* footer */
.foot { margin-top: 120px; background: var(--night); color: #faf8f6; }
.foot-in { padding: 48px var(--pad) 36px; display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; font-size: 14px; }
.foot-in a { text-decoration: none; }
.foot-in a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-in .lockup { margin-right: auto; }
.foot-in .lockup img { filter: none; }
.foot-ca { width: 100%; display: flex; align-items: center; gap: 10px; font-size: 13px; }
.foot-ca[hidden] { display: none; }
.foot-ca code { border: 0; padding: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.foot-ca button { border: 1.5px solid currentColor; background: transparent; color: inherit; font: 500 12px/1 var(--ui); padding: 6px 10px; cursor: pointer; }

@media (max-width: 860px) {
  .top { height: 64px; }
  .menu-btn { display: inline-flex; align-items: center; }
  .top nav { position: absolute; left: 0; right: 0; top: 64px; display: none; flex-direction: column; align-items: stretch;
    padding: 4px var(--pad) 18px; background: var(--paper); border-bottom: 1px solid var(--edge); }
  .top.open nav { display: flex; }
  .top nav a { padding: 13px 0; font: 500 19px/1 var(--display); border-top: 1px solid var(--line); }
  .top nav a.solid { margin: 12px 0 0; text-align: center; }
  .top nav .row { display: flex; gap: 4px; padding-top: 10px; }
  pre { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- stone room: serif headings, outlined actions, black code wells ---------- */
.grain { display: none; }
.top { background: rgba(10, 9, 8, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.lockup { font: 800 17px/1 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: .02em; }
.lockup img { margin-top: -2px; }
.top nav { font: 400 13px/1 var(--ui); }
.top nav a { color: var(--mute); }
.top nav a:hover, .top nav a.on { color: var(--ink); text-decoration: none; }
.top nav a.solid, .btn { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.top nav a.solid:hover, .btn:hover { background: var(--ink); color: #000; opacity: 1; }
.btn.ghost { border-color: var(--line); }
h1.big, .doc h1, .doc h2 { font-weight: 800; font-stretch: 125%; text-transform: uppercase; letter-spacing: -0.012em; line-height: .94; }
h1.big { font-size: clamp(36px, 5vw, 84px); }
.doc h1 { font-size: clamp(32px, 3.6vw, 56px); }
.doc h2 { font-size: 22px; line-height: 1.1; border-bottom: 1px solid var(--line); }
.doc h3 { font-family: var(--ui); font-weight: 600; font-size: 16px; }
.eyebrow { font-weight: 500; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--mute); }
th { border-bottom: 1px solid var(--ink); color: var(--mute); font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 13px; }
.ul { border-bottom: 1px solid var(--line); font-weight: 400; }
.ul:hover { border-bottom-color: var(--ink); }
pre { background: #000; color: var(--ink); border: 1px solid var(--line); }
.copy-pre button { color: var(--ink); }
.foot { background: #000; color: var(--ink); border-top: 1px solid var(--line); }
.menu-btn { border: 1px solid var(--line); font-weight: 400; }
@media (max-width: 860px) {
  .top nav { background: rgba(0, 0, 0, .96); border-bottom: 1px solid var(--line); }
  .top nav a { font: 800 18px/1 var(--display); font-stretch: 125%; text-transform: uppercase; color: var(--ink); }
}
