:root {
  color-scheme: light;
  --bg: #f0f2f1;
  --surface: #fbfcfa;
  --surface-2: #e4e9e7;
  --ink: #172126;
  --muted: #4c5d63;
  --line: #a7b5b8;
  --accent: #a84814;
  --accent-ink: #fff;
  --image-frame: #d9e0df;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #11191e;
  --surface: #1a252b;
  --surface-2: #26343b;
  --ink: #eef2ef;
  --muted: #b4c3c6;
  --line: #53656c;
  --accent: #f0a068;
  --accent-ink: #21170f;
  --image-frame: #0b1217;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; }
img { max-width: 100%; }
button { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(100% - 64px, 1440px); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--bg); }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--ink); background: var(--bg); }
.header-inner { min-height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.brand { display: inline-flex; gap: 10px; align-items: center; width: max-content; font-size: 18px; font-weight: 820; letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
.brand img { width: 34px; height: 34px; }
.main-nav { display: flex; gap: 32px; }
.main-nav a { text-decoration: none; text-transform: uppercase; letter-spacing: .09em; font: 750 11px/1.2 ui-monospace, "SF Mono", Menlo, monospace; }
.main-nav a:hover, .site-footer a:hover { color: var(--accent); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.utility-button, .header-download { min-height: 36px; padding: 8px 11px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; text-transform: uppercase; font: 750 11px/1.2 ui-monospace, "SF Mono", Menlo, monospace; white-space: nowrap; }
.utility-button:hover { background: var(--ink); color: var(--bg); }
a.utility-button { display: inline-flex; align-items: center; text-decoration: none; }
.theme-indicator { display: inline-block; width: 7px; height: 7px; margin-left: 5px; border-radius: 50%; background: var(--accent); }
.header-download { display: inline-flex; align-items: center; gap: 15px; text-decoration: none; background: var(--ink); color: var(--bg); }
.header-download:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.hero { padding-top: 26px; }
.hero-kicker, .chapter, .product-type, .screen-topline, .screen-caption, .product-figure figcaption, .fact-line, .fine-print, .inline-detail, .license-steps > div > span {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.hero-kicker { display: flex; justify-content: space-between; gap: 16px; padding: 0 0 13px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, .5fr); gap: 70px; align-items: end; padding: 55px 0 64px; }
.product-type { margin: 0 0 23px; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 800; }
.hero .hero-title { max-width: 12ch; margin: 0; font-size: clamp(4.2rem, 6.5vw, 7.4rem); font-weight: 850; line-height: 1; letter-spacing: -.045em; word-spacing: .18em; }
.hero .hero-title em { color: var(--accent); font-style: normal; }
.hero-aside { border-left: 1px solid var(--line); padding-left: 24px; }
.hero-aside p { margin: 0 0 25px; max-width: 43ch; font-size: clamp(18px, 1.45vw, 23px); line-height: 1.43; letter-spacing: -.02em; }
.button-primary { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; min-width: 250px; min-height: 55px; padding: 13px 18px; background: var(--accent); color: var(--accent-ink); font-weight: 800; text-decoration: none; }
.button-primary:hover { filter: brightness(1.08); }
.hero-aside small { display: block; margin-top: 12px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.hero-screen { padding: 20px 0 16px; background: var(--image-frame); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.screen-topline { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; padding: 0 0 14px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.screen-topline span:last-child { text-align: right; }
.screen-topline > span:nth-child(2) { color: var(--accent); font-size: 17px; line-height: 10px; }
.screen-link, .product-figure a { display: block; cursor: zoom-in; }
.screen-link img { display: block; width: 100%; height: auto; }
.screen-caption { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }

.command-band { border-bottom: 1px solid var(--ink); }
.command-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.command-inner > div { display: flex; align-items: center; gap: 16px; min-height: 100px; padding: 20px 18px; border-right: 1px solid var(--line); }
.command-inner > div:first-child { border-left: 1px solid var(--line); }
.command-inner kbd { color: var(--accent); font: 830 clamp(24px, 2vw, 35px)/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: -.07em; }
.command-inner span { max-width: 17ch; font-size: 13px; line-height: 1.25; font-weight: 700; }

.story-section { border-bottom: 1px solid var(--ink); padding: clamp(84px, 9vw, 144px) 0; }
.story-section:nth-of-type(even) { background: var(--surface); }
.story-grid { display: grid; grid-template-columns: minmax(0, .43fr) minmax(0, .57fr); gap: clamp(42px, 6vw, 110px); align-items: center; }
.story-grid.reverse { grid-template-columns: minmax(0, .57fr) minmax(0, .43fr); }
.chapter { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.story-copy h2, .network-section h2, .license-section h2 { max-width: 12ch; margin: 22px 0 28px; font-size: clamp(3.1rem, 5vw, 6.1rem); font-weight: 830; line-height: 1.02; letter-spacing: -.045em; word-spacing: .16em; }
.story-copy > p, .network-section p { max-width: 49ch; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.5; color: var(--muted); margin: 0 0 26px; }
.story-copy .fine-print { margin-top: 25px; font: 600 12px/1.6 ui-monospace, "SF Mono", Menlo, monospace; }
.fact-line { display: grid; grid-template-columns: 135px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.65; }
.fact-line:last-of-type { border-bottom: 1px solid var(--line); }
.fact-line > span { color: var(--accent); font-weight: 800; text-transform: uppercase; }
.fact-line strong { font-weight: 650; }
.product-figure { margin: 0; }
.product-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: var(--image-frame); }
.product-figure figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.inline-detail { display: flex; align-items: center; gap: 18px; margin-top: 40px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; text-transform: uppercase; }
.inline-detail > span, .inline-detail kbd { color: var(--accent); font-size: 13px; font-weight: 800; }
.inline-detail strong { font-weight: 750; }

.network-section { background: var(--surface-2); }
.network-section h2 { max-width: 11ch; }

.license-section { padding: 120px 0; background: var(--surface); border-bottom: 1px solid var(--ink); }
.license-grid { display: grid; grid-template-columns: .43fr .57fr; gap: 100px; }
.license-section h2 { max-width: 10ch; }
.license-steps { border-top: 2px solid var(--ink); }
.license-steps > div { display: grid; grid-template-columns: 115px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.license-steps > div > span { color: var(--accent); font-size: 12px; font-weight: 800; }
.license-steps p { margin: 0; color: var(--muted); }
.license-steps .button-primary { margin-top: 30px; }

.closing-section { padding: 85px 0; background: var(--accent); color: var(--accent-ink); }
.closing-inner { display: flex; align-items: end; justify-content: space-between; gap: 35px; }
.closing-section .chapter { color: inherit; opacity: .75; }
.closing-section h2 { margin: 20px 0 0; font-size: clamp(3.4rem, 8vw, 8rem); line-height: .92; letter-spacing: -.08em; }
.closing-section a { display: inline-flex; min-width: 240px; justify-content: space-between; gap: 24px; padding: 16px 19px; border: 1px solid currentColor; font-weight: 800; text-decoration: none; white-space: nowrap; }
.closing-section a:hover { background: var(--accent-ink); color: var(--accent); }
.site-footer { padding: 50px 0 75px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; }
.site-footer strong { font-size: 22px; letter-spacing: -.04em; }
.site-footer p { margin: 6px 0 12px; color: var(--muted); font-size: 13px; }
.site-footer small { display: block; margin-top: 18px; color: var(--muted); }
.site-footer nav { display: flex; gap: 26px; align-items: start; flex-wrap: wrap; font-size: 13px; font-weight: 750; }
.site-footer nav a { text-decoration: none; }
.site-footer a[href^="mailto:"] { color: var(--accent); font-weight: 750; }

@media (max-width: 1120px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-aside { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; }
  .hero-aside p { max-width: 62ch; }
  .story-grid, .story-grid.reverse, .license-grid { grid-template-columns: 1fr; gap: 40px; }
  .story-grid.reverse .story-copy { grid-row: 1; }
  .story-copy h2 { max-width: 15ch; }
  .product-figure { max-width: 900px; }
}
@media (max-width: 680px) {
  .wrap { width: min(100% - 32px, 1440px); }
  .header-inner { min-height: 64px; gap: 8px; }
  .brand { font-size: 15px; gap: 6px; }
  .brand img { width: 27px; height: 27px; }
  .header-actions { gap: 5px; }
  .utility-button, .header-download { font-size: 10px; padding: 7px; min-height: 33px; }
  .theme-indicator { display: none; }
  .header-download { gap: 5px; }
  .hero { padding-top: 17px; }
  .hero-kicker { font-size: 9px; }
  .hero-grid { padding: 34px 0 40px; gap: 28px; }
  .product-type { font-size: 10px; margin-bottom: 16px; }
  .hero .hero-title { max-width: 12ch; font-size: clamp(3.15rem, 11.9vw, 5.8rem); line-height: 1.02; }
  .hero-aside p { font-size: 18px; }
  .button-primary { width: 100%; }
  .hero-screen { padding: 10px 0; }
  .screen-topline, .screen-caption { font-size: 9px; }
  .screen-caption span:first-child { max-width: 18ch; }
  .command-inner { grid-template-columns: repeat(2, 1fr); }
  .command-inner > div { min-height: 82px; padding: 12px 8px; gap: 10px; border-bottom: 1px solid var(--line); }
  .command-inner > div:nth-child(2n) { border-right: 1px solid var(--line); }
  .command-inner kbd { font-size: 21px; }
  .command-inner span { font-size: 11px; }
  .story-section, .network-section, .license-section { padding: 68px 0; }
  .story-copy h2, .network-section h2, .license-section h2 { font-size: clamp(2.6rem, 11vw, 4.3rem); margin: 16px 0 22px; }
  .story-copy > p, .network-section p { font-size: 16px; }
  .fact-line { grid-template-columns: 1fr; gap: 5px; }
  .product-figure figcaption { font-size: 9px; }
  .license-steps > div { grid-template-columns: 72px 1fr; gap: 10px; padding: 18px 0; font-size: 13px; }
  .license-steps > div > span { font-size: 10px; }
  .closing-section { padding: 68px 0; }
  .closing-inner, .footer-inner { flex-direction: column; align-items: stretch; }
  .closing-section h2 { font-size: clamp(3.3rem, 13vw, 5rem); }
  .closing-section a { width: 100%; }
  .site-footer nav { gap: 14px 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.footer-more { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.footer-more strong { display: block; margin-bottom: 8px; font-size: 12px; letter-spacing: 0; }
.footer-more div { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-more a { color: var(--muted); text-decoration: none; }
