/* stepcheck: print-shop look. Paper, ink and one red pen. Type: Fraunces (headings), Lexend (text and numbers,
   plain zero); column work is drawn in fixed-width digit cells. Scale 1.25, 4/8 px grid. */
@font-face { font-family: "Lexend"; font-weight: 400; font-display: swap; src: url(/fonts/lexend-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Lexend"; font-weight: 600; font-display: swap; src: url(/fonts/lexend-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 600; font-display: swap; src: url(/fonts/fraunces-latin-600-normal.woff2) format("woff2"); }

:root {
  --paper: #f7f5ef; --sheet: #fff; --ink: #1c1f23; --ink-2: #4a4f57; --line: #d9d5ca; --line-2: #ebe8df;
  --pen: #b8321f; --pen-ink: #fff; --pen-soft: #f6e4df; --focus: #1d5fd1;
  --f-head: "Fraunces", "Iowan Old Style", Georgia, serif; --f-text: "Lexend", system-ui, sans-serif; --f-mono: "Lexend", system-ui, sans-serif;
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 64px; --s8: 96px;
  --t-sm: .8rem; --t-md: 1rem; --t-lg: 1.25rem; --t-xl: 1.5625rem; --t-2xl: 1.953rem; --t-3xl: 2.441rem;
  --r: 4px; --wrap: 1180px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #15171a; --ink: #ecebe6; --ink-2: #b4b2ab; --line: #34373c; --line-2: #24272b; --pen: #ff7a61; --pen-ink: #1a0d0a; --pen-soft: #3a1f1a; --focus: #8ab4ff; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--t-md)/1.55 var(--f-text); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pen); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 var(--s3); }
h1 { font-size: clamp(2rem, 4.2vw, var(--t-3xl)); max-width: 20ch; }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-lg); }
p { margin: 0 0 var(--s3); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s4); }
.skip { position: absolute; left: -999px; } .skip:focus { left: var(--s3); top: var(--s3); background: var(--sheet); color: #1c1f23; padding: var(--s2); z-index: 9; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header / footer */
.top { border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: var(--s4); min-height: 64px; flex-wrap: wrap; }
.brand { font: 600 var(--t-lg)/1 var(--f-head); text-decoration: none; display: inline-flex; align-items: center; gap: var(--s2); margin-right: auto; }
.brand svg { flex: none; }
.bar nav { display: flex; gap: var(--s1); flex-wrap: wrap; }
.bar nav a { text-decoration: none; padding: 10px 12px; border-radius: var(--r); color: var(--ink-2); }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--ink); background: var(--line-2); }
.foot { border-top: 1px solid var(--line); margin-top: var(--s8); padding: var(--s5) 0 var(--s6); color: var(--ink-2); font-size: var(--t-sm); }
.foot p { max-width: 72ch; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 44px; padding: 10px 18px; border-radius: var(--r);
  border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 600 var(--t-md)/1.2 var(--f-text); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, transform .15s; }
.btn:hover { background: var(--line-2); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--pen); border-color: var(--pen); color: var(--pen-ink); }
.btn.primary:hover { filter: brightness(1.08); color: var(--pen-ink); }
.btn.quiet { border-color: var(--line); }
.btn[disabled] { opacity: .55; cursor: default; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s6); padding: var(--s7) 0 var(--s6); align-items: start; }
.kicker { font: 600 var(--t-sm)/1.3 var(--f-text); text-transform: uppercase; letter-spacing: .08em; color: var(--pen); margin-bottom: var(--s3); }
.lede { font-size: var(--t-lg); color: var(--ink-2); max-width: 46ch; }
.cta { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; margin: var(--s4) 0; }
.facts { list-style: none; padding: 0; margin: var(--s4) 0 0; display: grid; gap: var(--s2); color: var(--ink-2); font-size: .95rem; }
.facts li { padding-left: 22px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 2px; background: var(--pen); }
.sample-frame { position: relative; }
.sample-frame .ws { box-shadow: 0 1px 0 var(--line), 0 12px 32px -18px rgba(0,0,0,.35); }
.sample-note { font-size: var(--t-sm); color: var(--ink-2); margin-top: var(--s2); }

