/* publicbenefit.ca — v3, 4 September 2026
   The page is paper. The processions (the animal friezes) are the idea, not the
   decoration: every one is a family moving on, and they walk a little as the
   reader scrolls. Colour and texture come only from the printed things. Type is
   Bitter at regular weight for what is felt and Karla for what is read, both
   self-hosted. One navy band per page, and the footer. No third-party requests.
   Palette of record: brand/BRAND-PALETTE.md (coral #E66447). */

:root {
  --navy: #003459; --navy-deep: #02283f; --teal: #007EA7; --forest: #2C6E49;
  --sage: #B0C4B1; --grey: #9A9C90; --gold: #FEC107; --coral: #E66447;
  --cream: #F2E9DC; --paper: #FAF6EE; --paper-deep: #F1EADD;
  --ink: #17181c; --ink-soft: #4a4d55; --rule: #DDD5C6;
  --display: "Bitter", Georgia, "Times New Roman", serif;
  --body: "Karla", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px; --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4rem, 11vw, 10rem);
  --radius: 18px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 1.125rem; line-height: 1.55; color: var(--ink); background: var(--paper); font-feature-settings: "kern", "liga"; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: var(--grey); }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; color: var(--ink); margin: 0 0 .5em; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7.2vw, 6rem); line-height: .98; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); letter-spacing: -0.01em; line-height: 1.2; }
p, ul, ol { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.measure { max-width: var(--measure); }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
.eyebrow { font-family: var(--body); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1.2rem; }
.eyebrow .num { font-family: var(--display); font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 1rem; margin-right: .6rem; color: var(--coral); }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.45; color: var(--ink-soft); }
.small { font-size: .92rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }

/* ---------- buttons ---------- */
.btn { display: inline-block; font-family: var(--body); font-weight: 600; font-size: 1rem; line-height: 1.5; padding: .75rem 1.5rem; border-radius: 999px; text-decoration: none; border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn-ink { background: var(--navy); color: #fff; }
.btn-ink:hover { background: var(--teal); color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #ffd54a; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; margin-top: 2rem; }
.textlink { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--ink); padding-bottom: .1em; }
.textlink:hover { color: var(--teal); border-color: var(--teal); }

/* ---------- header ---------- */
.site-header { background: var(--paper); position: relative; z-index: 5; border-bottom: 1px solid var(--rule); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.1rem 0; }
.brand img { width: clamp(150px, 18vw, 200px); height: auto; }
.nav { display: flex; gap: clamp(1rem, 2.6vw, 2.2rem); align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem; padding: .3rem 0; border-bottom: 1.5px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.nav a.btn { border-bottom: 0; padding: .55rem 1.2rem; }
.nav a.btn-ink, .nav a.btn-ink:hover { color: #fff; }
.nav-toggle { display: none; background: transparent; color: var(--ink); border: 1.5px solid var(--ink); font: 600 .9rem var(--body); padding: .4rem .9rem; border-radius: 999px; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); flex-direction: column; align-items: flex-start; gap: 0; padding: .5rem var(--gutter) 1.2rem; border-bottom: 1px solid var(--rule); }
  .nav.open { display: flex; }
  .nav a { padding: .75rem 0; width: 100%; border-bottom: 1px solid var(--rule); }
  .nav a.btn { margin-top: .8rem; width: auto; }
}

/* ---------- sections ---------- */
.section { padding: var(--section) 0; }
.section-sm { padding: calc(var(--section) * .55) 0; }
.section + .section { padding-top: 0; }
.navy-bg { background: var(--navy); color: #fff; }
.navy-bg h1, .navy-bg h2, .navy-bg h3 { color: #fff; }
.navy-bg .eyebrow { color: var(--sage); }
.navy-bg .eyebrow .num { color: var(--gold); }
.navy-bg .lede, .navy-bg .muted, .navy-bg .small { color: rgba(255,255,255,.78); }
.navy-bg a:not(.btn) { text-decoration-color: rgba(255,255,255,.5); }
.cream-bg { background: var(--paper-deep); }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .5em; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--gutter) * 1.5); align-items: start; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: calc(var(--gutter) * 2); align-items: start; }
.split > :first-child h2 { position: sticky; top: 2rem; }
@media (max-width: 860px) { .grid-2, .split { grid-template-columns: 1fr; } .split > :first-child h2 { position: static; } }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: calc(var(--gutter) * 1.2); }
.col { border-top: 1.5px solid var(--ink); padding-top: 1.4rem; }
.col h3 { margin-bottom: .6rem; }
.col p { color: var(--ink-soft); }
.col .textlink { color: var(--ink); display: inline-block; margin-top: .6rem; }

