/* Archive Desk guide pages: the Workbench guides and the command line page. Same family as the browser app:
   sage paper, white sheets, spruce text and code, leaf green on verified things. Each hero carries the seal
   drawn from the SHA-256 of its own download. Archivo for text, Chivo Mono for paths and fingerprints. */
:root {
  --ink: #1c2b22; --ink-soft: #2c4034; --paper: #eef1ec; --surface: #ffffff; --surface-soft: #f5f7f3; --folder: #e3e9e1;
  --line: #d3dbd3; --line-strong: #7b897f; --muted: #4b5a50; --brand: #1c2b22; --brand-soft: #e6ece4; --deep: #1c2b22;
  --seal: #2e6b3c; --seal-soft: #e5f1d6; --steel: #2e6b3c; --leaf: #cfe8a9; --stamp: #a3261d;
  --zip: #1c2b22; --zip-text: #edf2ea; --zip-muted: #a9b9ad;
  --radius: 12px; --radius-button: 8px;
  --focus: 0 0 0 2px var(--paper), 0 0 0 4px var(--seal);
  --heading: "Archivo", "Segoe UI", system-ui, sans-serif;
  --body: "Archivo", "Segoe UI", system-ui, sans-serif;
  --mono: "Chivo Mono", ui-monospace, Consolas, monospace;
}
html { overflow-x: clip; }
body { background: var(--paper); font: 400 16px/1.6 var(--body); }
.wrap { max-width: 1280px; }
h1, h2, h3 { letter-spacing: -.01em; }
a { text-decoration-color: var(--seal); }

