/* GameMachine site styles. One stylesheet for every page. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/bricolage-grotesque-b86257e5.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/hanken-grotesk-7b3229a0.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #f3f4f1;
  --panel: #ffffff;
  --ink: #14171a;
  --text: #333a41;
  --muted: #565e66;
  --line: #c9cdd0;
  --line-soft: #e3e6e3;
  --accent: #8a1c2b;
  --accent-dark: #6d1522;
  --todo: #fff1b8;
  --display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--ground);
}
img, svg, video { max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: 12px; background: var(--ink); color: #fff; padding: 12px 16px; z-index: 10; }
.skip:focus { left: 12px; color: #fff; }
.wrap { max-width: 1280px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 48px); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0; }
h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
h3 { font-size: 18px; line-height: 1.3; }
p { margin: 0 0 14px; }
.accent { color: var(--accent); }
.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.eyebrow { color: var(--accent); }
.lead { font-size: 18px; color: var(--text); max-width: 40em; margin: 0; }
.sub { color: var(--text); max-width: 44em; margin: -16px 0 24px; }
.small { font-size: 14px; color: var(--muted); }
mark.todo, .todo { background: var(--todo); color: var(--ink); padding: 0 3px; }

/* ---------- Header ---------- */
.site-header { border-top: 6px solid var(--accent); border-bottom: 1px solid var(--ink); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 32px; padding-block: 10px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 23px; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); padding: 8px 0; }
.logo:hover { color: var(--ink); }
.logo b { font-weight: 800; }
.logo i { font-style: normal; font-weight: 500; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 26px; }
.nav a { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; padding: 14px 0 12px; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.chip { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; background: var(--accent); color: #fff; white-space: nowrap; }
.chip.is-out { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.nav-toggle { display: none; font: 600 12px var(--body); letter-spacing: 0.08em; text-transform: uppercase; min-height: 44px; padding: 0 14px; background: transparent; border: 2px solid var(--ink); color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.nav-toggle[aria-expanded="true"] { background: var(--ink); color: #fff; }
@media (max-width: 860px) {
  .js .nav-toggle { display: inline-flex; align-items: center; }
  .js .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 8px; }
  .js .nav.is-open { display: flex; }
  .js .nav a { padding: 14px 0; border-bottom: 0; border-top: 1px solid var(--line); }
  .js .nav .chip { align-self: flex-start; margin-top: 10px; }
}

/* ---------- Layout blocks ---------- */
.block { padding-bottom: 72px; }
.page-head { padding-block: 48px 40px; display: flex; flex-direction: column; gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); gap: 24px; }
.panel { background: var(--panel); border: 1px solid var(--line); padding: 24px; }
.panel-strong { border: 2px solid var(--accent); }
.panel > :last-child { margin-bottom: 0; }

/* ---------- Hero and order panel ---------- */
.hero { padding-block: 48px 64px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.hero-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.order { flex: 1 1 380px; min-width: 0; background: var(--panel); border: 2px solid var(--accent); padding: 28px; display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 1084px) { .order { position: sticky; top: 16px; } }
/* Narrower than that, the order panel moves up to sit above the specification table. */
@media (max-width: 1083px) {
  .hero { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 22px; }
  .hero-main { display: contents; }
  .hero .order { order: 2; flex: none; margin-top: 10px; }
  .hero .spec { order: 3; margin-top: 18px; }
}
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.choice { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px 16px; border: 2px solid var(--line); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); }
.choice input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--accent); }
.buy { display: flex; flex-direction: column; gap: 14px; }
.price-row { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.price { font-family: var(--display); font-weight: 700; font-size: 48px; line-height: 1; letter-spacing: -0.03em; }
.low-stock { margin: 0; font-size: 14px; font-weight: 600; color: var(--accent); }
.kv { margin: 0; display: flex; flex-direction: column; font-size: 14px; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); }
.kv > div:last-child { border-bottom: 1px solid var(--line); }
.kv dt { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.kv dd { margin: 0; text-align: right; }
.notice { margin: 0; padding: 14px 16px; background: var(--ground); font-size: 15px; }
.banner { margin: 0 0 24px; padding: 14px 16px; background: var(--panel); border: 2px dashed var(--accent); font-size: 15px; }

/* ---------- Buttons and forms ---------- */
.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; padding: 0 22px; font: 700 17px var(--body); text-align: center; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--ground); color: var(--ink); }
.btn-inline { display: inline-flex; width: auto; }
.field { display: flex; flex-direction: column; gap: 6px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.field label { font-size: 14px; font-weight: 600; }
.field .hint { font-size: 13px; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], textarea, select {
  font: inherit; width: 100%; min-height: 52px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 0; background: #fff; color: var(--ink);
}
textarea { padding: 12px 14px; min-height: 140px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-error { margin: 0; font-size: 14px; font-weight: 600; color: var(--accent); }
.form-ok { margin: 0; padding: 14px 16px; background: var(--panel); border: 2px solid var(--accent); font-weight: 600; }
.notify-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.notify-form .field { flex: 1 1 220px; }
.notify-form .btn { width: auto; flex: 0 0 auto; }
.notify-form .form-error, .notify-form .consent { flex: 1 0 100%; margin: 0; }

/* ---------- Spec table ---------- */
.spec { width: 100%; border-collapse: collapse; margin-top: 10px; }
.spec caption { text-align: left; padding-bottom: 10px; }
.spec tr { border-top: 1px solid var(--line); }
.spec tr:first-child { border-top: 2px solid var(--accent); }
.spec tr:last-child { border-bottom: 2px solid var(--accent); }
.spec th { width: 34%; text-align: left; padding: 14px 16px 14px 0; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.spec td { padding: 14px 0; font-weight: 600; font-size: 17px; }

/* ---------- Photo placeholders and gallery ---------- */
.ph { position: relative; aspect-ratio: 3 / 2; border: 1px dashed var(--muted); background: repeating-linear-gradient(45deg, #fff 0 14px, #eceeea 14px 15px); display: flex; align-items: flex-end; padding: 16px; }
.ph > span { padding: 8px 12px; background: #fff; border: 1px solid var(--line); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ph.wide { aspect-ratio: 16 / 9; }
.ph.square { aspect-ratio: 1; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(64px, 1fr); gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.thumb { aspect-ratio: 1; min-width: 64px; padding: 0; border: 2px solid var(--line); background: repeating-linear-gradient(45deg, #fff 0 8px, #eceeea 8px 9px); font: 600 11px var(--body); color: var(--muted); cursor: pointer; }
.thumb[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.dims { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.dims-draw { display: flex; align-items: flex-end; gap: clamp(16px, 4vw, 40px); max-width: 520px; }
.dim { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dim-box { border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.dim p { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-align: center; border-top: 1px solid var(--ink); padding-top: 6px; }
.dim-side { flex: 443 1 0; } .dim-side .dim-box { aspect-ratio: 443 / 321.5; }
.dim-front { flex: 194 1 0; } .dim-front .dim-box { aspect-ratio: 194 / 321.5; }

/* ---------- Lists ---------- */
.checks, .crosses { margin: 0; padding: 0; list-style: none; }
.checks li, .crosses li { position: relative; padding: 11px 0 11px 30px; border-top: 1px solid var(--line-soft); }
.checks li::before, .crosses li::before { content: ""; position: absolute; left: 0; top: 14px; width: 18px; height: 18px; background: no-repeat center / contain; }
.checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%238a1c2b' stroke-width='2.4'%3E%3Cpath d='M3 9.5l4 4 8-9'/%3E%3C/svg%3E"); }
.crosses li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%2314171a' stroke-width='2.4'%3E%3Cpath d='M4 4l10 10M14 4L4 14'/%3E%3C/svg%3E"); }
.panel h3.label { margin-bottom: 12px; color: var(--ink); }

/* ---------- Data tables ---------- */
.table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); }
.data { width: 100%; min-width: 640px; border-collapse: collapse; }
.data thead tr { border-bottom: 2px solid var(--accent); }
.data th { text-align: left; padding: 12px 16px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.data td { padding: 14px 16px; vertical-align: top; }
.data tbody tr + tr { border-top: 1px solid var(--line-soft); }
.data td:first-child { font-weight: 600; }
.data .note { color: var(--muted); }
.verdict { font-weight: 700; }
.data .verdict { white-space: nowrap; }
.verdict.fits { color: var(--accent); }
.fit-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 24px; margin-bottom: 16px; }
.fit-tools .field { flex: 1 1 320px; max-width: 520px; }
.fit-results { list-style: none; margin: 14px 0 0; padding: 0; background: var(--panel); border: 1px solid var(--line); }
.fit-results li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 16px; }
.fit-results li + li { border-top: 1px solid var(--line-soft); }

/* ---------- Figures ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--accent); }
.tile { padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.num.todo { display: inline-block; }
.tile .num { margin: 10px 0 0; font-family: var(--display); font-weight: 700; font-size: 36px; line-height: 1.1; letter-spacing: -0.03em; color: var(--accent); }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.steps > li { counter-increment: step; background: var(--panel); border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.steps > li::before { content: counter(step, decimal-leading-zero); font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1; color: var(--accent); }
.steps strong { font-size: 18px; }
.steps span { font-size: 15px; color: var(--text); }
.guide-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: 24px; }
.guide-steps > li { counter-increment: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; background: var(--panel); border: 1px solid var(--line); padding: 24px; }
.guide-steps h2 { font-size: 26px; margin-bottom: 10px; }
.guide-steps h2::before { content: counter(step, decimal-leading-zero) "  "; color: var(--accent); white-space: pre; }
.guide-steps ul { margin: 0; padding-left: 20px; color: var(--text); }
.guide-steps li li { margin-bottom: 6px; }

/* ---------- Video ---------- */
.video { font: inherit; color: inherit; cursor: pointer; width: 100%; aspect-ratio: 16 / 9; border: 1px dashed var(--muted); background: var(--panel); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; }

/* ---------- FAQ ---------- */
.faq-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); gap: 0 48px; align-items: start; }
.faq-cols details { padding: 16px 0; border-top: 1px solid var(--line); }
.faq-cols > div > details:first-child { border-top: 3px solid var(--accent); }
@media (max-width: 911px) { .faq-cols > div + div > details:first-child { border-top: 1px solid var(--line); } }
.faq-cols summary { font-weight: 700; font-size: 17px; cursor: pointer; }
.faq-cols details p { margin: 10px 0 0; color: var(--text); }

/* ---------- Proof ---------- */
.proof { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; }
.proof .num { font-family: var(--display); font-weight: 700; font-size: 36px; line-height: 1.1; letter-spacing: -0.03em; color: var(--accent); margin: 0; }

/* ---------- Notify band ---------- */
.band { background: var(--accent); color: #fff; }
.band .wrap { padding-block: 48px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.band h2 { margin: 0 0 6px; font-size: clamp(24px, 2.6vw, 32px); }
.band p { margin: 0; color: #f6e9eb; }
.band-text { flex: 1 1 360px; }
.band .notify-form { flex: 1 1 420px; }
.band .field label { color: #f6e9eb; font-weight: 400; }
.band input { background: transparent; border-color: #fff; color: #fff; }
.band .form-error { color: #fff; }
.band .small, .band .small a { color: #f6e9eb; }
.band :focus-visible { outline-color: #fff; }

/* ---------- Prose pages ---------- */
.prose { max-width: 46em; }
.prose h2 { font-size: 28px; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split > .prose { flex: 999 1 480px; min-width: 0; }
.split > aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-block: 24px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 40px; }
.site-footer p { margin: 0; padding: 12px 0; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.site-footer a { padding: 12px 0; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

/* Every actionable link has its own hit area, including links in prose. */
a, button, summary { min-height: 44px; min-width: 44px; }
a { display: inline-flex; align-items: center; max-width: 100%; }
main p a, .crosses li a, .prose li a { display: flex; width: fit-content; }
.faq-cols summary { align-content: center; }
.choice input { width: 24px; height: 24px; } /* The wrapping label is the full click target. */
.channel-price, .stock-message { margin: 0; }
.stock-message { font-weight: 700; }
.btn:disabled { opacity: .55; cursor: default; }
.video-player iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.video:not(button) { cursor: default; }
.analytics-choice { border-bottom: 1px solid var(--line); background: var(--panel); }
.analytics-choice .wrap { padding-block: 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 32px; }
.analytics-choice h2 { font-size: 20px; margin: 0 0 4px; }
.analytics-choice p { margin: 0; max-width: 56ch; }
.analytics-buttons { display: flex; gap: 8px; }
.analytics-buttons .btn { width: auto; min-height: 44px; }
.text-button { background: none; border: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.site-footer .text-button { padding-inline: 0; font-size: 12px; text-transform: uppercase; }

@media (max-width: 520px) {
  .order { padding: 20px; }
  .price { font-size: 42px; }
  .kv dd { max-width: 60%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .site-header .nav, .nav-toggle, .band, .order .buy { display: none; } body { background: #fff; } }

/* A2 and B2 carry the FIRST markings printed on the motherboard. */
.memory-diagram { margin: 0; padding: 16px; align-self: center; border: 1px solid var(--line); background: var(--panel); }
.memory-diagram figcaption { margin-bottom: 16px; font-weight: 700; }
.memory-layout { display: grid; grid-template-columns: minmax(65px, 1.65fr) repeat(4, minmax(0, 1fr)); gap: 4px; align-items: center; }
.memory-layout > span { display: flex; flex-direction: column; justify-content: center; align-items: center; border: 1px solid var(--muted); }
.cpu-socket { min-height: 66px; font-size: 14px; }
.dimm { min-height: 98px; font-weight: 700; }
.dimm.first { border: 2px solid var(--accent); color: var(--accent); }
.dimm b { font-size: 10px; }
