/* AI Agency Canada: ledger style.
   Cream paper, deep green ink, hairline ledger rules, a red margin rule.
   Hand-written for this site only. */

:root {
  --paper: #f5efe0;
  --paper-deep: #e9dfc6;
  --sheet: #fbf8ef;
  --ink: #143826;
  --ink-soft: #24463a;
  --muted: #475a4d;
  --rule: #d3d9c7;
  --rule-dark: #9aac96;
  --red: #9b2f22;
  --red-soft: #dcb2a6;
  --tick: #1b6640;
  --focus: #b0570f;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1120px;
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums lining-nums;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.05rem, 5.4vw, 3.45rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.22rem; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 46rem; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--sheet);
  padding: 10px 14px; z-index: 20;
}
.skip:focus { left: 8px; top: 8px; color: var(--sheet); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Masthead: centred wordmark, links beneath ---------- */

.masthead { background: var(--paper); }

.topline {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 8px; padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
  font-size: 0.875rem; color: var(--muted);
}
.topline p { margin: 0; }
.topline .short { display: none; }

.brand { text-align: center; padding: 22px 20px 16px; }
.wordmark {
  display: inline-block;
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.85rem, 5vw, 2.75rem); line-height: 1.05;
  letter-spacing: -0.015em; text-decoration: none; color: var(--ink);
}
.wordmark:hover { color: var(--ink); }
.wordmark .dot { color: var(--red); }
.brand-sub {
  margin: 8px 0 0; font-size: 0.8rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}

.menu-toggle { display: none; }

.site-nav { border-top: 3px double var(--ink); border-bottom: 1px solid var(--rule-dark); }
.site-nav ul {
  list-style: none; margin: 0 auto; padding: 0 20px; max-width: var(--wrap);
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0 30px;
}
.site-nav a {
  display: inline-flex; align-items: center; min-height: 46px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.site-nav a[aria-current="page"] {
  text-decoration: underline; text-decoration-color: var(--red);
  text-decoration-thickness: 2px; text-underline-offset: 6px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  background: var(--ink); color: var(--sheet);
  border: 2px solid var(--ink); border-radius: 2px;
  font-family: var(--sans); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
}
.btn:hover { background: #0b2518; border-color: #0b2518; color: #ffffff; }
.btn:disabled { opacity: 0.7; cursor: wait; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--sheet); color: var(--ink); border-color: var(--ink); }
.btn-small { min-height: 44px; padding: 8px 14px; font-size: 0.9rem; }

/* ---------- Hero with the run sheet ---------- */

.hero { padding: 44px 0 60px; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas: "text sheet" "plain sheet";
  column-gap: 48px; row-gap: 0; align-items: start;
}
.hero-text { grid-area: text; }
.hero-grid .runsheet { grid-area: sheet; }
.hero-plain { grid-area: plain; }
.anchor { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; margin: 0 0 4px; }
.eyebrow {
  margin: 0 0 14px; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--red);
}
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink-soft); max-width: 34em; }
.plain {
  border-left: 3px double var(--red); padding: 2px 0 2px 14px;
  font-size: 0.98rem; color: var(--muted); max-width: 36em;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 12px; }
.fineprint { font-size: 0.9rem; color: var(--muted); }

