/* PrintProof QR
   Direction: a printer's proof on a cutting mat. The QR code is the hero;
   magenta is reserved for print marks (crop marks, registration target). */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2-variations"), url("/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --mat: #2f5e4f;
  --mat-deep: #244a3e;
  --mat-line: rgba(255, 255, 255, 0.06);
  --mat-line-strong: rgba(255, 255, 255, 0.13);
  --paper: #ffffff;
  --canvas: #eef0ec;
  --ink: #202020;
  --ink-soft: #545b56;
  --rule: #d3d8d3;
  --magenta: #e4007c;
  --cyan: #00a0e2;
  --yellow: #ffe500;
  --error: #a4261b;
  --focus: var(--magenta);
  --radius: 4px;
  --measure: 38rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-kerning: normal;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--paper); color: var(--ink); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2 { margin: 0 0 0.6em; line-height: 1.08; text-wrap: balance; }
h1 { font-stretch: 125%; font-weight: 820; font-size: clamp(2.1rem, 1.1rem + 3.4vw, 3.9rem); letter-spacing: -0.012em; }
h2 { font-stretch: 112%; font-weight: 760; font-size: clamp(1.5rem, 1.05rem + 1.5vw, 2.3rem); letter-spacing: -0.006em; }
p { margin: 0 0 1em; }
small { font-size: 0.875rem; }

/* ------------------------------------------------------------ the cutting mat */
.mat,
.site-header,
.hero,
.site-footer {
  --focus: var(--yellow);
  color: #fff;
  background-color: var(--mat);
  background-image:
    linear-gradient(var(--mat-line-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--mat-line-strong) 1px, transparent 1px),
    linear-gradient(var(--mat-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--mat-line) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem max(clamp(1.25rem, 4vw, 3rem), calc((100% - 72rem) / 2));
}
/* On the home page the header floats on the hero so the mat grid runs unbroken. */
.home .site-header { position: absolute; inset: 0 0 auto 0; background: none; z-index: 2; }

.wordmark { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; font-stretch: 118%; font-weight: 780; font-size: 1.15rem; }
.wordmark-mark { width: 1.35rem; height: 1.35rem; color: var(--magenta); }
.site-header nav { display: flex; gap: 1.4rem; flex-wrap: wrap; font-size: 0.975rem; }
.site-header nav a { text-decoration: none; opacity: 0.9; }
.site-header nav a:hover { text-decoration: underline; opacity: 1; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; padding: clamp(5.5rem, 9vw, 7.5rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 7vw, 5.5rem); }
.hero-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  gap: 2.25rem clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "copy" "proof" "form";
}
.hero-copy { grid-area: copy; }
.hero-proof { grid-area: proof; }
.maker { grid-area: form; }

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    grid-template-areas: "copy proof" "form proof";
    align-items: start;
  }
  .hero-proof { position: sticky; top: 2rem; padding-top: 0.5rem; }
}

.hero h1 { max-width: 15ch; }
.lede { font-size: clamp(1.075rem, 1rem + 0.3vw, 1.2rem); max-width: var(--measure); color: rgba(255, 255, 255, 0.88); margin-bottom: 0; }

/* ------------------------------------------------------------ the proof sheet */
.sheet {
  --gap: 20px;
  position: relative;
  margin: 0 auto;
  max-width: 25rem;
  background: var(--paper);
  color: var(--ink);
  padding: 2.4rem clamp(1.25rem, 4vw, 2.25rem) 1.1rem;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.22), 0 22px 40px -22px rgba(0, 0, 0, 0.6);
}
.home .sheet { transform: rotate(-1.2deg); }

.reg { position: absolute; top: 0.6rem; left: 50%; width: 18px; height: 18px; margin-left: -9px; color: var(--magenta); }

.trim { position: relative; padding: var(--gap); }
.crop { position: absolute; width: var(--gap); height: var(--gap); }
.crop::before, .crop::after { content: ""; position: absolute; background: var(--magenta); }
.crop::before { height: 1px; width: calc(var(--gap) - 6px); }
.crop::after { width: 1px; height: calc(var(--gap) - 6px); }
.crop.tl { top: 0; left: 0; }
.crop.tl::before { bottom: 0; left: 0; }
.crop.tl::after { right: 0; top: 0; }
.crop.tr { top: 0; right: 0; }
.crop.tr::before { bottom: 0; right: 0; }
.crop.tr::after { left: 0; top: 0; }
.crop.bl { bottom: 0; left: 0; }
.crop.bl::before { top: 0; left: 0; }
.crop.bl::after { right: 0; bottom: 0; }
.crop.br { bottom: 0; right: 0; }
.crop.br::before { top: 0; right: 0; }
.crop.br::after { left: 0; bottom: 0; }