/* ---------- the processions ---------- */
.procession { overflow: hidden; background: var(--cream); position: relative; margin: 0; line-height: 0; }
.procession img { width: 106%; max-width: none; margin-left: -3%; height: auto; will-change: transform; }
.procession figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: .9rem var(--gutter) 1rem; background: linear-gradient(180deg, rgba(23,24,28,0) 0%, rgba(23,24,28,.55) 100%); color: #fff; font-family: var(--display); font-size: clamp(1rem, 1.6vw, 1.35rem); letter-spacing: -0.01em; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.procession figcaption span { display: block; max-width: var(--wrap); margin-inline: auto; }
.procession-hero img { width: 104%; margin-left: -2%; }
@media (max-width: 700px) { .procession img { width: 130%; margin-left: -15%; } .procession-hero img { width: 120%; margin-left: -10%; } .procession figcaption { position: static; background: var(--paper-deep); color: var(--ink); text-shadow: none; font-size: 1rem; } }

/* ---------- hero ---------- */
.hero { padding: calc(var(--section) * .75) 0 calc(var(--section) * .45); }
.hero h1 { max-width: 14ch; }
.hero .lede { max-width: 46ch; margin-top: 1.6rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2rem; font-size: .95rem; color: var(--ink-soft); }

/* page head (interior) */
.page-head { padding: calc(var(--section) * .7) 0 calc(var(--section) * .45); }
.page-head h1 { max-width: 16ch; }
.page-head .sub { font-family: var(--display); font-size: clamp(1.2rem, 2vw, 1.6rem); color: var(--ink-soft); max-width: 32ch; margin-top: .4rem; letter-spacing: -0.01em; }
.page-head .lede { max-width: 52ch; margin-top: 1.4rem; }

/* ---------- where do things stand ---------- */
.stand { border-top: 1.5px solid var(--ink); }
.stand details { border-bottom: 1px solid var(--rule); }
.stand summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 3.2rem 1fr auto; align-items: baseline; gap: 1rem; padding: 1.2rem 0; font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 2.1rem); letter-spacing: -0.02em; }
.stand summary::-webkit-details-marker { display: none; }
.stand summary .n { font-size: 1rem; color: var(--coral); font-family: var(--body); font-weight: 600; letter-spacing: .1em; }
.stand summary .plus { font-family: var(--body); font-size: 1.4rem; color: var(--ink-soft); transition: transform .2s; }
.stand details[open] summary .plus { transform: rotate(45deg); }
.stand summary:hover { color: var(--teal); }
.stand .answer { padding: 0 0 1.8rem 4.2rem; max-width: 66ch; }
.stand .answer p { color: var(--ink-soft); }
.stand .answer .textlink { margin-right: 1.25rem; }
@media (max-width: 600px) { .stand summary { grid-template-columns: 2.2rem 1fr auto; } .stand .answer { padding-left: 0; } }

/* ---------- printed things ---------- */
.kit { position: absolute; pointer-events: none; z-index: 0; }
.kit img { width: 100%; height: auto; }
.has-kit { position: relative; overflow: hidden; }
.has-kit > .wrap { position: relative; z-index: 1; }
.photo-card { border-radius: var(--radius); overflow: hidden; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-art { position: relative; }
.hero-art img.photo { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }
.hero-art .cap { position: absolute; left: 1.4rem; bottom: 1.2rem; background: rgba(250,246,238,.94); color: var(--ink); padding: .6rem .9rem; border-radius: 10px; font-size: .9rem; max-width: 34ch; }
@media (max-width: 600px) { .hero-art img.photo { aspect-ratio: 4 / 3; } .hero-art .cap { position: static; margin-top: .8rem; max-width: none; } }
.cover { box-shadow: 0 30px 50px -24px rgba(0,0,0,.45); border-radius: 3px; }
.textured { position: relative; overflow: hidden; }
.textured::before { content: ""; position: absolute; inset: 0; background: url(/assets/band-navy-hero.jpg) center right / cover no-repeat; opacity: .9; }
.textured::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,52,89,.94) 0%, rgba(0,52,89,.78) 55%, rgba(0,52,89,.25) 100%); }
.textured > .wrap { position: relative; z-index: 1; }

/* the currency stamp */
.stamp { display: inline-grid; grid-template-columns: auto 1fr; gap: .2rem .9rem; align-items: center; border: 1.5px solid var(--ink); border-radius: 12px; padding: .8rem 1.1rem; font-size: .9rem; color: var(--ink-soft); max-width: 34rem; }
.stamp .sun { grid-row: span 2; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--gold); position: relative; }
.stamp .sun::before, .stamp .sun::after { content: ""; position: absolute; background: var(--navy); opacity: .6; }
.stamp .sun::before { left: 50%; top: -25%; width: 1px; height: 150%; }
.stamp .sun::after { top: 50%; left: -25%; height: 1px; width: 150%; }
.stamp strong { color: var(--ink); font-family: var(--display); font-weight: 400; font-size: 1.05rem; }

/* book page */
.book-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: calc(var(--gutter) * 2); align-items: end; }
.book-head .cover { width: min(100%, 380px); justify-self: end; }
@media (max-width: 860px) { .book-head { grid-template-columns: 1fr; } .book-head .cover { width: min(70%, 320px); justify-self: start; } }
.buy { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gutter); margin: 2rem 0; }
.buy-block { border-top: 1.5px solid var(--ink); padding-top: 1.2rem; }
.buy-block h3 { margin-bottom: .2rem; }
.buy-block .price { font-family: var(--display); font-size: 1.5rem; margin: .2rem 0 .8rem; }
.buy-block .isbn { font-size: .85rem; color: var(--ink-soft); }
.notice { font-size: .9rem; color: var(--ink-soft); border-top: 1px solid var(--rule); padding-top: 1rem; margin-top: 1.5rem; }