.runsheet {
  background: var(--sheet);
  border: 1px solid var(--rule-dark);
  box-shadow: 7px 7px 0 var(--paper-deep);
  margin: 0;
}
.runsheet-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 4px 10px;
  flex-wrap: wrap; padding: 14px 16px 10px; border-bottom: 3px double var(--ink);
}
.runsheet-head h2 { font-size: 1.2rem; margin: 0; }
.runsheet-head p { margin: 0; font-size: 0.8rem; color: var(--muted); }
.runsheet table { width: 100%; border-collapse: collapse; font-size: 0.93rem; line-height: 1.45; }
.runsheet th {
  text-align: left; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  padding: 8px 10px; border-bottom: 1px solid var(--rule-dark);
}
.runsheet td { padding: 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.runsheet .t {
  width: 6.2em; white-space: nowrap; font-weight: 700;
  border-right: 3px double var(--red-soft);
}
.runsheet .ok { width: 40px; text-align: center; padding-left: 4px; padding-right: 8px; }
.tick { display: inline-block; width: 22px; height: 22px; color: var(--tick); vertical-align: middle; }
.runsheet figcaption { padding: 10px 16px 12px; font-size: 0.82rem; color: var(--muted); }

/* ---------- Ledger sections with a margin column ---------- */

.sec { padding: 64px 0; border-top: 1px solid var(--rule-dark); }
.sec-first { border-top: 0; }
.sec-grid { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 0 36px; }
.margin {
  border-right: 3px double var(--red); padding-right: 18px; text-align: right;
}
.margin .no { display: block; font-family: var(--serif); font-size: 2.3rem; line-height: 1; color: var(--red); }
.margin .lbl {
  display: block; margin-top: 8px; font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.sec h2 { max-width: 24em; }
.intro { font-size: 1.1rem; color: var(--ink-soft); max-width: 40em; }

.ledger-list { list-style: none; margin: 0 0 26px; padding: 0; border-top: 1px solid var(--rule-dark); max-width: 44em; }
.ledger-list li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--rule); }
.ledger-list li::before {
  content: ""; position: absolute; left: 6px; top: 23px;
  width: 15px; height: 2px; background: var(--red);
}

.stakes {
  background: var(--sheet); border: 1px solid var(--rule-dark); border-left: 4px solid var(--red);
  padding: 16px 20px; max-width: 44em; margin-top: 8px;
}
.stakes p:last-child { margin-bottom: 0; }

/* ---------- Example entries ---------- */

.entries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.entry {
  display: flex; flex-direction: column;
  background: var(--sheet); border: 1px solid var(--rule-dark);
  padding: 20px 22px 18px;
}
.entry-top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 4px 10px; flex-wrap: wrap;
  border-bottom: 3px double var(--ink); padding-bottom: 8px; margin-bottom: 14px;
}
.entry-no { font-family: var(--serif); font-style: italic; color: var(--red); font-size: 1.05rem; }
.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--tick);
}
.status .tick { width: 18px; height: 18px; }
.status.plain-status { color: var(--muted); }
.chip.plain-chip { border-style: dashed; }
.entry h3 { font-size: 1.3rem; }
.entry h3 a { text-decoration: none; }
.entry h3 a:hover { text-decoration: underline; }
.entry dl {
  display: grid; grid-template-columns: 5.4em minmax(0, 1fr);
  gap: 7px 12px; margin: 0 0 16px; font-size: 0.96rem;
}
.entry dt {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--muted); padding-top: 3px;
}
.entry dd { margin: 0; }
.entry .more { margin-top: auto; margin-bottom: 0; }
.entry .more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* ---------- Guide ---------- */

.guide { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 30px; align-items: start; }
.portrait { margin: 0; background: var(--sheet); border: 1px solid var(--rule-dark); padding: 8px; }
.portrait img { width: 100%; height: auto; }
.portrait figcaption { padding-top: 8px; font-size: 0.82rem; color: var(--muted); line-height: 1.4; }

.facts { list-style: none; margin: 18px 0 30px; padding: 0; border-top: 3px double var(--ink); max-width: 44em; }
.facts li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.facts .tick { flex: 0 0 22px; margin-top: 2px; }

.lessons { width: 100%; border-collapse: collapse; background: var(--sheet); border: 1px solid var(--rule-dark); margin-top: 10px; }
.lessons caption {
  text-align: left; font-family: var(--serif); font-weight: 600; font-size: 1.22rem;
  padding: 0 0 10px; color: var(--ink);
}
.lessons th, .lessons td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.lessons thead th {
  font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  border-bottom: 3px double var(--ink);
}
.lessons tbody th { width: 32%; font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }

/* ---------- Plan ---------- */