/* Header: logo, product name and the guides as a plain line of links */
.g-top { border-bottom: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.g-top .g-brand, .g-top .g-back, .g-top .g-nav a { color: var(--ink); }
.g-brand img { display: none; }
.g-brand { gap: 10px; font: 600 16px/1 var(--body); letter-spacing: 0; }
.g-top .g-brand span { color: var(--muted); font-weight: 500; letter-spacing: 0; }
.sb-logo text { font-family: "Archivo", sans-serif; font-stretch: 112%; }
.g-back { font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 5px; }
.g-bar { padding-top: 12px; padding-bottom: 4px; }
.g-nav { gap: 0 24px; margin-bottom: 0; padding-top: 0; }
.g-nav a { justify-content: center; min-width: 44px; padding: 8px 0; border: 0; border-radius: 0; font: 500 16px/1.2 var(--body); color: var(--muted); }
.g-top .g-nav a { color: var(--muted); }
.g-top .g-nav a:hover { background: transparent; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 6px; }
.g-top .g-nav a[aria-current=page] { background: transparent; color: var(--ink); font-weight: 700; box-shadow: inset 0 -3px 0 var(--seal); }
.g-top .g-nav a[aria-current=page]:focus-visible { box-shadow: inset 0 -3px 0 var(--seal), var(--focus); }

/* Buttons */
.button { border-width: 1.5px; border-radius: var(--radius-button); font-weight: 600; }
.button.primary { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.button.primary:hover { border-color: var(--ink-soft); background: var(--ink-soft); }
.button.secondary { border-color: var(--line-strong); background: var(--surface); }
.button.secondary:hover { border-color: var(--ink); background: var(--surface-soft); }
.button.amber { border-color: var(--leaf); background: var(--leaf); color: var(--ink); }
.button.amber:hover { border-color: #e1f1c6; background: #e1f1c6; }
.button.ghost-light { border-color: rgba(237, 242, 234, .55); color: var(--zip-text); }
.button.ghost-light:hover { background: rgba(237, 242, 234, .1); }

/* Hero: the words on the left, the seal of this page's download on the right */
.kicker { display: block; margin-bottom: 14px; padding: 0; border: 0; border-radius: 0; background: transparent; font: 600 17px/1.4 var(--body); letter-spacing: 0; text-transform: none; color: var(--seal); }
.g-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 56px; align-items: start; padding: 56px 0 44px; }
.g-hero > * { grid-column: 1; }
.g-hero h1, .g-band h1 { max-width: 17ch; font-size: clamp(36px, 5vw, 68px); font-weight: 700; font-stretch: 116%; line-height: 1.03; letter-spacing: -.025em; }
.lede { margin-top: 18px; font-size: 19px; color: var(--muted); }
.meta { font-size: 15px; }
.g-seal { grid-column: 2; grid-row: 1 / span 6; align-self: center; display: grid; justify-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.g-seal-disc { display: grid; place-items: center; width: 200px; height: 200px; border-radius: var(--radius); background: var(--zip); transition: background-color .18s ease-out; }
.g-seal:hover .g-seal-disc { background: var(--ink-soft); }
.g-seal:focus-visible { box-shadow: none; }
.g-seal:focus-visible .g-seal-disc { box-shadow: var(--focus); }
.seal-art { width: 150px; height: 150px; }
.seal-art .ring { fill: rgba(207, 232, 169, .08); stroke: var(--leaf); stroke-width: 1.4; }
.seal-art .tick { stroke: var(--leaf); stroke-width: 1.8; stroke-linecap: round; }
.seal-art .core { fill: var(--leaf); }
.g-seal-text { display: grid; justify-items: center; gap: 2px; text-align: center; }
.g-seal-name { white-space: nowrap; font: 600 14px/1.35 var(--body); text-decoration: underline; text-decoration-color: var(--seal); text-underline-offset: 3px; overflow-wrap: anywhere; }
.g-seal code { font: 400 13px/1.4 var(--mono); color: var(--muted); }

/* The Workbench overview: one spruce sheet, like the ZIP on the browser app page */
.g-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 56px; margin-top: 32px; padding: 48px 48px 40px; border: 0; border-radius: var(--radius); background: var(--zip); color: var(--zip-text); box-shadow: none; }
.g-band > * { grid-column: 1; }
.g-band .kicker { color: var(--leaf); }
.g-band h1 { color: #fff; }
.g-band .lede { color: #d5e0d7; }
.g-band .meta { color: var(--zip-muted); }
.g-band .g-seal { color: var(--zip-text); }
.g-band .g-seal-disc { background: transparent; width: 200px; height: 200px; }
.g-band .g-seal:hover .g-seal-disc { background: rgba(237, 242, 234, .06); }
.g-band .seal-art { width: 190px; height: 190px; }
.g-band .g-seal-name { text-decoration-color: var(--leaf); }
.g-band .g-seal code { color: var(--zip-muted); }
.g-band .g-seal:focus-visible .g-seal-disc { box-shadow: 0 0 0 2px var(--zip), 0 0 0 4px var(--leaf); }
.g-band a:focus-visible { box-shadow: 0 0 0 2px var(--zip), 0 0 0 4px var(--leaf); }
.g-facts { grid-template-columns: repeat(4, minmax(0, auto)); justify-content: start; gap: 0 40px; max-width: none; margin-top: 32px; padding: 20px 0 0; border: 0; border-top: 1px solid rgba(237, 242, 234, .25); background: transparent; }
.g-facts div { display: grid; gap: 2px; padding: 0; border: 0; }
.g-facts dt { color: var(--zip-muted); font-size: 15px; }
.g-facts dd { text-align: left; font: 700 26px/1.2 var(--heading); font-stretch: 110%; color: #fff; }

/* Screenshots: the app itself carries the page */
.g-hero > .g-seal, .g-band > .g-seal { grid-column: 2; }
.g-shot .frame { width: fit-content; max-width: 100%; border: 0; border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -24px rgba(28, 43, 34, .45); }
.g-shot figcaption { color: var(--muted); }
.phone-frame { padding: 8px; border: 0; border-radius: 28px; background: var(--ink); }
.phone-frame img { border-radius: 20px; }

/* Sections */
.g-section > h2, .section-head h2, .g-split h2 { font-size: clamp(28px, 3.2vw, 42px); font-weight: 700; font-stretch: 110%; line-height: 1.1; letter-spacing: -.02em; }
.section-head { padding-bottom: 0; border-bottom: 0; }
.g-split h3 { font-weight: 700; }
.g-split .card h2 { font-size: clamp(24px, 2.4vw, 30px); }

/* Three points under each lead screenshot, side by side, no numbers */
.g-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; margin-top: 44px; border: 0; }
.g-steps li { display: block; padding: 18px 0 0; border-top: 2px solid var(--ink); }
.g-steps li:first-child { border-top: 2px solid var(--ink); }
.g-steps h3 { font-size: 22px; font-weight: 700; font-stretch: 108%; }
.g-steps p { margin-top: 6px; }

/* Tour: one wide row per guide, the screenshot first */
.tour { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); }
.tour li { border-bottom: 1px solid var(--line); }
.tour a { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 32px 0; }
.tour img { aspect-ratio: 16 / 9; object-position: left top; border: 0; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); background: var(--surface); }
.tour .tour-body { gap: 8px; }
.tour .tour-body::before { content: none; }
.tour h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; font-stretch: 110%; line-height: 1.15; }
.tour p { font-size: 17px; }
.tour .tour-link { margin-top: 6px; font-size: 16px; font-weight: 600; text-decoration-color: var(--seal); }
.tour a:hover h3 { text-decoration-color: var(--seal); }
.tour a:hover img { box-shadow: 0 0 0 2px var(--seal); }

/* Sheets, lists, code */
.card { border: 0; border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.how li::before { border-radius: 50%; background: var(--ink); color: var(--surface); font: 600 15px/1 var(--body); }
.ui { font-weight: 700; }
pre.code { border-radius: var(--radius-button); background: var(--zip); color: var(--zip-text); }
pre.code .comment { color: var(--leaf); }
.checks li::before { border-color: var(--seal); }
.limits li::before { top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.stat-row { border: 0; border-radius: var(--radius-button); background: var(--surface-soft); }
.stat-row div { border-left-color: var(--line); }
.stat-row strong { font: 700 44px/1 var(--heading); font-stretch: 112%; color: var(--seal); }
.downloads { border: 0; border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.dl, .downloads details.more { border-top: 1px solid var(--line); }
.hash { font-family: var(--mono); }
details.more { border: 0; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); }
.downloads details.more { box-shadow: none; }
details.more summary { font-weight: 600; }
details.more[open] summary { border-bottom: 1px solid var(--line); }
.pager a { border: 0; border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.pager a:hover { background: var(--surface); box-shadow: 0 0 0 2px var(--ink); }
.pager span { font: 500 15px/1.4 var(--body); }
.pager strong { font: 700 22px/1.25 var(--heading); font-stretch: 108%; }

/* Command line page */
.paths { border: 0; border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.paths label { font-weight: 600; }
.paths input { border: 1.5px solid var(--line-strong); border-radius: var(--radius-button); background: #fff; font-family: var(--mono); }
.paths input:focus-visible { border-color: var(--seal); }
.cmd .copy { border: 1.5px solid rgba(207, 232, 169, .6); border-radius: 6px; background: var(--zip); color: var(--zip-text); font: 600 14px/1 var(--body); }
.cmd .copy:hover { background: var(--ink-soft); }
.cmd .copy:focus-visible { box-shadow: 0 0 0 2px var(--zip), 0 0 0 4px var(--leaf); }
.cmd-list { border-top: 0; border-bottom: 0; }
.cmd-list li { border-top: 1px solid var(--line); }
.cmd-list li:first-child { border-top: 0; }
.cmd-list .step-no { width: 36px; min-width: 0; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); color: var(--surface); font: 600 16px/1 var(--body); }
.cmd-list h3 { font-size: 22px; font-weight: 700; font-stretch: 108%; }
.result-line { border: 0; border-radius: var(--radius-button); background: var(--seal-soft); color: var(--ink); font: 500 16px/1.5 var(--body); }
.spec div { border-top: 1px solid var(--line); }
.spec dd { font-family: var(--mono); font-weight: 400; }

/* Footer, the same as the app pages */
.g-footer { margin-top: 72px; border-top: 1px solid var(--line); background: var(--paper); color: var(--muted); }
.g-footer .sb-foot { color: var(--ink); }
.g-footer nav { gap: 0 24px; }
.g-footer nav a { font: 600 17px/1.2 var(--body); color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 5px; }
.g-footer p { color: var(--muted); }
.g-footer .g-contact { border-top: 1px solid var(--line); }
.g-contact span { font: 600 14px/1.5 var(--body); letter-spacing: 0; text-transform: none; color: var(--muted); }
.g-contact a { font-weight: 500; text-decoration-color: var(--line-strong); }

@media (max-width: 960px) {
  .g-steps { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .tour a { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 28px 0; }
}
@media (max-width: 880px) {
  .g-hero, .g-band { grid-template-columns: minmax(0, 1fr); }
  .g-hero > .g-seal, .g-band > .g-seal { grid-column: 1; grid-row: auto; justify-self: start; grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; gap: 16px; margin-top: 28px; }
  .g-seal-disc, .g-band .g-seal-disc { width: 96px; height: 96px; }
  .seal-art, .g-band .seal-art { width: 76px; height: 76px; }
  .g-band .g-seal-disc { width: 84px; height: 84px; }
  .g-band .seal-art { width: 84px; height: 84px; }
  .g-seal-text { justify-items: start; text-align: left; }
  .g-seal-name { white-space: normal; }
  .g-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
}
@media (max-width: 720px) {
  .g-hero { padding: 36px 0 28px; }
  .g-hero h1, .g-band h1 { font-size: clamp(32px, 9.6vw, 46px); }
  .g-band { padding: 32px 20px 28px; border-left-width: 0; }
  .g-facts { padding: 16px 0 0; }
  .g-facts div:nth-last-child(2) { border-bottom: 0; }
  .g-facts dd { font-size: 22px; }
  .g-nav { gap: 0 16px; }
  .g-nav a { padding: 8px 0; font-size: 15px; }
  .g-brand { font-size: 15px; letter-spacing: 0; }
  .g-steps { margin-top: 32px; }
  .stat-row strong { font-size: 36px; }
}
@media (max-width: 360px) {
  .g-brand { letter-spacing: 0; }
  .g-nav { gap: 0 12px; }
  .g-nav a { padding: 8px 0; font-size: 14px; }
  .g-band { padding: 28px 14px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .g-seal-disc { transition: none; }
}
