/* PhillyPause — one stylesheet, no framework. Tokens in tokens.css.
   The layout follows the printed postcard: full-bleed bands, hairline rules
   between beats, and a navy footer band carrying the logo and the ask. */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3 { margin: 0 0 0.5em; color: var(--heading); text-wrap: balance; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--alarm-ink); text-underline-offset: 2px; }
a:hover { color: var(--heading); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--alarm); color: #fff; padding: 0.7rem 1rem; font-weight: 700;
}
.skip-link:focus { left: 0; color: #fff; }

.shell { min-height: 100vh; display: flex; flex-direction: column; }
.shell > main { flex: 1; }

.wrap { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 40rem) { .wrap { padding-inline: 2rem; } }

.logo {
  display: block;
  width: var(--logo-size, 72px);
  height: var(--logo-size, 72px);
  background-color: var(--logo-ink, var(--navy));
  -webkit-mask: url("phillypause-logo.svg") center / contain no-repeat;
  mask: url("phillypause-logo.svg") center / contain no-repeat;
}

/* --- header --------------------------------------------------------------
   A rule, a mark, and the ask. No nav: there is one page. */

.site-header { border-bottom: 2px solid var(--navy); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 0.7rem; flex-wrap: wrap;
}
.site-header .logo { --logo-size: 54px; }
.header-ask {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}

/* --- hero ---------------------------------------------------------------- */

.hero { padding: clamp(2.75rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem); }
.hero h1 {
  font-size: var(--step-hero);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0 0 0.45em;
  max-width: 14ch;
}
.hero h1 .alarm { display: block; color: var(--alarm); }
.hero-lead {
  font-size: var(--step-lead);
  color: var(--ink);
  max-width: 44ch;
  margin: 0 0 1.75rem;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.7rem 1.5rem;
  border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  background: var(--alarm); color: #fff;
}
.btn:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: var(--heading); border-color: var(--rule); }
.btn-ghost:hover { background: transparent; border-color: var(--heading); color: var(--heading); }
.btn-on-navy { background: var(--alarm); color: #fff; }
.btn-on-navy:hover { background: var(--cream); color: var(--navy); }

/* --- bands and rules ------------------------------------------------------ */

.band { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.band + .band { border-top: 1px solid var(--rule); }
.band-navy {
  background: var(--ground); color: var(--ground-ink);
  --logo-ink: var(--ground-ink);
  border-top: 0;
}
.band-navy h2, .band-navy h3 { color: var(--ground-ink); }
.band-navy a { color: var(--alarm); }
.band-navy a:hover { color: #fff; }

.kicker {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--heading); margin: 0 0 1.25rem;
}
.kicker-alarm { color: var(--alarm-ink); }

.band h2 {
  font-size: var(--step-h2); font-weight: 700; letter-spacing: -0.02em;
  text-transform: uppercase; max-width: 20ch;
}
.band-lead { font-size: var(--step-lead); max-width: var(--measure); }

/* --- the headline statistic ----------------------------------------------- */

.figure-row {
  display: flex; align-items: baseline; gap: clamp(1rem, 3vw, 2rem);
  flex-wrap: wrap; margin-bottom: 1.5rem;
}
.figure-num {
  font-size: clamp(3.5rem, 2rem + 8vw, 7rem);
  font-weight: 700; line-height: 0.8; letter-spacing: -0.04em;
  color: var(--alarm); font-variant-numeric: tabular-nums;
}
.figure-say {
  font-size: var(--step-h2); font-weight: 700; line-height: 1.12;
  letter-spacing: -0.02em; color: var(--heading); max-width: 16ch; margin: 0;
}

/* --- the smaller numbers -------------------------------------------------- */

.facts {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  margin: 2rem 0 0; padding: 0; list-style: none;
}
.facts > li { border-top: 3px solid var(--alarm); padding-top: 0.9rem; }
.facts b {
  display: block; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  line-height: 1; letter-spacing: -0.03em; color: var(--heading);
  font-variant-numeric: tabular-nums; margin-bottom: 0.35rem;
}
.facts span { color: var(--muted); font-size: 0.95rem; }

/* --- the turn ------------------------------------------------------------- */

.turn { text-align: left; }
.turn h2 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); max-width: 18ch; }
.turn p { font-size: var(--step-lead); color: var(--ground-muted); max-width: 40ch; }

/* --- quotes --------------------------------------------------------------- */