.steps {
  list-style: none; counter-reset: step; margin: 26px 0 18px; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 3px double var(--ink); border-bottom: 1px solid var(--rule-dark);
}
.steps li { counter-increment: step; padding: 20px 20px 22px 0; border-right: 1px solid var(--rule); }
.steps li + li { padding-left: 20px; }
.steps li:last-child { border-right: 0; }
.steps li::before {
  content: "Step " counter(step); display: block; margin-bottom: 6px;
  font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--red);
}
.steps h3 { font-size: 1.15rem; }
.steps p { margin: 0; font-size: 0.98rem; }
.promises { font-size: 0.95rem; color: var(--muted); max-width: 44em; }

/* ---------- Price ledger ---------- */

.prices {
  width: 100%; border-collapse: collapse; background: var(--sheet);
  border: 1px solid var(--rule-dark); margin: 24px 0 16px;
}
.prices th, .prices td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
.prices thead th {
  font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  border-bottom: 3px double var(--ink);
}
.prices thead th:last-child { text-align: right; }
.prices tbody th { font-weight: 400; }
.prices tbody th strong { display: block; font-family: var(--serif); font-size: 1.12rem; font-weight: 600; margin-bottom: 2px; }
.prices tbody th span { font-size: 0.94rem; color: var(--ink-soft); }
.prices .amt {
  text-align: right; white-space: nowrap;
  font-family: var(--serif); font-size: 1.4rem; font-weight: 600;
}
.prices .amt small { display: block; font-family: var(--sans); font-size: 0.75rem; font-weight: 400; color: var(--muted); }
.prices tr.free th, .prices tr.free td { border-top: 1px solid var(--ink); border-bottom: 3px double var(--ink); }

.inout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
.inout > div { background: var(--sheet); border: 1px solid var(--rule-dark); padding: 18px 20px; }
.inout h3 { font-size: 1.08rem; border-bottom: 3px double var(--ink); padding-bottom: 6px; }
.inout ul { margin: 0; padding-left: 1.15em; }
.inout li { margin-bottom: 6px; }

/* ---------- Success ---------- */

.after { max-width: 44em; }
.after .day { list-style: none; padding: 0; margin: 0 0 22px; border-top: 3px double var(--ink); }
.after .day li { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.after .day b { color: var(--red); font-weight: 700; }

/* ---------- FAQ ---------- */

.faq { max-width: 46em; border-top: 3px double var(--ink); }
.faq details { border-bottom: 1px solid var(--rule-dark); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 16px 40px 16px 0; min-height: 44px;
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 8px; top: 13px;
  font-family: var(--sans); font-size: 1.4rem; font-weight: 400; color: var(--red);
}
.faq details[open] summary::after { content: "\2212"; }
.faq .ans { padding: 0 0 16px; }
.faq .ans p:last-child { margin-bottom: 0; }

/* ---------- Call to action band ---------- */

.cta-band { background: var(--ink); color: var(--sheet); padding: 56px 0; }
.cta-band h2 { color: var(--sheet); max-width: 22em; }
.cta-band p { color: #e4e9dc; max-width: 40em; }
.cta-band a { color: var(--sheet); }
.cta-band a:hover { color: #ffffff; }
.cta-band .btn { background: var(--sheet); color: var(--ink); border-color: var(--sheet); }
.cta-band .btn:hover { background: #ffffff; color: var(--ink); border-color: #ffffff; }
.cta-band .btn-ghost { background: transparent; color: var(--sheet); border-color: var(--sheet); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: #ffffff; }
.cta-band :focus-visible { outline-color: #f0b46f; }

/* ---------- Case pages ---------- */

.case-head { padding: 26px 0 30px; border-bottom: 3px double var(--ink); }
.crumb { font-size: 0.9rem; color: var(--muted); margin-bottom: 8px; }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; }
.case-head .lead { max-width: 40em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sheet); border: 1px solid var(--rule-dark);
  padding: 5px 11px; font-size: 0.84rem; font-weight: 600;
}
.chip.live { border-color: var(--tick); color: var(--tick); }
.chip .tick { width: 16px; height: 16px; }

.case-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding: 40px 0 56px; }
.case-body article { max-width: 44em; min-width: 0; }
.case-body article h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin-top: 1.6em; }
.case-body article > h2:first-child { margin-top: 0; }

.glance { width: 100%; border-collapse: collapse; margin: 0 0 10px; background: var(--sheet); border: 1px solid var(--rule-dark); }
.glance caption { text-align: left; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; padding-bottom: 8px; }
.glance th, .glance td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.glance th {
  width: 8.5em; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); border-right: 3px double var(--red-soft);
}

ol.build { counter-reset: b; list-style: none; padding: 0; margin: 0 0 1.2em; border-top: 1px solid var(--rule-dark); }
ol.build li { counter-increment: b; position: relative; padding: 11px 0 11px 50px; border-bottom: 1px solid var(--rule); }
ol.build li::before {
  content: counter(b); position: absolute; left: 0; top: 11px; width: 34px;
  padding-right: 8px; text-align: right; border-right: 2px solid var(--red-soft);
  font-family: var(--serif); font-weight: 600; color: var(--red);
}

.flow { margin: 26px 0; background: var(--sheet); border: 1px solid var(--rule-dark); padding: 18px 16px 12px; }
.flow svg { width: 100%; max-width: 380px; margin: 0 auto; }
.flow figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--muted); text-align: center; }
.flow-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0; }
.flow-pair .flow { margin: 0; }

