/* Hallmark · audit only, not a Hallmark build · shape: the owner's brief (hero, walkthrough, questions, footer) · genre: modern-minimal · theme: custom, from the banner (its paper and its orange) · job: try · hero: banner, line, install · copy: verbatim (the owner's words and README.md) · v2.0.0 */
/* Hallmark · critique: one idea per screen held; weakest is the walkthrough panel, where screenshots of three shapes share one 16:10 frame */
/* Hallmark · waive 6b · banner, headline, line and install all centred · the owner's brief asks for a centred hero filling the first screen */
/* CWTFIGO landing page. Hero (banner, line, install) fills the first screen; a walkthrough
 * (details accordion, one fixed picture panel); questions; footer.
 * One accent: the banner's orange. Light and dark from prefers-color-scheme. */

/* fonts: Red Hat Display/Text/Mono are inlined in fonts.css (OFL), so they arrive with the CSS: no swap. CJK comes from the system (--font-cjk). */

:root {
  color-scheme: light dark;
  --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px;
  --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem;
  --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem); --text-display: clamp(2.5rem, 4vw + 1rem, 4.5rem);
  --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-micro: 120ms; --dur-short: 220ms;
  --container: 1440px; --gutter: 64px; --gap-columns: 32px; --gap-split: 64px; --nav-h: 64px;
  --color-paper: #f4ede0; /* the light banner's background */ --color-paper-2: oklch(99.5% 0.005 85); --color-paper-3: oklch(92% 0.016 85);
  --color-ink: oklch(18% 0.006 60); --color-ink-2: oklch(28% 0.008 60); --color-muted: oklch(44% 0.012 60); --color-rule: oklch(88% 0.013 85);
  --color-accent: #ee611e; /* the banner's orange */ --color-accent-ink: oklch(18% 0.006 60); --color-focus: oklch(60% 0.19 40);
  --color-head: oklch(18% 0.006 60); --color-head-ink: oklch(96% 0.011 85);
  --color-sheet: oklch(99.3% 0.004 85);
  --color-term: #1c1c2c; --color-term-ink: #e4e4ee; --color-term-dim: #a9a9bd; /* the screenshots' terminal, dark in both themes */
  --font-cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC";
  --font-display: "Red Hat Display", var(--font-cjk), sans-serif;
  --font-body: "Red Hat Text", var(--font-cjk), sans-serif;
  --font-outlier: "Red Hat Mono", var(--font-cjk), monospace;
  --font-ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", Meiryo, "Noto Sans JP", "Noto Sans CJK JP";
  --radius-entry: 14px; --radius-pill: 6px; --rule-hair: 1px;
  --tracking-display: -0.035em; --display-weight: 600;
}
@media (prefers-color-scheme: dark) {
  :root {
    --color-paper: #16130f; /* the dark banner's background */ --color-paper-2: oklch(23% 0.009 70); --color-paper-3: oklch(26% 0.01 70);
    --color-ink: oklch(94% 0.01 85); --color-ink-2: oklch(86% 0.012 85); --color-muted: oklch(74% 0.014 80); --color-rule: oklch(34% 0.012 70);
    --color-focus: oklch(74% 0.17 45);
    --color-head: oklch(13% 0.006 60); --color-head-ink: oklch(94% 0.01 85);
    --color-sheet: oklch(23% 0.009 70);
  }
}
/* base */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--space-xl); }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: color-mix(in oklab, var(--color-accent) 30%, transparent); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.02; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { max-width: 14ch; font-size: var(--text-display); }
h2 { max-width: 18ch; font-size: var(--text-section); }
.lead { font-size: var(--text-lead); line-height: 1.45; max-width: 34ch; color: var(--color-ink-2); }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
code, pre { font-family: var(--font-outlier); }
p code, td code { font-size: 0.92em; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
button { font: inherit; }

/* CJK: Latin tracking and leading are wrong for Han; break headings at punctuation, not mid-word */
[lang="ja"] { font-family: "Red Hat Text", var(--font-ja), sans-serif; }
body:lang(zh) { line-height: 1.7; }
h2:lang(zh), .faq summary:lang(zh) { letter-spacing: 0; }
h2:lang(zh) { line-height: 1.22; word-break: keep-all; }
.lead:lang(zh) { line-height: 1.6; word-break: keep-all; text-wrap: balance; }

/* nav: a slab */
.slab { background: var(--color-paper-3); border-bottom: var(--rule-hair) solid var(--color-ink); }
.slab__row { display: flex; align-items: center; gap: var(--space-xl); min-height: var(--nav-h); }
.wordmark { display: inline-flex; align-items: center; gap: var(--space-xs); font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-lg); letter-spacing: -0.01em; text-decoration: none; }
.wordmark img { width: auto; height: 1.6em; }
.slab__links, .slab__end { display: flex; gap: var(--space-lg); font-size: var(--text-sm); font-weight: 500; }
.slab__end { margin-left: auto; }
.slab a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; white-space: nowrap; }
.slab a:hover { text-decoration: underline; }

