/* package fonts (woff2, copied into dist/assets/fonts) */
@font-face { font-family: 'Archivo'; font-style: italic; font-weight: 100; font-display: swap; src: url("/assets/fonts/archivo-latin-100-italic.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100; font-display: swap; src: url("/assets/fonts/archivo-latin-100-normal.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: italic; font-weight: 200; font-display: swap; src: url("/assets/fonts/archivo-latin-200-italic.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/archivo-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/archivo-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/archivo-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/archivo-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/archivo-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/archivo-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/archivo-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/archivo-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/archivo-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/archivo-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/archivo-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/archivo-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/archivo-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: italic; font-weight: 900; font-display: swap; src: url("/assets/fonts/archivo-latin-900-italic.woff2") format("woff2"); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/archivo-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: 'Red Hat Mono'; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/red-hat-mono-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: 'Red Hat Mono'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/red-hat-mono-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Red Hat Mono'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/red-hat-mono-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Red Hat Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/red-hat-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Red Hat Mono'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/red-hat-mono-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'Red Hat Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/red-hat-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Red Hat Mono'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/red-hat-mono-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'Red Hat Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/red-hat-mono-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Red Hat Mono'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/red-hat-mono-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Red Hat Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/red-hat-mono-latin-700-normal.woff2") format("woff2"); }
/* generated block: satellite design tokens (light) */
:root {
  --bg-light-base: #eef4e6;
  --fg-light-base-body: #1b2a6b;
  --fg-light-base-heading: #1b2a6b;
  --fg-light-base-muted: #45507a;
  --fg-light-base-link: #1f3aa0;
  --fg-light-base-inverse: #1b2a6b;
  --bg-light-card: #e2ecd7;
  --fg-light-card-body: #1b2a6b;
  --fg-light-card-heading: #1b2a6b;
  --fg-light-card-muted: #45507a;
  --fg-light-card-link: #1f3aa0;
  --fg-light-card-inverse: #1b2a6b;
  --bg-light-elevated: #f8fbf3;
  --fg-light-elevated-body: #1b2a6b;
  --fg-light-elevated-heading: #1b2a6b;
  --fg-light-elevated-muted: #45507a;
  --fg-light-elevated-link: #1f3aa0;
  --fg-light-elevated-inverse: #1b2a6b;
  --brand-light-accent: #1f3aa0;
  --brand-light-accent-hover: #142a7a;
  --brand-light-on-accent: #f8fbf3;
  --focus-light-ring: #1f3aa0;
  --border-light-default: #b02a22;
  --border-light-subtle: #a8bcd9;
}
.bg-surface-base { background: var(--bg-light-base); --fg-body: var(--fg-light-base-body); --fg-heading: var(--fg-light-base-heading); --fg-muted: var(--fg-light-base-muted); --fg-link: var(--fg-light-base-link); --fg-inverse: var(--fg-light-base-inverse); }
.bg-surface-card { background: var(--bg-light-card); --fg-body: var(--fg-light-card-body); --fg-heading: var(--fg-light-card-heading); --fg-muted: var(--fg-light-card-muted); --fg-link: var(--fg-light-card-link); --fg-inverse: var(--fg-light-card-inverse); }
.bg-surface-elevated { background: var(--bg-light-elevated); --fg-body: var(--fg-light-elevated-body); --fg-heading: var(--fg-light-elevated-heading); --fg-muted: var(--fg-light-elevated-muted); --fg-link: var(--fg-light-elevated-link); --fg-inverse: var(--fg-light-elevated-inverse); }
/* component rules: semantic carriers and renderer-owned behaviours */
.text-role-body { color: var(--fg-body); overflow-wrap: anywhere; }
.text-role-heading { color: var(--fg-heading); overflow-wrap: anywhere; }
.text-role-muted { color: var(--fg-muted); }
.text-role-link { color: var(--fg-link); }
.text-role-inverse { color: var(--fg-inverse); }
.text-role-link { text-decoration: underline; }
.text-role-link:hover { color: var(--brand-light-accent-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-light-ring); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.site-logo { max-width: 100%; height: auto; }
.site-menu > summary { list-style: none; cursor: pointer; }
.site-menu > summary::-webkit-details-marker { display: none; }
:where(section[data-section][style]) { background-size: cover; background-position: center; padding: clamp(1.5rem, 4vw, 3rem); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; padding: 0.25rem 0.5rem; outline: 2px solid var(--focus-light-ring); }

/* package stylesheet (verbatim; model-owned rules win by source order) */
/* Question Works Guide: accounting ledger */
:root {
  --ink: var(--fg-light-base-heading);
  --rule-blue: var(--border-light-subtle);
  --rule-red: var(--border-light-default);
  --pen: var(--brand-light-accent);
  --face-text: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --face-fig: 'Red Hat Mono', 'Courier New', monospace;
  --gutter: clamp(1rem, 3vw, 2rem);
  --margin: clamp(1.75rem, 5vw, 4.5rem);
  --rail: 13.5rem;
  --measure: 42rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--face-text);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}
h1, h2, h3, h4 { font-family: var(--face-text); margin: 0; line-height: 1.15; }
p, ul, ol, figure { margin: 0; }
a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--pen); outline-offset: 3px; }
.skip-link { grid-column: 1 / -1; }