/* sections */
.sec { padding: var(--s6) 0; border-top: 1px solid var(--line); }
.sec > .wrap > p, .prose p, .prose li { max-width: 68ch; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s6); }
.steps-how { counter-reset: h; list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s4); }
.steps-how li { counter-increment: h; display: grid; grid-template-columns: 40px 1fr; gap: var(--s3); }
.steps-how li::before { content: counter(h); font: 600 var(--t-xl)/1 var(--f-head); color: var(--pen); }
.steps-how b { display: block; margin-bottom: var(--s1); }
table.skills { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.skills th, table.skills td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.skills thead th { font-size: var(--t-sm); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
table.skills td.g { font-family: var(--f-mono); white-space: nowrap; }
.tablewrap { overflow-x: auto; }
.price { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r); max-width: 820px; }
.price > div { padding: var(--s4); }
.price > div + div { border-left: 1px solid var(--line); }
.price .amt { font: 600 var(--t-2xl)/1 var(--f-head); margin: var(--s2) 0 var(--s3); }
.price ul { padding-left: 18px; margin: 0 0 var(--s4); }
.faq details { border-bottom: 1px solid var(--line); padding: var(--s3) 0; max-width: 76ch; }
.faq summary { cursor: pointer; font-weight: 600; min-height: 28px; }
.faq details p { margin: var(--s2) 0 0; color: var(--ink-2); }
.crumbs { font-size: var(--t-sm); color: var(--ink-2); padding-top: var(--s4); }
.crumbs a { color: var(--ink-2); }
.mislist { padding-left: 20px; } .mislist li { margin-bottom: var(--s3); max-width: 72ch; }
.mislist .ex { display: block; color: var(--ink-2); font-size: .95rem; }
.prose { padding: var(--s6) 0; } .prose h2 { margin-top: var(--s5); font-size: var(--t-xl); }
.updated { font-size: var(--t-sm); color: var(--ink-2); }

/* generator */
.maker { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--s5); padding: var(--s5) 0; align-items: start; }
.panel { position: sticky; top: var(--s3); display: grid; gap: var(--s3); }
.panel h1 { font-size: var(--t-xl); margin-bottom: 0; }
.field { display: grid; gap: var(--s1); }
.field > span, fieldset legend { font-weight: 600; font-size: .95rem; }
select, input[type=email], input[type=text] { min-height: 44px; width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--sheet); color: #1c1f23; font: inherit; }
@media (prefers-color-scheme: dark) { select, input[type=email], input[type=text] { background: #202327; color: var(--ink); } }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s1); }
.radio { display: flex; gap: var(--s2); align-items: flex-start; min-height: 32px; cursor: pointer; font-size: .95rem; }
.radio input { margin-top: 4px; accent-color: var(--pen); width: 18px; height: 18px; flex: none; }
.radio small { display: block; color: var(--ink-2); }
.actions { display: grid; gap: var(--s2); }
.status { min-height: 1.4em; font-size: var(--t-sm); color: var(--ink-2); margin: 0; }
.pro { border: 1px dashed var(--line); border-radius: var(--r); padding: var(--s3); font-size: .92rem; }
.pro p { margin-bottom: var(--s2); }
.pro ul { margin: 0 0 var(--s3); padding-left: 18px; color: var(--ink-2); }
.preview { display: grid; gap: var(--s4); }

/* dialog */
dialog { border: 1px solid var(--line); border-radius: var(--r); padding: var(--s5); max-width: 460px; width: calc(100% - 32px); background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgba(20, 20, 20, .5); }
dialog form { display: grid; gap: var(--s3); }
dialog .row { display: flex; gap: var(--s2); flex-wrap: wrap; }

/* ---------- the worksheet (always paper, also in dark mode) ---------- */
.ws { background: #fff; color: #1c1f23; padding: 40px 44px; border: 1px solid #dcd8cd; font: 400 15px/1.45 var(--f-text); }
.ws a { color: inherit; }
.ws-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; border-bottom: 2px solid #1c1f23; padding-bottom: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.ws-kicker { font: 600 11px/1.2 var(--f-text); letter-spacing: .08em; text-transform: uppercase; color: #6b6f76; margin: 0 0 4px; }
.ws-title { font: 600 22px/1.15 var(--f-head); margin: 0; max-width: 30ch; }
.ws-name { display: flex; gap: 16px; margin: 0; font-size: 13px; }
.ws-task { font-size: 13.5px; margin: 0 0 16px; max-width: none; }
.blank { display: inline-block; border-bottom: 1px solid #1c1f23; height: 1em; vertical-align: -2px; }
.blank.s { width: 56px; } .blank.m { width: 96px; } .blank.l { width: 150px; }
.box { display: inline-block; width: 13px; height: 13px; border: 1.5px solid #1c1f23; vertical-align: -2px; margin: 0 2px 0 8px; }
.probs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid #e3dfd5; }
.pb { padding: 14px 16px 14px 0; border-bottom: 1px solid #e3dfd5; break-inside: avoid; page-break-inside: avoid; }
.pb:nth-child(2n) { padding-left: 16px; padding-right: 0; border-left: 1px solid #e3dfd5; }
.pb-q { font: 600 17px/1.3 var(--f-text); margin: 0 0 2px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pb-n { font: 600 13px/1 var(--f-mono); border: 1.5px solid #1c1f23; border-radius: 50%; width: 24px; height: 24px; display: inline-grid; place-items: center; flex: none; }
.pb-who { font-size: 12px; color: #6b6f76; margin: 0 0 6px; font-style: italic; }
.steps { margin: 0 0 6px; padding-left: 0; list-style: none; counter-reset: st; font-size: 13.5px; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 52px 1fr; gap: 4px; padding: 2px 0; }
.steps li::before { content: "Step " counter(st); font: 500 11.5px/1.9 var(--f-mono); color: #6b6f76; }
.pb-ans { font-size: 13.5px; margin: 0 0 8px; }
.resp { display: grid; gap: 8px; font-size: 12.5px; color: #3a3e44; }
.resp span { display: flex; align-items: flex-end; gap: 6px; flex-wrap: wrap; }
.resp .blank.l { flex: 1; min-width: 100px; }
.colw { display: grid; gap: 0; margin: 2px 0 10px 56px; font: 400 16px/1 var(--f-text); width: max-content; }
.colw .r { display: flex; }
.colw .c { width: 1.05em; height: 1.45em; display: grid; place-items: center; border-right: 1px solid #eeebe3; border-bottom: 1px solid #eeebe3; }
.colw .r .c:first-child { border-left: 1px solid #eeebe3; }
.colw .r:first-child .c { border-top: 1px solid #eeebe3; }
.colw .rule .c { border-bottom: 1.5px solid #1c1f23; }
.fr { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; font-size: .9em; line-height: 1.05; margin: 0 2px; }
.fr span:first-child { border-bottom: 1.25px solid currentColor; padding: 0 2px; }
.ws-foot { font-size: 11px; color: #6b6f76; margin: 14px 0 0; }
.keyt { width: 100%; border-collapse: collapse; font-size: 13px; }
.keyt th, .keyt td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid #e3dfd5; vertical-align: top; }
.keyt thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #6b6f76; }
.keyt tbody th { font-family: var(--f-mono); }
.keyt td:nth-child(2) { white-space: nowrap; color: #b8321f; font-weight: 600; }
.keyt .fix { display: block; color: #4a4f57; margin-top: 4px; }
.keyt .ans { font-weight: 600; white-space: nowrap; }
.keyt .was { display: block; font-weight: 400; color: #6b6f76; font-size: 12px; }
/* the sample on the landing page: the planted step circled in red pen */
.mark-step { outline: 2px solid #b8321f; outline-offset: 2px; border-radius: 12px; }

@media (max-width: 900px) {
  .hero, .two, .maker { grid-template-columns: 1fr; }
  .panel { position: static; }
  .hero { padding-top: var(--s5); gap: var(--s5); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 var(--s3); }
  .ws { padding: 20px 16px; }
  .probs { grid-template-columns: 1fr; }
  .pb, .pb:nth-child(2n) { padding: 14px 0; border-left: 0; }
  .price { grid-template-columns: 1fr; } .price > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .colw { margin-left: 0; }
  .keyt td:nth-child(2) { white-space: normal; }
  .bar nav a { padding: 10px 8px; }
}

@page { size: letter; margin: .45in; }
@media print {
  body { background: #fff; }
  .top, .foot, .panel, .noprint, .crumbs, .status { display: none !important; }
  .maker { display: block; padding: 0; }
  .wrap { max-width: none; padding: 0; }
  .preview { display: block; }
  .ws { border: 0; padding: 0; box-shadow: none; font-size: 13.5px; }
  .ws.key { break-before: page; page-break-before: always; }
  .probs { grid-template-columns: 1fr 1fr; }
  a { text-decoration: none; }
}
.per { font-size: 1rem; font-family: var(--f-text); font-weight: 400; }
.tight { padding-top: var(--s4); } .spaced { margin: var(--s5) 0; }
.h-sm { font-size: var(--t-lg); } .h-mid { font-size: var(--t-xl); margin-top: var(--s5); }
.keyt td.none { color: #6b6f76; font-weight: 400; }
