/*
 * CRC International — one-page site.
 * 12-column grid, 1200px max. Dark header/footer, light content sections.
 * One typeface (Source Sans 3). Brand plum for links only. No animation.
 */
:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --text: #16171a;
  --text-2: #5c5f66;
  --rule: #dad8d1;
  --accent: #4a1440;
  --live: #d4142a;
  --video: #111214;
  --chrome-bg: #1b1c1f;
  --chrome-text: #ecebe7;
  --chrome-text-2: #a7a9ae;
  --font: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 18px; line-height: 1.6; }
h1, h2, h3, p, dl, dd, blockquote { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.gutter { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
@media (max-width: 600px) { .gutter { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); } }
.container { max-width: 1200px; margin: 0 auto; }

/* Header */
.header { background: var(--chrome-bg); color: var(--chrome-text); }
.header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 16px; }
.brand { display: block; }
.brand img { height: 56px; width: auto; display: block; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; font-size: 16px; }
.nav a { color: var(--chrome-text); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: #ffffff; text-decoration: underline; }
.header :focus-visible, .footer :focus-visible { outline-color: var(--chrome-text); }

/* Live */
.live { padding-block: 40px 56px; }
.status { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-2); }
.status.is-live { color: var(--live); }
.status.is-live .dot { background: var(--live); }
.live h1 { font-size: clamp(26px, 3vw, 34px); line-height: 1.2; margin-bottom: 24px; overflow-wrap: anywhere; }
.player { position: relative; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; background: var(--video); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 14px; font-size: 15px; color: var(--text-2); }

/* Sections: 4/8 split (title / content) */
.section { border-top: 1px solid var(--rule); padding-block: 64px 72px; }
.section--first { border-top: 0; padding-top: 32px; }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 24px; }
.split > .head { grid-column: 1 / span 4; }
.split > .body { grid-column: 5 / span 8; min-width: 0; }
@media (max-width: 900px) { .split > .head, .split > .body { grid-column: 1 / -1; } }
.section h2 { font-size: 30px; line-height: 1.2; }
.head p { margin-top: 12px; color: var(--text-2); font-size: 16px; max-width: 34ch; }

/* Donation */
.give { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
@media (max-width: 760px) { .give { grid-template-columns: minmax(0, 1fr); } }
.give-text { display: grid; gap: 28px; align-content: start; }
.give-text p { max-width: 46ch; }
blockquote { padding-left: 18px; border-left: 2px solid var(--rule); color: var(--text-2); font-style: italic; max-width: 46ch; }
blockquote footer { margin-top: 6px; font-style: normal; font-size: 15px; }
h3 { font-size: 18px; margin-bottom: 10px; }
.bank dl { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 12px; font-size: 17px; }
.bank dt { color: var(--text-2); }
.bank dd { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bank .actions { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-top: 14px; font-size: 16px; }
.btn-text { font: inherit; background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Third-party widgets sit on white */
.widget { background: var(--surface); border: 1px solid var(--rule); min-width: 0; }
.widget--helloasso { max-width: 420px; }

/* /give page title */
.page-title { padding-block: 48px 8px; }
.page-title h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.15; }
.page-title p { margin-top: 10px; color: var(--text-2); max-width: 60ch; }

/* Footer */
.footer { background: var(--chrome-bg); padding-block: 32px 44px; font-size: 15px; color: var(--chrome-text-2); }
.footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer nav { display: flex; gap: 20px; }
.footer a { color: var(--chrome-text); }