/* forms */
form.pbc { display: grid; gap: 1rem; max-width: 560px; }
form.pbc label { font-weight: 600; display: block; margin-bottom: .35rem; }
form.pbc .opt { font-weight: 400; color: var(--ink-soft); }
form.pbc input, form.pbc textarea { width: 100%; font: inherit; padding: .8rem .9rem; border: 1.5px solid var(--grey); border-radius: 10px; background: #fff; color: var(--ink); }
form.pbc input:focus, form.pbc textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
form.pbc textarea { min-height: 9rem; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.inline-form { display: flex; flex-wrap: wrap; gap: .75rem; max-width: 560px; }
.inline-form input { flex: 1 1 240px; font: inherit; padding: .75rem 1rem; border: 1.5px solid rgba(255,255,255,.45); border-radius: 999px; background: rgba(255,255,255,.06); color: #fff; }
.inline-form input::placeholder { color: rgba(255,255,255,.6); }
.inline-form input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

/* about */
.portrait { width: min(100%, 320px); aspect-ratio: 4 / 5; background: var(--sage); border-radius: var(--radius); overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.band { position: relative; min-height: clamp(380px, 46vw, 560px); display: grid; align-items: end; color: #fff; overflow: hidden; background: var(--navy); border-radius: var(--radius); }
.band img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,52,89,.05) 0%, rgba(0,52,89,.5) 55%, rgba(0,52,89,.9) 100%); }
.band .inner { position: relative; z-index: 2; padding: clamp(1.5rem, 4vw, 3rem); }
.band blockquote { margin: 0; font-family: var(--display); font-size: clamp(1.5rem, 3.2vw, 2.6rem); line-height: 1.15; letter-spacing: -0.02em; max-width: 22ch; }
.band cite { display: block; font-style: normal; font-family: var(--body); font-size: .9rem; color: var(--sage); margin-top: 1rem; }

/* notes */
.note-list { list-style: none; padding: 0; margin: 0; }
.note-list li { padding: 1.4rem 0; border-top: 1px solid var(--rule); }
.note-list time { display: block; font-size: .85rem; color: var(--ink-soft); margin-bottom: .3rem; }
.note-list a { font-family: var(--display); font-size: 1.4rem; text-decoration: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.85); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--gutter); padding: calc(var(--section) * .55) 0 1.5rem; }
.footer-mark { width: 170px; margin-bottom: 1rem; }
.footer-land { max-width: 44ch; color: var(--sage); }
.footer-legal { color: rgba(255,255,255,.6); font-size: .85rem; max-width: 44ch; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); padding: 1rem 0 1.5rem; font-size: .85rem; color: rgba(255,255,255,.6); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { .btn, .stand summary .plus { transition: none; } .procession img { transform: none !important; } }

/* ---------- print: the book page becomes a one-sheet for a board table ---------- */
@media print {
  @page { margin: 18mm; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .site-footer, .btn, .btn-row, form, .kit, .procession, .textured, .nav, .skip, .stand summary .plus { display: none !important; }
  .section, .section-sm, .page-head { padding: 0 0 1.2rem; }
  .split, .grid-2, .cols { display: block; }
  .split > :first-child h2 { position: static; }
  h1 { font-size: 26pt; } h2 { font-size: 16pt; margin-top: 1rem; } .lede { font-size: 12pt; }
  .book-head .cover { width: 42mm; float: right; margin: 0 0 8mm 8mm; box-shadow: none; }
  .buy-block { border-top: 1px solid #000; }
  .print-only { display: block !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
  .stand details { display: block; } .stand .answer { display: block; padding-left: 0; }
}
.print-only { display: none; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--ink); cursor: pointer; }
.linkbtn:hover { color: var(--teal); border-color: var(--teal); }
@media print { .no-print, .print-hide { display: none !important; } .stamp { break-inside: avoid; } .buy { display: block; } .buy-block { display: block; border-top: 1px solid #000; padding-top: 2mm; margin-bottom: 3mm; } .buy-block p { margin-bottom: .3em; } .book-head { display: grid; grid-template-columns: 1fr 40mm; gap: 8mm; align-items: start; } .book-head .cover { width: 40mm; float: none; margin: 0; justify-self: end; } .split { display: grid; grid-template-columns: 1fr; gap: 0; } #buy, .section[style] { padding-top: 4mm !important; } .prose, .page-head .lede, .page-head .sub, .stamp { max-width: none; } .print-only .lede { font-size: 10.5pt; } .page-head { padding-bottom: 0; } .buy { margin: 3mm 0; } .notice { margin-top: 3mm; } body { font-size: 10.5pt; } .lede { font-size: 11.5pt; } }