.does { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 10px 0 18px; }
.does > div { background: var(--sheet); border: 1px solid var(--rule-dark); padding: 16px 18px; }
.does h3 { font-size: 1.05rem; border-bottom: 3px double var(--ink); padding-bottom: 6px; }
.does ul { margin: 0; padding-left: 1.1em; }
.does li { margin-bottom: 6px; }

.note {
  background: var(--sheet); border: 1px solid var(--rule-dark); border-left: 4px solid var(--red);
  padding: 14px 18px; margin: 18px 0;
}
.note p:last-child { margin-bottom: 0; }

.aside-box { position: sticky; top: 20px; background: var(--sheet); border: 1px solid var(--rule-dark); padding: 20px; }
.aside-box h2 { font-size: 1.2rem; border-bottom: 3px double var(--ink); padding-bottom: 8px; }
.aside-box p { font-size: 0.95rem; }
.aside-box .btn { width: 100%; }
.aside-box .price-line { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; margin-bottom: 4px; }

.others { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule-dark); }
.others li { border-bottom: 1px solid var(--rule); }
.others a { display: flex; align-items: center; min-height: 48px; padding: 6px 0; font-weight: 600; }

/* ---------- Page heads (pricing, contact) ---------- */

.page-head { padding: 40px 0 30px; border-bottom: 3px double var(--ink); }
.page-head .lead { max-width: 40em; }

/* ---------- Contact form ---------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 40px; padding: 40px 0 60px; }
.form-card { background: var(--sheet); border: 1px solid var(--rule-dark); padding: 24px; }
.form-card h2 { font-size: 1.45rem; border-bottom: 3px double var(--ink); padding-bottom: 8px; }
.form-sub { color: var(--muted); font-size: 0.95rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; min-width: 0; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.95rem; }
.form-group .hint { display: block; font-weight: 400; color: var(--muted); font-size: 0.86rem; }
.form-group input, .form-group textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  background: #ffffff; color: var(--ink);
  border: 1px solid var(--rule-dark); border-bottom: 2px solid var(--ink); border-radius: 0;
  font: inherit;
}
.form-group textarea { min-height: 160px; resize: vertical; }
.req { color: var(--red); }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.submit-btn { width: 100%; }
.form-note { margin: 12px 0 0; font-size: 0.9rem; color: var(--muted); }

.expect { list-style: none; margin: 0 0 20px; padding: 0; border-top: 3px double var(--ink); counter-reset: ex; }
.expect li { counter-increment: ex; position: relative; padding: 12px 0 12px 40px; border-bottom: 1px solid var(--rule); }
.expect li::before {
  content: counter(ex); position: absolute; left: 0; top: 12px; width: 26px;
  font-family: var(--serif); font-weight: 600; font-size: 1.1rem; color: var(--red);
}
.expect h3 { font-size: 1.05rem; margin-bottom: 2px; }
.expect p { margin: 0; font-size: 0.95rem; }

/* ---------- Footer ---------- */