.qr svg { width: 100%; height: auto; }
.qr.printing svg { animation: print 420ms steps(14, end); }
@keyframes print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

.sheet figcaption { margin-top: 0.4rem; font-size: 0.92rem; color: var(--ink-soft); overflow-wrap: anywhere; min-height: 1.4em; }
.sheet figcaption strong { color: var(--ink); font-weight: 650; }

.colorbar { display: grid; grid-template-columns: repeat(8, 1fr); height: 9px; margin-top: 1rem; }
.colorbar i { display: block; }
.colorbar .c { background: var(--cyan); }
.colorbar .m { background: var(--magenta); }
.colorbar .y { background: var(--yellow); }
.colorbar .k { background: #000; }
.colorbar .c50 { background: #80cff0; }
.colorbar .m50 { background: #f180be; }
.colorbar .y50 { background: #fff27f; }
.colorbar .k50 { background: #808080; }

.proof-note { text-align: center; font-size: 0.92rem; margin: 1.4rem 0 0; color: rgba(255, 255, 255, 0.8); }

/* ------------------------------------------------------------ forms */
.maker { max-width: var(--measure); }
.field { display: block; margin-bottom: 1.25rem; }
.field-label { display: block; font-weight: 640; margin-bottom: 0.45rem; }
.field-label small { font-weight: 400; opacity: 0.8; }

input[type="text"], input[type="email"] {
  width: 100%;
  font: inherit;
  font-size: 1.125rem;
  padding: 0.8rem 0.95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
}
input[type="text"]:focus-visible, input[type="email"]:focus-visible { outline-offset: 0; }
.hero input[type="text"] { border-color: transparent; font-size: 1.25rem; padding: 0.95rem 1rem; }
input::placeholder { color: #8a908b; }

.field-error { margin: -0.6rem 0 1.25rem; font-weight: 600; }
.hero .field-error { color: var(--yellow); }
.field-warning { font-size: 0.95rem; margin: 0 0 1.25rem; }
.hero .field-warning { color: var(--yellow); }

.kind { border: 0; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 0.6rem; }
.kind legend { font-weight: 640; margin-bottom: 0.45rem; padding: 0; }
.kind-option {
  position: relative;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  cursor: pointer;
}
.kind-option:has(input:checked) { border-color: #fff; background: rgba(255, 255, 255, 0.09); }
.kind-option input {
  appearance: none;
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.2rem 0 0;
  border: 2px solid #fff;
  border-radius: 50%;
  display: grid;
  place-content: center;
}
.kind-option input::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #fff; transform: scale(0); transition: transform 120ms; }
.kind-option input:checked::before { transform: scale(1); }
.kind-option strong { display: block; font-weight: 680; }
.kind-option small { display: block; font-size: 0.93rem; opacity: 0.86; line-height: 1.45; margin-top: 0.15rem; }

.colors { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; margin-bottom: 1.25rem; }
.swatch { display: inline-flex; align-items: center; gap: 0.6rem; cursor: pointer; font-size: 0.975rem; }
.swatch input {
  width: 2.4rem;
  height: 2.4rem;
  padding: 0.18rem;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
}
.hero .swatch input { border-color: rgba(255, 255, 255, 0.6); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 0.25rem; }
.fine { flex-basis: 100%; font-size: 0.9rem; margin: 0.35rem 0 0; opacity: 0.85; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 660;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.85rem 1.25rem;
  min-height: 2.9rem;
  border-radius: var(--radius);
  border: 1.5px solid currentColor;
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { text-decoration: none; background: rgba(127, 127, 127, 0.1); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.hero .btn-primary { background: #fff; border-color: #fff; color: var(--ink); }
.hero .btn-primary:hover { background: #f2f2f2; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn.is-busy { opacity: 0.7; pointer-events: none; }

/* ------------------------------------------------------------ sections */
.section-inner { box-sizing: content-box; max-width: 72rem; margin: 0 auto; padding: clamp(3.25rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3rem); }
.section-lede { max-width: var(--measure); color: var(--ink-soft); font-size: 1.1rem; }

.table-wrap { overflow-x: auto; margin-top: 2rem; }
.compare table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 1.02rem; }
.compare th, .compare td { text-align: left; padding: 0.95rem 1rem 0.95rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.compare thead th { font-stretch: 112%; font-weight: 740; font-size: 1.15rem; border-bottom: 2px solid var(--ink); }
.compare tbody th { font-weight: 600; width: 34%; }
.compare td { color: var(--ink-soft); }

.promise { background: var(--canvas); }
.promise h2 { font-stretch: 125%; font-weight: 820; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.2rem); }
.promise p { max-width: var(--measure); font-size: 1.1rem; }

.faq details { border-top: 1px solid var(--rule); max-width: 48rem; }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2.5rem 1.1rem 0;
  font-weight: 650;
  font-size: 1.1rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.35rem;
  top: 50%;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: -0.5rem;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  transition: transform 160ms;
}
.faq details[open] summary::after { transform: translateY(0.3rem) rotate(-135deg); }
.answer { padding: 0 0 1.25rem; color: var(--ink-soft); max-width: var(--measure); }

/* ------------------------------------------------------------ footer */
.site-footer { padding: 2.5rem clamp(1.25rem, 4vw, 3rem); font-size: 0.95rem; }
.footer-inner { max-width: 72rem; margin: 0 auto; }
.footer-brand { font-stretch: 118%; font-weight: 780; font-size: 1.1rem; margin-bottom: 0.25rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; margin-top: 1rem; }

/* ------------------------------------------------------------ manage page */
.page-manage main { background: var(--canvas); }
.manage-inner { box-sizing: content-box; max-width: 72rem; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 7vw, 5rem); }
.manage-grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .manage-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; } }
.manage-proof .sheet { margin: 0; max-width: 24rem; }
.manage-proof .actions { margin-top: 1.5rem; }
.short-link { margin-top: 1rem; font-size: 0.95rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.short-link a { color: var(--ink); font-weight: 600; margin-left: 0.4rem; }

.manage-side { display: grid; gap: 2rem; }
.edit, .stats { background: var(--paper); padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius); border: 1px solid var(--rule); }
.edit h1 { font-stretch: 112%; font-weight: 760; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); }
.edit .fine { margin: -0.5rem 0 1.25rem; color: var(--ink-soft); opacity: 1; }
.stats h2 { font-size: 1.3rem; }
.stats dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0 0 1.25rem; }
.stats dt { font-size: 0.9rem; color: var(--ink-soft); }
.stats dd { margin: 0.1rem 0 0; font-stretch: 112%; font-weight: 740; font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.stats dd.small { font-size: 1.05rem; font-weight: 640; padding-top: 0.45rem; }
.chart { margin: 0; }
.chart svg { width: 100%; height: 4rem; }
.chart rect { fill: var(--mat); }
.chart rect.zero { fill: var(--rule); }
.chart figcaption { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.35rem; }

.notice { padding: 1rem 1.25rem; border: 1.5px solid var(--rule); border-radius: var(--radius); background: var(--paper); margin: 0 0 1.75rem; }
.notice h2 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.notice-new { border-color: var(--mat); }
.notice-saved { border-color: var(--mat); background: #e5efe9; }
.notice-error { border-color: var(--error); background: #fcecea; color: #6f160e; }
.copy-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.copy-row input { flex: 1 1 16rem; font-size: 0.95rem; }

/* ------------------------------------------------------------ message + legal pages */
.message-inner { max-width: 44rem; margin: 0 auto; padding: clamp(3rem, 8vw, 5.5rem) clamp(1.25rem, 4vw, 3rem); }
.message h1 { font-stretch: 118%; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); }
.message p { max-width: var(--measure); }
.recover { margin-top: 1.5rem; max-width: 26rem; }
.prose h2 { font-size: 1.25rem; margin-top: 2rem; }

@media (max-width: 560px) {
  .site-header nav { gap: 1rem; font-size: 0.93rem; }
  .home .hero { padding-top: 8.75rem; }
  .sheet { max-width: 20rem; }
  .stats dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .home .sheet { transform: none; }
}
