@import url("/brand/tokens.css");
@font-face {
  font-family: Geist;
  src: url("/brand/GeistSans.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
* { box-sizing: border-box; }
body { margin: 0; font: 400 1rem/1.55 var(--font-sans); color: var(--ink); background: var(--canvas); }
header, main { max-width: 72rem; margin: auto; padding: 1.25rem clamp(1rem, 4vw, 3.5rem); }
header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--boundary); }
a { color: var(--ink); text-underline-offset: 0.22em; }
nav, .brand { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-4); }
nav a, .brand { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.brand { gap: .8rem; font-weight: var(--font-medium); }
.brand img { width: 7rem; height: auto; display: block; }
.brand span { border-left: 1px solid var(--boundary); padding-left: .8rem; }
.hero { border-radius: var(--radius-dialog); padding: clamp(1.5rem, 6vw, 5rem); margin-block: 1.75rem 2rem; isolation: isolate; position: relative; overflow: hidden; background-image: linear-gradient(118deg, var(--cream), var(--soft-pink) 66%, var(--peach)); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url("/brand/grain.png") repeat; opacity: .08; }
.hero h1 { max-width: 13ch; font-size: clamp(2.5rem, 6.8vw, 5.5rem); margin-top: 0; }
.hero p { max-width: 53ch; font-size: 1.125rem; }
h1, h2, h3 { line-height: 1.13; letter-spacing: -.04em; }
h1 { font-size: clamp(2.15rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h2, h3 { margin: 0 0 .85rem; }
section { border: 1px solid var(--boundary); border-radius: var(--radius-card); padding: clamp(1rem, 3vw, 2rem); margin-bottom: 1rem; }
.tabs { padding-block: .6rem 1.1rem; }
.tabs a[aria-current=page] { font-weight: var(--font-semibold); text-decoration: underline; }
label { display: grid; gap: .35rem; margin-bottom: 1rem; font-weight: var(--font-medium); }
input, select, textarea, button { min-width: 0; max-width: 100%; padding: .55rem .8rem; font: inherit; border: 1px solid var(--control-border); border-radius: var(--radius); background: var(--canvas); color: inherit; }
textarea { resize: vertical; }
button, .primary { display: inline-block; font-weight: var(--font-medium); color: var(--canvas); background: var(--ink); border: 1px solid var(--ink); border-radius: var(--radius-pill); padding: .55rem 1.1rem; cursor: pointer; text-decoration: none; }
button:disabled { opacity: .6; cursor: default; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
pre, .code, code { font-family: var(--font-mono); font-size: .9rem; overflow-wrap: anywhere; white-space: pre-wrap; }
pre:not(:empty) { padding: 1rem; border-radius: var(--radius); background: var(--surface); }
blockquote { margin-inline: 0; font-size: 1.25rem; }
table { width: 100%; border-collapse: collapse; }
td, th { border-bottom: 1px solid var(--boundary); text-align: left; padding: .45rem; overflow-wrap: anywhere; }
details { margin-block: 1rem; }
summary { cursor: pointer; }
small, aside { color: var(--muted-ink); }
#error { color: var(--danger); }
.guide { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(0, 3fr); gap: 2rem; }
.guide nav { align-items: flex-start; flex-direction: column; gap: .55rem; font-size: .9rem; margin-block: 2rem; }
.guide article { max-width: var(--measure-reading); overflow-wrap: anywhere; }
.guide article h2 { margin-top: 2.25rem; }
[hidden] { display: none !important; }
@media (max-width: 650px) {
  header { flex-wrap: wrap; }
  .row, .guide { grid-template-columns: 1fr; gap: 0; }
  .guide nav { flex-direction: row; margin: .5rem 0; }
  .brand img { width: 6rem; }
}
