/* SFFC Gothia 2027 fundraiser site
   Brand colours are tokens: swap them here once the official logo shades arrive. */
:root {
  --navy: #0c2556;
  --navy-deep: #081a3d;
  --blue: #1f6feb;
  --blue-link: #1553b8;
  --gold: #f6b800;
  --gold-soft: #fff4cc;
  --ink: #14213d;
  --muted: #4a5878;
  --line: #d6deee;
  --paper: #ffffff;
  --mist: #f2f6fc;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5vw, 40px);
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue-link); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy); padding: 10px 14px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Type */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0 0 0.5em;
  color: var(--navy);
}
h1 { font-size: clamp(2.9rem, 9.5vw, 5.6rem); }
h2 { font-size: clamp(2rem, 5.5vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: clamp(1.125rem, 2.4vw, 1.3rem); line-height: 1.5; }

/* Header */
.site-header { background: var(--navy-deep); color: #fff; border-bottom: 4px solid var(--gold); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding-block: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; padding-bottom: 10px; }
.brand:hover { color: #fff; }
.brand-mark {
  display: grid; place-items: center; width: 54px; height: 56px; flex: none;
  background: var(--navy); border: 2px solid var(--gold);
  border-radius: 6px 6px 22px 22px;
  font-family: var(--display); font-weight: 800; font-style: italic; font-size: 1rem; letter-spacing: 0; color: var(--gold);
}
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.2rem; line-height: 1.1; letter-spacing: 0.02em; }
.brand-name small { display: block; font-family: var(--body); font-weight: 500; font-size: 0.8rem; letter-spacing: 0; color: #b9c7e6; }
.nav { display: flex; gap: 2px; overflow-x: auto; width: 100%; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  flex: none; color: #dbe5fa; text-decoration: none; font-weight: 600; font-size: 0.98rem;
  padding: 12px 14px; border-bottom: 4px solid transparent; margin-bottom: -4px;
}
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }
@media (min-width: 820px) { .nav { width: auto; } .site-header .wrap { padding-bottom: 0; } }

/* Hero: pitch markings sit behind the headline */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; isolation: isolate; }
.hero::after { /* sky-to-grass edge from the flyer */
  content: ""; position: absolute; inset: auto 0 0 0; height: 10px; background: var(--blue); z-index: -1;
}
.pitch { position: absolute; z-index: -1; right: -260px; top: 50%; width: min(760px, 130vw); transform: translateY(-50%); opacity: 0.2; }
.hero .wrap { padding-block: clamp(44px, 9vw, 96px) clamp(48px, 9vw, 92px); }
.hero h1 { color: #fff; max-width: 13ch; }
.hero .lede { color: #dbe5fa; max-width: 46ch; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 28px; padding: 0; list-style: none; font-weight: 600; color: var(--gold); }
.page-hero .wrap { padding-block: clamp(36px, 7vw, 68px); }
.page-hero h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); max-width: 16ch; }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: 1.25rem; letter-spacing: 0.02em; text-decoration: none;
  padding: 12px 24px; border-radius: 4px; border: 2px solid var(--gold);
  background: var(--gold); color: var(--navy);
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { background: #ffc933; color: var(--navy); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: #fff; border-color: #fff; }
.btn.ghost:hover { background: #fff; color: var(--navy); }
.btn.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.dark:hover { background: var(--blue-link); border-color: var(--blue-link); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
.section { padding-block: clamp(44px, 8vw, 84px); }
.section.tint { background: var(--mist); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 28px; }
.section-head p { color: var(--muted); }

/* Fixture list: fundraisers in date order */
.fixtures { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.fixture {
  display: grid; grid-template-columns: 76px 1fr; gap: 6px 18px; align-items: start;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.date { background: var(--navy); color: #fff; text-align: center; border-radius: 4px; padding: 8px 4px 6px; line-height: 1; }
.date .m { display: block; font-size: 0.8rem; font-weight: 700; color: var(--gold); letter-spacing: 0.04em; }
.date .d { display: block; font-family: var(--display); font-weight: 800; font-style: italic; font-size: 2.2rem; margin-top: 2px; }
.date .what { display: block; font-size: 0.7rem; font-weight: 600; color: #b9c7e6; margin-top: 4px; }
.date.soon { background: var(--gold); color: var(--navy); }
.date.soon .m, .date.soon .what { color: var(--navy); }
.fixture h3 { margin: 0 0 2px; }
.fixture p { margin: 0 0 8px; color: var(--muted); }
.fixture .go { font-weight: 700; display: inline-block; }
@media (min-width: 760px) {
  .fixture { grid-template-columns: 92px 1fr auto; align-items: center; gap: 24px; padding: 24px 0; }
}

/* Two-column helpers */
.split { display: grid; gap: 32px; }
@media (min-width: 820px) { .split { grid-template-columns: 1.15fr 1fr; gap: 56px; } .split.even { grid-template-columns: 1fr 1fr; } }

/* Facts panel */
.facts { margin: 0; padding: 22px 24px; background: var(--navy); color: #fff; border-radius: 6px; border-left: 6px solid var(--gold); }
.facts dt { font-size: 0.85rem; font-weight: 600; color: var(--gold); margin-top: 14px; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 2px 0 0; font-size: 1.1rem; }

/* Info blocks */
.steps { margin: 0 0 1.4em; padding-left: 1.3em; max-width: var(--measure); }
.steps li { margin-bottom: 0.5em; padding-left: 4px; }
.ticks { list-style: none; margin: 0 0 1.4em; padding: 0; max-width: var(--measure); }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 0.55em; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.5em; width: 12px; height: 7px; border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg); }

.price-card { border: 2px solid var(--navy); border-radius: 6px; padding: 22px 24px; background: #fff; }
.price-card .price { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 3.4rem; line-height: 1; color: var(--navy); margin: 0; }
.price-card .per { color: var(--muted); margin: 2px 0 14px; }
.price-card dl { margin: 0 0 18px; }
.price-card dt { font-size: 0.85rem; font-weight: 700; color: var(--muted); margin-top: 10px; }
.price-card dd { margin: 0; font-weight: 600; }
.callout { background: var(--gold-soft); border-left: 6px solid var(--gold); padding: 16px 20px; border-radius: 4px; max-width: var(--measure); }
.callout p:last-child { margin-bottom: 0; }
.tbc { background: var(--gold-soft); border-bottom: 2px dashed var(--gold); padding: 0; font-weight: 600; }

/* Sponsors */
.sponsor-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.sponsor-tile {
  display: grid; place-items: center; text-align: center; min-height: 140px; padding: 20px;
  border: 2px dashed var(--line); border-radius: 6px; color: var(--muted); background: #fff; text-decoration: none; font-weight: 600;
}
a.sponsor-tile:hover { border-color: var(--blue); color: var(--navy); }
.sponsor-tile.filled { border-style: solid; border-color: var(--navy); color: var(--navy); font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1.6rem; text-transform: uppercase; }
.sponsor-tile img { max-height: 90px; width: auto; margin-inline: auto; }
.benefits { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 0; padding: 0; list-style: none; }
.benefits li { border-top: 4px solid var(--navy); padding-top: 14px; }
.benefits h3 { margin-bottom: 4px; }
.benefits p { margin: 0; color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy-deep); color: #c7d4ef; border-top: 4px solid var(--gold); padding-block: 40px 28px; font-size: 0.97rem; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; gap: 28px; margin-bottom: 28px; }
@media (min-width: 760px) { .site-footer .cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-size: 1.3rem; color: var(--gold); margin-bottom: 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 4px; }
.site-footer .legal { border-top: 1px solid #25407a; padding-top: 18px; font-size: 0.88rem; color: #9fb2da; }
.site-footer .legal p { max-width: none; margin-bottom: 6px; }

/* Partner logos: one standard size everywhere (300 x 110 box, scales down on small screens) */
.logo-std { display: block; width: auto; height: auto; max-width: min(100%, 300px); max-height: 110px; }
/* squarer logos (Country Grocer) need more height to look the same size as the wide ones */
.logo-std.logo-lg { max-height: 170px; }
.side { display: grid; gap: 16px; align-content: start; }
.partner { margin: 0; display: grid; place-items: center; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.fx-text { min-width: 0; }
.fx-logo-link { display: block; grid-column: 2; justify-self: start; margin-top: 4px; }
@media (min-width: 760px) {
  .fixture { grid-template-columns: 92px 1fr 300px; }
  .fx-logo-link { grid-column: auto; justify-self: center; margin-top: 0; }
}
.preview { margin: 28px 0 0; max-width: 460px; }
.preview img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 2px 10px rgba(12, 37, 86, 0.18); }
.preview figcaption { margin-top: 10px; font-size: 0.95rem; color: var(--muted); }
.sponsor-tile.logo { border: 2px solid var(--line); padding: 24px; }
.sponsor-tile.logo img { width: auto; height: auto; max-width: 100%; max-height: 90px; }
.logo-std[src$=".webp"] { border-radius: 6px; }
.partner.cover { padding: 0; border: 0; background: none; place-items: stretch; }
.partner.cover .cover-img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 2px 10px rgba(12, 37, 86, 0.18); }

/* breathing room when a heading follows body content */
p + h2, ul + h2, ol + h2, .callout + h2 { margin-top: 1.3em; }