/* ---------- Book layout: sheet on the left, menu rail on the right edge ---------- */
.book-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  padding: 1.1rem var(--gutter) 1rem calc(var(--margin) + 1.5rem);
  border-bottom: 1px solid var(--rule-blue);
}
.wordmark {
  font-weight: 800;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  letter-spacing: -0.025em;
  text-transform: lowercase;
  text-decoration: none;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.wordmark:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.strapline { font-family: var(--face-fig); font-size: 0.9375rem; margin-right: auto; }

.rail { display: none; }
.rail-list { list-style: none; margin: 0; padding: 0; }
.rail-list li { border-bottom: 1px solid var(--rule-blue); }
.rail-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0;
  font-weight: 600;
  text-decoration: none;
}
.rail-link:hover { text-decoration: underline; }

.site-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 0.85rem;
  border: 1px solid var(--ink);
  font-family: var(--face-fig);
  font-size: 0.9375rem;
  cursor: pointer;
  list-style: none;
}
.site-menu > summary::-webkit-details-marker { display: none; }
.menu-icon { display: inline-block; width: 1rem; height: 0.75rem; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
.menu-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px solid currentColor; transform: translateY(-50%); }
.site-menu > ul { list-style: none; margin: 0.5rem 0 0; padding: 0; border-top: 1px solid var(--rule-blue); }
.site-menu > ul li { border-bottom: 1px solid var(--rule-blue); }
.site-menu > ul a { display: flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }

/* ---------- The sheet: red double margin rule down the left ---------- */
.page {
  position: relative;
  padding: 0 var(--gutter) 3.5rem calc(var(--margin) + 1.5rem);
  min-width: 0;
}
.page::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--margin);
  width: 5px;
  border-left: 1px solid var(--rule-red);
  border-right: 1px solid var(--rule-red);
}
.breadcrumbs { border-bottom: 1px solid var(--rule-blue); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 0.6rem; font-family: var(--face-fig); font-size: 0.875rem; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; }
.breadcrumbs li + li::before { content: "/"; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; }

.sheet { max-width: 54rem; }
.sheet-head { padding: 2.25rem 0 1.5rem; border-bottom: 2px solid var(--ink); }
.sheet-title h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; max-width: 20ch; }
.sheet-claim { margin-top: 1rem; font-size: clamp(1.2rem, 2.4vw, 1.5rem); font-weight: 600; line-height: 1.25; max-width: 30ch; }
.sheet-lines { list-style: none; padding: 0; margin-top: 1.25rem; max-width: var(--measure); }
.sheet-lines li { padding: 0.45rem 0; border-top: 1px solid var(--rule-blue); }
.sheet-lines li:last-child { border-bottom: 1px solid var(--rule-blue); }

