/* IntegrityTwin Desktop's website. Plain CSS: tokens, then the layout, then the parts. */

@font-face { font-family: 'Plex Sans'; src: url('../fonts/IBMPlexSans-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Sans'; src: url('../fonts/IBMPlexSans-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Plex Sans'; src: url('../fonts/IBMPlexSans-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('../fonts/IBMPlexMono-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('../fonts/IBMPlexMono-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }

/* ------------------------------------------------------------------ tokens */

:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --ink: #142238;
  --ink-2: #34445c;
  --muted: #5f6d82;
  --faint: #8a95a6;
  --line: #d8dee7;
  --line-strong: #b9c3d1;
  --grid: rgba(20, 34, 56, 0.045);
  --grid-major: rgba(20, 34, 56, 0.075);
  --accent: #f4510b;
  --accent-ink: #c2410c;
  --accent-soft: rgba(244, 81, 11, 0.09);
  --navy: #142238;
  --ok: #1f7a4d;
  --shadow: 0 1px 2px rgba(20, 34, 56, 0.06), 0 8px 24px rgba(20, 34, 56, 0.08);
  --sans: 'Plex Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'Plex Mono', 'Cascadia Mono', Consolas, monospace;
  --wordmark: Georgia, 'Times New Roman', serif;
  --max: 1180px;
  --radius: 6px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #0b111c;
    --surface: #111a29;
    --surface-2: #162133;
    --ink: #e4e9f1;
    --ink-2: #bcc6d4;
    --muted: #8d99ab;
    --faint: #66738a;
    --line: #223049;
    --line-strong: #31425f;
    --grid: rgba(148, 170, 205, 0.045);
    --grid-major: rgba(148, 170, 205, 0.075);
    --accent: #ff6a2b;
    --accent-ink: #ff8a57;
    --accent-soft: rgba(255, 106, 43, 0.12);
    --ok: #4cc38a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0b111c;
  --surface: #111a29;
  --surface-2: #162133;
  --ink: #e4e9f1;
  --ink-2: #bcc6d4;
  --muted: #8d99ab;
  --faint: #66738a;
  --line: #223049;
  --line-strong: #31425f;
  --grid: rgba(148, 170, 205, 0.045);
  --grid-major: rgba(148, 170, 205, 0.075);
  --accent: #ff6a2b;
  --accent-ink: #ff8a57;
  --accent-soft: rgba(255, 106, 43, 0.12);
  --ok: #4cc38a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* ------------------------------------------------------------------ base */

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); font-weight: 600; line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
code, kbd, pre, .mono { font-family: var(--mono); font-size: 0.92em; }
code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 0.05em 0.35em; color: var(--ink); }
pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; overflow-x: auto; color: var(--ink); line-height: 1.5; }
pre code { background: none; border: 0; padding: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border: 1px solid var(--line); }
.skip:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

/* The drafting grid, behind the hero and the page heads. */
.grid-bg {
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 30px; height: 30px; }
.brand .word { font: 700 1.3rem/1 var(--wordmark); letter-spacing: -0.03em; color: var(--ink); }
.brand .word b { color: var(--accent); font-weight: 700; }
.brand .ed { font: 500 0.68rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 3px; padding: 3px 5px; margin-left: 2px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 0.94rem; padding: 8px 11px; border-radius: 4px; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current='page'] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav .btn { margin-left: 10px; }

.theme-toggle, .menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer;
}
.theme-toggle:hover, .menu-toggle:hover { border-color: var(--line-strong); color: var(--ink); }
.theme-toggle svg, .menu-toggle svg { width: 18px; height: 18px; }
.menu-toggle { display: none; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; gap: 2px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 8px; }
  .nav a[aria-current='page'] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
  .site-header .theme-toggle { order: 3; }
}

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; gap: 8px; font: 500 0.95rem/1 var(--sans); text-decoration: none;
  padding: 12px 18px; border-radius: 4px; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #d9470a; color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-small { padding: 8px 13px; font-size: 0.88rem; }
.btn-large { padding: 15px 24px; font-size: 1.02rem; }

/* ------------------------------------------------------------------ labels and figures */

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font: 500 0.75rem/1 var(--mono); text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--accent-ink); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; }

.figure { margin: 0; }
.figure .frame {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; position: relative;
}
.figure .frame .bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.figure .frame .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.figure .frame .bar span { margin-left: 8px; font: 400 0.72rem/1 var(--mono); color: var(--muted); }
.figure figcaption { display: flex; gap: 10px; margin-top: 12px; font-size: 0.88rem; color: var(--muted); }
.figure figcaption b { font: 500 0.75rem/1.7 var(--mono); color: var(--ink); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }
.zoomable { cursor: zoom-in; }

