@font-face { font-family: "Archivo"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/archivo-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/archivo-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 800; font-style: normal; font-display: swap; src: url(fonts/archivo-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/ibm-plex-mono-latin-600-normal.woff2) format("woff2"); }

:root {
  --paper: #f4f1ea;
  --ink: #111;
  --muted: #4a4740;
  --plate: #fff;
  --plate-edge: #111;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121212;
    --ink: #ece8df;
    --muted: #b9b4a8;
    --plate: #fff;
    --plate-edge: #6b675f;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--muted); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

code, pre { font-family: var(--mono); }
code { font-size: 0.9em; overflow-wrap: anywhere; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px 72px;
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.stack { display: flex; flex-direction: column; gap: 72px; }

.label {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1, h2 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
h2 { font-size: clamp(34px, 6vw, 44px); }
p { margin: 0; }

/* header strip */
.strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 20px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 12px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.strip strong { font-weight: 600; }
.strip nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 48px; }
.hero-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { font-size: clamp(76px, 16vw, 120px); line-height: 0.9; letter-spacing: -0.04em; }
.hero-lede { font-size: clamp(19px, 2.6vw, 24px); line-height: 1.35; max-width: 30ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.button {
  display: inline-block;
  padding: 12px 20px;
  border: 2px solid var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.button.solid { background: var(--ink); color: var(--paper); }
.button.solid:hover { background: var(--muted); border-color: var(--muted); color: var(--paper); }
.hero-device { flex: 1 1 360px; min-width: 0; max-width: 560px; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-shot, .hero-shot picture { width: 100%; }

/* CARRY / CONSOLE, set separately for the hero device and the screens; no attribute means CARRY */
.m-console { display: none; }
html[data-hero="console"] .hero-shot .m-carry,
html[data-screens="console"] .grid .m-carry { display: none; }
html[data-hero="console"] .hero-shot .m-console,
html[data-screens="console"] .grid .m-console { display: block; }

/* site.js fades the hero or the gallery out, swaps the layout, then fades it back in */
.is-fading { opacity: 0; }

.mode-switch { display: inline-flex; border: 2px solid var(--ink); font-family: var(--mono); font-size: 13px; }
.mode-switch button {
  border: 0;
  margin: 0;
  padding: 9px 14px;
  min-height: 44px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.mode-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* note */
.note { border: 2px solid var(--ink); padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.note p:last-child { font-size: 19px; }

/* screens */
.section { display: flex; flex-direction: column; gap: 24px; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 12px;
}
.muted { color: var(--muted); }

.grid {
  display: grid;
  gap: 28px 24px;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
}
html[data-screens="console"] .grid { grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
.grid figure { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.grid img { background: var(--plate); border: 1px solid var(--plate-edge); width: 100%; }
.grid figcaption { font-family: var(--mono); font-size: 13px; line-height: 1.4; }
.grid figcaption b { font-weight: 600; letter-spacing: 0.04em; }

/* install */
.install { max-width: 820px; }
.route { display: flex; flex-direction: column; gap: 12px; border-top: 2px solid var(--ink); padding-top: 16px; }
.route h3 { margin: 0; font-size: 22px; }
.route h4 { margin: 12px 0 0; font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.route ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
pre {
  margin: 0;
  padding: 16px 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* footer */
footer { border-top: 2px solid var(--ink); padding-top: 14px; font-size: 14px; display: flex; flex-direction: column; gap: 6px; max-width: 820px; }
.colophon { margin-top: 20px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 10px 0; text-align: center; font-family: var(--mono); font-size: 11px; line-height: 1.7; letter-spacing: 0.08em; text-transform: uppercase; }
.colophon a { font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-shot, .grid { transition: opacity 350ms ease; }
}

@media (min-width: 600px) {
  .wrap { padding-inline: 24px; padding-top: 32px; }
}
