/* framebuff.online — direction D "Buff Terminal".
   Layout: one centred column (max 1180px) of full-width bands; the terminal window is the recurring object. */

/* Self-hosted fonts (SIL Open Font License 1.1; see fonts/README.txt). No request leaves this site. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("fonts/space-grotesk-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("fonts/space-grotesk-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("fonts/jetbrains-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("fonts/jetbrains-mono-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #FAF7F9;          /* mist */
  --surface: #FFFFFF;
  --fg: #241020;
  --muted: #5F4A58;
  --line: #E8DEE4;
  --brand: #772953;       /* aubergine */
  --orchid: #B05A94;
  --link: #772953;
  --accent-text: #772953; /* the "Buff" in the wordmark */
  --cta-bg: #772953;
  --cta-fg: #FFFFFF;
  --pill-bg: #F3E4EE;
  --pill-fg: #5E1F42;
  --screen: #300A24;      /* terminal surfaces, same in both themes */
  --screen-bar: #8F3A6A;
  --screen-line: #4A1A3A;
  --screen-fg: #F1E6EC;
  --screen-muted: #CDB6C5;
  --term: #39FF8A;        /* terminal green, dark surfaces only */
  --spark: #E95420;
  --amber: #F5B800;
  --focus: #B05A94;

  --f-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: 2rem;
  --step-4: clamp(2.25rem, 5vw, 3.5rem);
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1A0915; --surface: #240D1E; --fg: #F1E6EC; --muted: #C4AFBD; --line: #4A1A3A;
    --brand: #B05A94; --link: #E7A6CF; --accent-text: #39FF8A;
    --cta-bg: #39FF8A; --cta-fg: #1A0915; --pill-bg: #3A1430; --pill-fg: #F3C9E2; --focus: #39FF8A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1A0915; --surface: #240D1E; --fg: #F1E6EC; --muted: #C4AFBD; --line: #4A1A3A;
  --brand: #B05A94; --link: #E7A6CF; --accent-text: #39FF8A;
  --cta-bg: #39FF8A; --cta-fg: #1A0915; --pill-bg: #3A1430; --pill-fg: #F3C9E2; --focus: #39FF8A;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.band { padding-block: clamp(56px, 9vw, 104px); }
.band + .band { border-top: 1px solid var(--line); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: var(--step-4); }
.section-head p { font-size: var(--step-1); color: var(--muted); }