/* controls: moulded keys */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-paper-2); color: var(--color-ink); font-weight: 500; font-size: var(--text-md); white-space: nowrap; text-decoration: none; cursor: pointer; box-shadow: inset 0 1px 0 color-mix(in oklab, var(--color-sheet) 60%, transparent), 0 1px 1px var(--color-rule); transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-paper-3); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; transition: none; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); border-color: color-mix(in oklab, var(--color-accent) 78%, var(--color-ink)); box-shadow: inset 0 1px 0 color-mix(in oklab, var(--color-sheet) 32%, transparent), inset 0 -1px 0 color-mix(in oklab, var(--color-accent-ink) 12%, transparent); }
.btn--primary:hover { background: color-mix(in oklab, var(--color-accent) 88%, var(--color-accent-ink)); }

/* hero: banner, line, install; fills the first screen */
.hero { display: grid; justify-items: center; align-content: center; gap: var(--space-lg); min-height: calc(100svh - var(--nav-h)); padding-block: var(--space-xl); text-align: center; }
/* the banner PNG carries wide margins: crop them, its background matches --color-paper */
.hero picture { width: min(100%, 720px); }
.hero__banner { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 440; object-fit: cover; }
.hero h1 { max-width: none; font-size: var(--text-display-s); }
.hero .lead { max-width: 40ch; text-wrap: balance; }
.hero .install { width: min(100%, 36rem); margin-top: 0; text-align: left; }
.hero__then { color: var(--color-ink-2); }

/* install: the commands on a sheet, under the same dark head as the notebook cards, copy button docked in it */
.install { display: grid; gap: var(--space-xs); max-width: 36rem; margin-top: var(--space-xs); }
.install__box { border-radius: var(--radius-entry); background: var(--color-sheet); box-shadow: 0 0 0 1.5px var(--color-ink); overflow: hidden; }
.install__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-xs) var(--space-md); padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-md); background: var(--color-head); color: var(--color-head-ink); font-size: var(--text-sm); font-weight: 500; }
.install__head .btn { min-height: 44px; }
.install__head .btn:not(.btn--primary) { background: transparent; color: var(--color-head-ink); border-color: color-mix(in oklab, var(--color-head-ink) 40%, transparent); box-shadow: none; }
.install__head .btn:not(.btn--primary):hover { background: color-mix(in oklab, var(--color-head-ink) 12%, transparent); }
.install pre { margin: 0; padding: var(--space-md); font-size: clamp(0.9375rem, 0.25vw + 0.8rem, 1.0625rem); line-height: 1.5; font-weight: 500; overflow-x: auto; }
/* each command is a line; a too-long one wraps under a hanging indent instead of scrolling */
.install .ln { display: block; padding-left: 2ch; text-indent: -2ch; white-space: pre-wrap; overflow-wrap: anywhere; }
.install .ln + .ln { margin-top: 0.4em; }

