/* Interior pages. Same dark field as the homepage and Battlecruiser. */
:root, [data-theme="dark"] {
  --iron-black: #000000;
  --iron-white: #ffffff;
  --steel-900: #191919;
  --steel-600: #545454;
  --steel-300: #c0c0c0;
  --bg: #141414;
  --surface: #262626;
  --surface-raised: #141414;
  --surface-strong: #333333;
  --ink: #ffffff;
  --ink-muted: #a6a6a6;
  --ink-inverse: #000000;
  --line: #3d3d3d;
  --line-strong: #8a8a8a;
  --focus-ring: #ffffff;
  --forge: #ff6b2c;
  --forge-text: #ff8a57;
  --circuit: #2dd4f0;
  --circuit-text: #5ee0f5;
  --on-accent: #000000;
  --glow: 0 0 24px rgba(255,255,255,0.35);
  --font-display: "Chakra Petch", "Chiron Hei HK", "Noto Sans TC", sans-serif;
  --font-sans: Barlow, "Chiron Hei HK", "Noto Sans TC", system-ui, sans-serif;
  --font-zh: "Chiron Hei HK", "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --chamfer: 6px;
  --chamfer-md: 12px;
  --pad: 80px;
}
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 24px; }
a { color: inherit; }
a:hover { color: var(--forge-text); }
img { max-width: 100%; }
.site { background: var(--bg); color: var(--ink); min-height: 100vh; }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 40px; padding: 8px var(--pad); box-sizing: border-box;
  background: var(--surface-raised); color: var(--ink); border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
}
.topbar a { color: var(--ink); text-decoration: none; }
.topbar a:hover { color: var(--forge-text); }