.quotes { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.quotes > li { padding: 1.5rem 0; border-top: 1px solid var(--rule); }
.quotes > li:first-child { border-top: 0; padding-top: 0; }
.quotes blockquote { margin: 0; }
.quotes blockquote p {
  font-family: var(--serif);
  font-size: var(--step-quote);
  line-height: 1.3;
  color: var(--heading);
  margin: 0 0 0.6rem;
  max-width: 30ch;
}
.quotes cite { font-style: normal; font-size: 0.9rem; }
.quotes cite b { font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); }
.quotes cite span { color: var(--muted); }

/* --- act ------------------------------------------------------------------ */

.act-grid {
  display: grid; gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  margin-top: 2rem;
}
.act-grid h3 {
  font-size: var(--step-h3); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; margin-bottom: 0.4rem;
}
.act-grid p { color: var(--ground-muted); font-size: 0.97rem; }

.join {
  display: flex; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
  flex-wrap: wrap; margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid rgb(255 255 255 / 0.18);
}
.join-text { flex: 999 1 20rem; min-width: 0; }
.join-text h2 { margin-bottom: 0.3rem; }
.join-text p { color: var(--ground-muted); margin-bottom: 1.25rem; }
.join .logo { --logo-size: 108px; flex: none; }

/* --- sources -------------------------------------------------------------- */

.sources { font-size: 0.92rem; color: var(--muted); max-width: var(--measure); }
.sources h2 {
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.9rem;
}
.sources ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.5rem; }
.sources li::marker { color: var(--alarm); }

/* --- prose (the few remaining Markdown pages) ----------------------------- */

/* Block padding only: .page-head always sits on a .wrap, and the shorthand
   would zero the wrap's side padding and pull the title left of the page. */
.page-head { padding-block: clamp(2rem, 5vw, 3.5rem) 1.2rem; }
.page-head h1 { font-size: var(--step-h2); text-transform: uppercase; max-width: 26ch; }
.page-head .lead { font-size: var(--step-lead); color: var(--muted); max-width: var(--measure); margin: 0; }

.prose { max-width: var(--measure); padding-bottom: 4rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: var(--step-h3); margin-top: 2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.35em; }
.prose li::marker { color: var(--alarm); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }

.credit {
  max-width: var(--measure); margin-top: 3rem; padding-top: 1.1rem;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem;
}
.credit p { margin: 0; }

/* --- footer --------------------------------------------------------------- */

.site-footer {
  margin-top: auto; padding: 2rem 0;
  border-top: 1px solid var(--rule);
  font-size: 0.88rem; color: var(--muted);
}
.footer-who { margin: 0 0 0.5rem; max-width: 54ch; }
.footer-who strong { color: var(--heading); }
.footer-legal { margin: 0; max-width: 62ch; }

#blazor-error-ui {
  display: none; position: fixed; inset-inline: 0; bottom: 0; z-index: 1000;
  background: var(--alarm); color: #fff; padding: 0.9rem 1.2rem; text-align: center;
}
#blazor-error-ui a { color: #fff; }

/* The account bar (Components/Layout/AccountBar.razor): the top of every page
   while ManyHands is on. The front page's ink and red, on every page, so the
   way in looks the same wherever a volunteer starts. */
.account-bar {
  background: #15110C; color: #FBF8F1; font-family: var(--sans); font-size: 13px;
  /* Doubles the site header's own top padding, below. */
  margin-bottom: 0.7rem;
}
/* The same column as .wrap, so the words and the button sit on the content's
   own edges. The front page has a wider column; broadsheet.css matches it. */
.account-bar-inner {
  max-width: var(--page); margin-inline: auto; padding: 8px 1.25rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px;
}
@media (min-width: 40rem) { .account-bar-inner { padding-inline: 2rem; } }
.account-who strong { font-weight: 700; }
.account-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.account-links a, .account-signout button {
  color: #FBF8F1; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 12px;
  text-decoration: none;
}
.account-links a:hover, .account-links a:focus-visible,
.account-signout button:hover, .account-signout button:focus-visible { text-decoration: underline; }
.account-links .account-primary {
  background: #AE2012; padding: 6px 14px; letter-spacing: 0.12em;
}
.account-links .account-primary:hover, .account-links .account-primary:focus-visible { background: #8E190E; text-decoration: none; }
.account-signout { display: inline; margin: 0; }
.account-signout button { background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
