/* wayseer.dev. The developer site: the company site's paper and tokens, with the mono face doing more of the work. See DESIGN.md. */

@font-face { font-family: "Instrument Sans"; src: url("../assets/fonts/InstrumentSans.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../assets/fonts/InstrumentSans-Italic.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../assets/fonts/JetBrainsMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* ---------- tokens: the app's light theme ---------- */
:root {
  --bg: #f7f8fa; --paper: #ffffff; --raised: #eef1f5; --border: #cfd6e0; --rule: #dde3ea;
  --text: #1a1f29; --muted: #5b6577; --accent: #0a6cb4; --focus: #1f7fcc; --on-accent: #ffffff;
  --ok: #0e7656; --warn: #8a5800; --unknown: #646d7c;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1120px; --gutter: 24px; --fast: 120ms; --r: 10px;
  color-scheme: light;
}
/* the app's dark theme, when the desktop prefers it or the footer switch says so */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #0b0e14; --paper: #11151d; --raised: #181d28; --border: #262d3b; --rule: #1d2330; --text: #d9dee7; --muted: #7d889b; --accent: #5cc8ff; --focus: #9edcff; --on-accent: #0b0e14; --ok: #35c486; --warn: #f5bf3a; --unknown: #7b8496; color-scheme: dark; } }
:root[data-theme="dark"] { --bg: #0b0e14; --paper: #11151d; --raised: #181d28; --border: #262d3b; --rule: #1d2330; --text: #d9dee7; --muted: #7d889b; --accent: #5cc8ff; --focus: #9edcff; --on-accent: #0b0e14; --ok: #35c486; --warn: #f5bf3a; --unknown: #7b8496; color-scheme: dark; }

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 18px; line-height: 1.6; font-feature-settings: "ss01"; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); transition: color var(--fast), text-decoration-color var(--fast); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(36px, 4.2vw, 52px); line-height: 1.04; letter-spacing: -0.025em; max-width: 26ch; }
h2 { font-size: clamp(27px, 2.8vw, 34px); max-width: 30ch; }
h3 { font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
p, ul, ol, dl { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: .35em; }
code { font-family: var(--mono); font-size: .85em; background: var(--raised); border-radius: 4px; padding: 1px 6px; white-space: nowrap; }
h1 code.path { font-size: clamp(24px, 3.4vw, 42px); background: none; padding: 0; white-space: normal; overflow-wrap: anywhere; letter-spacing: -0.02em; }
strong, b { font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 10px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 6px; font-size: 15px; text-decoration: none; }
.skip:focus { left: 10px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: 64ch; }
.prose p:last-child { margin-bottom: 0; }
.lede { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.45; color: var(--text); max-width: 56ch; }
.small { font-size: 16px; line-height: 1.55; }
.muted { color: var(--muted); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--accent); }
.status { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--unknown); }
.status.pre::before { border-color: var(--warn); box-shadow: inset 0 0 0 1.5px var(--bg), inset 0 0 0 4px var(--warn); }
.status.live::before { background: var(--ok); border-color: var(--ok); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; min-height: 64px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
.brand .tld { font-family: var(--mono); font-weight: 400; font-size: 15px; color: var(--accent); margin-left: -8px; }
.top-links { display: flex; flex-wrap: wrap; gap: 4px 22px; font-family: var(--mono); font-size: 14px; letter-spacing: .01em; }
.top-links a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.top-links a:hover { color: var(--text); }
.top-links a[aria-current] { color: var(--text); box-shadow: inset 0 -2px var(--accent); }
.top-links .ext::after { content: " ↗"; font-size: .8em; color: var(--muted); }

/* ---------- sections ---------- */
main { padding-bottom: 32px; }
.section { padding: clamp(64px, 9vw, 112px) 0 0; }
.section + .section > .wrap { border-top: 1px solid var(--rule); padding-top: clamp(56px, 7vw, 96px); }
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head .side { color: var(--muted); font-size: 17px; max-width: 44ch; margin: 0; }
.hero { padding: clamp(56px, 8vw, 104px) 0 0; }
.hero .lede { margin: 26px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: 34px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 8px; border: 1px solid var(--border); background: var(--paper); color: var(--text); font-size: 16px; font-weight: 500; text-decoration: none; transition: border-color var(--fast), background var(--fast), color var(--fast); }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--focus); border-color: var(--focus); }
.toc { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-family: var(--mono); font-size: 14px; }
.toc li { margin: 0; }

