:root {
  font-family: system-ui, -apple-system, sans-serif;
  color: #171a16;
  background: #f2f1eb;
  --ink: #171a16;
  --muted: #555b51;
  --line: #d3d5c9;
  --lime: #d8fa56;
  --accent: #658200;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
:focus-visible { outline: 3px solid #577100; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 48px, 1120px); margin-inline: auto; }
.skip { position: absolute; top: -5rem; left: 1rem; z-index: 1; background: white; padding: 1rem; }
.skip:focus { top: 1rem; }
.top { border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 900; letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
.mark { display: grid; place-items: center; width: 34px; aspect-ratio: 1; border-radius: 5px; background: var(--lime); font-size: 1.5rem; }
.nav-link, .back { font-size: .88rem; font-weight: 750; text-decoration: none; }
.nav-link { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
.nav-link:hover, .back:hover { text-decoration: underline; }
.hero { position: relative; padding: clamp(32px, 6vw, 76px); margin-top: 24px; border-radius: 12px; color: #f8f9f4; background: #1a211a; overflow: hidden; }
.hero p { color: #d1d8ca; max-width: 480px; margin-bottom: 0; }
.hero-number { position: absolute; right: 26px; top: 28px; color: #b3bfaa; font: 700 .75rem ui-monospace, monospace; }
.eyebrow { display: flex; align-items: center; gap: 9px; font: 750 .75rem/1.35 ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.signal { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.hero .signal, .hero .accent { color: var(--lime); }
.hero .signal { background: var(--lime); }
.accent { color: var(--accent); }
h1, h2, h3, p, figure { margin: 0; }
h1 { font-size: clamp(2.7rem, 8vw, 6.4rem); letter-spacing: -.078em; line-height: .94; margin: 15px 0 22px; font-weight: 850; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.03; letter-spacing: -.055em; }
p { line-height: 1.55; }
.catalog { padding-block: 38px 56px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 17px; }
.section-head > span, .footer { font: 700 .7rem ui-monospace, monospace; letter-spacing: .08em; color: var(--muted); }
.card-grid, .labels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #fff; text-decoration: none; }
.card:hover { border-color: #698200; }
.cover { position: relative; background: #263027; }
.cover img, figure img, video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.badge { position: absolute; top: 10px; left: 10px; padding: 7px 8px; border-radius: 3px; background: var(--lime); color: var(--ink); font: 800 .7rem ui-monospace, monospace; }
.card-info { position: relative; padding: 16px 50px 18px 16px; }
.card-info .eyebrow, .steps .eyebrow { color: var(--muted); }
.card h3 { font-size: 1.42rem; letter-spacing: -.045em; }
.arrow { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 1.35rem; }
.footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; padding-block: 22px; }
.footer b { color: var(--accent); }
.back { display: inline-block; padding-block: 12px; margin: 10px 0 18px; }
.guide { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 52px); padding-bottom: 52px; }
.guide h1, .printing h1 { font-size: clamp(2.7rem, 6vw, 4.75rem); }
.intro { color: var(--muted); max-width: 56ch; }
.pill { display: inline-block; border: 1px solid var(--line); border-radius: 20px; margin-top: 15px; padding: 6px 10px; font-size: .8rem; font-weight: 700; }
.media { margin-top: 24px; }
figure, video { border-radius: 8px; overflow: hidden; background: #171a16; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-block: 10px; }
.thumbs [data-frame] { border: 2px solid transparent; padding: 2px; border-radius: 5px; background: transparent; }
.thumbs [aria-pressed=true] { border-color: var(--accent); }
.thumbs img { width: 72px; height: auto; display: block; border-radius: 2px; }
.watch, .primary { min-height: 44px; border: 1px solid var(--ink); border-radius: 6px; padding: 8px 12px; font-weight: 750; background: var(--lime); color: var(--ink); }
#clip > a, .credit { display: block; margin-top: 8px; font-size: .79rem; color: var(--muted); }
.steps { align-self: start; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: clamp(18px, 3vw, 32px); }
.steps h2 { margin-top: 7px; }
.steps ol { list-style: none; padding: 0; margin: 16px 0; counter-reset: step; }
.steps li { counter-increment: step; display: flex; align-items: start; gap: 13px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); background: #eef1e5; padding: 6px; border-radius: 4px; font: 750 .8rem ui-monospace, monospace; }
.steps h3 { font-size: 1rem; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: .94rem; }
.steps aside { background: #edf4d6; padding: 14px; border-radius: 6px; }
.missing { padding-block: 48px; }
.missing a { display: inline-block; margin-top: 16px; }
.print-form { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin-block: 18px; }
.print-form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 750; }
.print-form label:first-child { flex: 1 1 260px; max-width: 530px; }
.print-form input, .print-form select { width: 100%; min-height: 44px; border: 1px solid #82877e; border-radius: 6px; padding: 8px; background: white; color: var(--ink); }
#print-status { font-size: .88rem; color: var(--muted); }
.labels { margin-block: 20px 38px; }
.label { display: grid; justify-items: center; gap: 5px; text-align: center; background: white; color: black; border: 1px dashed #666; border-radius: 4px; padding: 16px 8px; overflow-wrap: anywhere; }
.label svg { display: block; width: min(100%, 145px); aspect-ratio: 1; }
.label h2 { font-size: 1.2rem; }
.label p, .label small { font-size: .75rem; }
@media screen and (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .guide, .card-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-number { display: none; }
  .labels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 360px) {
  .nav-link { padding-inline: 6px; }
  .brand { font-size: .85rem; }
}
@page { size: A4 portrait; margin: 12mm; }
@media print {
  html, body { background: white; color: black; }
  .printing .top, .printing .footer, .printing .skip, .print-ui { display: none; }
  .printing main { width: 100%; margin: 0; }
  .labels { margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3mm; }
  .label { padding: 4mm; border-radius: 0; break-inside: avoid; }
  .label svg { width: 43mm; }
}