/* header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.brand svg { width: 52px; height: 30px; }
.wordmark { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; }
.wordmark span { color: var(--accent-text); }
.nav { display: flex; align-items: center; gap: 4px 22px; flex-wrap: wrap; font-size: 0.9375rem; }
.nav a { color: var(--muted); text-decoration: none; padding-block: 10px; }
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); font-weight: 600; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 12px;
  font: 600 1rem/1.2 var(--f-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--cta-bg); color: var(--cta-fg); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--orchid); }
.nav .btn { color: var(--cta-fg); padding: 10px 16px; min-height: 44px; }

/* hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.pill {
  align-self: flex-start; font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.06em;
  padding: 6px 12px; border-radius: 999px; background: var(--pill-bg); color: var(--pill-fg);
}
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.25rem); letter-spacing: -0.035em; line-height: 1.0; }
.hero .lede { font-size: var(--step-1); color: var(--muted); max-width: 34rem; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { font-family: var(--f-mono); font-size: 0.8125rem; color: var(--muted); }
.hero-logo { display: flex; justify-content: center; min-width: 0; }
.hero-logo button { all: unset; cursor: pointer; display: block; width: 100%; max-width: 560px; border-radius: 20px; }
.hero-logo button:focus-visible { outline: 3px solid var(--focus); outline-offset: 6px; }
.hero-logo svg { display: block; width: 100%; height: auto; }

/* the logo animation (classes from brand/framebuff-logo-animated.svg) */
.fb * { animation-duration: 8s; animation-timing-function: ease-in-out; animation-fill-mode: both; animation-iteration-count: 1; }
.fb .l1 { animation-name: fadeOut1; }
.fb .seg { animation-name: fadeInDim; }
.fb .dot { transform-origin: 384px 168px; transform-box: view-box; animation-name: dotRise, dotBlink; animation-timing-function: ease-in-out, steps(1); }
.fb .armL .tube { stroke-dasharray: 100 300; animation-name: growL; }
.fb .armR .tube { stroke-dasharray: 100 300; animation-name: growR; }
.fb .armL .fist { transform-box: fill-box; transform-origin: center; animation-name: fistL; }
.fb .armR .fist { transform-box: fill-box; transform-origin: center; animation-name: fistR; }
.fb .armL { transform-origin: 248px 150px; transform-box: view-box; animation-name: flexL; }
.fb .armR { transform-origin: 432px 150px; transform-box: view-box; animation-name: flexR; }
.fb.is-resting * { animation: none !important; }
.fb.is-resting .l1 { opacity: 0; }
.fb.is-resting .seg { opacity: .45; }
.fb.is-resting .dot { transform: translate(-58px, -52px) scale(2.17); }
@keyframes fadeOut1 { 0%, 20% { opacity: 1 } 26%, 100% { opacity: 0 } }
@keyframes fadeInDim { 0%, 22% { opacity: 0 } 28%, 100% { opacity: .45 } }
@keyframes dotRise { 0%, 20% { transform: translate(0, 0) scale(1) } 26% { transform: translate(-58px, -52px) scale(2.6) } 30%, 80% { transform: translate(-58px, -52px) scale(2.17) } 82% { transform: translate(-58px, -52px) scale(2.17, .15) } 84%, 100% { transform: translate(-58px, -52px) scale(2.17) } }
@keyframes dotBlink { 0%, 6%, 12% { opacity: 1 } 3%, 9%, 15% { opacity: 0 } 18%, 100% { opacity: 1 } }
@keyframes growL { 0%, 36% { stroke-dashoffset: 100; opacity: 0 } 36.1% { opacity: 1 } 46%, 100% { stroke-dashoffset: 0; opacity: 1 } }
@keyframes growR { 0%, 50% { stroke-dashoffset: 100; opacity: 0 } 50.1% { opacity: 1 } 60%, 100% { stroke-dashoffset: 0; opacity: 1 } }
@keyframes fistL { 0%, 44% { transform: scale(0) } 48% { transform: scale(1.3) } 50%, 100% { transform: scale(1) } }
@keyframes fistR { 0%, 58% { transform: scale(0) } 62% { transform: scale(1.3) } 64%, 100% { transform: scale(1) } }
@keyframes flexL { 0%, 66% { transform: rotate(0) } 70% { transform: rotate(-12deg) } 74% { transform: rotate(0) } 78% { transform: rotate(-12deg) } 82% { transform: rotate(0) } 86% { transform: rotate(-12deg) } 90%, 100% { transform: rotate(0) } }
@keyframes flexR { 0%, 66% { transform: rotate(0) } 70% { transform: rotate(12deg) } 74% { transform: rotate(0) } 78% { transform: rotate(12deg) } 82% { transform: rotate(0) } 86% { transform: rotate(12deg) } 90%, 100% { transform: rotate(0) } }
@media (prefers-reduced-motion: reduce) {
  .fb * { animation: none !important; }
  .fb .l1 { opacity: 0; }
  .fb .seg { opacity: .45; }
  .fb .dot { transform: translate(-58px, -52px) scale(2.17); }
}

