/* Pubora — a print shop's proofing desk. Pages sit on a cool grey desk like printed proofs; the
   header and footer are dark ink bands closed by a printer's colour bar (cyan, magenta, yellow, black).
   Cyan is the action colour; warm sun yellow is the second colour, magenta only appears in pictograms. */
@font-face { font-family: 'Atkinson Next'; src: url('ui/atkinson-400.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Atkinson Next'; src: url('ui/atkinson-700.woff') format('woff'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Young Serif'; src: url('ui/youngserif.woff') format('woff'); font-weight: 400; font-display: swap; }

:root {
  --desk: #e9ecee;
  --sheet: #fbfbf9;
  --ink: #17202c;
  --muted: #556070;
  --rule: #cfd5da;
  --cyan: #0a6f97;
  --cyan-ink: #ffffff;
  --cyan-soft: #cfe9f3;
  --sun: #f2b134;
  --sun-ink: #2a1d00;
  --sun-soft: #fbefd2;
  --mag: #c8406f;
  --mag-soft: #f6d3df;
  --k: #17202c;
  --band: #17202c;
  --band-2: #243042;
  --on-band: #eef1f4;
  --on-band-muted: #a9b3be;
  --ok: #2d7a3e;
  --bad: #a3361f;
  --shadow: 0 1px 2px rgba(20, 30, 40, .10), 0 10px 30px rgba(20, 30, 40, .10);
  --f-display: 'Young Serif', Georgia, 'Times New Roman', serif;
  --f-body: 'Atkinson Next', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --desk: #14181d; --sheet: #1d2228; --ink: #e5e8ec; --muted: #9ea7b2; --rule: #343c45;
    --cyan: #5cc2ea; --cyan-ink: #08202b; --cyan-soft: #12303d;
    --sun: #f5c157; --sun-ink: #2a1d00; --sun-soft: #2a2416; --mag: #ec6f9a; --mag-soft: #3a1a27; --k: #5d6876;
    --band: #0b0e12; --band-2: #1b222b; --on-band: #e5e8ec; --on-band-muted: #8f99a5;
    --ok: #7ccc8c; --bad: #f08a70;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 30px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --desk: #14181d; --sheet: #1d2228; --ink: #e5e8ec; --muted: #9ea7b2; --rule: #343c45;
  --cyan: #5cc2ea; --cyan-ink: #08202b; --cyan-soft: #12303d;
  --sun: #f5c157; --sun-ink: #2a1d00; --sun-soft: #2a2416; --mag: #ec6f9a; --mag-soft: #3a1a27; --k: #5d6876;
  --band: #0b0e12; --band-2: #1b222b; --on-band: #e5e8ec; --on-band-muted: #8f99a5;
  --ok: #7ccc8c; --bad: #f08a70;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 30px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--desk); color: var(--ink); font: 17px/1.6 var(--f-body); }
a { color: var(--cyan); text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -.005em; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }

/* pictograms */
.pic, .mini { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pic { width: 72px; height: 72px; stroke-width: 2; }
.mini { width: 24px; height: 24px; stroke-width: 1.7; }
.f-cyan { fill: var(--cyan-soft); }
.f-sun { fill: var(--sun); }
.f-mag { fill: var(--mag-soft); }
.f-sheet { fill: var(--sheet); }
.pic-txt { font: 700 9px var(--f-body); fill: var(--ink); stroke: none; letter-spacing: .02em; }

/* header: dark ink band + colour bar */
.top { background: var(--band); color: var(--on-band); }
.top .wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--on-band); font-family: var(--f-display); font-size: 25px; }
.brand svg { width: 30px; height: 30px; }
.lg-sheet { fill: var(--band-2); stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.lg-line { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.lg-bar { fill: var(--sun); }
.lg-text { fill: currentColor; opacity: .6; }
.nav { margin-left: auto; display: flex; gap: 26px; flex-wrap: wrap; align-items: center; font-size: 15px; }
.nav a { color: var(--on-band); text-decoration: none; padding-block: 4px; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--sun); }
.nav .lang { color: var(--on-band-muted); border: 1px solid var(--on-band-muted); border-radius: 4px; padding: 1px 8px; }
.nav .lang:hover { color: var(--on-band); border-color: var(--sun); }
.top :focus-visible, .foot :focus-visible { outline-color: var(--sun); }
.cmyk { display: grid; grid-template-columns: repeat(4, 1fr); height: 6px; }
.cmyk span:nth-child(1) { background: var(--cyan); }
.cmyk span:nth-child(2) { background: var(--mag); }
.cmyk span:nth-child(3) { background: var(--sun); }
.cmyk span:nth-child(4) { background: var(--k); }

/* hero */
.hero { padding-block: 80px 104px; overflow: clip; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
@media (max-width: 900px) { .hero { padding-block: 48px 72px; } .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 56px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 14px; height: 14px; background: var(--sun); border-radius: 2px; }
.hero h1 { font-size: clamp(36px, 4.8vw, 58px); }
.lede { color: var(--muted); font-size: 19px; max-width: 30em; margin-top: 24px; }
.promises { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
@media (max-width: 520px) { .promises { grid-template-columns: minmax(0, 1fr); } }
.promises li { display: flex; gap: 12px; align-items: center; font-size: 16px; }

/* drop sheet, with two proofs fanned behind it */
.drop-wrap { position: relative; isolation: isolate; padding: 24px 28px; }
.proof { position: absolute; width: 44%; z-index: -1; fill: none; stroke: var(--rule); stroke-width: 1.5; stroke-linecap: round; filter: drop-shadow(0 6px 14px rgba(20, 30, 40, .10)); }
.proof .f-sheet { fill: var(--sheet); }
.proof-a { left: -4%; top: 2%; transform: rotate(-9deg); }
.proof-b { right: -5%; bottom: -2%; transform: rotate(8deg); }
@media (max-width: 600px) { .proof { display: none; } .drop-wrap { padding: 12px 0; } }
.drop {
  position: relative; background: var(--sheet); box-shadow: var(--shadow);
  padding: 52px 40px 40px; text-align: center; display: grid; gap: 18px; justify-items: center; align-content: center;
  min-height: 460px; max-width: 100%;
}
@media (max-width: 600px) { .drop { min-height: 0; padding: 40px 24px 32px; } }
.drop::before, .drop::after, .drop .cm::before, .drop .cm::after { content: ""; position: absolute; width: 22px; height: 22px; border: 0 solid var(--muted); opacity: .7; }
.drop::before { top: -12px; left: -12px; border-right-width: 1px; border-bottom-width: 1px; }
.drop::after { top: -12px; right: -12px; border-left-width: 1px; border-bottom-width: 1px; }
.drop .cm::before { bottom: -12px; left: -12px; border-right-width: 1px; border-top-width: 1px; }
.drop .cm::after { bottom: -12px; right: -12px; border-left-width: 1px; border-top-width: 1px; }
.drop .ext { font-family: var(--f-display); font-size: 68px; line-height: 1; color: var(--cyan); }
.drop h2 { font-size: 26px; }
.drop p { color: var(--muted); font-size: 15px; max-width: 26em; }
body.dragging .drop { outline: 3px dashed var(--sun); outline-offset: 10px; }

.btn {
  font: inherit; font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 6px; border: 1px solid var(--cyan); background: var(--cyan); color: var(--cyan-ink); cursor: pointer; text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--sheet); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); font-weight: 400; }
.btn.ghost:hover { border-color: var(--cyan); }
.btn.small { padding: 6px 12px; font-size: 14px; }
.samples { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; font-size: 14px; margin-top: 6px; }
.samples .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; width: 100%; }
.chip { font: inherit; font-size: 14px; background: transparent; color: var(--ink); border: 1px solid var(--rule); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.chip:hover { border-color: var(--cyan); color: var(--cyan); }

.status { min-height: 1.5em; font-size: 15px; color: var(--muted); }
.status.busy::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; border: 2px solid var(--cyan); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.status.err { color: var(--bad); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .status.busy::before { animation: none; } }

.error { background: var(--sheet); border-left: 4px solid var(--bad); padding: 18px 22px; max-width: 46em; margin: 0 auto 40px; box-shadow: var(--shadow); display: grid; gap: 8px; }
.error h2 { font-family: var(--f-body); font-weight: 700; font-size: 18px; }

/* sections */
.band { background: var(--sheet); padding-block: 104px; }
.band.alt { background: transparent; }
.band.sun { background: var(--sun-soft); }
@media (max-width: 760px) { .band { padding-block: 72px; } }
.section-title { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 56px; max-width: 20em; }
.section-title.center { text-align: center; margin-inline: auto; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; counter-reset: step; }
.steps li { counter-increment: step; text-align: center; display: grid; justify-items: center; gap: 14px; }
.steps .pic { width: 104px; height: 104px; margin-bottom: 6px; }
.steps h3 { font-size: 24px; }
.steps h3::before { content: counter(step) ". "; color: var(--cyan); }
.steps p { color: var(--muted); max-width: 18em; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 48px; } }

.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; }
@media (max-width: 760px) { .cols { grid-template-columns: minmax(0, 1fr); gap: 44px; } }
.feature { display: grid; gap: 12px; align-content: start; }
.feature .pic { margin-bottom: 8px; }
.feature h3 { font-size: 23px; }
.feature p { color: var(--muted); max-width: 22em; }
.formats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 64px; }
.formats span { font-size: 14px; font-weight: 700; letter-spacing: .04em; border: 1px solid var(--rule); border-radius: 4px; padding: 3px 10px; color: var(--muted); background: var(--sheet); }

.org { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
@media (max-width: 860px) { .org { grid-template-columns: minmax(0, 1fr); gap: 48px; } }
.org .section-title { margin-bottom: 20px; }
.org p { color: var(--muted); margin-bottom: 32px; max-width: 30em; }
.org-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.org-points li { display: flex; gap: 16px; align-items: center; font-size: 17px; }
.org-points .mini { width: 48px; height: 48px; padding: 11px; background: var(--sheet); border-radius: 50%; box-shadow: var(--shadow); }

.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 64px; align-items: start; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.faq details { border-top: 1px solid var(--rule); padding-block: 22px; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-display); font-size: 24px; line-height: 1; color: var(--cyan); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 12px; color: var(--muted); max-width: 38em; }

/* article / legal pages */
.doc { background: var(--sheet); box-shadow: var(--shadow); max-width: 820px; margin: 56px auto 104px; padding: 56px clamp(22px, 6vw, 72px) 64px; }
.doc h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 20px; }
.doc h2 { font-size: 26px; margin: 48px 0 14px; }
.doc h3 { font-family: var(--f-body); font-weight: 700; font-size: 18px; margin: 28px 0 8px; }
.doc p { margin: 0 0 14px; }
.doc p, .doc li { max-width: 40em; }
.doc li { margin-bottom: 6px; }
.doc .meta { color: var(--muted); font-size: 15px; }
.doc .cta { background: var(--sun-soft); padding: 22px 26px; border-radius: 6px; margin: 36px 0; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.doc .cta p { margin: 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; }
.doc td, .doc th { border-bottom: 1px solid var(--rule); padding: 10px 12px 10px 0; text-align: left; vertical-align: top; }
.tablewrap { overflow-x: auto; margin: 20px 0; }
.todo { background: var(--sun-soft); color: var(--ink); outline: 1px dashed var(--sun); padding: 0 4px; border-radius: 3px; }
.price { font-family: var(--f-display); font-size: 32px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin: 28px 0 8px; }
.plan { border: 1px solid var(--rule); border-radius: 6px; padding: 22px 22px 18px; display: grid; gap: 10px; align-content: start; border-top: 5px solid var(--rule); }
.plan:nth-child(2) { border-top-color: var(--sun); }
.plan:nth-child(3) { border-top-color: var(--cyan); }
.plan h3 { margin: 0; }
.plan ul { margin: 0; padding-left: 18px; font-size: 15px; }

/* footer: dark ink band */
.foot { background: var(--band); color: var(--on-band-muted); font-size: 14px; }
.foot .wrap { display: grid; gap: 16px; padding-block: 44px 52px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot a { color: var(--on-band); }
.foot p { max-width: 60em; }

/* viewer */
.toolbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--sheet); border-bottom: 1px solid var(--rule); padding-block: 12px; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--band); }
.toolbar .wrap { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; max-width: none; }
.doc-title { min-width: 0; flex: 1 1 220px; }
.doc-title strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-title span { color: var(--muted); font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actions select { font: inherit; font-size: 14px; padding: 5px 6px; border-radius: 6px; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); }
.pages { padding-block: 36px 80px; display: flex; flex-direction: column; align-items: center; gap: 36px; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.sheet { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.sheet .paper { background: #fff; box-shadow: var(--shadow); width: min(100%, 900px); line-height: normal; color: #000; }
.sheet svg { display: block; width: 100%; height: auto; }
body.zoom-actual .sheet .paper { width: auto; max-width: none; }
body.zoom-actual .sheet svg { width: auto; }
body.zoom-actual .pages { align-items: flex-start; overflow-x: auto; }
.sheet figcaption { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.stage { position: absolute; left: -20000px; top: 0; width: 1000px; }
.print-frame { position: fixed; width: 1px; height: 1px; border: 0; right: 0; bottom: 0; opacity: 0; }

.batch { max-width: 760px; margin: 48px auto 96px; background: var(--sheet); box-shadow: var(--shadow); padding: 36px clamp(20px, 4vw, 44px); }
.batch h1 { font-size: 32px; }
.batch ol { padding-left: 22px; margin: 22px 0; display: grid; gap: 8px; }
.batch li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; }
.batch .b-name { overflow-wrap: anywhere; min-width: 0; }
.batch .b-state { color: var(--muted); font-size: 15px; }
.batch li.done .b-state { color: var(--ok); }
.batch li.failed .b-state { color: var(--bad); }
.batch li.working .b-state::after { content: " …"; }
.batch .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