.site-header {
  display: flex; align-items: center; gap: 28px; min-height: 96px;
  padding: 0 var(--pad); box-sizing: border-box;
  border-bottom: 1px solid var(--line); background: var(--surface);
  position: sticky; top: 0; z-index: 20;
}
.wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 32px;
  letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; color: var(--ink); flex-shrink: 0;
}
.wordmark b { background: var(--ink); color: var(--ink-inverse); padding: 0 4px; margin-left: 2px; font-weight: 700; }
.nav { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; flex-grow: 1; }
.nav a, .nav-sub > summary {
  font-family: var(--font-display); font-size: 13px; line-height: 20px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; color: var(--ink); white-space: nowrap;
  padding: 4px 8px; background: transparent;
}
.nav a[aria-current="page"], .nav-sub > summary[aria-current="page"] {
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px;
}
.nav > a:hover, .nav-sub > summary:hover, .nav-sub:hover > summary, .nav-sub > div a:hover {
  background: #4a4a4a; color: #fff; text-decoration: none;
}
.nav-sub { position: relative; }
.nav-sub > summary { list-style: none; cursor: pointer; }
.nav-sub > summary::-webkit-details-marker { display: none; }
.nav-sub > div {
  position: absolute; top: 100%; left: 0; z-index: 40; min-width: 240px;
  display: none; gap: 4px; padding: 8px; background: #262626;
  box-shadow: inset 0 0 0 1px var(--line);
  max-height: min(70vh, 520px); overflow: auto;
}
.nav-sub:hover > div, .nav-sub:focus-within > div, .nav-sub[open] > div {
  display: grid !important;
  content-visibility: visible !important;
}
.nav-drawer .nav-sub > div { position: static; min-width: 0; padding: 8px 0 4px 12px; box-shadow: none; background: transparent; }
.nav-drawer { display: none; }
.header-tools { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.icon-btn {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border: 0; background: var(--ink); color: var(--ink-inverse); text-decoration: none;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.page { padding: 72px var(--pad) 96px; box-sizing: border-box; }
.crumbs { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); margin-bottom: 28px; }
.crumbs a { color: var(--ink); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.kicker {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; margin-bottom: 16px;
  background: var(--ink); color: var(--ink-inverse);
  font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
}
.kicker.forge { background: var(--forge); color: var(--on-accent); }
.kicker.circuit { background: var(--circuit); color: var(--on-accent); }
h1 {
  margin: 0 0 16px; max-width: 18ch;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 5vw, 72px); line-height: 0.95;
  letter-spacing: 0.02em; text-transform: uppercase;
}
.lede { margin: 0 0 36px; max-width: 62ch; font-size: 18px; line-height: 28px; color: var(--ink); }
.zh { font-family: var(--font-zh); }

h2 {
  margin: 56px 0 16px; font-family: var(--font-display); font-size: 32px; line-height: 38px;
  font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 22px; line-height: 28px; font-weight: 600; text-transform: uppercase; }
p { margin: 0 0 14px; }
.muted { color: var(--ink-muted); }

.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  --cut: 6px; position: relative; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 24px; border: 0; cursor: pointer; text-decoration: none;
  font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.btn-primary { background: var(--ink); color: var(--ink-inverse); }
.btn-primary:hover { background: var(--steel-300); color: var(--iron-black); }
.btn-forge { background: var(--forge); color: var(--on-accent); }
.btn-outline { background: var(--ink); color: var(--ink); isolation: isolate; }
.btn-outline::before {
  content: ""; position: absolute; inset: 2px; background: var(--surface); z-index: -1;
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}
.btn-ghost { background: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; padding: 0 8px; clip-path: none; }
.btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  --cut: 12px; display: flex; flex-direction: column; gap: 10px; padding: 24px; box-sizing: border-box;
  background: var(--surface); color: var(--ink); text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
a.card:hover, article.card:hover { background: var(--surface-strong); }
.card.ink { background: var(--iron-black); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.card.ink .muted { color: #c8c8c8; }
.card .idx { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); letter-spacing: 0.08em; }
.card p:last-child { margin-bottom: 0; }
.card.has-photo { padding-top: 0; overflow: hidden; }
.card .shot-img {
  width: calc(100% + 48px); max-width: none; height: 200px; margin: 0 -24px 6px;
  object-fit: cover; background: var(--bg); display: block;
}
.shot { margin: 28px 0; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.shot img, .gallery img { display: block; width: 100%; height: auto; background: var(--bg); }
.shot-hero img { max-height: 760px; width: 100%; object-fit: cover; }
.gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px; margin: 28px 0 36px;
}
.gallery .shot { margin: 0; }
.gallery .shot img { aspect-ratio: 1; object-fit: cover; }
.gallery .shot.spec img { aspect-ratio: auto; object-fit: contain; background: var(--surface); max-height: 520px; }

/* Editorial photo plates. Same chamfer and hairline as the homepage, not a square pile. */
.spread, .trio, .pair {
  display: grid;
  gap: 12px;
  margin: 8px 0 40px;
}
.spread { grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.9fr); align-items: stretch; }
.trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pair { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.frame-col { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; min-height: 100%; }
.frame {
  position: relative;
  margin: 0;
  min-height: 240px;
  background: #101010;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.spread > .frame { min-height: 560px; }
.pair .frame { min-height: 380px; }
.frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.frame figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 36px 14px 12px;
  background: linear-gradient(transparent, rgba(8, 8, 8, 0.88));
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.frame figcaption b {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--circuit-text);
  letter-spacing: 0.08em;
}

/* Three ways to buy a PC. Logos on a light chip, ratings as a cold-to-hot scale. */
.heat-key {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.heat-key i {
  display: block;
  width: min(280px, 42vw);
  height: 8px;
  background: linear-gradient(90deg, var(--circuit) 0%, #8a8a8a 50%, var(--forge) 100%);
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}
.heat-key span:last-child { color: var(--forge-text); }
.heat-key span:first-child { color: var(--circuit-text); }
.builders {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 28px;
  align-items: stretch;
}
.builder {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 16px 16px 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.builder.is-us {
  background: #101010;
  box-shadow: inset 0 0 0 1px var(--forge);
}
.marks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  min-height: 128px;
  margin: 0;
  padding: 12px 10px;
  background: #f3f3f3;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.marks img {
  display: block;
  height: 34px;
  width: auto;
  max-width: 46%;
  object-fit: contain;
  background: transparent;
}
.builder.is-us .marks img {
  height: 104px;
  max-width: 72%;
}
.builder h2 {
  margin: 0;
  text-align: center;
  font-size: 22px;
  line-height: 26px;
  letter-spacing: 0.06em;
}
.builder .role {
  margin: -8px 0 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forge-text);
}
.builder ul {
  margin: 0;
  padding: 0 0 0 18px;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 20px;
}
.builder li { margin: 0 0 8px; }
.builder.is-us ul { color: #dedede; }
.scales {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.scale {
  display: grid;
  grid-template-columns: 102px minmax(48px, 1fr) max-content;
  gap: 8px;
  align-items: center;
}
.scale__name {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.scale__track {
  position: relative;
  height: 6px;
  background: linear-gradient(90deg, var(--circuit) 0%, #8a8a8a 50%, var(--forge) 100%);
}
.scale__track i {
  position: absolute;
  top: 50%;
  left: calc(6px + (100% - 12px) * var(--level));
  width: 11px;
  height: 11px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: color-mix(in srgb, var(--circuit) calc((1 - var(--level)) * 100%), var(--forge));
  box-shadow: 0 0 0 2px #141414;
}
.scale__word {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: right;
  white-space: nowrap;
  color: color-mix(in srgb, var(--circuit) calc((1 - var(--level)) * 100%), var(--forge));
}
.spec {
  margin: 0; display: grid; grid-template-columns: 120px 1fr; gap: 6px 16px;
  font-family: var(--font-mono); font-size: 14px; line-height: 20px;
}
.spec dt { color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.spec dd { margin: 0; }
.price { font-family: var(--font-mono); font-size: 20px; font-weight: 500; }

.steps { counter-reset: step; display: grid; gap: 16px; }
.step { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: start; padding-top: 16px; border-top: 1px solid var(--line); }
.step b {
  font-family: var(--font-display); font-size: 28px; line-height: 32px;
}
.note {
  margin: 24px 0; padding: 16px 20px; background: var(--surface);
  border-left: 4px solid var(--forge); font-size: 15px; line-height: 22px;
}
.quote { margin: 0; padding: 20px 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.quote p { margin: 0 0 12px; }
.quote footer { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }

details.faq { border-top: 1px solid var(--line); }
details.faq summary {
  cursor: pointer; padding: 18px 0; font-family: var(--font-display); font-size: 20px; line-height: 28px;
  font-weight: 600; letter-spacing: 0.02em;
}
details.faq .a { padding: 0 0 18px; max-width: 72ch; }
details.faq .a p:last-child { margin-bottom: 0; }

table.sheet { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
table.sheet th, table.sheet td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.sheet th { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--surface-raised); }
table.sheet td.num { font-family: var(--font-mono); white-space: nowrap; }

.article { max-width: 72ch; }
.article p { font-size: 17px; line-height: 28px; }
.video-frame { position: relative; padding-top: 56.25%; background: var(--surface-strong); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.form { display: grid; gap: 12px; max-width: 560px; }
.form label { display: grid; gap: 6px; font-family: var(--font-display); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.form input, .form textarea, .form select {
  font: 16px/24px var(--font-sans); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-strong); padding: 10px 12px; border-radius: 0;
}
.form textarea { min-height: 120px; resize: vertical; }

.site-foot {
  padding: 64px var(--pad) 24px; background: var(--surface); border-top: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.foot-grid { display: grid; grid-template-columns: 280px 1fr; gap: 48px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.foot-cols h2 { margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 13px; letter-spacing: 0.16em; color: var(--ink-muted); }
.foot-cols a { display: block; margin: 0 0 10px; text-decoration: none; font-size: 14px; line-height: 20px; }
.foot-cols a:hover { text-decoration: underline; }
.legal {
  margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted);
}
.watermark {
  position: absolute; left: 64px; bottom: -36px; font-family: var(--font-display);
  font-size: 160px; line-height: 160px; font-weight: 700; letter-spacing: 0.04em;
  color: transparent; -webkit-text-stroke: 1px #3a3a3a; pointer-events: none;
}

@media (min-width: 1921px) {
  .topbar, .site-header, .page, .site-foot {
    padding-left: max(72px, calc((100% - 2320px) / 2));
    padding-right: max(72px, calc((100% - 2320px) / 2));
  }
}
@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1199px) {
  .site-header { flex-wrap: nowrap; align-items: center; min-height: 72px; }
  .site-header > .nav { display: none; }
  .nav-drawer { display: block; width: auto; margin-left: auto; }
  .nav-drawer > summary {
    position: relative;
    display: block;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    padding: 0;
    font-size: 0;
    line-height: 0;
    color: transparent;
    background: transparent;
    cursor: pointer;
    list-style: none;
  }
  .nav-drawer > summary::-webkit-details-marker { display: none; }
  .nav-drawer > summary::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 21px;
    width: 22px;
    height: 2px;
    background: #fff;
    box-shadow: 0 -7px 0 #fff, 0 7px 0 #fff;
  }
  .nav-drawer[open] > summary::before {
    box-shadow: none;
    transform: rotate(45deg);
  }
  .nav-drawer[open] > summary::after {
    content: "";
    position: absolute;
    left: 11px;
    top: 21px;
    width: 22px;
    height: 2px;
    background: #fff;
    transform: rotate(-45deg);
  }
  .nav-drawer > .nav { display: none; }
  .nav-drawer[open] > .nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 40;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 8px 16px 18px;
    background: #1c1c1c;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
    max-height: calc(100vh - 80px);
    overflow: auto;
  }
  .nav-drawer .nav a,
  .nav-drawer .nav-sub > summary {
    display: block;
    padding: 12px 8px;
    font-size: 16px;
    line-height: 22px;
  }
  .nav-drawer .nav-sub > div { position: static; min-width: 0; padding: 0 0 8px 16px; background: transparent; box-shadow: none; }
  .nav-drawer .nav-sub:not([open]) > div { display: none !important; }
}
@media (max-width: 860px) {
  :root { --pad: 24px; }
  .site-header { min-height: 72px; padding-top: 12px; padding-bottom: 12px; }
  .g2, .g3, .g4, .spread, .trio, .pair, .builders { grid-template-columns: 1fr; }
  .scale { grid-template-columns: 96px minmax(40px, 1fr) max-content; }
  .frame-col { grid-template-rows: auto auto; }
  .spread > .frame, .pair .frame, .trio .frame, .frame-col .frame { min-height: 240px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 48px 1fr; }
  h1 { font-size: 40px; }
  .watermark { display: none; }
}
@media (max-width: 480px) {
  .topbar span.hide-sm { display: none; }
  .foot-cols { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; }
  table.sheet { display: block; overflow-x: auto; }
}

@media (min-width: 1200px) {
  .site-header { flex-wrap: wrap; align-items: center; row-gap: 6px; padding-top: 12px; padding-bottom: 10px; height: auto; }
  .site-header > .icon-btn { margin-left: auto; }
  .site-header > .nav {
    flex: 1 1 100%;
    order: 3;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 8px 12px;
    min-width: 0;
  }
  .site-header > .nav a,
  .site-header > .nav > .nav-sub > summary {
    font-size: 12px;
    letter-spacing: 0.03em;
    line-height: 18px;
    white-space: nowrap;
  }
}
