/* Spike For Her. Decisions live in DESIGN.md. */
@font-face { font-family: "Anton"; src: url("../fonts/anton-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --pink: #db0060;
  --pink-dark: #b5004f;
  --ink: #141012;
  --muted: #6b6266;
  --rule: #e9dde2;
  --quiet: #fbf3f6;
  --paper: #ffffff;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --display: "Anton", "Arial Narrow", sans-serif;
  --text: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --r: 8px;
  --gutter: var(--s4);
}
@media (min-width: 720px) { :root { --gutter: var(--s6); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
@media (min-width: 720px) { body { font-size: 18px; } }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 var(--s4); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 120ms ease-out, background-color 120ms ease-out; }
a:hover { color: var(--pink); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.campaign-bar { background: var(--pink); color: var(--paper); text-align: center; font-size: 14px; font-weight: 600; padding: var(--s2) var(--gutter); margin: 0; line-height: 1.4; }
.campaign-bar a { color: var(--paper); display: inline-block; padding: var(--s1) 0; }
.campaign-bar a:hover { color: var(--paper); text-decoration-thickness: 2px; }
.skip { position: absolute; left: var(--s4); top: -100px; background: var(--ink); color: var(--paper); padding: var(--s3) var(--s4); z-index: 10; }
.skip:focus { top: var(--s4); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 1.02; letter-spacing: 0.005em; margin: 0; }
h1 { font-size: 44px; color: var(--ink); }
h2 { font-size: 32px; color: var(--ink); margin-bottom: var(--s5); }
@media (min-width: 720px) { h1 { font-size: 72px; } h2 { font-size: 48px; } }
.pink { color: var(--pink); }
.nw { white-space: nowrap; }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s3) var(--gutter); }
.site-header .brand img { width: 92px; }
@media (min-width: 720px) { .site-header .brand img { width: 100px; } }
.site-header nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s5); font-size: 16px; }
.site-header nav a { text-decoration: none; display: inline-block; padding: var(--s2) 0; }
.site-header nav a:hover { text-decoration: underline; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr; }
.hero-text { padding: var(--s5) var(--gutter) var(--s7); }
.hero-text h1 { margin-bottom: var(--s5); max-width: 13.5em; }
.hero-text .lead { font-size: 18px; line-height: 1.5; max-width: 34em; }
@media (min-width: 720px) { .hero-text .lead { font-size: 21px; } }
.signoff { font-weight: 600; color: var(--muted); margin-bottom: var(--s6); }
.hero-photo { margin: 0; background: var(--quiet); }
.hero-photo { padding: 0 var(--gutter); background: none; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: var(--r); }
.hero-video { position: relative; }
.hero-video video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); background: var(--quiet); }
.video-toggle { position: absolute; right: calc(var(--gutter) + var(--s3)); top: var(--s3); min-height: 32px; padding: var(--s1) var(--s3); font-family: var(--text); font-size: 14px; font-weight: 600; color: var(--paper); background: var(--ink); border: 0; border-radius: var(--r); cursor: pointer; }
.video-toggle:hover { background: var(--pink); }
@media (min-width: 960px) { .video-toggle { top: calc(var(--s5) + var(--s3)); } .hero-video video { max-height: calc(100vh - 210px); } }
.hero-photo figcaption { font-size: 14px; color: var(--muted); padding: var(--s2) 0 0; }

@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: calc(100vh - 140px); max-height: 960px; }
  .hero-text { padding: var(--s6) var(--s8) var(--s6) var(--gutter); align-self: center; }
  .hero-photo { position: relative; display: flex; flex-direction: column; }
  .hero-photo img { flex: 1; min-height: 0; }
  .hero-photo { padding: var(--s5) var(--gutter) var(--s5) 0; align-self: center; display: block; }
  .hero-photo img { height: auto; aspect-ratio: 4 / 5; max-height: calc(100vh - 210px); }
}
@media (min-width: 960px) and (max-height: 820px) {
  .hero-text h1 { font-size: 58px; margin-bottom: var(--s4); }
  .hero-text .lead { font-size: 19px; }
  .signoff { margin-bottom: var(--s5); }
}

