/* /print — paper and ink, the sheets are the heroes. Dials: VARIANCE 4 · MOTION 2 · DENSITY 4 */
:root {
  --ink: #15130f; --paper: #fbf8f1; --paper-2: #f1ece1; --line: rgba(21, 19, 15, 0.14); --soft: rgba(21, 19, 15, 0.62);
  --accent: #ff6a3d; --lead: #ffd23f;
  --font: "Geologica", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 400 17px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
.bar { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px clamp(16px, 4vw, 40px); background: var(--paper); border-bottom: 1px solid var(--line); }
.bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 6px; background: conic-gradient(var(--ink) 25%, var(--paper) 0 50%, var(--ink) 0 75%, var(--paper) 0) 0 0 / 12px 12px; opacity: 0.85; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 600; text-decoration: none; padding: 8px 4px; }
.back svg, .btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.chip, .seg button { height: 40px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 8px; background: transparent; color: var(--ink); font: 700 14px var(--font); cursor: pointer; text-decoration: none; display: inline-grid; place-items: center; }
.chip.ink { background: var(--ink); color: var(--paper); }
.seg { display: inline-flex; }
.seg button:first-child { border-radius: 8px 0 0 8px; } .seg button:last-child { border-radius: 0 8px 8px 0; border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--lead); }
.chip:focus-visible, .seg button:focus-visible, .btn:focus-visible, .pick:focus-visible, .stepper button:focus-visible, .pdf:focus-visible, .link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 40px) 60px; }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px 40px; align-items: end; margin-bottom: 30px; }
h1 { margin: 0; font-size: clamp(40px, 6vw, 76px); font-weight: 900; letter-spacing: -0.035em; line-height: 0.95; }
h1::after { content: ""; display: block; width: 3.2em; height: 0.2em; margin-top: 0.12em; background: var(--accent); border-radius: 40% 60% 55% 45% / 60% 40% 60% 40%; transform: rotate(-1.5deg); }
.lede { margin: 0; color: var(--soft); font-size: 18px; max-width: 46ch; }
@media (max-width: 760px) { .head { grid-template-columns: 1fr; } }

.cars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.car { position: relative; display: grid; gap: 10px; }
.pick { all: unset; position: relative; cursor: pointer; display: grid; gap: 8px; }
.thumb { display: block; overflow: hidden; aspect-ratio: 700 / 990; background: #fff; border: 2px solid var(--line); border-radius: 6px; overflow: hidden; transition: transform 0.35s var(--ease), border-color 0.2s ease, box-shadow 0.35s var(--ease); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.car:nth-child(odd) .thumb { transform: rotate(-1deg); } .car:nth-child(even) .thumb { transform: rotate(0.8deg); }
.car.on .thumb { border-color: var(--ink); box-shadow: 0 14px 26px -14px rgba(21, 19, 15, 0.45); }
.car .pick::after { content: ""; position: absolute; top: -9px; right: -9px; z-index: 1; width: 28px; height: 28px; border: 2px solid var(--ink); border-radius: 6px; background: #fff; }
.car.on .pick::after { background: var(--lead) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' fill='none' stroke='%2315130f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.pick:hover .thumb { transform: rotate(0) translateY(-3px); }
.car:not(.on) .thumb img { opacity: 0.45; }
.name { font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.row { display: flex; justify-content: space-between; align-items: center; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--ink); border-radius: 8px; overflow: hidden; }
.stepper button { width: 40px; height: 38px; border: 0; background: transparent; font: 700 20px var(--font); cursor: pointer; color: var(--ink); }
.stepper button:active { background: var(--paper-2); }
.stepper .n { min-width: 28px; text-align: center; font-weight: 800; }
.pdf { color: var(--ink); font-weight: 700; font-size: 14px; text-underline-offset: 3px; padding: 8px 2px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 34px; padding-top: 24px; border-top: 1.5px dashed var(--line); }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 26px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); color: var(--ink); font: 800 18px var(--font); text-decoration: none; cursor: pointer; transition: transform 0.2s var(--ease); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: default; }
.link { border: 0; background: none; color: var(--soft); font: 600 16px var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 10px; }

.print-mount { display: none; }
@media print {
  .screen { display: none; }
  body { background: #fff; }
  .print-mount { display: block; }
  .sheet { width: 210mm; height: 297mm; display: flex; align-items: center; justify-content: center; page-break-after: always; overflow: hidden; }
  .sheet:last-child { page-break-after: auto; }
  .sheet svg { width: 210mm; height: 297mm; }
  body[data-paper="letter"] .sheet { width: 215.9mm; height: 279.4mm; }
  body[data-paper="letter"] .sheet svg { width: 197.5mm; height: 279.4mm; }
}
@media (prefers-reduced-motion: reduce) { .thumb, .btn { transition: none; } }
@media (max-width: 560px) {
  .cars { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .name { font-size: 16px; }
  .stepper button { width: 34px; }
  .bar .chip.ink { display: none; }
  .actions .btn { width: 100%; justify-content: center; }
}
