/* Hallmark · shape: Bento Grid (draw ecbe73) · genre: atmospheric · theme: Terminal (deal 1/3, seed free-open-source-command-line-checker-21b3·a00038cc·2026-11-25·r0), accent swapped to the brand orange · redesign: full
 * hero: Corridor · nav: edge-aligned · footer: statement · imagery: the product (hadome's own output, set as text) · signature: a hadome check session where deleting only a test exits 1 and deleting the code with it exits 0
 * axes: dark/mono/chromatic-orange · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: P, the page argues one thing (fail on regressions, not on history) and the diff section says it against the tools it differs from */
/* Hallmark · brand kept · the logo's orange replaces the theme's phosphor green as the one signal; the ground takes the same hue */
/* Hallmark · dropped demo.gif, compare-*.svg, logo-light.svg · the session and the diff set the same run and the same comparison as text in the page's face, and the page is dark only, so the logo is logo-dark.svg */
/* Hallmark · reworded every section head, dropped the ids compare, more and scope · the full redesign rebuilt the sections; the facts under the old heads are on the page, and every link is kept */
/* Hallmark · waive 49b · footer links, not controls · the links name the articles by their own titles, which wrap at 320 instead of being cut short */
/* Hallmark · waive 44c · the hero ends near 700px of 900 · the session where deleting only the test exits 1 starts on the first screen, under the install line */
/* Hallmark · waive 59 · 104px between the hero and the session · the session sits close under the hero so its exit 1 shows on the first screen; every other gap is 240px or more */
/* Hallmark · answered F15 · the 60rem in the hero is the Corridor's measure inside the one 1440px container, not a second container */
/* Hallmark · dismissed 26a, 34, 26b on ja/index.html · the static tier does not resolve the root-relative /style.css from ja/, and the render tier finds the focus ring, the clip and the states on /ja/ */
@import url("./tokens.css");
@import url("./base.css");

@font-face {
  font-family: "Martian Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  src: url("/assets/fonts/martian-mono.woff2") format("woff2-variations");
  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;
}
/* Martian Mono has no Japanese glyphs, so Japanese falls through to this face. It holds only the
   characters ja/index.html uses: rerun the subset when the Japanese copy gains new characters. */
@font-face {
  font-family: "Noto Sans JP";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/noto-sans-jp.woff2") format("woff2-variations");
}

body { font-stretch: var(--stretch-body); font-variant-numeric: tabular-nums; line-height: 1.65; }
h1, h2, h3 { font-weight: var(--display-weight); font-stretch: var(--stretch-display); line-height: 1.12; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { letter-spacing: 0; line-height: 1.3; }
:lang(ja) body { line-height: 1.8; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) .lead, :lang(ja) .statement { word-break: auto-phrase; }
:lang(ja) .hero .lead { max-width: 30em; }

a { color: var(--color-ink-2); text-decoration-style: dotted; transition: color var(--dur-micro) steps(1); }
a:hover { color: var(--color-accent); }
a:active { color: var(--color-ink); }

.muted { color: var(--color-muted); }
.prompt { color: var(--color-muted); user-select: none; }
.arg { color: var(--color-accent); }
code, pre { font: inherit; }

/* Nav */
.nav { border-bottom: var(--rule-hair) solid var(--color-rule); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 64px; }
.nav .brand { display: flex; align-items: center; padding-block: var(--space-xs); }
.nav .brand img { height: 44px; width: auto; }
.nav ul { display: flex; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); }
.nav a { text-decoration: none; white-space: nowrap; }
.nav a:hover { text-decoration: underline; text-decoration-style: dotted; }

/* Controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: 48px; padding: 0 var(--space-lg); border-radius: var(--radius-pill);
  font-size: var(--text-sm); font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-micro) steps(1), color var(--dur-micro) steps(1), border-color var(--dur-micro) steps(1);
}
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); border: 1px solid var(--color-accent); }
.btn--primary:hover { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-accent-ink); }
.btn--primary:active { background: var(--color-ink-2); border-color: var(--color-ink-2); }
.btn--secondary { border: 1px solid var(--color-ink-2); color: var(--color-ink); }
.btn--secondary:hover { background: var(--color-paper-3); color: var(--color-ink); }
.btn--secondary:active { background: var(--color-accent-wash); }

.well { background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); }

/* Hero: Corridor */
.hero { min-height: calc(100dvh - 65px - 200px); display: grid; align-items: center; padding-block: var(--space-xl) var(--space-xl); }
.hero .inner { display: grid; justify-items: center; text-align: center; gap: var(--space-xl); max-width: 60rem; margin-inline: auto; }
.hero h1 { font-size: clamp(2.5rem, 5vw + 0.5rem, 5.25rem); max-width: 20ch; }
:lang(ja) .hero h1 { max-width: 12em; font-size: clamp(2rem, 4.8vw + 0.5rem, 5rem); }
.hero .lead { color: var(--color-ink-2); max-width: 40ch; }
.install { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-md) var(--space-lg); font-size: var(--text-md); text-align: left; white-space: nowrap; overflow-x: auto; max-width: 100%; margin-top: var(--space-xs); }
@media (max-width: 40rem) { .install { white-space: normal; overflow-wrap: anywhere; } }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-sm); }

/* Sections */
.section { padding-block: var(--section-gap) 0; }
.section:last-of-type { padding-bottom: var(--section-gap); }
.section + .section { border-top: var(--rule-hair) solid var(--color-rule); margin-top: var(--section-gap-s); padding-top: var(--section-gap-s); }
.head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-md); align-items: end; margin-bottom: var(--space-2xl); }
.head h2 { grid-column: 1 / 8; }
.head p { grid-column: 8 / 13; color: var(--color-ink-2); }
@media (max-width: 60rem) { .head h2, .head p { grid-column: 1 / -1; } }

/* Session: the signature, its top on the first screen */
#what { padding-top: var(--space-2xl); }
#what .session { margin-bottom: var(--space-3xl); } #what .table-scroll { margin-top: 0; }
.session { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.session > div { padding: var(--space-xl); min-width: 0; display: flex; flex-direction: column; }
.session > div + div { border-left: var(--rule-hair) solid var(--color-rule); }
.session h3 { line-height: 1.5; font-size: var(--text-sm); font-weight: 400; font-stretch: var(--stretch-body); letter-spacing: 0; color: var(--color-muted); margin-bottom: var(--space-lg); }
.session pre { margin: 0; font-size: var(--text-sm); line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.session .bad { color: var(--color-accent); }
.session .exit { display: block; margin-top: auto; padding-top: var(--space-xl); font-size: var(--text-display-s); font-stretch: var(--stretch-display); line-height: 1; color: var(--color-ink); }
.session .exit small { display: block; margin-top: var(--space-xs); font-size: var(--text-sm); font-stretch: var(--stretch-body); line-height: 1.5; color: var(--color-muted); }
.session .exit.bad { color: var(--color-accent); }
@media (max-width: 60rem) { .session { grid-template-columns: minmax(0, 1fr); } .session > div + div { border-left: 0; border-top: var(--rule-hair) solid var(--color-rule); } }

table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
th, td { text-align: left; vertical-align: top; padding: var(--space-md) var(--space-lg) var(--space-md) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
th { font-weight: 400; color: var(--color-muted); border-bottom-color: var(--color-rule-2); }
.table-scroll { overflow-x: auto; margin-top: var(--space-2xl); }
.verdict-bad { color: var(--color-accent); }
@media (max-width: 40rem) { th:nth-child(2), td:nth-child(2) { display: none; } th, td { padding-right: var(--space-sm); } }

/* Bento: what it checks */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); }
.tile { padding: var(--space-xl); display: grid; align-content: start; gap: var(--space-md); min-width: 0; }
.tile h3 { font-size: var(--text-title); }
.tile p { color: var(--color-ink-2); font-size: var(--text-sm); }
.tile ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }
.tile--wide { grid-column: span 2; }
.tile--tall { grid-row: span 2; }
.tile--lead { grid-column: span 2; grid-row: span 2; align-content: space-between; }
.tile--lead h3 { font-size: var(--text-section); }
.tile--lead ol { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-lg); }
.tile--lead li { display: grid; gap: var(--space-2xs); }
.tile--lead li b { font-weight: 500; font-size: var(--text-lg); color: var(--color-ink); }
.tile--lead li span { color: var(--color-ink-2); font-size: var(--text-sm); }
@media (max-width: 60rem) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .bento { grid-template-columns: minmax(0, 1fr); } .tile--wide, .tile--lead { grid-column: auto; } .tile--tall, .tile--lead { grid-row: auto; } }