/* skip link: off-screen until focused */
.skip { position: absolute; left: var(--space-md); top: var(--space-xs); z-index: 10; padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); border-radius: var(--radius-pill); transform: translateY(-200%); }
.skip:focus { transform: none; }

/* walkthrough: an exclusive accordion; the open item's picture sits in one fixed panel on the right */
.walk-section { padding-block: var(--space-2xl); }
.walk { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--gap-split); align-content: start; margin-top: var(--space-xl); }
.walk__items { align-self: start; }
.walk details { border-bottom: var(--rule-hair) solid var(--color-rule); }
.walk details:first-child { border-top: var(--rule-hair) solid var(--color-ink); }
/* reserves the panel's height in the right column; the open item's figure is laid over it */
.walk::after { content: ""; aspect-ratio: 16 / 10; }
.walk__pic { position: absolute; top: 0; right: 0; width: calc((100% - var(--gap-split)) * 8 / 12); aspect-ratio: 16 / 10; margin: 0; overflow: hidden; border-radius: var(--radius-entry); background: var(--color-term); container-type: inline-size; }
.walk__pic a, .walk__pic img { display: block; width: 100%; height: 100%; }
.walk__pic img { object-fit: contain; }
.walk__pic a:focus-visible, .walk__pic pre:focus-visible { outline-offset: -4px; }
.walk__pic pre { height: 100%; margin: 0; padding: 5cqi 6cqi; overflow: auto; color: var(--color-term-dim); font-size: clamp(0.6875rem, 2.1cqi, 0.9375rem); line-height: 1.6; }
.walk__pic .cmd { color: var(--color-term-ink); font-weight: 500; }
.walk details p { max-width: 42ch; padding-bottom: var(--space-lg); color: var(--color-ink-2); }

/* questions */
.questions { display: grid; gap: var(--space-lg); padding-block: var(--space-2xl); }
.faq { border-top: var(--rule-hair) solid var(--color-ink); }
.faq details { border-bottom: var(--rule-hair) solid var(--color-rule); }
.faq summary, .walk summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); min-height: 64px; padding-block: var(--space-sm); font-size: var(--text-title); font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: -0.015em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker, .walk summary::-webkit-details-marker { display: none; }
.faq summary::after, .walk summary::after { content: "+" / ""; font-family: var(--font-body); font-weight: 400; color: var(--color-muted); }
.faq details[open] summary::after, .walk details[open] summary::after { content: "\2212" / ""; }
.faq summary:hover, .walk summary:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
.faq summary:focus-visible, .walk summary:focus-visible { outline-offset: 4px; }
.faq details p { padding-bottom: var(--space-lg); color: var(--color-ink-2); }

/* footer: index columns */
.foot { margin-top: var(--space-2xl); padding-block: var(--space-2xl); border-top: 2px solid var(--color-ink); background: var(--color-paper-3); font-size: var(--text-sm); }
.foot__cols { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 2fr) minmax(0, 3fr); gap: var(--gap-columns); align-items: start; }
.foot ul { display: grid; gap: var(--space-2xs); }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }
.foot__note { color: var(--color-muted); max-width: 40ch; }

@media (max-width: 60rem) {
  :root { --gutter: 24px; --gap-split: 40px; }
  .slab__links { display: none; }
  /* stacked: each picture under its own item, at its own height */
  .walk { display: block; }
  .walk::after { content: none; }
  .walk__pic { position: static; width: 100%; aspect-ratio: auto; margin-bottom: var(--space-lg); }
  .walk__pic img { height: auto; }
  .foot__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  :root { --gutter: 16px; --gap-split: 32px; --gap-columns: 16px; }
  /* a phone shrinks a terminal screenshot past reading: keep it at 640px and let it scroll sideways in its frame */
  .walk__pic { overflow-x: auto; }
  .walk__pic a { width: 640px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:active { transform: none; }
}
