/* The web page's look. The pieces are made by typst/web.typ, which gives each a class; the
   colours, faces and sizes are the booklet's (typst/print.typ), set for a screen. */
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url(assets/fonts/atkinson-hyperlegible-latin-400-normal.ttf) format("truetype"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: italic; font-display: swap; src: url(assets/fonts/atkinson-hyperlegible-latin-400-italic.ttf) format("truetype"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url(assets/fonts/atkinson-hyperlegible-latin-700-normal.ttf) format("truetype"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-style: italic; font-display: swap; src: url(assets/fonts/atkinson-hyperlegible-latin-700-italic.ttf) format("truetype"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(assets/fonts/barlow-condensed-latin-600-normal.ttf) format("truetype"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(assets/fonts/barlow-condensed-latin-700-normal.ttf) format("truetype"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url(assets/fonts/barlow-condensed-latin-800-normal.ttf) format("truetype"); }

:root {
  --purple: #4a3080; --deep: #36215f; --teal: #006670; --purple2: #9c86c9; --teal2: #7fb7b9; --grey: #8a8494;
  --ptint: #efeaf7; --ttint: #e1efef; --stock: #cdbbe6; --ink: #111; --paper: #fff; --rule: #c9c2d6;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 1.0625rem/1.55 var(--body); color: var(--ink); background: var(--paper); }
.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }
p, ul, dl, table { margin: 0 0 .8rem; }
a { color: var(--purple); text-underline-offset: .15em; }
a:hover { color: var(--deep); }
a:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
strong { font-weight: 700; }
h1, h2, h3, h4, caption, .eyebrow, .kicker, .pillars, .band, .hotline-bar, .figure, .big, .words, .number, .also, dt, .button, thead th, tr.group th, .tally strong, .glance strong {
  font-family: var(--head); text-transform: uppercase; line-height: 1.05; }
h3 { margin: 1.9rem 0 .6rem; font-size: 1.35rem; font-weight: 700; letter-spacing: .02em; color: var(--purple); display: flex; align-items: center; gap: .6rem; }
h3::after { content: ""; flex: 1; border-top: 1.5px solid currentColor; }
h4 { margin: 1.6rem 0 .4rem; font-size: 1.35rem; font-weight: 700; letter-spacing: .02em; color: var(--purple); }

/* ---------- the cover ---------- */
.cover { background: var(--stock); padding: 2.2rem 0 2rem; }
.cover .wrap { display: grid; grid-template-columns: 1fr auto; column-gap: 2rem; align-items: center; border-top: 5px solid var(--ink); padding-top: 1rem; }
.cover .wrap > * { grid-column: 1; }
.cover .wrap > p:has(.cover-mark) { grid-column: 2; grid-row: 1 / span 5; margin: 0; }
.cover-mark { width: clamp(9rem, 26vw, 15rem); height: auto; display: block; }
.kicker { justify-self: start; margin: 0 0 .9rem; border: 2px solid var(--ink); padding: .3rem .7rem .2rem; font-size: .95rem; font-weight: 700; letter-spacing: .2em; }
h1 { margin: 0; font-size: clamp(4.2rem, 17vw, 8rem); font-weight: 800; line-height: .86; letter-spacing: -.005em; }
.pillars { margin: .5rem 0 1.1rem; font-size: clamp(.8rem, 2.6vw, 1rem); font-weight: 600; letter-spacing: .16em; }
.band { margin: 0 0 .8rem; background: var(--ink); color: var(--stock); padding: .6rem .9rem; }
.band small { display: block; font-size: .9rem; font-weight: 600; letter-spacing: .3em; margin-bottom: .25rem; }
.band strong { font-size: clamp(1.7rem, 6vw, 2.4rem); font-weight: 800; letter-spacing: .01em; }
.tagline { margin: 0; text-transform: none; }
.hotline-bar { grid-column: 1 / -1 !important; margin: 1.6rem 0 0; background: var(--ink); color: var(--stock); padding: .6rem .9rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .3rem 1rem; }
.hotline-bar span { font-size: .95rem; font-weight: 700; letter-spacing: .18em; }
.hotline-bar strong { font-size: 1.5rem; font-weight: 800; letter-spacing: .04em; }
.hotline-bar a { color: inherit; text-decoration: none; }

/* ---------- a part of the page ---------- */
.part { padding: 2.6rem 0 2.2rem; scroll-margin-top: .5rem; }
.part.tinted { background: var(--ptint); }
.part.own { border-top: 1.5px solid var(--rule); }
.page-title { border-bottom: 2.5px solid var(--purple); padding-bottom: .7rem; margin-bottom: 1.3rem; }
.page-title h2 { margin: 0; font-size: clamp(2.1rem, 8vw, 2.9rem); font-weight: 800; color: var(--purple); }
.page-title .sub { margin: .25rem 0 0; font-style: italic; }
.eyebrow { margin: 0 0 .35rem; font-size: .9rem; font-weight: 700; letter-spacing: .2em; color: var(--teal); }
.page-title.first { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.page-title.first .mark { width: 5.2rem; height: auto; }
.letterhead { border-bottom-color: var(--ink); }
.letterhead h2 { color: var(--ink); }
.letterhead .eyebrow { color: var(--ink); }
.lead { font-size: 1.15rem; }
.aside { font-style: italic; }
.signature { margin-top: 1.2rem; }
.service h3 { margin: 1.3rem 0 .15rem; font-size: 1.2rem; color: var(--teal); }
.service h3::after { display: none; }
ul { padding-left: 1.2rem; }
li { margin: .15rem 0; }
li::marker { color: var(--purple); }
.two-columns ul, .business-donors { columns: 2; column-gap: 2rem; }
.two-columns li, .business-donors li, .contents li { break-inside: avoid; margin: 0; padding: .15rem 0; }
.business-donors { font-size: .95rem; }
.donors { text-align: left; }

/* ---------- boxes ---------- */
.callout { margin: 1.3rem 0; padding: .8rem 1.1rem .9rem; background: var(--ptint); border-left: .3rem solid var(--purple); }
.callout.teal { background: var(--ttint); border-left-color: var(--teal); }
.tinted .callout.purple { background: var(--paper); }
.callout h3 { margin: 0 0 .25rem; font-size: 1.15rem; letter-spacing: .03em; }
.callout h3::after { display: none; }
.callout.teal h3, .teal .figure { color: var(--teal); }
.callout p:last-child { margin-bottom: 0; }
.mission p { font-size: 1.2rem; font-style: italic; font-weight: 700; color: var(--deep); }
.figure { font-weight: 800; color: var(--purple); }
.stat .figure { margin: 0; font-size: 3.4rem; line-height: .9; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stats .callout { margin: 0 0 .5rem; }
.big-figure .figure { font-size: 2.8rem; line-height: .9; margin-right: .3rem; }
.phone-line { margin: .5rem 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1rem; }
.phone-line .figure { font-size: 2.1rem; }
.phone-line .figure a { color: inherit; text-decoration: none; }
.phone-line .also { font-family: var(--head); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; color: var(--purple); }
.phone-line .also a { color: inherit; }
.side-by-side { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; align-items: start; }
.tally { display: flex; flex-wrap: wrap; gap: .2rem 1.6rem; }
.tally strong { font-size: 1.5rem; color: var(--purple); }
.tally span:nth-child(even) strong { color: var(--teal); }

/* ---------- figures with bars ---------- */
table.bars { width: 100%; border-collapse: collapse; font-size: 1rem; }
.bars caption, .bars thead th, .bars tr.group th { text-align: left; font-size: .95rem; font-weight: 700; letter-spacing: .04em; color: var(--purple); }
.bars caption { border-bottom: 1.5px solid var(--purple); padding-bottom: .15rem; }
.bars thead th { border-bottom: 1.5px solid var(--purple); padding: 0 0 .15rem; }
.bars thead th:nth-child(2) { text-align: right; }
.bars thead th:nth-child(3) { padding-left: .8rem; }
.bars tr.group th { color: var(--teal); padding-top: .8rem; }
.bars tbody:first-of-type tr.group th { padding-top: 0; }
.bars tbody th { text-align: left; font-weight: 400; }
.bars tbody tr:not(.group) > * { padding: .28rem 0; border-bottom: 1px solid var(--rule); }
.bars td.v { text-align: right; font-variant-numeric: tabular-nums; padding-left: .8rem !important; white-space: nowrap; }
.bars td.bar { width: 32%; padding-left: .8rem !important; }
.bars.narrow td.bar { width: 36%; }
.bars td.bar span { display: block; height: .62rem; min-width: 2px; background: var(--purple); }
.bars td.bar span.teal { background: var(--teal); }
.bars td.bar span.grey { background: var(--grey); }
.bars tr.total > * { border-bottom: 0 !important; border-top: 1.5px solid var(--ink); font-weight: 700; padding-top: .4rem !important; }
.bars:not(.narrow) tr.total > * { font-size: 1.12rem; }
.bars.tight { font-size: .95rem; }
.bars.tight tbody tr > * { padding-top: .18rem; padding-bottom: .18rem; }
.split .bar { display: flex; height: 1.9rem; margin: .4rem 0 .7rem; }
.split .bar .s1, .split li.s1::before { background: var(--purple); }
.split .bar .s2, .split li.s2::before { background: var(--teal); }
.split .bar .s3, .split li.s3::before { background: var(--purple2); }
.split .bar .s4, .split li.s4::before { background: var(--teal2); }
.split ul { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 1rem; }
.split li::before { content: ""; display: inline-block; width: .8rem; height: .8rem; margin-right: .5rem; }

/* ---------- names and what they are ---------- */
dl { display: grid; grid-template-columns: minmax(6.5rem, max-content) 1fr; gap: .3rem 1.4rem; align-items: baseline; }
dt { grid-column: 1; font-size: 1.12rem; font-weight: 700; text-transform: none; }
dd { grid-column: 2; margin: 0; overflow-wrap: anywhere; }

/* ---------- inside the cover ---------- */
.glance-title { margin-top: 2.2rem; font-size: 1.15rem; letter-spacing: .18em; color: var(--ink); }
.glance-title::after { display: none; }
.glance { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 3px solid var(--ink); }
.glance li { margin: 0; padding: .7rem .5rem .6rem 0; border-bottom: 1px solid var(--ink); }
.glance strong { display: block; font-size: 2.6rem; font-weight: 800; line-height: .95; }
.glance span { font-size: .92rem; line-height: 1.25; display: block; }
.contents ul { list-style: none; padding: 0; columns: 2; column-gap: 2rem; }
.contents a::first-letter { text-transform: uppercase; }
.gift { margin-top: 1.8rem; border-top: 2.5px solid var(--ink); padding-top: .7rem; }
.gift h3 { margin: 0 0 .2rem; color: var(--ink); font-weight: 800; }
.gift h3::after { display: none; }
.tinted h3 { color: var(--ink); }

/* ---------- get help ---------- */
.hotline-head { display: flex; align-items: center; gap: 1rem; border-bottom: 4px solid var(--ink); padding-bottom: .6rem; margin-bottom: .8rem; }
.hotline-head p { margin: 0; }
.hotline-head .big { font-size: clamp(4.5rem, 20vw, 7.4rem); font-weight: 800; line-height: .8; }
.hotline-head .words { font-size: 1.35rem; font-weight: 700; letter-spacing: .04em; line-height: 1.1; }
.hotline-head .number { font-size: 2rem; font-weight: 800; margin-top: .2rem; }
.hotline-head .also { font-size: 1.15rem; font-weight: 700; letter-spacing: .08em; }
.hotline-head a { color: inherit; text-decoration: none; }
.towns { font-size: .97rem; }
.fine-print { margin-top: 2.2rem; border-top: 2.5px solid var(--ink); padding-top: .5rem; font-size: .85rem; line-height: 1.4; }

/* ---------- the web page's own ---------- */
.button { display: inline-block; background: var(--purple); color: #fff; padding: .6rem 1.1rem .5rem; font-size: 1.25rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; overflow-wrap: anywhere; }
.button:hover { background: var(--deep); color: #fff; }
.files { list-style: none; padding: 0; }
.files li { margin: 0 0 .9rem; }
.files a { display: block; font-family: var(--head); font-size: 1.4rem; font-weight: 700; text-transform: uppercase; }

@media (max-width: 34rem) {
  body { font-size: 1rem; }
  .cover .wrap { grid-template-columns: 1fr; }
  .cover .wrap > p:has(.cover-mark) { grid-column: 1; grid-row: auto; justify-self: center; margin: 1.4rem 0 0; }
  .side-by-side, .stats { grid-template-columns: 1fr; }
  .two-columns ul, .business-donors, .contents ul { columns: 1; }
  .glance { grid-template-columns: repeat(2, 1fr); }
  .glance strong { font-size: 2.2rem; }
  .split ul { grid-template-columns: 1fr; }
  dl { grid-template-columns: 1fr; gap: 0; }
  dd { grid-column: 1; margin-bottom: .5rem; }
  .bars td.bar, .bars.narrow td.bar { width: 28%; }
}
@media print { body.report .part.own { display: none; } }