/* Give block in hero */
.give { border-top: 2px solid var(--ink); padding-top: var(--s4); max-width: 34em; }
.give-row { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s3); }
@media (min-width: 720px) { .btn { padding: var(--s3) var(--s5); font-size: 17px; } }
@media (max-width: 719px) { .hero-text .lead { font-size: 16px; } .hero-text { padding-top: var(--s4); } .signoff { margin-bottom: var(--s4); } }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: var(--s3) var(--s4); font-family: var(--text); font-weight: 600; font-size: 16px; text-decoration: none; border: 2px solid var(--pink); border-radius: var(--r); }
.btn-primary { background: var(--pink); color: var(--paper); }
.btn-primary:hover { background: var(--pink-dark); border-color: var(--pink-dark); color: var(--paper); }
.btn-secondary { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.give-note { font-size: 15px; color: var(--muted); margin: 0; }
.give-note a { color: var(--ink); }

/* Sections */
.section { padding: var(--s8) var(--gutter); }
@media (min-width: 960px) { .section { padding: var(--s9) var(--gutter); } }
.measure { max-width: 36em; }

.story { border-top: 1px solid var(--rule); }
.story-lead { font-size: 44px; line-height: 1; max-width: 12em; margin-bottom: var(--s7); }
@media (min-width: 720px) { .story-lead { font-size: 72px; } }
@media (min-width: 1200px) { .story-lead { font-size: 96px; } }
.story-grid { display: grid; gap: var(--s6); }
.story figure { margin: 0; }
.story-first { font-size: 20px; line-height: 1.5; }
@media (min-width: 720px) { .story-first { font-size: 22px; } }
.story img, .photo-set img { border-radius: var(--r); }
.story figcaption, .tournament figcaption { font-size: 14px; color: var(--muted); margin-top: var(--s2); }
@media (min-width: 960px) {
  .story-grid { grid-template-columns: 4fr 7fr; gap: var(--s8); align-items: start; }
  .story figure { position: sticky; top: var(--s6); }
}

.mission { background: var(--pink); color: var(--paper); padding: var(--s8) var(--gutter); }
@media (min-width: 960px) { .mission { padding: var(--s9) var(--gutter); } }
.mission-label { font-family: var(--text); text-transform: none; font-weight: 600; font-size: 17px; letter-spacing: 0; color: var(--paper); margin-bottom: var(--s4); }
.mission-text { font-family: var(--display); text-transform: uppercase; font-size: 32px; line-height: 1.08; max-width: 22em; margin: 0; }
@media (min-width: 720px) { .mission-text { font-size: 48px; } }
@media (min-width: 1200px) { .mission-text { font-size: 60px; } }
.tournament { background: var(--quiet); }
.tournament-intro { margin-bottom: var(--s7); }
.photo-set { display: grid; gap: var(--s3); }
.photo-set figure { margin: 0; }
.photo-set img { width: 100%; height: 100%; object-fit: cover; }
.photo-set .tall { display: flex; flex-direction: column; }
.photo-set .tall img { flex: 1; min-height: 0; object-position: 50% 30%; }
@media (min-width: 720px) {
  .photo-set { grid-template-columns: 8fr 4fr; grid-template-rows: auto auto; }
  .photo-set .wide { grid-column: 1; grid-row: 1; }
  .photo-set .tall { grid-column: 2; grid-row: 1; }
  .photo-set .tall img { aspect-ratio: auto; }
  .photo-set .strip { grid-column: 1 / -1; grid-row: 2; }
  .photo-set .strip img { aspect-ratio: 1600 / 520; object-position: 50% 80%; }
}

.money { display: grid; gap: var(--s6); }
@media (min-width: 960px) { .money { grid-template-columns: 7fr 5fr; gap: var(--s8); } }
.ways { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.ways li { padding: var(--s4) 0; border-bottom: 1px solid var(--rule); }
.ways h3 { font-size: 22px; margin-bottom: var(--s2); }
.ways p { margin: 0; }

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); padding: var(--s7) var(--gutter) var(--s5); font-size: 16px; }
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: #ff8fbd; }
.footer-grid { display: grid; gap: var(--s5); margin-bottom: var(--s7); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-grid h2 { font-size: 22px; color: var(--paper); margin-bottom: var(--s2); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { padding: var(--s1) 0; }
.fineprint { border-top: 1px solid #3a3236; padding-top: var(--s4); font-size: 14px; color: #c9bfc4; margin: 0; }

/* Simple pages (privacy, terms, playfor, 404) */
.page { padding: var(--s6) var(--gutter) var(--s8); }
.page h1 { font-size: 44px; margin-bottom: var(--s5); }
@media (min-width: 720px) { .page h1 { font-size: 64px; } }
.page h2 { font-size: 26px; margin: var(--s6) 0 var(--s3); }
.page .updated { color: var(--muted); }
.page ul { padding-left: var(--s5); margin: 0 0 var(--s4); }
.page li { margin-bottom: var(--s2); }

@media print {
  .site-header nav, .give-row, .skip { display: none; }
  body { font-size: 12pt; }
  .tournament { background: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10pt; }
}
@media (min-width: 960px) and (max-width: 1199px) { .hero-text h1 { font-size: 48px; } .hero-text { padding-right: var(--s6); } }
@media (min-width: 1500px) and (min-height: 860px) { .hero-text h1 { font-size: 84px; } .hero-text .lead, .give { max-width: 36em; } .hero-text .lead { font-size: 20px; } }