/* Corner ticks, as on a drawing's border. */
.ticks { position: relative; }
.ticks::before, .ticks::after {
  content: ''; position: absolute; width: 14px; height: 14px; border-color: var(--accent); border-style: solid; pointer-events: none;
}
.ticks::before { top: -7px; left: -7px; border-width: 2px 0 0 2px; }
.ticks::after { bottom: -7px; right: -7px; border-width: 0 2px 2px 0; }

/* ------------------------------------------------------------------ hero */

.hero { border-bottom: 1px solid var(--line); padding: 72px 0 80px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 400 0.8rem/1.4 var(--mono); color: var(--muted); }
.hero .facts span::before { content: '▪'; color: var(--accent); margin-right: 7px; }
@media (max-width: 960px) {
  .hero { padding: 48px 0 56px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

/* ------------------------------------------------------------------ sections */

.section { padding: 88px 0; border-bottom: 1px solid var(--line); }
.section.alt { background: var(--surface); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p { font-size: 1.06rem; color: var(--muted); }

.page-head { padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.page-head p { font-size: 1.1rem; color: var(--muted); max-width: 46em; margin: 0; }

/* The strip of figures under the hero. */
.spec-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }
.spec-strip div { padding: 22px 24px; border-left: 1px solid var(--line); }
.spec-strip div:first-child { border-left: 0; }
.spec-strip b { display: block; font: 500 1.7rem/1.1 var(--mono); color: var(--ink); letter-spacing: -0.02em; }
.spec-strip span { font-size: 0.86rem; color: var(--muted); }
@media (max-width: 760px) {
  .spec-strip { grid-template-columns: 1fr 1fr; }
  .spec-strip div:nth-child(3) { border-left: 0; }
  .spec-strip div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* A feature told beside its screenshot, alternating sides. */
.feature-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; margin-bottom: 96px; }
.feature-row:last-child { margin-bottom: 0; }
.feature-row.flip > :first-child { order: 2; }
.feature-row .num { font: 500 0.78rem/1 var(--mono); color: var(--faint); letter-spacing: 0.1em; display: block; margin-bottom: 10px; }
.feature-row ul { padding: 0; margin: 18px 0 0; list-style: none; }
.feature-row li { padding: 7px 0 7px 26px; position: relative; border-top: 1px dashed var(--line); font-size: 0.97rem; }
.feature-row li::before { content: ''; position: absolute; left: 2px; top: 15px; width: 12px; height: 2px; background: var(--accent); }
@media (max-width: 960px) {
  .feature-row, .feature-row.flip { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-bottom: 72px; }
  .feature-row.flip > :first-child { order: 0; }
}

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.section.alt .card { background: var(--bg); }
.card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.04rem; }
.card h3 svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.card p { font-size: 0.94rem; color: var(--muted); margin: 0; }
.card .ref { display: block; margin-top: 12px; font: 400 0.75rem/1.5 var(--mono); color: var(--faint); }

/* ------------------------------------------------------------------ gallery and lightbox */

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px; }
.gallery .figure .frame img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; width: 100%; }
.gallery-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.gallery-filter button {
  font: 500 0.85rem/1 var(--sans); padding: 9px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer;
}
.gallery-filter button[aria-pressed='true'] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@media (max-width: 420px) { .gallery { grid-template-columns: 1fr; } }

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(8, 12, 20, 0.92); padding: 56px 24px 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1600px, 100%); max-height: calc(100vh - 140px); width: auto; border: 1px solid #31425f; border-radius: 4px; background: #111a29; }
.lightbox p { color: #c6cfdc; margin: 14px 0 0; font-size: 0.92rem; text-align: center; max-width: 60em; }
.lightbox p b { font: 500 0.78rem/1 var(--mono); color: #ff8a57; text-transform: uppercase; letter-spacing: 0.08em; margin-right: 10px; }
.lightbox button {
  position: absolute; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; width: 44px; height: 44px; border-radius: 4px; cursor: pointer; font-size: 20px;
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.16); }
.lightbox .close { top: 16px; right: 16px; }
.lightbox .prev { left: 16px; top: 50%; }
.lightbox .next { right: 16px; top: 50%; }
@media (max-width: 700px) { .lightbox .prev, .lightbox .next { top: auto; bottom: 16px; } }

/* ------------------------------------------------------------------ tables */

.spec { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { width: 32%; font: 500 0.8rem/1.6 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--surface-2); }
.spec td { color: var(--ink); }
.table-scroll { overflow-x: auto; }

/* ------------------------------------------------------------------ download */

.download-panel { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .download-panel { grid-template-columns: minmax(0, 1fr); } }
.download-box { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.download-box .file { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.download-box .file img { width: 56px; height: 56px; }
.download-box .file b { display: block; color: var(--ink); font-size: 1.15rem; }
.download-box .file span { font: 400 0.85rem/1.4 var(--mono); color: var(--muted); }
.hash { display: flex; gap: 8px; align-items: stretch; margin-top: 8px; }
.hash code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 0.78rem; padding: 8px 10px; line-height: 1.5; }
.hash button { flex: none; font: 500 0.8rem/1 var(--sans); padding: 0 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); border-radius: 4px; cursor: pointer; }
.hash button:hover { color: var(--ink); border-color: var(--ink-2); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 26px 52px; }
.steps > li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border: 1px solid var(--line-strong);
  border-radius: 4px; display: grid; place-items: center; font: 500 0.8rem/1 var(--mono); color: var(--accent-ink); background: var(--surface);
}
.steps > li::after { content: ''; position: absolute; left: 17px; top: 40px; bottom: 6px; width: 1px; background: var(--line); }
.steps > li:last-child::after { display: none; }
.steps h3 { margin: 5px 0 6px; font-size: 1.02rem; }
.steps p { margin: 0 0 6px; font-size: 0.96rem; }