/* Exit codes as a reference */
.codes { list-style: none; margin: 0; padding: 0; border-top: var(--rule-hair) solid var(--color-rule-2); }
.codes li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 6fr) minmax(0, 4fr); column-gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-rule); }
.codes .code { font-size: var(--text-display-s); font-stretch: var(--stretch-display); font-weight: 400; line-height: 1; }
.codes .meaning { font-size: var(--text-lg); }
.codes .who { color: var(--color-muted); }
.codes li.person .code, .codes li.person .who { color: var(--color-accent); }
@media (max-width: 40rem) { .codes li { grid-template-columns: minmax(0, 1fr) minmax(0, 4fr); row-gap: var(--space-xs); } .codes .who { grid-column: 2; } }

/* Diff: how it is different */
.diff { overflow-x: auto; }
.diff .file { display: flex; gap: var(--space-xl); padding: var(--space-md) var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-rule-2); color: var(--color-muted); font-size: var(--text-sm); }
.diff ol { list-style: none; margin: 0; padding: var(--space-md) 0; counter-reset: line; }
.diff li { counter-increment: line; display: grid; grid-template-columns: 4ch 2ch minmax(0, 1fr); padding: var(--space-xs) var(--space-xl); font-size: var(--text-lg); line-height: 1.5; }
.diff li::before { content: counter(line); color: var(--color-rule-2); font-size: var(--text-sm); align-self: center; }
.diff li > span:first-child { color: var(--color-muted); }
.diff .del { color: var(--color-muted); }
.diff .add { background: var(--color-accent-wash); color: var(--color-ink); }
.diff .add > span:first-child { color: var(--color-accent); }
.diff .hunk { color: var(--color-muted); font-size: var(--text-sm); }
@media (max-width: 40rem) { .diff li { grid-template-columns: 2ch 2ch minmax(0, 1fr); padding: var(--space-xs) var(--space-md); font-size: var(--text-md); } .diff li::before { font-size: var(--text-xs); } .diff .file { padding: var(--space-md); gap: var(--space-md); } }
.diff-note { margin-top: var(--space-lg); color: var(--color-muted); font-size: var(--text-sm); }

/* Setup */
.setup { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); }
.platforms { list-style: none; margin: 0; padding: 0; border-top: var(--rule-hair) solid var(--color-rule-2); }
.platforms li { display: grid; gap: var(--space-2xs); padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.platforms .name { color: var(--color-muted); font-size: var(--text-sm); }
.platforms code { white-space: pre; overflow-x: auto; display: block; padding-bottom: var(--space-3xs); }
.steps-session { padding: var(--space-xl); display: grid; gap: var(--space-xl); align-content: start; }
.steps-session pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--text-md); }
.steps-session p { color: var(--color-ink-2); font-size: var(--text-sm); }
.setup-foot { margin-top: var(--space-lg); color: var(--color-muted); font-size: var(--text-sm); }
@media (max-width: 60rem) { .setup { grid-template-columns: minmax(0, 1fr); } }

/* Footer: statement */
.footer { border-top: var(--rule-hair) solid var(--color-rule); padding-block: var(--section-gap-s) var(--space-3xl); }
.footer .statement { font-size: var(--text-display-s); font-stretch: var(--stretch-display); font-weight: 400; line-height: 1.15; max-width: 22ch; overflow-wrap: break-word; min-width: 0; }
:lang(ja) .footer .statement { font-size: var(--text-section); max-width: 20em; line-height: 1.4; }
.footer .statement .muted { display: block; margin-top: var(--space-md); font-size: var(--text-lg); font-stretch: var(--stretch-body); line-height: 1.6; max-width: 56ch; }
.footer .links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--space-lg) var(--gap-columns); margin-top: var(--space-3xl); padding-top: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); }
.footer .links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); }
.footer .links h3 { font-size: var(--text-sm); font-weight: 400; font-stretch: var(--stretch-body); letter-spacing: 0; color: var(--color-muted); margin-bottom: var(--space-sm); }