/* ---------- code: the developer site's motif ---------- */
pre:focus-visible { outline-offset: -2px; }
pre { margin: 0; font-family: var(--mono); font-size: 14.5px; line-height: 1.6; overflow-x: auto; -webkit-overflow-scrolling: touch; }
pre code { background: none; padding: 0; white-space: pre; font-size: inherit; }
.code { background: var(--paper); border: 1px solid var(--border); border-radius: var(--r); margin: 0; }
.code figcaption, .code .bar { display: flex; justify-content: space-between; gap: 12px; padding: 9px 18px; border-bottom: 1px solid var(--rule); font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--muted); }
.code pre { padding: 18px 20px; }
.code .c { color: var(--muted); }
.code .k { color: var(--accent); }
.code .s { color: var(--ok); }
.hero .code { margin: clamp(40px, 6vw, 64px) 0 0; }
@media (prefers-reduced-motion: no-preference) {
  .code.reveal .line { opacity: 0; animation: appear 260ms ease-out forwards; }
  .code.reveal .line:nth-child(2) { animation-delay: 120ms; } .code.reveal .line:nth-child(3) { animation-delay: 240ms; }
  .code.reveal .line:nth-child(4) { animation-delay: 360ms; } .code.reveal .line:nth-child(5) { animation-delay: 480ms; }
  .code.reveal .line:nth-child(6) { animation-delay: 600ms; } .code.reveal .line:nth-child(7) { animation-delay: 720ms; }
  .code.reveal .line:nth-child(n+8) { animation-delay: 840ms; }
  @keyframes appear { to { opacity: 1; } }
}

/* ---------- cards, lists, tables ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.cards.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--r); padding: 26px 28px 24px; display: flex; flex-direction: column; gap: 12px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--text); }
.card .meta { font-family: var(--mono); font-size: 12.5px; color: var(--muted); letter-spacing: .02em; margin: 0; }
.card .more { margin-top: auto; padding-top: 10px; font-weight: 500; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 40px; list-style: none; padding: 0; margin: 0; }
.principles li { margin: 0; }
.principles h3 { font-size: 19px; margin-bottom: 8px; }
.principles p { margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.55; }
.two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 64px; align-items: start; }
.two > * { min-width: 0; }
.two.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.qa { margin: 0; }
.qa dt { font-weight: 600; margin-top: 22px; }
.qa dt:first-child { margin-top: 0; }
.qa dd { margin: 6px 0 0; color: var(--muted); }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 28px; margin: 28px 0 0; font-size: 16px; }
.kv dt { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.domains { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.domains li { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--rule); margin: 0; }
.domains code { font-size: 15px; background: none; padding: 0; white-space: normal; overflow-wrap: anywhere; }
.domains .status { margin-left: 8px; vertical-align: 1px; }
table { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule); }
th { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
td code { white-space: normal; }
.table-wrap { overflow-x: auto; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.steps li { margin: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 5px; }
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 16.5px; }
.notice { border-left: 3px solid var(--warn); padding: 10px 0 10px 18px; color: var(--muted); margin: 28px 0; max-width: 64ch; }
.notice p:last-child { margin-bottom: 0; }
.cta { background: var(--paper); border: 1px solid var(--border); border-radius: var(--r); padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; }
.cta h2 { font-size: clamp(26px, 2.6vw, 32px); }
.cta p { margin: 10px 0 0; color: var(--muted); max-width: 52ch; }

/* ---------- footer ---------- */
.foot { margin-top: clamp(72px, 9vw, 120px); border-top: 1px solid var(--rule); padding: 40px 0 44px; color: var(--muted); font-size: 15px; }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.foot .brand { font-size: 17px; }
.foot .foot-h { margin: 0 0 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 0 0 8px; }
.foot a { color: var(--text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--muted) 55%, transparent); }
.foot a:hover { text-decoration-color: currentColor; }
.foot .about { margin: 16px 0 0; max-width: 40ch; }
.colophon { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 14px; }
.theme-btn { border: 1px solid var(--border); background: var(--paper); color: var(--muted); font: inherit; font-family: var(--mono); font-size: 13px; padding: 3px 12px; border-radius: 999px; cursor: pointer; }
.theme-btn:hover { color: var(--text); border-color: var(--muted); }

/* ---------- breakpoints ---------- */
@media (max-width: 900px) {
  .cards, .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two, .two.even { grid-template-columns: minmax(0, 1fr); }
  .foot .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot .wrap > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .section-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .cards, .cards.two-up, .principles { grid-template-columns: minmax(0, 1fr); }
  .cta { grid-template-columns: minmax(0, 1fr); }
  .domains li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .kv dd { margin-bottom: 12px; }
  .steps li { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
}
@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .top-links { gap: 2px 16px; font-size: 13px; }
  .colophon { flex-direction: column; }
  pre { font-size: 13.5px; }
  .code pre { padding: 14px 16px; }
}

/* spacing classes, since the CSP allows no style attributes */
.after { margin-top: 22px; }
.after-lg { margin-top: 56px; }
