@font-face { font-family: 'Plex'; src: url('/site-fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex'; src: url('/site-fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Plex'; src: url('/site-fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('/site-fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --paper: #f6f2ea; --paper-2: #efe9dd; --card: #fffdf8; --ink: #182339; --ink-2: #47526a; --ink-3: #7a8296;
  --line: #e2dbcd; --red: #e5482f; --red-2: #c93a23; --cyan: #00a3d9; --magenta: #d6338c; --yellow: #f2c230;
  --stage: #dcd5c7; --radius: 14px; --shadow: 0 1px 2px rgba(24,35,57,.06), 0 12px 32px -12px rgba(24,35,57,.25);
  --mono: 'Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 'Plex', system-ui, -apple-system, 'Segoe UI', sans-serif; }
a { color: var(--ink); text-decoration-color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-2); }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.kicker { font: 500 .78rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--red-2); margin: 0 0 1.1rem; }
.kicker a { color: inherit; text-decoration: none; }
.lede { font-size: 1.15rem; color: var(--ink-2); margin: 0 0 1.2rem; }

/* The CMYK colour bar printers put along the edge of a sheet. */
.colourbar { display: grid; grid-template-columns: repeat(8, 1fr); height: 6px; }
.colourbar i:nth-child(1) { background: var(--cyan); } .colourbar i:nth-child(2) { background: var(--magenta); }
.colourbar i:nth-child(3) { background: var(--yellow); } .colourbar i:nth-child(4) { background: var(--ink); }
.colourbar i:nth-child(5) { background: #7fd1ec; } .colourbar i:nth-child(6) { background: #ea99c5; }
.colourbar i:nth-child(7) { background: #f8e097; } .colourbar i:nth-child(8) { background: var(--red); }

.top { border-bottom: 1px solid var(--line); background: rgba(246,242,234,.92); backdrop-filter: saturate(1.2) blur(6px); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--ink); }
.brand b { font-weight: 600; color: var(--red); }
.brand .logo { width: 28px; height: 28px; color: var(--ink); }
.brand.small { font-size: 1.05rem; }
.top nav { display: flex; gap: 22px; font-size: .95rem; }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: clamp(36px, 6vw, 72px) 0 28px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 em { font-style: normal; color: var(--red); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--ink-2); }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(-45deg); }
.proof { margin: 0; position: relative; padding: 26px; justify-self: center; width: min(430px, 100%); }
.proof img { display: block; width: 100%; height: auto; background: #fff; box-shadow: var(--shadow); transform: rotate(1.4deg); border-radius: 2px; }
.proof figcaption { display: flex; align-items: center; gap: 8px; margin-top: 18px; font: 500 .78rem/1 var(--mono); color: var(--ink-3); letter-spacing: .04em; }
.proof .reg { width: 14px; height: 14px; border-radius: 50%; border: 1.6px solid var(--ink-3); position: relative; flex: none; }
.proof .reg::after { content: ''; position: absolute; inset: 3.5px; border-radius: 50%; background: var(--red); }
/* Crop marks around the page, as on a printer's proof. */
.crop { position: absolute; width: 22px; height: 22px; border-color: var(--ink); opacity: .55; }
.crop.tl { top: 0; left: 0; border-top: 1.5px solid; border-left: 1.5px solid; }
.crop.tr { top: 0; right: 0; border-top: 1.5px solid; border-right: 1.5px solid; }
.crop.bl { bottom: 34px; left: 0; border-bottom: 1.5px solid; border-left: 1.5px solid; }
.crop.br { bottom: 34px; right: 0; border-bottom: 1.5px solid; border-right: 1.5px solid; }

/* Tool */
.tool { margin: 8px 0 56px; }
.tool.in-hero { margin: 4px 0 22px; }
.tool.in-hero .drop { padding: 22px 20px 18px; display: grid; grid-template-columns: auto 1fr; column-gap: 18px; text-align: left; align-items: center; }
.tool.in-hero .drop-art { grid-row: span 3; margin: 0; transform: scale(.85); }
.tool.in-hero .drop-sub { justify-content: flex-start; }
.tool.in-hero .drop-title { margin-bottom: 8px; }
.tool-work { margin-bottom: 56px; }
.tool-work:has(.work[hidden]) { margin-bottom: 0; }
.hero:has(+ .how) { padding-bottom: 48px; }
@media (max-width: 560px) { .tool.in-hero .drop { grid-template-columns: 1fr; text-align: center; } .tool.in-hero .drop-art { display: none; } .tool.in-hero .drop-sub { justify-content: center; } }
.drop { background: var(--card); border: 2px dashed #cbbfa8; border-radius: 20px; padding: 34px 24px 28px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; outline: none; }
.drop:hover, .drop:focus-visible, .drop.over { border-color: var(--red); background: #fffaf2; }
.drop.over { transform: scale(1.01); }
.drop-art { position: relative; width: 92px; height: 74px; margin: 0 auto 14px; }
.sheet { position: absolute; width: 54px; height: 70px; background: #fff; border: 1.5px solid var(--ink); border-radius: 4px; }
.sheet.s1 { left: 6px; top: 4px; transform: rotate(-10deg); background: var(--paper-2); }
.sheet.s2 { left: 20px; top: 2px; transform: rotate(-2deg); background: #fbf8f1; }
.sheet.s3 { left: 34px; top: 0; transform: rotate(7deg); display: grid; place-items: end center; padding-bottom: 8px; font: 500 .7rem/1 var(--mono); color: #fff; }
.sheet.s3::after { content: ''; position: absolute; left: 8px; right: 8px; top: 10px; height: 26px; background: repeating-linear-gradient(var(--line) 0 2px, transparent 2px 6px); }
.sheet.s3 { background: linear-gradient(transparent 60%, var(--red) 60%); background-color: #fff; }
.drop-title { font-size: 1.3rem; font-weight: 600; margin: 0 0 10px; }
.drop-sub { margin: 0 0 12px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.drop-note { margin: 0; font-size: .88rem; color: var(--ink-3); display: inline-flex; gap: 6px; align-items: center; }
.drop-note svg { width: 14px; height: 14px; color: var(--ink-3); }
.tool.compact .drop { padding: 24px 20px 20px; }
.tool.compact .drop-art { display: none; }

.btn { font: inherit; font-size: .95rem; font-weight: 500; border-radius: 999px; padding: 10px 18px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; line-height: 1.1; transition: background .15s, color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--red); border-color: var(--red); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.small { padding: 6px 12px; font-size: .85rem; }
.btn[disabled] { opacity: .5; cursor: progress; }
.icon { font: 500 1.3rem/1 'Plex', sans-serif; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; display: inline-grid; place-items: center; }
.icon:hover { border-color: var(--ink); }
.chip { font: 500 .85rem/1 var(--mono); border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 9px 12px; cursor: pointer; color: var(--ink); min-width: 62px; }

.work { scroll-margin-top: 78px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.files { display: flex; gap: 6px; padding: 10px 12px 0; overflow-x: auto; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.files button { font: 500 .85rem/1.2 var(--mono); border: 1px solid var(--line); border-bottom: none; background: transparent; padding: 9px 14px; border-radius: 10px 10px 0 0; cursor: pointer; color: var(--ink-2); white-space: nowrap; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.files button[aria-selected="true"] { background: var(--card); color: var(--ink); }
.files button .bad { color: var(--red-2); }
.bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.pager, .zoom, .acts { display: flex; align-items: center; gap: 8px; }
#pageno { font: 500 .9rem/1 var(--mono); min-width: 70px; text-align: center; }
.status { padding: 0 16px; font-size: .9rem; color: var(--ink-2); }
.status:not(:empty) { padding: 10px 16px; background: #fff7e6; border-bottom: 1px solid var(--line); }
.status.err:not(:empty) { background: #fdecea; color: #8e2a1b; }
.panes { display: grid; grid-template-columns: 150px 1fr; height: min(78vh, 900px); }
.thumbs { list-style: none; margin: 0; padding: 12px; overflow-y: auto; border-right: 1px solid var(--line); background: var(--paper); display: grid; align-content: start; gap: 12px; counter-reset: pg; }
.thumbs li { cursor: pointer; text-align: center; font: 500 .72rem/1 var(--mono); color: var(--ink-3); }
.thumbs img, .thumbs .ph { display: block; width: 100%; background: #fff; border: 2px solid transparent; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.12); margin-bottom: 6px; }
.thumbs .ph { aspect-ratio: 210/297; background: #fbf8f2; }
.thumbs li[aria-current="true"] img, .thumbs li[aria-current="true"] .ph { border-color: var(--red); }
.stage { overflow: auto; background: var(--stage); padding: 24px; display: grid; justify-items: center; align-items: start; }
.page { background: #fff; box-shadow: var(--shadow); line-height: 0; }
.page img { display: block; width: 100%; height: auto; }
.textpanel { border-top: 1px solid var(--line); }
.textbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; background: var(--paper-2); }
.textpanel pre { margin: 0; padding: 16px; max-height: 340px; overflow: auto; font: 400 .9rem/1.55 var(--mono); white-space: pre-wrap; }

/* Sections */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 64px; }
.how article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.how .num { font: 500 .8rem/1 var(--mono); color: var(--red-2); display: block; margin-bottom: 16px; }
.how h3 { font-size: 1.2rem; }
.how p { margin: 0; color: var(--ink-2); }
.why { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; margin-bottom: 64px; align-items: start; }
.why p { color: var(--ink-2); }
.guides-list { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 22px; }
.guides-list h3 { font: 500 .8rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #9fb0d0; margin-bottom: 12px; }
.guides-list a { display: flex; justify-content: space-between; gap: 12px; color: #fff; text-decoration: none; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.12); }
.guides-list a:hover span { color: var(--red); transform: translateX(3px); }
.guides-list span { transition: transform .15s; }
.faq { margin-bottom: 72px; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 500; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; font: 500 1.3rem/1 var(--mono); color: var(--red); }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 10px 0 0; color: var(--ink-2); }

.guide-head { padding: clamp(32px, 5vw, 56px) 0 12px; }
.guide-head h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
.prose { margin-bottom: 72px; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose li { margin-bottom: .4em; }
.prose .more { margin-top: 2.4em; padding-top: 1em; border-top: 1px solid var(--line); color: var(--ink-2); }
.narrow-top { padding-top: 48px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin: 12px auto 72px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--ink); transform: translateY(-2px); color: inherit; }
.card h2 { font-size: 1.2rem; }
.card p { color: var(--ink-2); margin: 0 0 12px; font-size: .95rem; }
.card span { font: 500 .85rem/1 var(--mono); color: var(--red-2); }

.foot { background: var(--ink); color: #c9d1e2; padding: 48px 0 56px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot .brand { color: #fff; } .foot .brand .logo { color: #fff; }
.foot p { margin: 10px 0 0; font-size: .92rem; }
.foot .cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot h4 { font: 500 .75rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #8c9bb9; margin: 4px 0 12px; }
.foot .cols a { display: block; color: #fff; text-decoration: none; font-size: .92rem; padding: 4px 0; }
.foot .cols a:hover { color: #ffb4a6; }

@media (max-width: 860px) {
  .hero-grid, .why { grid-template-columns: 1fr; }
  .proof { width: min(340px, 100%); }
  .how { grid-template-columns: 1fr; }
  .panes { grid-template-columns: 1fr; height: auto; }
  .thumbs { display: flex; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line); }
  .thumbs li { flex: 0 0 74px; }
  .stage { height: 70vh; padding: 12px; }
  .top nav a:not(:first-child) { display: none; }
}
@media print {
  body * { visibility: hidden !important; }
  #printroot, #printroot * { visibility: visible !important; }
  #printroot { position: absolute; left: 0; top: 0; width: 100%; }
  #printroot img { width: 100%; page-break-after: always; display: block; }
}