/* ---------- Ledger table (home) ---------- */
.ledger { padding-top: 2.25rem; }
.ledger-heading { font-size: 1.375rem; font-weight: 700; margin-bottom: 0.75rem; }
.ledger-table { width: 100%; border-collapse: collapse; }
.ledger-table th, .ledger-table td { text-align: left; font-weight: 400; padding: 0.55rem 0; border-bottom: 1px solid var(--rule-blue); vertical-align: baseline; }
.ledger-table thead th { font-family: var(--face-fig); font-size: 0.875rem; border-bottom: 2px solid var(--ink); padding-bottom: 0.4rem; }
.ledger-table .fig, .ledger-table .col-fig { text-align: right; font-family: var(--face-fig); white-space: nowrap; padding-left: 1rem; width: 7rem; }
.acct-row th { font-weight: 700; font-size: 1.125rem; padding-top: 1.1rem; }
.acct-row th a { text-decoration-thickness: 1px; }
.acct-row .fig { font-size: 1.125rem; font-weight: 600; padding-top: 1.1rem; }
.item-row td:first-child { padding-left: 1.5rem; }
.item-row a { text-decoration-color: var(--rule-blue); }
.item-row a:hover { text-decoration-color: currentColor; }
.ledger-table tfoot th, .ledger-table tfoot td { font-weight: 700; }
.total-row th, .total-row td { border-top: 5px double var(--rule-red); padding-top: 0.75rem; font-size: 1.125rem; }
.total-row .fig { font-size: 1.25rem; }
.local-row th, .local-row td { font-weight: 400; border-bottom: 0; }

/* ---------- Prose ---------- */
.sheet-prose { max-width: var(--measure); padding-top: 1.75rem; }
.prose > * + * { margin-top: 0.95rem; }
.prose h2 { font-size: 1.375rem; font-weight: 700; margin-top: 2.1rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--rule-blue); }
.prose h3 { font-size: 1.125rem; font-weight: 700; margin-top: 1.5rem; }
.prose h2 + *, .prose h3 + * { margin-top: 0.75rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.4rem; }
.prose li::marker { color: var(--rule-red); }
.prose strong { font-weight: 700; }
.prose blockquote { margin: 1.25rem 0; padding-left: 1rem; border-left: 5px double var(--rule-red); }
.prose hr { border: 0; border-top: 1px solid var(--rule-blue); margin-block: 1.75rem; }
.photo-hero, .photo-inline { margin: 0; }
.photo-hero img, .photo-inline img { display: block; width: 100%; height: auto; border: 1px solid var(--rule-blue); }
.prose > .photo-hero:first-child { margin-bottom: 1.5rem; }
.prose section[data-section] { background-size: cover; background-position: center; padding: clamp(1.5rem, 6vw, 4rem) clamp(0.75rem, 4vw, 2.5rem); margin-top: 2rem; }
.prose section[data-section] > div { padding: 1.25rem 1.5rem 1.5rem; max-width: 36rem; border: 1px solid var(--rule-blue); }
.prose section[data-section] > div > * + * { margin-top: 0.9rem; }
.prose section[data-section] > div > h2:first-child { margin-top: 0; }

/* Itemized rows: question lists set as numbered ledger lines */
.rows ul { list-style: none; padding: 0; counter-reset: line; border-top: 2px solid var(--ink); }
.rows ul > li { counter-increment: line; position: relative; padding: 0.7rem 0 0.7rem 3rem; border-bottom: 1px solid var(--rule-blue); }
.rows ul > li + li { margin-top: 0; }
.rows ul > li::before { content: counter(line, decimal-leading-zero); position: absolute; left: 0; top: 0.78rem; font-family: var(--face-fig); font-size: 0.9375rem; }
.rows ul > li > a:first-child { font-weight: 700; }
.sheet-head-area .sheet-title h1 { padding-bottom: 0.5rem; border-bottom: 5px double var(--rule-red); display: inline-block; }

/* Notes to the ledger (about) */
.notes { counter-reset: note; }
.notes h2 { counter-increment: note; position: relative; padding-left: 3rem; }
.notes h2::before { content: counter(note) "."; position: absolute; left: 0; font-family: var(--face-fig); font-weight: 500; }

