:root {
  color-scheme: light;
  --ink: #1e2832;
  --muted: #4f5e68;
  --paper: #f6f4ee;
  --line: #d2d7d6;
  --night: #152128;
  --light: #f8f6ef;
  --accent: #ffad73;
  --orange: #d77b40;
  --purple: #a4a9ff;
  --teal: #79dfc8;
  --mono: "Cascadia Mono", Consolas, monospace;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .18em; }
a:focus-visible, summary:focus-visible { outline: 3px solid #3d6dce; outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
p + p { margin-top: .8rem; }
.wrap { width: min(1180px, 100% - 2 * clamp(1.15rem, 4vw, 3.25rem)); margin-inline: auto; }
.skip { position: fixed; top: .4rem; left: .4rem; background: white; padding: .6rem; z-index: 2; transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.masthead, .hero { color: var(--light); background: var(--night); }
.masthead { border-bottom: 1px solid #34414a; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1rem; }
.wordmark { font-weight: 850; font-size: 1.12rem; text-decoration: none; letter-spacing: -.04em; white-space: nowrap; }
.wordmark span { font: 600 .75rem var(--mono); margin-left: .35rem; color: var(--accent); border: 1px solid #76543f; padding: .17rem .4rem; border-radius: 4px; }
nav { display: flex; flex-wrap: wrap; gap: .25rem clamp(.7rem, 3vw, 1.8rem); }
nav a { font-size: .9rem; color: #d5dedf; text-decoration: none; }
nav a:hover { color: var(--accent); }
.hero { overflow: hidden; }
.hero-layout { display: grid; grid-template-columns: .86fr 1.14fr; min-height: 550px; align-items: center; }
.hero-copy { padding-block: 3.35rem; position: relative; z-index: 1; }
.kicker, .small-title { font: 650 .75rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.kicker { color: #cad7db; display: flex; align-items: center; gap: .65rem; margin-bottom: 1.15rem; }
.kicker span { width: .56rem; height: .56rem; border-radius: 50%; background: var(--accent); }
h1 { font-size: clamp(3.4rem, 8.1vw, 8.1rem); line-height: .90; font-weight: 850; letter-spacing: -.065em; }
h1 span { color: var(--accent); }
.lead { color: #dce4e5; font-size: clamp(1.1rem, 2vw, 1.36rem); line-height: 1.45; max-width: 27ch; margin-block: 1.65rem; }
.button { display: inline-flex; align-items: center; gap: .9rem; padding: .72rem 1rem; border-radius: 5px; text-decoration: none; font-size: .94rem; font-weight: 750; background: var(--accent); color: #222b32; }
.button:hover { background: #ffd0a9; }
.hero-parts { position: relative; align-self: stretch; min-height: 350px; background: radial-gradient(ellipse at 55% 40%, #3a4246 0%, transparent 65%), repeating-linear-gradient(0deg, transparent 0 31px, #62747922 31px 32px), repeating-linear-gradient(90deg, transparent 0 31px, #62747922 31px 32px); mask-image: linear-gradient(90deg, transparent, black 8%); }
.hero-parts > div { position: absolute; display: flex; flex-direction: column; align-items: center; }
.hero-parts img { filter: drop-shadow(7px 16px 12px #0008); }
.hero-parts span { color: #e6eef0; font: 600 clamp(.63rem, 1.1vw, .81rem)/1.3 var(--mono); padding: .29rem .5rem; background: #1b2a31; border: 1px solid #485a63; border-radius: 3px; }
.hero-wheel { width: 63%; top: 6%; left: 8%; }
.hero-drive { width: 42%; right: 0; top: 26%; }
.hero-pinion { width: 24%; left: 8%; bottom: 11%; }
.section { padding-block: clamp(3rem, 7.3vw, 6.5rem); }
.section-heading { display: grid; grid-template-columns: 1fr .8fr; gap: clamp(1rem, 4vw, 4rem); align-items: end; margin-bottom: 2rem; }
h2 { font-size: clamp(2.35rem, 5vw, 4.2rem); line-height: 1.01; letter-spacing: -.063em; max-width: 15ch; }
h3 { font-weight: 770; font-size: 1.14rem; line-height: 1.24; letter-spacing: -.025em; }
.section-heading p, .measure-card > p:last-child, .bench-note p { color: var(--muted); }
.measure-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: #fcfbf7; }
.measure-card { padding: clamp(.9rem, 2vw, 1.5rem); }
.measure-card + .measure-card { border-left: 1px solid var(--line); }
.part { display: grid; place-items: center; height: clamp(8rem, 15vw, 11rem); background: #edf0eb; border-radius: 5px; margin-bottom: 1.2rem; }
.part img { max-height: calc(100% - .6rem); width: auto; max-width: 95%; }
.dimension { margin-block: .35rem; font: 700 clamp(1.45rem, 3vw, 2.4rem)/1.3 var(--mono); letter-spacing: -.07em; }
.dimension span { font-size: .55em; letter-spacing: 0; color: var(--muted); }
.measure-card > p:last-child { font-size: .93rem; line-height: 1.5; }
.bench-note { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1rem, 4vw, 3rem); align-items: center; padding: clamp(1.15rem, 3.6vw, 2.4rem); margin-top: 1.25rem; background: #e9ede9; border-radius: 11px; }
.wheel-check { padding: .9rem 1rem .35rem; color: #d9e4e6; background: #25323a; border-radius: 6px; }
.wheel-check .small-title { color: #dfe8e9; }
.bench-note h3 { margin-bottom: .45rem; }
.assembly { color: var(--light); background: var(--night); }
.assembly .section-heading p, .assembly-steps p, .stack-foot { color: #c7d2d7; }
.stack-layout { display: grid; grid-template-columns: 1fr .94fr; gap: clamp(1.2rem, 5vw, 4.5rem); align-items: start; }
.stack { min-width: 0; margin: 0; border: 1px solid #485760; border-radius: 10px; padding: 1rem clamp(.7rem, 2.2vw, 1.55rem) 1.15rem; background: #1e2d35; }
.stack legend { padding: 0 .45rem; font: 650 .78rem var(--mono); }
.stack input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.stack label { display: inline-block; border: 1px solid #63747e; border-radius: 4px; padding: .45rem .6rem; margin: 0 .22rem .4rem 0; cursor: pointer; font-size: .86rem; font-weight: 700; }
.stack input:checked + label { color: #202c31; background: var(--accent); border-color: var(--accent); }
.stack input:focus-visible + label { outline: 2px solid white; outline-offset: 3px; }
.stack-figure { --face: 12%; position: relative; padding-top: .8rem; }
#caps-on:checked ~ .stack-figure { --face: 8%; }
.drawing { position: relative; height: clamp(110px, 15vw, 168px); background-image: repeating-linear-gradient(0deg, #7f9ca418 0 1px, transparent 1px 16px), repeating-linear-gradient(90deg, #7f9ca418 0 1px, transparent 1px 16px); }
.drawing .shaft, .drawing .drive, .drawing .wheel, .drawing .bearing, .gauge { position: absolute; }
.shaft { background: #b9c8cc; height: 6%; top: 42%; left: 17%; right: 17%; }
.drive { background: var(--purple); height: 25%; top: 32.5%; left: 46%; width: 8%; border-radius: 2px; }
.drive::after { content: ''; position: absolute; background: var(--purple); opacity: .78; left: 100%; right: -195%; top: 35%; height: 30%; }
.wheel { background: #ee9b62; height: 60%; width: 16%; top: 15%; border-radius: 3px; }
.wheel.left { left: 12%; }
.wheel.right { right: 12%; }
.pilot, .cap { position: absolute; height: 14%; top: 43%; width: 31%; background: #ee9b62; }
.wheel.left .pilot, .wheel.right .cap { left: 100%; }
.wheel.right .pilot, .wheel.left .cap { right: 100%; }
.cap { display: none; height: 56%; top: 22%; width: 25%; background: #f7bd92; border-radius: 3px; }
#caps-on:checked ~ .stack-figure .cap { display: block; }
.bearing { top: 30%; height: 30%; width: 4%; border-block: .38rem solid var(--teal); }
.bearing.left { left: 28%; }
.bearing.right { right: 28%; }
.gauge { left: var(--face); right: var(--face); bottom: 5%; height: 8%; border: 1px solid #e4ecef; border-top: 0; }
.gauge::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid #e4ecef; }
.stack-figure figcaption { font-size: .87rem; color: #dbe3e6; line-height: 1.4; }
.stack-figure figcaption strong { display: block; font: 700 clamp(1.6rem, 3.9vw, 2.75rem)/1.35 var(--mono); letter-spacing: -.055em; color: var(--light); }
.stack-figure small { font-size: .55em; letter-spacing: 0; }
.stack-figure .with-caps, #caps-on:checked ~ .stack-figure .no-caps { display: none; }
#caps-on:checked ~ .stack-figure .with-caps { display: inline; }
.drawing-key { display: flex; flex-wrap: wrap; gap: .25rem .8rem; margin-top: .9rem; font-size: .75rem; color: #e1e6e9; }
.drawing-key i { display: inline-block; width: .68em; height: .68em; background: #ee9b62; border-radius: 2px; }
.drawing-key span:nth-child(2) i { background: var(--teal); }
.drawing-key span:nth-child(3) i { background: #b9c8cc; }
.drawing-key span:nth-child(4) i { background: var(--purple); }
.stack-foot { margin-top: .7rem; font-size: .8rem; }
.assembly-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.assembly-steps li { border-top: 1px solid #485760; padding: 1rem 0 1rem 2.65rem; position: relative; counter-increment: step; }
.assembly-steps li::before { content: counter(step); position: absolute; left: 0; top: 1rem; color: var(--accent); font: 700 1.07rem var(--mono); border: 1px solid #7e604e; border-radius: 4px; padding: .1rem .42rem; }
.assembly-steps p { margin-top: .35rem; font-size: .94rem; }
.assembly-steps a { color: var(--light); }
.diagnostic-list { border-top: 1px solid var(--line); }
.diagnostic-list details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: .6rem; list-style: none; font-weight: 730; padding: 1rem .1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: #69533e; font: 600 1.35rem var(--mono); }
details[open] summary::after { content: '−'; }
summary:hover { color: #81502b; }
.diagnostic-list p { color: var(--muted); max-width: 80ch; margin: 0 1.5rem 1.05rem .1rem; }
.last-check { border-left: 3px solid var(--orange); padding: .2rem 0 .2rem 1rem; margin-top: 1.6rem; max-width: 75ch; }
footer { background: #e5e8e1; border-top: 1px solid var(--line); }
.footer-layout { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 2rem; padding-block: 2rem; }
footer h2 { font-size: 1.45rem; letter-spacing: -.04em; margin-bottom: .4rem; }
footer p { color: var(--muted); font-size: .9rem; max-width: 56ch; }
footer ul { padding: 0; margin: 0; list-style: none; }
footer li + li { margin-top: .4rem; }
footer a { font-size: .92rem; font-weight: 670; }
.credit { max-width: none; grid-column: 1 / -1; border-top: 1px solid #c6ccc5; padding-top: .8rem; }
@media (max-width: 800px) {
  .hero-layout { min-height: 470px; }
  .hero-wheel { top: 15%; }
  .hero-drive { top: 39%; }
  .hero-pinion { bottom: 15%; }
  .measure-grid { grid-template-columns: repeat(2, 1fr); }
  .measure-card:nth-child(3) { border-left: 0; }
  .measure-card:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stack-layout { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .bar { flex-direction: column; align-items: start; gap: .65rem; }
  .hero-layout, .section-heading, .bench-note, .footer-layout { grid-template-columns: 1fr; }
  .hero-copy { padding: 2.7rem 0 1rem; }
  h1 { font-size: clamp(3.4rem, 14vw, 5.1rem); }
  .hero-parts { min-height: 0; height: clamp(240px, 79vw, 390px); margin-inline: -.35rem; mask-image: linear-gradient(180deg, transparent, black 12%); }
  .hero-wheel { top: 1%; }
  .hero-drive { top: 26%; }
  .hero-pinion { bottom: 10%; }
  .section-heading { gap: .65rem; margin-bottom: 1.35rem; }
  .part { height: clamp(5rem, 23vw, 8rem); }
}
@media print {
  :root, .hero, .assembly, footer, .stack { color: #16222a; background: white; }
  .masthead, .hero-parts, .button, .kicker, .stack input, .stack label, .drawing { display: none; }
  .wrap { width: 100%; }
  .hero-layout { display: block; min-height: 0; }
  .hero-copy, .section { padding-block: .65rem; }
  h1 { font-size: 2.8rem; }
  h1 br { display: none; }
  h2 { font-size: 1.6rem; }
  .lead, .assembly .section-heading p, .assembly-steps p, .assembly-steps a, .stack-foot, .drawing-key, .stack-figure figcaption, .stack-figure figcaption strong { color: #16222a; }
  .stack-figure .with-caps, #caps-on:checked ~ .stack-figure .no-caps, #caps-on:checked ~ .stack-figure .with-caps { display: block; }
  .bench-note, .measure-card, .stack, .assembly-steps li { break-inside: avoid; }
  .part { height: 70px; }
  details:not([open]) > *:not(summary) { display: block; }
  details { content-visibility: visible; }
}