.footer { border-top: 3px double var(--ink); padding: 40px 0 44px; font-size: 0.93rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer .wordmark { font-size: 1.6rem; }
.footer h2 {
  font-family: var(--sans); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-base { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 0.85rem; }

/* ---------- Simple pages (thank-you, 404) ---------- */

.simple { padding: 48px 0 64px; }
.simple .ledger-list { margin-top: 18px; }

/* ---------- Tablet and phone ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "text" "sheet" "plain"; row-gap: 30px; }
  .case-body { grid-template-columns: 1fr; gap: 30px; }
  .aside-box { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .entries { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .topline .long { display: none; }
  .topline .short { display: inline; }
  .brand { padding: 18px 18px 12px; }
  .brand-sub { letter-spacing: 0.1em; }

  .js .menu-toggle {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; min-height: 48px; margin: 0; padding: 0 20px;
    background: transparent; color: var(--ink);
    border: 0; border-top: 3px double var(--ink); border-bottom: 1px solid var(--rule-dark);
    font-family: var(--sans); font-size: 0.95rem; font-weight: 700; cursor: pointer;
  }
  .menu-toggle .bars { display: inline-block; width: 18px; height: 12px; position: relative; }
  .menu-toggle .bars::before, .menu-toggle .bars::after {
    content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--ink);
  }
  .menu-toggle .bars::before { top: 0; box-shadow: 0 5px 0 var(--ink); }
  .menu-toggle .bars::after { bottom: 0; }
  .js .site-nav { display: none; border-top: 0; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0 20px; }
  .site-nav li + li { border-top: 1px solid var(--rule); }
  .site-nav a { width: 100%; justify-content: center; min-height: 48px; }

  .hero { padding: 30px 0 44px; }
  .sec { padding: 46px 0; }
  .sec-grid { grid-template-columns: 1fr; }
  .margin {
    display: flex; align-items: baseline; gap: 12px; text-align: left;
    border-right: 0; border-bottom: 3px double var(--red);
    padding: 0 0 8px; margin-bottom: 20px;
  }
  .margin .no { font-size: 1.8rem; }
  .margin .lbl { margin-top: 0; }

  .entries { grid-template-columns: 1fr; gap: 18px; }
  .guide { grid-template-columns: 1fr; }
  .portrait { max-width: 190px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .steps li:last-child { border-bottom: 0; }
  .inout, .does, .flow-pair { grid-template-columns: 1fr; }
  .lessons thead { display: none; }
  .lessons tbody th, .lessons tbody td { display: block; width: auto; }
  .lessons tbody th { border-bottom: 0; padding-bottom: 2px; }
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .prices th, .prices td { padding: 12px 10px; }
  .prices .amt { font-size: 1.2rem; }
  .runsheet td { padding: 9px 8px; }
  .runsheet .t { width: 5.6em; }
  .glance th { width: 7em; }
  .entry { padding: 18px 16px 14px; }
  .entry dl { grid-template-columns: 1fr; gap: 2px; }
  .entry dd { margin-bottom: 8px; }
  .after .day li { grid-template-columns: 5.4em minmax(0, 1fr); }
  .actions .btn { width: 100%; }
}

@media (max-width: 399px) {
  .brand-sub { display: none; }
  .brand { padding-bottom: 14px; }
}

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

@media print {
  .masthead .topline, .menu-toggle, .site-nav, .cta-band, .aside-box .btn { display: none; }
  body { background: #ffffff; }
}
