/* wayseer.net. The company site: light paper, one sans, the app's color tokens. 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(38px, 4.6vw, 56px); line-height: 1.02; letter-spacing: -0.025em; max-width: 24ch; }
h2 { font-size: clamp(29px, 3vw, 36px); max-width: 30ch; }
h3 { font-size: 22px; 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; }
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; }
.top-links { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 16px; }
.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, 120px) 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, 112px) 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); }

/* the bearing: a route through three waypoints, drawn once on load */
.bearing { margin: clamp(40px, 6vw, 72px) 0 0; color: var(--accent); }
.bearing svg { width: 100%; height: auto; overflow: visible; }
.bearing .route { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.bearing .point { fill: var(--bg); stroke: currentColor; stroke-width: 1.5; }
.bearing .point.here { fill: currentColor; }
.bearing text { font-family: var(--mono); font-size: 12px; fill: var(--muted); letter-spacing: .04em; }
@media (prefers-reduced-motion: no-preference) {
  .bearing.draw .route { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: route 1.2s cubic-bezier(.2, .7, .2, 1) .2s forwards; }
  .bearing.draw .point, .bearing.draw text { opacity: 0; animation: appear 300ms ease-out forwards; }
  .bearing.draw .p2, .bearing.draw .t2 { animation-delay: .7s; } .bearing.draw .p3, .bearing.draw .t3 { animation-delay: 1.3s; }
  @keyframes route { to { stroke-dashoffset: 0; } }
  @keyframes appear { to { opacity: 1; } }
}

/* ---------- cards and lists ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.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; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; margin: 0; padding: 0; }
.facts div { border-top: 1px solid var(--border); padding-top: 14px; }
.facts dt { font-size: clamp(28px, 2.6vw, 34px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.facts dd { margin: 6px 0 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 64px; align-items: start; }
.two > * { min-width: 0; }
.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); }
.domains { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.domains li { display: grid; grid-template-columns: 150px 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; }
.domains .status { margin-left: 8px; vertical-align: 1px; }
.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; }
.addr { font-family: var(--mono); font-size: 15px; }

/* ---------- document pages (privacy, terms) ---------- */
.doc { max-width: 68ch; }
.doc h2 { font-size: 26px; margin: 48px 0 14px; }
.doc h3 { font-size: 20px; margin: 30px 0 10px; }
.doc .dated { font-family: var(--mono); font-size: 13px; color: var(--muted); margin: 18px 0 0; }
.toc { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 16px; }
.toc li { margin: 0; }
.notice { border-left: 3px solid var(--warn); padding: 10px 0 10px 18px; color: var(--muted); margin: 28px 0; }

/* ---------- 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-size: 14px; padding: 3px 12px; border-radius: 999px; cursor: pointer; }
.theme-btn:hover { color: var(--text); border-color: var(--muted); }

/* ---------- breakpoints ---------- */
@media (max-width: 900px) {
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two { 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, .principles { grid-template-columns: minmax(0, 1fr); }
  .cta { grid-template-columns: minmax(0, 1fr); }
  .domains li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .bearing text { font-size: 15px; }
}
@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .top-links { gap: 2px 16px; font-size: 15px; }
  .colophon { flex-direction: column; }
}

/* spacing classes, since the CSP allows no style attributes */
.after { margin-top: 22px; }
.after-lg { margin-top: 56px; }
.two.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.bearing figcaption { display: none; font-family: var(--mono); font-size: 12.5px; color: var(--muted); letter-spacing: .04em; margin-top: 10px; }
@media (max-width: 720px) {
  .bearing text { display: none; }
  .bearing figcaption { display: block; }
}