/* three promises */
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.promise { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.promise h3 { font-size: var(--step-2); }
.promise p { color: var(--muted); }
.promise .eyebrow { color: var(--brand); }
.tagline { font-family: var(--f-display); font-weight: 700; font-size: var(--step-4); letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; max-width: 18ch; margin-bottom: clamp(32px, 5vw, 56px); }
.tagline span { color: var(--accent-text); }

/* terminal window, the recurring object */
.term {
  background: var(--screen); color: var(--screen-fg);
  border: 2px solid var(--orchid); border-radius: 18px; overflow: hidden;
  font-family: var(--f-mono); font-size: 0.8125rem; line-height: 1.5;
  min-width: 0;
}
.term-bar { background: var(--screen-bar); padding: 11px 16px; display: flex; align-items: center; gap: 8px; }
.term-bar .d { width: 10px; height: 10px; border-radius: 999px; }
.term-bar .d1 { background: var(--spark); } .term-bar .d2 { background: var(--amber); } .term-bar .d3 { background: var(--term); }
.term-bar .t { margin-left: 8px; }
.term-bar .s { margin-left: auto; color: var(--term); }
.term-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; font-variant-numeric: tabular-nums; }
.row { display: grid; grid-template-columns: 7.5ch minmax(0, 1fr) 11ch; gap: 12px; align-items: center; }
.row .k { color: var(--screen-muted); }
.meter { height: 8px; border-radius: 4px; background: var(--screen-line); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 4px; background: var(--orchid); }
.meter i.hot { background: var(--term); }
.term-foot { border-top: 1px solid var(--screen-line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.kv { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.kv .ok { color: var(--term); } .kv .warm { color: var(--amber); } .kv .dim { color: var(--screen-muted); }

.inside .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.facts { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 0; list-style: none; }
.facts li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.facts .eyebrow { padding-top: 3px; }

/* use cases */
.groups { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 64px); }
.group { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); }
.group-head { display: flex; flex-direction: column; gap: 8px; }
.group-head h3 { font-size: var(--step-2); }
.group-head p { color: var(--muted); font-size: 0.9375rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card h4 { font-family: var(--f-display); font-size: 1.25rem; letter-spacing: -0.01em; margin: 0; }
.card p { color: var(--muted); font-size: 0.9375rem; }
.card .tag { font-family: var(--f-mono); font-size: 0.75rem; color: var(--brand); margin-top: auto; padding-top: 6px; }

/* why */
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.why { border-radius: var(--radius); padding: 26px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.why h3 { font-size: var(--step-2); }
.why p { color: var(--muted); }
.why ul { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 6px; font-size: 0.9375rem; }
.why code { font-family: var(--f-mono); font-size: 0.85em; background: var(--pill-bg); color: var(--pill-fg); padding: 1px 6px; border-radius: 6px; }

/* compare */
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 0.9375rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
thead th { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
tbody th { font-family: var(--f-display); font-size: 1.05rem; white-space: nowrap; }
td.fb-col { color: var(--fg); }
td { color: var(--muted); }
.table-note { margin-top: 14px; font-size: 0.875rem; color: var(--muted); }

/* story */
.story .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.story blockquote { margin: 0; font-family: var(--f-display); font-size: clamp(1.5rem, 3vw, 2.125rem); line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.story .who { margin-top: 16px; font-family: var(--f-mono); font-size: 0.8125rem; color: var(--muted); }
/* Almost invisible on purpose (owner's choice): lights up on hover and keyboard focus. Opacity, so it suits both themes. */
.whisper { display: inline-block; margin-top: 6px; font-family: var(--f-mono); font-size: 0.625rem; color: var(--fg); opacity: 0.14; text-decoration: none; transition: opacity 0.25s, color 0.25s, text-shadow 0.25s; }
.whisper:hover, .whisper:focus-visible { opacity: 1; color: var(--link); text-shadow: 0 0 10px var(--orchid); }
@media (prefers-reduced-motion: reduce) { .whisper { transition: none; } }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.timeline li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 16px; padding-block: 14px; border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 0; padding-top: 0; }
.timeline .eyebrow { padding-top: 3px; color: var(--brand); }

/* waitlist */
.waitlist .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
label, legend { font-weight: 600; font-size: 0.9375rem; }
input[type="email"] {
  font: inherit; color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 48px; width: 100%;
}
input[type="email"]:focus { border-color: var(--orchid); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--orchid) 35%, transparent); }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 500; cursor: pointer; }
.check:has(input:checked) { border-color: var(--orchid); background: var(--pill-bg); }
.check input, .consent input { accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.875rem; color: var(--muted); }
.consent input { margin-top: 2px; }
.form-status { font-size: 0.9375rem; min-height: 1.5em; }
.form-status.err { color: var(--spark); }
.done { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.done svg { width: 220px; height: auto; }
.done h3 { font-size: var(--step-3); }
.points { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.points li::before { content: "› "; color: var(--brand); font-family: var(--f-mono); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px; font-size: 0.875rem; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.site-footer nav { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.mail { font-family: var(--f-mono); color: var(--fg); user-select: all; }

@media (max-width: 900px) {
  .hero .wrap, .inside .wrap, .story .wrap, .waitlist .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-logo { order: -1; }
  .hero-logo button { max-width: 420px; }
  .promises, .why-grid { grid-template-columns: minmax(0, 1fr); }
  .group { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .checks { grid-template-columns: minmax(0, 1fr); }
  .facts li, .timeline li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .row { grid-template-columns: 7ch minmax(0, 1fr) 9ch; gap: 8px; }
  .nav { gap: 2px 16px; }
}

/* links to subpages under home sections */
.more { margin-top: 24px; font-weight: 600; }
.more a { text-decoration: none; }
.more a:hover { text-decoration: underline; }

/* subpages */
.page-head { padding-block: clamp(48px, 8vw, 88px) clamp(24px, 4vw, 40px); }
.page-head .wrap { display: flex; flex-direction: column; gap: 16px; }
.page-head h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); letter-spacing: -0.035em; max-width: 20ch; }
.page-head p { font-size: var(--step-1); color: var(--muted); max-width: 42rem; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.jump a { font-family: var(--f-mono); font-size: 0.8125rem; text-decoration: none; color: var(--pill-fg); background: var(--pill-bg); padding: 8px 12px; border-radius: 999px; min-height: 36px; display: inline-flex; align-items: center; }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(20px, 4vw, 56px); padding-block: 32px; border-top: 1px solid var(--line); }
.detail:first-of-type { border-top: 0; }
.detail h3 { font-size: var(--step-3); }
.detail .lead { color: var(--muted); margin-top: 10px; }
.detail .tag { font-family: var(--f-mono); font-size: 0.75rem; color: var(--brand); display: block; margin-bottom: 8px; }
.detail ul { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 8px; }
.detail .note { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--pill-bg); color: var(--pill-fg); font-size: 0.9375rem; }
.group-title { font-size: var(--step-4); margin-bottom: 8px; }

.prose { max-width: 44rem; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-size: var(--step-3); margin-top: 24px; }
.prose h3 { font-size: var(--step-2); margin-top: 8px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
.prose dl { margin: 0; display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 10px 20px; }
.prose dt { font-weight: 600; }
.prose dd { margin: 0; color: var(--muted); }
.updated { font-family: var(--f-mono); font-size: 0.8125rem; color: var(--muted); }

.limits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.limit { border: 1px dashed var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.limit h4 { margin: 0; font-family: var(--f-display); font-size: 1.125rem; }
.limit p { color: var(--muted); font-size: 0.9375rem; }

table.matrix th[scope="row"] { font-family: var(--f-body); font-size: 0.9375rem; font-weight: 600; white-space: normal; min-width: 10rem; }
table.matrix thead th:nth-child(2), table.matrix td:nth-child(2) { background: var(--pill-bg); color: var(--fg); }
table.matrix { min-width: 980px; }

.about-mark { width: min(320px, 70%); height: auto; }

.notfound { padding-block: clamp(64px, 12vw, 140px); }
.notfound .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.notfound .term { width: min(100%, 460px); }
.cursor { display: inline-block; width: 0.6em; height: 1.1em; background: var(--term); vertical-align: -0.2em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }

@media (max-width: 900px) {
  .detail, .limits { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .prose dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .prose dd { margin-bottom: 10px; }
}

/* utility classes (no inline styles: the site's CSP forbids them) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.site-footer .wordmark { color: var(--fg); }
.band-flush { padding-top: 0; }
.band-tight { padding-top: clamp(16px, 3vw, 32px); }
.section-head-flush { margin-bottom: 0; }
.opt { font-weight: 400; color: var(--muted); }
.lede-muted { font-size: var(--step-1); color: var(--muted); }
.notfound h1 { font-size: var(--step-4); }
.meter .w6 { width: 6%; } .meter .w24 { width: 24%; } .meter .w41 { width: 41%; } .meter .w72 { width: 72%; }
.groups-spaced { margin-top: clamp(32px, 5vw, 56px); }

/* generated pages (content/*.md) */
.notice { padding: 12px 14px; border-radius: 10px; background: var(--pill-bg); color: var(--pill-fg); font-weight: 600; }
.notice a { color: inherit; }
.prose pre { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); overflow-x: auto; font-family: var(--f-mono); font-size: 0.875rem; }
.waitlist-box { margin-top: 8px; }
.done[hidden] { display: none; }
.explore .prose { max-width: 44rem; }

/* The popup for people who arrive from a misspelled address (assets/site.js). */
.typo-note {
  width: min(440px, calc(100vw - 32px)); margin: auto; padding: 24px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--fg);
}
.typo-note::backdrop { background: rgba(26, 9, 21, 0.6); }
.typo-note h2 { margin: 0 0 8px; font: 700 1.375rem/1.2 var(--f-display); }
.typo-note p { margin: 0 0 20px; }
