@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("/static/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("/static/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 700; font-display: swap; src: url("/static/fonts/ibm-plex-mono-latin-700-normal.woff2") format("woff2"); }

:root { --bg: #0d0d0f; --ink: #e8e6df; --muted: #8c8b83; --dim: #6f6e68; --line: #2a2a30; --hl: #fff1a8; --ok: #6fcf97; --bad: #ff6b6b; color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased;
  font: 14px/1.5 "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; padding: 0 clamp(16px, 3vw, 40px) 28px;
}
a { color: inherit; }
h1, p, pre { margin: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; min-width: 0; }
.mark { font-weight: 700; font-size: 15px; line-height: 1; letter-spacing: -0.01em; text-decoration: none; }
nav { display: flex; flex-shrink: 0; gap: 22px; font-size: 13px; white-space: nowrap; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--ink); }

main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 5vw, 80px); align-items: center; max-width: 1400px; width: 100%; margin: 0 auto; }
h1 { font-size: clamp(30px, 4.3vw, 62px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 500; max-width: 12em; }
.say p { color: var(--muted); font-size: clamp(15px, 1.35vw, 18px); line-height: 1.55; max-width: 30em; margin-top: 22px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 32px; }
.actions .aside { color: var(--muted); font-size: 12.5px; line-height: 1.6; max-width: 34em; }
.install { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 22px; color: var(--dim); font-size: 12.5px; }
.install .command { color: var(--muted); }
.button { display: inline-flex; align-items: center; background: var(--ink); color: var(--bg); text-decoration: none; padding: 10px 16px; font-weight: 500; font-size: 13px; }
.button:hover { background: var(--hl); }
.command { display: inline-flex; align-items: stretch; max-width: 100%; border: 1px solid #3a3a42; font-size: 13px; line-height: 1.3; }
.command code { font: inherit; padding: 10px 12px; overflow-wrap: break-word; min-width: 0; }
.command code i { font-style: normal; opacity: 0.5; }
.command button { all: unset; cursor: pointer; padding: 0 12px; border-left: 1px solid #3a3a42; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.7; }
.command button:hover { opacity: 1; }
.command button:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }

.term { display: block; text-decoration: none; border: 1px solid var(--line); background: #121215; padding: 18px 20px; max-width: 100%; overflow: hidden; }
.term:hover { border-color: #55555e; }
.term .title { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 14px; font-size: 12.5px; }
.term .title span { color: var(--muted); }
.term pre { font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 16px; font-size: clamp(8.5px, 2.25vw, 12.5px); line-height: 1.5; color: #c9c7bf; }
.term pre em { font-style: normal; color: var(--bg); background: var(--hl); padding: 0 4px; }
.term pre i { font-style: normal; color: var(--muted); }
.term pre strong { display: inline-block; margin: 2px 0; font-weight: 500; color: var(--ink); font-size: clamp(12px, 1.05vw, 14.5px); }

.marks { display: grid; grid-template-columns: max-content repeat(6, max-content); gap: 1px 1.6ch; font-size: clamp(6.4px, 1.72vw, 12.5px); line-height: 1.5; width: max-content; max-width: 100%; overflow-x: auto; }
.marks > div { display: contents; }
.marks .head span { color: var(--dim); }
.marks .head .span { grid-column: span 3; }
.marks .scenario { color: #c9c7bf; padding-right: 1ch; }
.marks span { color: var(--ok); }
.marks b { color: var(--bad); font-weight: 700; }
.term .summary { display: none; font-size: 15px; line-height: 1.5; }
.term .summary b { color: var(--ok); font-weight: 500; }
.term .summary span { color: var(--muted); font-size: 12px; }

footer { color: var(--muted); font-size: 12px; padding-top: 16px; }
footer p + p { margin-top: 4px; }

@media (max-width: 1180px) { main { grid-template-columns: minmax(0, 1fr); align-content: center; padding: 20px 0 28px; } .term { width: fit-content; } }
@media (max-width: 520px) {
  .term { padding: 12px; width: 100%; } nav { gap: 16px; } nav a:nth-child(2) { display: none; }
  .term .marks { display: none; } .term .summary { display: block; }
  .term pre { font-size: 12px; }
  .term pre .tally { display: none; }
}