.note { border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 14px 18px; border-radius: 4px; font-size: 0.94rem; color: var(--ink-2); margin: 20px 0; }
.note b { color: var(--ink); }

/* ------------------------------------------------------------------ prose (docs, release notes, legal) */

.prose { max-width: 760px; }
.prose h2 { margin-top: 2em; font-size: 1.5rem; padding-top: 0.4em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.3em 0; }
.prose .meta { font: 400 0.82rem/1.5 var(--mono); color: var(--muted); }

.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding: 56px 0 88px; }
.docs nav { position: sticky; top: 88px; align-self: start; font-size: 0.92rem; }
.docs nav b { display: block; font: 500 0.72rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); margin: 0 0 10px; }
.docs nav a { display: block; padding: 5px 0 5px 12px; color: var(--ink-2); text-decoration: none; border-left: 1px solid var(--line); }
.docs nav a:hover { color: var(--ink); border-left-color: var(--ink-2); }
@media (max-width: 860px) { .docs { grid-template-columns: minmax(0, 1fr); gap: 24px; } .docs nav { position: static; } }

.release { border-top: 1px solid var(--line); padding: 36px 0; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; }
.release .ver { font: 500 1.3rem/1.2 var(--mono); color: var(--ink); }
.release .ver small { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 6px; }
.tag { display: inline-block; font: 500 0.7rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; padding: 5px 7px; border-radius: 3px; border: 1px solid var(--accent); color: var(--accent-ink); margin-top: 10px; }
@media (max-width: 700px) { .release { grid-template-columns: 1fr; gap: 12px; } }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 500; color: var(--ink); font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 16px; font: 400 1.4rem/1 var(--mono); color: var(--accent); }
.faq details[open] summary::after { content: '−'; }
.faq details > div { padding: 0 0 20px; max-width: 760px; }
.faq h2 { margin-top: 48px; font-size: 1.1rem; font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }

/* Call to action band */
.cta { padding: 72px 0; background: var(--navy); color: #c9d3e1; }
.cta h2 { color: #fff; }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta p { margin: 0; max-width: 40em; }
.cta .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.cta .btn-secondary:hover { border-color: #fff; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 32px; }

/* ------------------------------------------------------------------ footer: a drawing's title block */

.site-footer { padding: 56px 0 40px; font-size: 0.92rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; margin-bottom: 40px; }
.site-footer h4 { font: 500 0.74rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 7px 0; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--accent-ink); text-decoration: underline; }
.site-footer .about p { color: var(--muted); max-width: 26em; margin-top: 14px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .about { grid-column: 1 / -1; } }

.title-block { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; border: 1px solid var(--line-strong); font: 400 0.78rem/1.4 var(--mono); }
.title-block div { padding: 10px 12px; border-left: 1px solid var(--line-strong); color: var(--ink-2); }
.title-block div:first-child { border-left: 0; }
.title-block small { display: block; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); margin-bottom: 2px; }
@media (max-width: 760px) {
  .title-block { grid-template-columns: 1fr 1fr; }
  .title-block div:first-child { grid-column: 1 / -1; }
  .title-block div { border-top: 1px solid var(--line-strong); }
  .title-block div:first-child { border-top: 0; }
  .title-block div:nth-child(2n) { border-left: 0; }
}

/* ------------------------------------------------------------------ 404 */

.not-found { text-align: center; padding: 120px 0; }
.not-found .code { font: 500 5rem/1 var(--mono); color: var(--accent); letter-spacing: -0.04em; }

@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a, .gallery-filter button { transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
}

@media print {
  .site-header, .site-footer, .cta, .lightbox { display: none; }
  body { background: #fff; color: #000; }
}
.section-tight { padding: 48px 0; }

/* Small screens: label-and-value tables stack, and the download box takes less padding. */
@media (max-width: 600px) {
  .spec th, .spec td { display: block; width: auto; }
  .spec th { border-bottom: 0; padding-bottom: 2px; background: none; }
  .download-box { padding: 22px 18px; }
  .download-box .btn { width: 100%; justify-content: center; }
  .hero .actions .btn { width: 100%; justify-content: center; }
}
