/* vt100 · Nord. Colours from https://www.nordtheme.com, fonts bundled. */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("fonts/jetbrains-mono-400.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("fonts/jetbrains-mono-500.woff2") format("woff2"); }

:root {
	--night: #2e3440;   /* page */
	--night-1: #3b4252; /* panels and cards */
	--night-2: #434c5e; /* borders, tags */
	--night-3: #4c566a; /* dashed outlines */
	--snow: #eceff4;    /* headings */
	--snow-1: #e5e9f0;  /* card text */
	--snow-2: #d8dee9;  /* body text */
	--muted: #b4bdcc;   /* secondary text, 5:1 on panels */
	--frost: #88c0d0;   /* accent, links */
	--frost-1: #8fbcbb; /* link hover */
	--yellow: #ebcb8b;  /* "deliberately not" */
	--sans: "Inter", system-ui, sans-serif;
	--mono: "JetBrains Mono", ui-monospace, monospace;
	color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--night); color: var(--snow-2); font: 16px/1.6 var(--sans); }
a { color: var(--frost); text-decoration: none; }
a:hover { color: var(--frost-1); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--frost); outline-offset: 3px; border-radius: 4px; }
code { font-family: var(--mono); font-size: 0.9em; color: var(--snow); }
h1, h2 { color: var(--snow); }

.page { max-width: 1080px; margin: 0 auto; padding: 26px 20px 48px; display: flex; flex-direction: column; gap: 56px; }
main { display: flex; flex-direction: column; gap: 64px; }

.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.top nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; }
.top nav a { color: var(--snow-2); }
.wordmark { font-family: var(--mono); font-weight: 500; font-size: 20px; color: var(--snow); }
.bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; border-top: 1px solid var(--night-2); padding-top: 18px; font-size: 14px; color: var(--muted); }

.hero { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.hero h1 { margin: 0; font-size: clamp(40px, 7vw, 56px); line-height: 1.1; font-weight: 700; letter-spacing: -1.5px; }
.hero .tool-name { font-family: var(--mono); font-weight: 500; color: var(--frost); letter-spacing: -1px; font-size: clamp(36px, 6vw, 48px); }
.lead { margin: 0; font-size: 21px; line-height: 1.55; color: var(--snow); }
.muted { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }

.eyebrow { margin: 0 0 20px; font-size: 14px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }

.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.card { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 12px; background: var(--night-1); border: 1px solid var(--night-2); border-radius: 12px; padding: 24px 26px; color: var(--snow-1); }
.card:hover { text-decoration: none; color: var(--snow-1); border-color: var(--night-3); }
.card-name { font-family: var(--mono); font-size: 19px; font-weight: 500; color: var(--frost); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.tag { background: var(--night-2); color: var(--snow-1); border-radius: 999px; padding: 2px 10px; }

.panel { background: var(--night-1); border: 1px solid var(--night-2); border-radius: 12px; padding: 24px 26px; }
.flow { display: flex; flex-direction: column; gap: 14px; color: var(--muted); font-size: 15px; }
.flow p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.chip { font-family: var(--mono); background: var(--night-2); color: var(--snow); border-radius: 8px; padding: 6px 12px; }
.chip:hover { text-decoration: none; color: var(--snow); background: var(--night-3); }
.chip-ghost { background: var(--night); border: 1px dashed var(--night-3); }
.chip-accent, .chip-accent:hover { background: var(--frost); color: var(--night); font-weight: 500; }

.crumbs { font-size: 15px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--snow); }

.install { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 8px; }
.command { display: block; max-width: 100%; overflow-x: auto; white-space: nowrap; background: var(--night-1); border: 1px solid var(--night-2); border-radius: 8px; padding: 10px 16px; font-size: 15px; }
.prompt { color: var(--muted); }

.demo { margin: 0; }
.demo img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--night-2); }

.split { display: flex; flex-wrap: wrap; gap: 32px 40px; }
.split .prose { flex: 999 1 520px; min-width: 0; }
.prose { display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.75; max-width: 72ch; }
.prose h2 { margin: 0; font-size: 24px; font-weight: 600; }
.prose p { margin: 0; }
.prose ol { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.not { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; align-self: flex-start; }
.not h2 { margin: 0; font-size: 16px; font-weight: 600; }
.not p { margin: 0; }
.not strong { color: var(--yellow); font-weight: 600; }

.list { display: flex; flex-direction: column; }
.list-row { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--night-2); }
.list-row:hover { text-decoration: none; }
.list-row:hover .list-title { color: var(--frost); }
.list-title { color: var(--snow); font-size: 18px; font-weight: 500; }
.muted-small { color: var(--muted); font-size: 15px; }

.guide { gap: 18px; }
.guide h2 { margin-top: 20px; }
.guide ul { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.guide pre { margin: 0; background: var(--night-1); border: 1px solid var(--night-2); border-radius: 8px; padding: 14px 18px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.guide pre code { font-size: inherit; }

.principles { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.principle { display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.7; }
.principle h2 { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.4; }
.principle p { margin: 0; }
.principle strong { color: var(--snow); font-weight: 600; }
.principle .chip { margin-right: 6px; }
.principle.open { background: var(--night); border-style: dashed; border-color: var(--night-3); }
.principle.open strong { color: var(--yellow); }
