/* Repapyrus public site.
   Colors, type and spacing come from tokens.css, a verbatim copy of brand/tokens.css.
   Rules kept from the brand: lime is only ever a fill under ink text, once per page;
   no red anywhere; hairlines carry the structure.
   Every page links this file as site.css?v=N. Bump N in all four pages whenever this file
   changes: Cloudflare caches /assets/* for a day, and a new query string skips that copy.
   The pages wrap <body> in <!--email_off-->: Cloudflare's Email Obfuscation would otherwise
   replace every address with "[email protected]" plus a decoder script that the CSP blocks. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--rp-paper);
  color: var(--rp-ink);
  font: var(--rp-fw-regular) var(--rp-fs-body)/var(--rp-lh-body) var(--rp-font-sans);
  overflow-x: hidden;
}
h1, h2, h3, p, ol, ul, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--rp-ink); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--rp-wrap); margin: 0 auto; padding: 0 var(--rp-gutter); }
@media (min-width: 720px) { .wrap { padding: 0 var(--rp-gutter-wide); } }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--rp-ink); color: var(--rp-paper); padding: 8px 12px; border-radius: var(--rp-radius-sm);
}
.skip:focus { left: 8px; z-index: 10; }

.kicker {
  font-size: var(--rp-fs-kicker); font-weight: var(--rp-fw-semibold); line-height: var(--rp-lh-kicker);
  letter-spacing: var(--rp-tracking-kicker); text-transform: uppercase; color: var(--rp-ink-2);
}
.link {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.link:hover { text-decoration-thickness: 2px; }

/* ---------- Masthead ---------- */
.mast { border-bottom: var(--rp-line-strong); }
.mast .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.mast .brand { display: block; flex: none; text-decoration: none; }
.mast .brand img { width: 125px; height: auto; }
.mast nav { margin-left: auto; display: flex; gap: 20px; font-size: var(--rp-fs-ui); }
.mast nav a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.mast nav a:hover, .mast nav a[aria-current="page"] { border-bottom-color: var(--rp-rule-strong); }
.mast .status { margin-left: auto; }

/* ---------- Home: hero ---------- */
.hero { border-bottom: var(--rp-line-strong); }
.hero .wrap { padding-top: 40px; padding-bottom: 48px; display: grid; gap: 28px; }
.hero h1 {
  font-family: var(--rp-font-display); font-weight: var(--rp-fw-regular);
  font-size: clamp(46px, 12.5vw, 150px); line-height: 0.9; letter-spacing: var(--rp-tracking-hero);
  max-width: 11ch;
}
.hero h1 em { font-style: italic; }
.hero .lede {
  font-family: var(--rp-font-display); font-size: clamp(21px, 2.6vw, var(--rp-fs-lede)); line-height: var(--rp-lh-lede);
  max-width: 30em; color: var(--rp-ink);
}
.hero .meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: var(--rp-fs-small); color: var(--rp-ink-2); }
@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr) 360px; column-gap: 56px; align-items: end; padding-top: 72px; padding-bottom: 72px; }
  .hero h1 { grid-column: 1 / -1; }
  .hero .lede { grid-column: 1; }
  .hero .meta { grid-column: 2; justify-self: end; flex-direction: column; text-align: right; }
}

/* ---------- Program sections (label column + content) ---------- */
.sec { border-bottom: var(--rp-line); }
.sec > .wrap { padding-top: 36px; padding-bottom: 40px; display: grid; gap: 20px; }
.sec-label h2 { font-size: var(--rp-fs-h2); font-weight: var(--rp-fw-semibold); line-height: var(--rp-lh-h2); margin-top: 6px; }
@media (min-width: 960px) {
  .sec > .wrap { grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding-top: 48px; padding-bottom: 56px; }
  .sec-label { position: sticky; top: 24px; align-self: start; }
}

/* The numbered program on the home page */
.program { list-style: none; padding: 0; border-top: var(--rp-line-strong); counter-reset: act; }
.program li {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px;
  padding: 20px 0; border-bottom: var(--rp-line);
}
.program li::before {
  counter-increment: act; content: counter(act, decimal-leading-zero);
  grid-row: 1 / span 2; font-family: var(--rp-font-display); font-size: 28px; line-height: 1; color: var(--rp-ink-2);
}
.program h3 { font-size: var(--rp-fs-h3); font-weight: var(--rp-fw-semibold); line-height: var(--rp-lh-h3); }
.program p { color: var(--rp-ink-2); max-width: 36em; }
@media (min-width: 720px) {
  .program li { grid-template-columns: 64px minmax(0, 18em) minmax(0, 1fr); column-gap: 24px; align-items: baseline; }
  .program li::before { grid-row: auto; font-size: 34px; }
}

