/* Hallmark · shape: Stat-Led (draw 9bd532) · genre: modern-minimal · theme: Cobalt (deal 1/3, seed devarchitect-open-source-cli-6e14·ad577349·2026-11-30·r0) · redesign: full · job: sign up (developer tool, the install command is the action)
 * hero: Settled · nav: edge-aligned · footer: statement · imagery: the product (real CLI and JSON output) · signature: one test file moves the score from 14 to 24, shown in the report's own JSON
 * axes: light/grotesk-sans/cool · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: P, a factual page has little to argue; it argues by showing a score move for a stated reason */
/* Hallmark · swap · draw dealt job try and a retracting banner nav; the anatomy for a developer tool is sign up, and there is no announcement for a banner to carry */
/* Hallmark · waive 47b · one graphite panel per screen, each holding real devarchitect output · the terminal output is the product being shown */
/* Hallmark · swap · body face: IBM Plex Sans is not self-hosted yet, so --font-body falls back to system-ui; Familjen Grotesk (display) and JetBrains Mono (code) are self-hosted, subset to Latin-1 */
/* Hallmark · waive 79 · /en/ only: the English head sets in three lines where the Spanish takes four, so its hero text ends higher beside the same 640px report panel · the panel already fills the screen and growing the English head would break the shared layout */
/* Hallmark · answered F-field · the ASCII field is one composed still, drawn once per resize, so there is no frame loop to pause */
@import url("./tokens.css");
@import url("./base.css");

@font-face { font-family: "Familjen Grotesk"; src: url("./fonts/familjen-grotesk-latin.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("./fonts/jetbrains-mono-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root { --nav-h: 72px; --panel-pad: var(--space-lg); }

h1, h2, h3 { color: var(--color-ink); }
h3 { font-weight: 500; }
.lead { color: var(--color-ink-2); }
.muted { color: var(--color-muted); }
.label { font-family: var(--font-display); font-weight: 500; font-size: var(--text-sm); color: var(--color-muted); }
code, pre, kbd { font-family: var(--font-outlier); }
a { text-decoration-color: var(--color-rule-2); text-underline-offset: 0.2em; transition: text-decoration-color var(--dur-micro) var(--ease-out); }
a:hover { text-decoration-color: var(--color-accent); }

/* ---- controls: keycaps ---- */
.key { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 48px; padding-inline: var(--space-lg); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-input); background: var(--color-key-face); color: var(--color-ink); font: 500 var(--text-md)/1 var(--font-display); text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: var(--shadow-key); transition: transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out); }
.key:hover { transform: translateY(-1px); }
.key:active { transform: translateY(3px); box-shadow: var(--shadow-key-press); }
.key:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.key:disabled, .key[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.key--primary { background: var(--color-accent); border-color: var(--color-accent-edge); color: var(--color-accent-ink); box-shadow: var(--shadow-key-accent); }
.key--small { min-height: 44px; padding-inline: var(--space-md); font-size: var(--text-sm); }

.cut { border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper); box-shadow: var(--shadow-card); }
@supports (corner-shape: bevel) { .cut { border-radius: var(--cut-l) 4px var(--cut-l) 4px; corner-shape: bevel round bevel round; } }

/* the install command: a cut chip with a working copy key */
.command { display: flex; align-items: stretch; max-width: 640px; border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-input); background: var(--color-paper); }
@supports (corner-shape: bevel) { .command { border-radius: var(--cut) 4px var(--cut) 4px; corner-shape: bevel round bevel round; } }
.command code { flex: 1 1 auto; min-width: 0; overflow-x: auto; white-space: nowrap; padding: var(--space-sm) var(--space-md); font-size: var(--text-sm); line-height: 24px; color: var(--color-ink); scrollbar-width: thin; }
.command code::before { content: "$ "; color: var(--color-muted); }
.command .key { border-radius: 0 var(--radius-input) var(--radius-input) 0; box-shadow: none; border-width: 0 0 0 var(--rule-hair); }
.command .key:active { transform: none; background: var(--color-paper-3); }