/* ---------- Single entry (question detail) ---------- */
.entry-line { padding: 2.25rem 0 1.25rem; border-bottom: 2px solid var(--ink); }
.entry-title h1 { font-size: clamp(1.75rem, 4.2vw, 2.75rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; max-width: 24ch; }
.tally { margin-top: 2.5rem; max-width: var(--measure); padding: 1.25rem 1.25rem 0.5rem; border-top: 5px double var(--rule-red); }
.tally-heading { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.tally-table { width: 100%; border-collapse: collapse; }
.tally-table th, .tally-table td { padding: 0.6rem 0; border-bottom: 1px solid var(--rule-blue); vertical-align: baseline; }
.tally-table tr:last-child th, .tally-table tr:last-child td { border-bottom: 0; }
.tally-table th { text-align: left; font-weight: 600; padding-right: 1rem; }
.tally-table td { text-align: right; font-family: var(--face-fig); font-size: 0.9375rem; }

/* ---------- Entry form (contact) ---------- */
.form-pair { display: grid; gap: 2rem; }
.entry-form { padding: 1.5rem; border: 1px solid var(--rule-blue); border-top: 5px double var(--rule-red); align-self: start; }
.form-heading { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.field { display: block; padding-top: 0.9rem; }
.field-label { display: block; font-family: var(--face-fig); font-size: 0.9375rem; font-weight: 500; }
.field-input {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  min-height: 44px;
  padding: 0.4rem 0.2rem;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
}
textarea.field-input {
  resize: vertical;
  line-height: 2rem;
  padding-top: 0;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(2rem - 1px), var(--rule-blue) calc(2rem - 1px), var(--rule-blue) 2rem);
  background-attachment: local;
}
.field-input:focus-visible { outline: 2px solid var(--pen); outline-offset: 2px; }
.entry-submit {
  margin-top: 1.5rem;
  min-height: 48px;
  padding: 0.6rem 1.4rem;
  font: inherit;
  font-weight: 700;
  color: var(--brand-light-on-accent);
  background: var(--pen);
  border: 0;
  border-radius: 0;
  cursor: pointer;
}
.entry-submit:hover { background: var(--brand-light-accent-hover); }

/* ---------- Receipt (thank you, not found) ---------- */
.receipt { margin-top: 2.5rem; max-width: 36rem; padding: 1.5rem 0; border-bottom: 5px double var(--rule-red); }
.receipt-title h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.receipt .sheet-prose { padding-top: 1rem; }
.receipt-return { margin-top: 1.5rem; font-weight: 700; }
.receipt-return a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Footer: ruled link columns ---------- */
.foot { border-top: 5px double var(--rule-red); padding: 2rem var(--gutter) 2.5rem calc(var(--margin) + 1.5rem); }
.foot-ledger { display: grid; grid-template-columns: 1fr; border-top: 2px solid var(--ink); }
.foot-col { padding: 0.75rem 0 1rem; }
.foot-head { font-family: var(--face-fig); font-size: 0.9375rem; font-weight: 600; padding-bottom: 0.4rem; border-bottom: 1px solid var(--rule-blue); }
.foot-rows { list-style: none; padding: 0; }
.foot-rows li { border-bottom: 1px solid var(--rule-blue); }
.foot-rows a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot-rows a:hover { text-decoration: underline; }
.foot-notes { margin-top: 1.5rem; max-width: var(--measure); }
.foot-notes > * + * { margin-top: 0.4rem; }
.foot-name { font-weight: 800; text-transform: lowercase; font-size: 1.25rem; letter-spacing: -0.02em; }

@media (min-width: 48rem) {
  .foot-ledger { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-col { padding: 0.75rem 1.25rem 1rem; border-left: 1px solid var(--rule-blue); }
  .foot-col:first-child { border-left: 0; padding-left: 0; }
  .form-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); align-items: start; }
}

@media (min-width: 64rem) {
  body.book {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--rail);
    grid-template-areas: "head rail" "page rail" "foot foot";
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
  }
  .book-head { grid-area: head; }
  .page { grid-area: page; }
  .foot { grid-area: foot; }
  .head-menu { display: none; }
  .rail {
    display: block;
    grid-area: rail;
    border-left: 1px solid var(--rule-blue);
    padding: 1.25rem 1.25rem 2rem;
  }
  .rail-list { position: sticky; top: 1rem; border-top: 2px solid var(--ink); }
}

@media (max-width: 47.99rem) {
  .book-head { padding-left: calc(var(--margin) + 1rem); }
  .page { padding-left: calc(var(--margin) + 1rem); }
  .foot { padding-left: calc(var(--margin) + 1rem); }
  .head-menu { flex-basis: 100%; }
  .rows ul > li { padding-left: 2.5rem; }
  .ledger-table .fig, .ledger-table .col-fig { width: 4.5rem; }
  .item-row td:first-child { padding-left: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
