/* getwake: the website of Wake. Greyscale, hairlines, Geist. */

/* Geist and Geist Mono (SIL Open Font License, see fonts/LICENSE-*.txt), self-hosted:
   the site makes no requests to other servers. */
@font-face { font-family: "Geist"; src: url(fonts/geist-latin.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(fonts/geist-mono-latin.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --bg: #ffffff; --bg-subtle: #fafafa; --bg-sunken: #f4f4f4; --ink: #0a0a0a;
  --text: #000000; --body: #1f1f1f; --muted: #4a4a4a; --faint: #6e6e6e;
  --line: #e3e3e3; --line-strong: #d6d6d6; --line-ui: #8c8c8c;
  --sans: "Geist", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--body); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--text); text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--line-ui); }
a:hover { text-decoration-color: var(--text); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.mono { font-family: var(--mono); font-variant-ligatures: none; font-variant-numeric: tabular-nums slashed-zero; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.narrow { max-width: 760px; }
.center { text-align: center; justify-content: center; }
.grow { flex: 1; }
.muted { color: var(--faint); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--text); color: #fff; padding: 8px 12px; z-index: 20; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.9); backdrop-filter: blur(8px); }
.nav-inner { height: 60px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-size: 20px; font-weight: 600; letter-spacing: -.03em; }
.nav-links { display: flex; gap: 28px; flex: 1; }
.nav-links a, .nav-link-quiet { font-size: 14px; color: var(--muted); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current], .nav-link-quiet:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 20px; margin-left: auto; }

/* buttons, badges */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 2px; font-size: 15px; font-weight: 500; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-p { background: var(--text); color: #fff; }
.btn-p:hover { background: #333; color: #fff; }
.btn-s { border-color: var(--line-ui); color: var(--text); background: transparent; }
.btn-s:hover { border-color: var(--text); background: var(--bg-sunken); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.kv { display: inline-flex; height: 24px; border: 1px solid var(--line-strong); border-radius: 2px; font: 12px var(--mono); background: #fff; overflow: hidden; }
.kv span { padding: 0 8px; display: flex; align-items: center; }
.kv span:first-child { color: var(--faint); border-right: 1px solid var(--line-strong); }
.kv span:last-child { color: var(--text); font-weight: 500; }

/* type */
.eyebrow { margin: 0 0 18px; font: 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.h2 { margin: 0; font-size: 46px; line-height: 1.06; letter-spacing: -.035em; font-weight: 600; color: var(--text); }
.h3 { margin: 0; font-size: 30px; line-height: 1.15; letter-spacing: -.025em; font-weight: 600; color: var(--text); }
.section { padding: 96px 0 104px; border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto 56px; }
.section-lead { margin: 18px auto 0; max-width: 46ch; font-size: 18px; color: var(--muted); }

/* hero */
.dotgrid { background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 24px 24px; }
.hero { padding: 112px 0 80px; }
.hero-title { margin: 0 auto; max-width: 13ch; font-size: clamp(46px, 7vw, 88px); line-height: .98; letter-spacing: -.045em; font-weight: 600; color: var(--text); }
.hero-title .mono { font-weight: 500; letter-spacing: -.06em; }
.hero-lead { margin: 28px auto 0; max-width: 42ch; font-size: 20px; color: var(--muted); }
.caret { display: inline-block; width: .5em; height: .9em; margin-left: 4px; background: currentColor; vertical-align: -.06em; animation: blink 1.06s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.wk-trail { stroke-dasharray: 1; stroke-dashoffset: 1; animation: wkdraw .9s cubic-bezier(.2,.7,.2,1) .15s forwards; }
@keyframes wkdraw { to { stroke-dashoffset: 0; } }

/* audience stage */
.stage { position: relative; height: 640px; }
.stage-lines { position: absolute; inset: 0; width: 100%; height: 640px; fill: none; }
.stage-lines path { stroke: #bdbdbd; stroke-width: 1; stroke-dasharray: 4 4; transition: stroke .2s; }
.stage-lines path.on { stroke: var(--text); stroke-width: 2; stroke-dasharray: none; }
.stage-lines path.axis { stroke: #ebebeb; stroke-dasharray: 2 6; }
.stage-file { position: absolute; left: 50%; top: 0; width: 320px; margin-left: -160px; }
.hull { display: block; margin: 0 auto -1px; fill: var(--text); }
.term { background: var(--ink); border: 1px solid #262626; border-radius: 6px; overflow: hidden; }
.term-bar { height: 30px; display: flex; align-items: center; padding: 0 12px; border-bottom: 1px solid #262626; font: 11.5px var(--mono); color: #8a8a8a; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.term-body { margin: 0; padding: 12px 14px; font: 12px/1.7 var(--mono); color: #b5b5b5; white-space: pre; }
.term-body .k { color: #fff; font-weight: 600; } .term-body .c { color: #6e6e6e; }
.stage-roles { position: absolute; left: 0; right: 0; top: 400px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.role { display: flex; flex-direction: column; gap: 12px; text-align: left; padding: 18px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; color: var(--body); font: inherit; cursor: pointer; transition: background .12s, color .12s, border-color .12s; }
.role:hover { border-color: var(--text); }
.role-verb { font-size: 11px; letter-spacing: .1em; opacity: .7; }
.role-name { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.role-mini { font-size: 11.5px; line-height: 1.65; border-radius: 3px; padding: 10px 12px; white-space: pre; overflow: hidden; background: var(--bg-sunken); color: #333; }
.role-sees { font-size: 13px; line-height: 1.5; opacity: .8; }
.role[aria-pressed="true"] { background: var(--text); color: #fff; border-color: var(--text); }
.role[aria-pressed="true"] .role-mini { background: #1f1f1f; color: #e3e3e3; }
.role-detail { margin-top: 40px; border: 1px solid var(--line-strong); border-radius: 6px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.role-detail[hidden] { display: none; }
.role-detail-intro { padding: 36px; border-right: 1px solid var(--line); background: var(--bg-subtle); }
.role-detail-intro p:not(.eyebrow) { margin: 14px 0 0; font-size: 15px; color: var(--muted); }
.more { display: inline-block; margin-top: 22px; font-size: 14px; }
.role-features { list-style: none; margin: 0; padding: 12px 36px; }
.role-features li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid #ebebeb; }
.role-features li:last-child { border-bottom: 0; }
.role-features .num { font-size: 12px; color: var(--line-ui); padding-top: 3px; }
.role-features strong { font-size: 16px; color: var(--text); }
.role-features p { margin: 3px 0 0; font-size: 14px; color: var(--muted); }

/* facts */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts-grid div { padding: 28px 20px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.facts-grid div:last-child { border-right: 1px solid var(--line); }
.facts-grid strong { font-size: 26px; font-weight: 500; color: var(--text); }
.facts-grid span { font-size: 12px; color: var(--faint); }

/* call to action, footer */
.ink { background: var(--ink); color: #e3e3e3; }
.dotgrid-ink { background-image: radial-gradient(#262626 1px, transparent 1px); background-size: 24px 24px; }
.cta { padding: 112px 0; }
.cta-title { margin: 0; font-size: clamp(40px, 5vw, 60px); letter-spacing: -.04em; font-weight: 600; color: #fff; }
.ink .section-lead { color: #a3a3a3; }
.ink .btn-p { background: #fff; color: #000; } .ink .btn-p:hover { background: #e3e3e3; }
.ink .btn-s { border-color: #6e6e6e; color: #fff; } .ink .btn-s:hover { border-color: #fff; background: #141414; }
.footer { background: var(--ink); border-top: 1px solid #262626; padding: 36px 0; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer a { color: #a3a3a3; text-decoration: none; font-size: 14px; } .footer a:hover { color: #fff; }
.brand-ink { color: #fff; font-size: 17px; }
.footer-claim { font-size: 12px; color: #8a8a8a; }

/* docs */
.docs-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 64px; padding-top: 48px; padding-bottom: 96px; }
.docs-nav { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; font-size: 14px; padding-right: 8px; }
.docs-search input { width: 100%; height: 36px; border: 1px solid var(--line-strong); border-radius: 2px; padding: 0 10px; font: 13px var(--mono); background: var(--bg-subtle); }
.docs-search input:focus { border-color: var(--text); outline: none; background: #fff; }
.docs-search-lg { display: flex; gap: 8px; margin: 24px 0 16px; } .docs-search-lg input { height: 48px; font-size: 15px; }
.docs-nav-root { display: block; margin: 20px 0 8px; font-weight: 500; text-decoration: none; color: var(--muted); }
.docs-nav-section { margin-top: 20px; }
.docs-nav-title { display: block; font: 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); text-decoration: none; margin-bottom: 6px; }
.docs-nav ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.docs-nav li a { display: block; padding: 4px 0 4px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.45; }
.docs-nav li a:hover { color: var(--text); }
.docs-nav a.is-active { color: var(--text); font-weight: 500; border-left-color: var(--text); }
.crumbs { display: flex; gap: 8px; font-size: 12px; color: var(--faint); margin-bottom: 14px; }
.crumbs a { color: var(--faint); text-decoration: none; } .crumbs a:hover { color: var(--text); }
.docs-title { margin: 0; font-size: 44px; line-height: 1.08; letter-spacing: -.03em; font-weight: 600; color: var(--text); }
.docs-lead { margin: 14px 0 0; font-size: 19px; color: var(--muted); max-width: 60ch; }
.docs-main { min-width: 0; max-width: 780px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 64px; }
.pager a { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line-strong); border-radius: 4px; padding: 16px 18px; text-decoration: none; font-weight: 500; }
.pager a:hover { border-color: var(--text); }
.pager .mono { font-size: 11px; color: var(--faint); font-weight: 400; }
.pager-next { text-align: right; grid-column: 2; }
.docs-source { margin-top: 24px; font-size: 11px; color: var(--faint); }
.results { display: flex; flex-direction: column; margin-top: 16px; border-top: 1px solid var(--line); }
.result { display: flex; flex-direction: column; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.result strong { color: var(--text); font-size: 17px; } .result span { color: var(--muted); font-size: 14px; }
.result .result-path { font-size: 12px; color: var(--faint); }

/* prose */
.prose { margin-top: 32px; font-size: 16.5px; line-height: 1.7; color: var(--body); }
.prose h2 { margin: 2.4em 0 .6em; padding-top: .6em; border-top: 1px solid var(--line); font-size: 26px; letter-spacing: -.02em; line-height: 1.2; color: var(--text); }
.prose h3 { margin: 1.8em 0 .5em; font-size: 19px; color: var(--text); }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose li { margin: .3em 0; }
.prose code { font: .86em var(--mono); background: var(--bg-sunken); border: 1px solid var(--line); border-radius: 3px; padding: .1em .35em; }
.prose pre { margin: 0 0 1.4em; padding: 16px 18px; background: var(--ink); color: #e3e3e3; border-radius: 6px; overflow-x: auto; font: 13px/1.7 var(--mono); }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 14.5px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); border-bottom-color: var(--line-strong); }
.prose blockquote { margin: 0 0 1.4em; padding: 4px 0 4px 18px; border-left: 2px solid var(--text); color: var(--muted); }
.prose img { max-width: 100%; height: auto; border: 1px solid var(--line-strong); border-radius: 6px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

@media (max-width: 900px) {
  .wrap { padding: 0 16px; }
  .hide-m, .nav-links { display: none; }
  .stage { height: auto; display: flex; flex-direction: column; gap: 16px; }
  .stage-lines { display: none; }
  .stage-file, .stage-roles { position: static; width: auto; margin: 0; }
  .stage-roles, .facts-grid { grid-template-columns: minmax(0, 1fr); }
  .role-detail { grid-template-columns: minmax(0, 1fr); }
  .role-detail-intro { border-right: 0; border-bottom: 1px solid var(--line); }
  .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .docs-nav { position: static; max-height: none; }
  .h2 { font-size: 32px; }
  .docs-title { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) { .caret, .wk-trail { animation: none; stroke-dashoffset: 0; } html { scroll-behavior: auto; } }