/* ---- graphite: the dark material ---- */
.graphite { background: var(--color-graphite); color: var(--color-graphite-ink); border: var(--rule-hair) solid var(--color-graphite-2); border-radius: var(--radius-card); overflow: hidden; }
@supports (corner-shape: bevel) { .graphite { border-radius: var(--cut-l) 4px var(--cut-l) 4px; corner-shape: bevel round bevel round; } }
.graphite figcaption, .graphite .strip { display: flex; justify-content: space-between; gap: var(--space-md); padding: var(--space-sm) var(--panel-pad); background: var(--color-graphite-2); color: var(--color-graphite-muted); font-family: var(--font-display); font-size: var(--text-sm); }
.graphite pre { margin: 0; padding: var(--panel-pad); overflow-x: auto; font-size: var(--text-xs); line-height: 1.6; color: var(--color-graphite-ink); }
.t-pass { color: var(--color-accent-2); }
.t-fail { color: var(--color-graphite-ink); }
.t-dim { color: var(--color-graphite-muted); }
.t-key { color: var(--color-accent-2); }
.t-hl { background: var(--color-graphite-2); display: inline-block; width: 100%; }

/* ---- nav ---- */
.nav { position: relative; z-index: var(--z-raised); border-bottom: var(--rule-hair) solid var(--color-rule); background: var(--color-paper); }
.nav .container { display: flex; align-items: center; justify-content: space-between; min-height: var(--nav-h); gap: var(--space-lg); }
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); letter-spacing: var(--tracking-display); text-decoration: none; color: var(--color-ink); }
.nav-links { display: flex; align-items: center; gap: var(--space-lg); }
.nav-links a:not(.key) { font-family: var(--font-display); font-weight: 500; font-size: var(--text-sm); color: var(--color-ink-2); text-decoration: none; }
.nav-links a:not(.key):hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); }

/* ---- hero: Settled, over the ASCII field ---- */
.hero { position: relative; isolation: isolate; min-height: calc(100dvh - var(--nav-h)); display: grid; align-items: center; padding-block: var(--space-2xl); background-image: radial-gradient(circle, var(--color-glyph-1) 1px, transparent 1.5px); background-size: var(--cell-w) var(--cell-h); }
.js .hero { background-image: none; }
.field { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: center; }
.hero-text { display: grid; gap: var(--space-lg); justify-items: start; padding: var(--space-xl) 0; }
.hero-text h1 { max-width: 13ch; }
.hero-actions { display: grid; gap: var(--space-md); width: 100%; }
.hero-actions .row { display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; }
.hero .graphite pre { font-size: var(--text-sm); }

/* ---- sections ---- */
.section { padding-block: var(--section-gap) 0; }
.section--l { padding-block: var(--section-gap-l) 0; }
.section--s { padding-block: var(--section-gap-s) 0; }
.head { display: grid; gap: var(--space-md); margin-block-end: var(--space-2xl); }
.head--split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: calc(var(--gap-columns) * 2); align-items: end; }

/* figures */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: var(--rule-hair) solid var(--color-rule); }
.figures > div { display: grid; gap: var(--space-xs); align-content: start; padding: var(--space-xl) var(--space-lg); border-inline-start: var(--rule-hair) solid var(--color-rule); }
.figures > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.figure { font-variant-numeric: tabular-nums; font-family: var(--font-display); font-weight: 600; font-size: var(--text-display-s); line-height: 1; letter-spacing: var(--tracking-display); color: var(--color-ink); }

/* before and after: a mapping */
.mapping { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-3xl); align-items: center; }
.mapping-text { display: grid; gap: var(--space-lg); }
.delta { display: flex; gap: var(--space-xl); align-items: end; padding-block: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
.delta div { display: grid; gap: var(--space-2xs); }
.delta .figure { font-size: var(--text-display); font-variant-numeric: tabular-nums; }
.delta .after { color: var(--color-accent); }
.panes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.panes > div + div { border-inline-start: var(--rule-hair) solid var(--color-graphite-2); }
.panes pre { font-size: var(--text-xs); white-space: pre-wrap; overflow-wrap: break-word; }
.panes .strip { display: block; padding: var(--space-xs) var(--panel-pad); border-bottom: var(--rule-hair) solid var(--color-graphite-2); color: var(--color-graphite-muted); font-family: var(--font-display); font-size: var(--text-sm); }

/* switcher */
.tabs { display: inline-flex; gap: var(--space-2xs); padding: var(--space-2xs); margin-block-end: var(--space-lg); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-input); background: var(--color-paper-3); }
.tab { min-height: 44px; padding-inline: var(--space-md); border: var(--rule-hair) solid transparent; border-radius: var(--radius-input); background: transparent; color: var(--color-ink-2); font: 500 var(--text-sm)/1 var(--font-display); cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out); }
.tab:hover { color: var(--color-ink); }
.tab:active { background: var(--color-paper-2); }
.tab:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.tab:disabled { opacity: 0.55; cursor: not-allowed; }
.tab[aria-selected="true"] { background: var(--color-key-face); border-color: var(--color-rule-2); color: var(--color-ink); box-shadow: var(--shadow-key); }
.tabs { display: none; }
.js .tabs { display: inline-flex; }
.panel + .panel { margin-block-start: var(--space-lg); }
.js .panel + .panel { margin-block-start: 0; }
.panel pre { min-height: 360px; }
.ci-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.ci-wrap { padding: var(--panel-pad); min-height: 360px; display: grid; gap: var(--space-md); align-content: start; }
.ci-wrap h3 { color: var(--color-graphite-ink); font-size: var(--text-title); }
.ci-table th, .ci-table td { padding: var(--space-xs) var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-graphite-2); text-align: left; }
.ci-table th { color: var(--color-graphite-muted); font-family: var(--font-display); font-weight: 500; }
.ci-table td.num { text-align: right; font-family: var(--font-outlier); }