/* ---------- Home: the ink band with the one lime action ---------- */
.band { background: var(--rp-paper); color: var(--rp-ink); border-bottom: var(--rp-line-strong); }
.band .wrap { padding-top: 48px; padding-bottom: 56px; display: grid; gap: 20px; }
.band h2 {
  font-family: var(--rp-font-display); font-weight: var(--rp-fw-regular);
  font-size: var(--rp-fs-display); line-height: var(--rp-lh-display); letter-spacing: var(--rp-tracking-display);
}
.band p { max-width: 34em; color: var(--rp-ink-2); }
.band .act {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  background: var(--rp-lime); color: var(--rp-on-lime); border-radius: var(--rp-radius-pill);
  padding: 12px 20px; font-weight: var(--rp-fw-semibold); text-decoration: none; overflow-wrap: anywhere;
}
.band .act:hover { text-decoration: underline; text-underline-offset: 3px; }
.band .act:focus-visible { outline: 2px solid var(--rp-lime); outline-offset: 3px; }
@media (min-width: 960px) {
  .band .wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 48px; }
  .band h2 { grid-column: 1 / -1; }
  .band .act { justify-self: end; }
}

/* ---------- Legal pages ---------- */
.page-head { border-bottom: var(--rp-line-strong); }
.page-head .wrap { padding-top: 40px; padding-bottom: 36px; display: grid; gap: 14px; }
.page-head h1 {
  font-family: var(--rp-font-display); font-weight: var(--rp-fw-regular);
  font-size: var(--rp-fs-display); line-height: var(--rp-lh-display); letter-spacing: var(--rp-tracking-display);
}
.page-head .lede { font-family: var(--rp-font-display); font-size: clamp(20px, 2.4vw, 24px); line-height: 1.3; max-width: 32em; }
.page-head .updated { font-size: var(--rp-fs-small); color: var(--rp-ink-2); }
@media (min-width: 960px) { .page-head .wrap { padding-top: 64px; padding-bottom: 48px; } }

.toc { border-bottom: var(--rp-line); }
.toc .wrap { padding-top: 20px; padding-bottom: 24px; display: grid; gap: 10px; }
.toc ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--rp-fs-small); }
.toc a { text-decoration: none; border-bottom: var(--rp-line); }
.toc a:hover { border-bottom: var(--rp-line-strong); }

.legal-body { min-width: 0; max-width: var(--rp-reading); }
.legal-body p + p, .legal-body p + ul, .legal-body ul + p, .legal-body h3 + p, .legal-body p + h3, .legal-body ul + h3 { margin-top: 12px; }
.legal-body h3 { font-size: var(--rp-fs-h3); font-weight: var(--rp-fw-semibold); line-height: var(--rp-lh-h3); margin-top: 24px; }
.legal-body ul { padding-left: 1.2em; list-style: disc; }
.legal-body li + li { margin-top: 6px; }
.legal-body li::marker { color: var(--rp-ink-3); }
.legal-body strong { font-weight: var(--rp-fw-semibold); }
.legal-body address { display: inline; font-style: normal; }
.sec[id] { scroll-margin-top: 16px; }

/* ---------- Not found ---------- */
.lost .wrap { padding-top: 56px; padding-bottom: 72px; display: grid; gap: 18px; }
.lost h1 {
  font-family: var(--rp-font-display); font-weight: var(--rp-fw-regular);
  font-size: var(--rp-fs-display); line-height: var(--rp-lh-display); letter-spacing: var(--rp-tracking-display);
}
.lost p { max-width: 32em; color: var(--rp-ink-2); }

/* ---------- Footer ---------- */
.foot { font-size: var(--rp-fs-small); color: var(--rp-ink-2); }
.foot .wrap { padding-top: 28px; padding-bottom: 36px; display: grid; gap: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--rp-ink); font-size: var(--rp-fs-ui); }
.foot nav a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.foot p { max-width: 40em; }
@media (min-width: 720px) {
  .foot .wrap { grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: 40px; }
  .foot .wrap > :last-child { justify-self: end; text-align: right; }
}

/* ---------- Print the legal pages cleanly ---------- */
@media print {
  .mast nav, .toc, .skip { display: none; }
  .sec-label { position: static; }
  body { background: #fff; color: #000; }
}
