:root {
  --paper: #f0eee7;
  --paper-deep: #e5e2d9;
  --ink: #171a19;
  --ink-soft: #454b49;
  --steel: #173441;
  --sun: #f0bd68;
  --red: #a62d21;
  --line: #c9c7bd;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; font: 17px/1.65 'Avenir Next', 'Helvetica Neue', Arial, sans-serif; color: var(--ink); background: linear-gradient(145deg, #f6f4ee, var(--paper) 55%, var(--paper-deep)); -webkit-font-smoothing: antialiased; }
::selection { background: var(--sun); color: var(--ink); }
a { color: inherit; text-underline-offset: 5px; }
button, input, textarea { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, textarea:focus-visible { outline: 3px solid var(--steel); outline-offset: 4px; }
header { color: #f6f4ed; background: var(--steel); }
.kit-header { max-width: 1180px; margin: auto; padding: 20px 32px; display: flex; align-items: center; justify-content: space-between; gap: 28px; font-size: .85rem; }
.kit-header > a { font-weight: 750; text-decoration: none; }
.kit-header nav { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.kit-header a { min-height: 44px; display: inline-flex; align-items: center; }
.kit-header a:hover { color: var(--sun); }
main, footer { max-width: 1116px; margin: auto; padding: 64px 32px; }
h1, h2, h3 { text-wrap: balance; margin: 0; letter-spacing: -.035em; line-height: 1.08; }
h1 { font-size: clamp(2.8rem, 6.5vw, 5.2rem); font-weight: 850; max-width: 17ch; }
h1 span { color: var(--red); }
h2 { font-size: clamp(1.55rem, 3vw, 2rem); }
p { max-width: 68ch; text-wrap: pretty; }
.lead { max-width: 53ch; font-size: 1.25rem; color: var(--ink-soft); margin-top: 25px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin: 44px 0 56px; }
.grid article { padding: 30px; background: #fbf9f3; box-shadow: 0 10px 26px #25332c0d; }
.grid article p { color: var(--ink-soft); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; gap: 12px; border: 0; padding: 14px 20px; background: var(--red); color: white; font-size: .94rem; font-weight: 700; text-decoration: none; transition: background 180ms ease-out; }
.button:hover { background: #8d271c; }
.button.secondary { background: var(--steel); }
.button.secondary:hover { background: #244956; }
.muted, small { color: var(--ink-soft); font-size: .84rem; }
.number { font-size: .82rem; color: var(--red); }
.review { margin-top: 42px; padding: 36px 0 0; border-top: 1px solid var(--line); }
.steps { padding-left: 24px; max-width: 65ch; }
.steps li { padding-left: 7px; margin: 14px 0; }
.worksheet-invitation { margin: 30px 0; padding: 28px; color: #f6f4ed; background: linear-gradient(120deg, #173441, #244956); }
.worksheet-invitation p { margin-top: 12px; color: #d8e0dc; }
.worksheet-invitation a { min-height: 44px; display: inline-flex; align-items: center; }
.return-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; }
.return-links a { min-height: 44px; display: inline-flex; align-items: center; }
footer { padding-block: 24px 40px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--ink-soft); }
footer a { min-height: 44px; display: inline-flex; align-items: center; }
.worksheet-main { max-width: 1050px; }
.worksheet-intro { max-width: 760px; }
.worksheet-meta { font-size: .85rem; color: var(--ink-soft); margin-top: 22px; }
.worksheet-tools { margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.worksheet-tools .quiet-button { background: transparent; color: var(--ink); border: 1px solid #9baba5; }
.worksheet-tools .quiet-button:hover { background: #e5e2d9; }
.worksheet-status { min-height: 1.8em; font-size: .86rem; color: var(--ink-soft); margin-top: 14px; }
.worksheet-form { margin: 34px 0; padding: clamp(24px, 5vw, 48px); background: #fbf9f3; box-shadow: 0 18px 44px #25332c12; }
.worksheet-step { margin: 0; padding: 28px 0; border-top: 1px solid var(--line); break-inside: avoid; }
.worksheet-step:first-child { padding-top: 0; border-top: 0; }
.worksheet-step label { display: block; font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 750; line-height: 1.2; letter-spacing: -.025em; }
.worksheet-step p { margin: 12px 0 18px; font-size: .96rem; color: var(--ink-soft); }
.worksheet-step textarea { display: block; width: 100%; min-height: 126px; resize: vertical; border: 1px solid #9baba5; background: #fffefa; color: var(--ink); padding: 15px 18px; line-height: 1.6; border-radius: 0; }
.worksheet-step textarea::placeholder { color: #59635f; opacity: 1; }
.worksheet-step textarea:focus { border-color: var(--steel); }
.worksheet-example { max-width: 69ch; }
.print-answer { display: none; }
[hidden] { display: none !important; }
@media (max-width: 650px) {
  .kit-header { padding: 12px 22px; align-items: start; gap: 12px; }
  .kit-header > a { max-width: 16ch; font-size: .75rem; }
  .kit-header nav { gap: 8px 16px; justify-content: flex-end; font-size: .8rem; }
  main { padding: 40px 22px; }
  .lead { font-size: 1.1rem; }
  .grid { grid-template-columns: minmax(0, 1fr); margin-block: 32px 40px; gap: 22px; }
  .grid article { padding: 24px; }
  .worksheet-tools .button { font-size: .82rem; padding: 12px 15px; }
  .worksheet-form { padding: 24px 20px; margin-top: 28px; }
  .worksheet-step textarea { min-height: 142px; font-size: 16px; }
  .worksheet-invitation { padding: 24px; }
  footer { padding: 24px 22px 32px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button { transition: none; } }
@media print {
  html, body { background: white; font-size: 11pt; }
  header, .worksheet-tools, .worksheet-status, .return-links, .worksheet-meta, footer { display: none; }
  main { max-width: none; padding: 0; }
  h1 { font-size: 28pt; }
  .worksheet-intro > p { font-size: 11pt; margin-block: 12px; }
  .worksheet-form { box-shadow: none; margin: 20px 0; padding: 0; background: none; }
  .worksheet-step { padding: 16px 0; }
  .worksheet-step label { font-size: 16pt; }
  .worksheet-step p { font-size: 10pt; margin-block: 8px; }
  .worksheet-ready .worksheet-step textarea { display: none; }
  .worksheet-ready .print-answer { display: block; white-space: pre-wrap; overflow-wrap: anywhere; min-height: 50px; padding: 10px; border: 1px solid #aaa; }
}