/* the rules: a table that is the product */
.rules { width: 100%; border-collapse: collapse; }
.rules th { padding: var(--space-sm) var(--space-md); text-align: left; font-family: var(--font-display); font-weight: 500; font-size: var(--text-sm); color: var(--color-muted); border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.rules td { padding: var(--space-sm) var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); vertical-align: baseline; }
.rules td:first-child, .rules td code { font-family: var(--font-outlier); font-size: var(--text-sm); color: var(--color-ink-2); white-space: nowrap; }
.rules td:nth-child(2) { font-weight: 500; }
.rules td:nth-child(3) { color: var(--color-muted); }
.rules .num { text-align: right; font-family: var(--font-outlier); font-size: var(--text-sm); }
.rules tr.lead-row td { background: var(--color-accent-wash); }
.rules-wrap { overflow-x: auto; }

/* rows: what it never does */
.rows-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); align-items: start; }
.rows { margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-ink); }
.rows li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); padding-block: var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-rule); }
.rows p { color: var(--color-ink-2); }

/* close: the install again, beside one last screen, on a paper band */
.close { margin-block-start: var(--section-gap-l); padding-block: var(--section-gap-s); background: var(--color-paper-2); border-block: var(--rule-hair) solid var(--color-rule); }
.close-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: center; }
.close-text { display: grid; gap: var(--space-lg); justify-items: start; }

/* footer: a statement */
.footer { padding-block: var(--space-3xl) var(--space-2xl); }
.footer .statement { font-family: var(--font-display); font-weight: 600; font-size: var(--text-section); line-height: 1.05; letter-spacing: var(--tracking-display); max-width: 18ch; margin-block-end: var(--space-xl); }
.footer ul { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-xl); margin: 0; padding: var(--space-lg) 0 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); color: var(--color-ink-2); }

@media (max-width: 60rem) {
  .hero { min-height: auto; padding-block: var(--space-2xl); }
  .hero-grid, .mapping, .close-grid, .rows-grid, .head--split { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xl); }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures > div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .panes { grid-template-columns: minmax(0, 1fr); }
  .panes > div + div { border-inline-start: 0; border-top: var(--rule-hair) solid var(--color-graphite-2); }
  .rows li { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
}
@media (max-width: 40rem) {
  .nav-links .optional { display: none; }
  .figures { grid-template-columns: minmax(0, 1fr); }
  .figures > div { border-inline-start: 0; padding-inline-start: 0; border-top: var(--rule-hair) solid var(--color-rule); }
  .tabs { display: none; }
  .js .tabs { display: flex; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .key, .tab, a { transition: none; }
  .key:hover, .key:active { transform: none; }
}

/* sweep fixes: text columns stretch so a lead can never outgrow a phone;
   the long install command wraps inside its chip instead of scrolling;
   the hero panel holds the visual's share of the first screen */
.hero-text, .close-text { justify-items: stretch; }
.hero-text .key, .close-text .key { justify-self: start; }
.command code { white-space: normal; overflow-wrap: anywhere; overflow-x: visible; }
.wordmark { white-space: nowrap; }
.hero .graphite { display: flex; flex-direction: column; min-height: 560px; }
.hero .graphite pre { flex: 1 1 auto; }
@media (max-width: 60rem) { .hero .graphite { min-height: 0; } }
.command { align-items: center; }
.command .key { align-self: center; margin-inline-end: var(--space-2xs); border-radius: var(--radius-input); border-width: 0; }
.hero .graphite { min-height: min(640px, calc(100dvh - var(--nav-h) - var(--space-3xl))); }
