/* Taber Rebels Football — demo stylesheet
   No dependencies, no build step. Edit the variables below to re-brand.
   ⚠ COLOURS ARE PLACEHOLDERS — the association's real colours and logo must
   come from the board. See CONTENT-TODO.md. */

/* Self-hosted display font — kept local so the "no third-party scripts" claim stays true. */
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/oswald-500.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/oswald-600.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/oswald-700.woff2') format('woff2'); }

:root {
  --ink: #14171c;
  --ink-soft: #5b626b;
  --paper: #ffffff;
  --paper-alt: #f6f4f1;
  --line: #e6e2dc;

  /* Rebel red + editorial near-black */
  --brand: #111418;
  --brand-dark: #0b0d10;
  --accent: #c8102e;
  --accent-dark: #9e0c24;
  --gold: #c9a227;

  --radius: 8px;
  --wrap: 68rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }

a { color: #0e1114; }
a:hover { color: var(--accent); }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--paper);
  padding: .6rem 1rem;
  border: 2px solid var(--brand);
  border-radius: var(--radius);
}

/* ---------- demo banner ---------- */
.demo {
  background: #fff4d6;
  border-bottom: 1px solid #e8d9a8;
  color: #5c4a12;
  font-size: .9rem;
  text-align: center;
  padding: .5rem 1rem;
}

/* ---------- header ---------- */
.masthead {
  background: var(--brand);
  color: #fff;
}
.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-block: .9rem;
}
.brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .01em;
  color: #fff;
  text-decoration: none;
  margin-right: auto;
}
.brand span { color: #cfe0f5; font-weight: 400; }

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  color: #eaf1f9;
  text-decoration: none;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--accent);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  padding-block: 3.5rem 3rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('img/grain.svg');
  background-repeat: repeat;
  opacity: .06;
  pointer-events: none;
  z-index: 0;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  margin: 0 0 .75rem;
}
.hero p {
  font-size: 1.15rem;
  max-width: 42rem;
  color: #dce7f4;
  margin: 0 0 1.5rem;
}

/* ---------- sections ---------- */
section { padding-block: 2.75rem; }
section.alt { background: var(--paper-alt); border-block: 1px solid var(--line); }

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  line-height: 1.15;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  margin: 0 0 .5rem;
}
h3 { font-family: var(--font-display); font-weight: 500; margin: 0 0 .35rem; font-size: 1.15rem; letter-spacing: 0.01em; }

.lede { color: var(--ink-soft); max-width: 46rem; margin-top: 0; }

/* ---------- grids & cards ---------- */
.grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
}
@media (min-width: 40rem) {
  .grid.two { grid-template-columns: repeat(2, 1fr); }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.four { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 58rem) {
  .grid.four { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.card p:last-child { margin-bottom: 0; }
.card .kicker {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-soft);
  margin: 0 0 .4rem;
}

.card { transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(17,20,24,.07); border-color: #d9d4cc; }

/* four-level bento */
.level-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: .45rem;
}
.level-card.featured {
  grid-column: 1 / -1;
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.level-card.featured h3 { color: #fff; }
.level-card.featured p { color: #c9d4e0; }
.level-card.featured .kicker { color: #9fb0c3; }

@media (prefers-reduced-motion: reduce) {
  .card, .access-card, .logotile { transition: none; }
  .card:hover, .access-card:hover { transform: none; }
}

/* ---------- prices ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 1rem;
}
th, td {
  text-align: left;
  padding: .7rem .75rem;
  border-bottom: 1px solid var(--line);
}
thead th {
  background: var(--paper-alt);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-soft);
}
tbody tr:last-child td { border-bottom: none; }

/* ---------- draft / status notes ---------- */
.draft {
  border-left: 4px solid var(--gold);
  background: #fbf6e9;
  padding: .85rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .95rem;
  margin-top: 1rem;
}
.draft strong { color: #7a5c10; }

.notice {
  border-left: 4px solid var(--gold);
  background: #fbf6e9;
  padding: .8rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .93rem;
  margin: 1rem 0;
}
.notice.warn {
  border-left-color: var(--accent);
  background: #fdf0f0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .7rem 1.2rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn.ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.55);
}
.btn.ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- footer ---------- */
footer {
  background: var(--brand-dark);
  color: #cfdcec;
  padding-block: 2rem;
  font-size: .95rem;
}
footer a { color: #fff; }
footer .affil { margin-top: .75rem; color: #a9bdd4; font-size: .88rem; }
footer .affil a { color: #dbe7f4; }
footer .fine {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.18);
  color: #a9bdd4;
  font-size: .85rem;
}

/* ---------- editable brand logo ----------
   Injected by assets/app.js when a board member sets a logo in the content
   editor. Absent by default, so the text wordmark shows. */
.brand-logo {
  height: 2.1rem;
  width: auto;
  display: inline-block;
  margin-right: .6rem;
  vertical-align: middle;
  background: #fff;
  border-radius: 4px;
  padding: 2px 4px;
}
.brand.has-logo { display: inline-flex; align-items: center; }
.brand-img { height: 2.2rem; width: auto; display: inline-block; vertical-align: middle; margin-right: .65rem; background: #fff; border-radius: 5px; padding: 3px 7px; }
.brand-sub { font-weight: 400; color: #cfe0f5; }

/* ---------- photo slots ----------
   Placeholders a board member can fill from the content editor. Until then they
   show an empty state explaining what to do. */
.photo-slot {
  margin: 0;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--paper-alt);
  padding: 1.5rem;
  text-align: center;
}
.photo-slot img {
  width: 100%;
  max-height: 26rem;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
}
.photo-slot.has-photo {
  border-style: solid;
  border-color: var(--line);
  padding: 0;
  overflow: hidden;
  background: var(--paper);
}
.photo-slot figcaption {
  margin-top: .6rem;
  font-size: .9rem;
  color: var(--ink-soft);
}
.photo-empty p { margin: .25rem 0; }
.photo-empty p:first-child { font-size: 1.05rem; }

/* ---------- game-day field-status banner ---------- */
.statusbar {
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.statusbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  align-items: center;
  padding-block: .6rem;
}
.statusbar .state {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
}
.statusbar .dot {
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  background: #2f7d52;
  box-shadow: 0 0 0 3px rgba(47,125,82,.18);
}
.statusbar.open   { background: #eef7f1; }
.statusbar.caution{ background: #fff4d6; }
.statusbar.closed { background: #fdf0ef; }
.statusbar.closed .dot, .statusbar .dot.warn  { background: #b4342b; box-shadow: 0 0 0 3px rgba(180,52,43,.16); }
.statusbar.caution .dot { background: #b8860b; box-shadow: 0 0 0 3px rgba(184,134,11,.18); }
.statusbar .updated { color: var(--ink-soft); margin-left: auto; font-size: .85rem; }

/* ---------- quantified-facts strip ---------- */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.25rem;
}
.fact {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: #eaf1f9;
  border-radius: 999px;
  padding: .3rem .85rem;
  font-size: .9rem;
}
.fact strong { color: #fff; }

/* ---------- society-health status grid ---------- */
.statusgrid {
  display: grid;
  gap: .8rem;
  margin-top: 1rem;
}
.statusrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.statusrow .label { font-weight: 600; }
.statusrow .pill {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .2rem .6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.pill.ok   { background: #e3f3e9; color: #1e5c3a; }
.pill.bad  { background: #fdeceb; color: #8f2b23; }
.pill.warn { background: #fff4d6; color: #6b5210; }
.pill.info { background: var(--paper-alt); color: var(--ink-soft); }

/* ---------- readiness checklist ---------- */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  padding: .55rem 0;
  border-bottom: 1px solid var(--line);
}
.checklist li:last-child { border-bottom: none; }
.checklist .mark { font-weight: 800; line-height: 1.3; }
.checklist .mark.no  { color: #b4342b; }
.checklist .mark.yes { color: #2f7d52; }
.checklist .mark.q   { color: #b8860b; }

/* ---------- sponsor logo wall ---------- */
.logowall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.logotile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 1rem;
  text-align: center;
}
.logotile.major { border-color: #cf9a12; box-shadow: 0 0 0 1px #cf9a12 inset; }
.logotile .tier { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.logotile .placeholder { color: var(--ink-soft); font-size: .9rem; }
.logotile img { max-height: 4.5rem; max-width: 100%; object-fit: contain; }
.logotile.small img { max-height: 3rem; }

/* ---------- memorial ---------- */
.memorial {
  background: #101820;
  color: #e8eef5;
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}
.memorial img { width: 13rem; max-width: 100%; height: auto; border-radius: var(--radius); }
.memorial h2 { color: #fff; margin-top: 0; }
.memorial p { margin: .25rem 0 0; color: #c6d3e2; }

/* ---------- brand directions ---------- */
.swatches { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1rem; }
.swatch { text-align: center; }
.swatch .chip {
  width: 6rem; height: 4rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin: 0 auto .4rem;
}
.swatch .name { font-size: .85rem; font-weight: 600; }
.swatch .hex { font-size: .8rem; color: var(--ink-soft); font-family: ui-monospace, monospace; }

/* ---------- repeatable card list (news announcements, decision log) ---------- */
.cardlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.cardlist li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

/* ---------- homepage access (login doors) ---------- */
.access { border-block: 1px solid var(--line); background: var(--paper-alt); }
.access-grid { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 44rem) { .access-grid { grid-template-columns: repeat(3, 1fr); } }
.access-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--paper);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.access-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(17,20,24,.10);
  transform: translateY(-3px);
}
.access-card .lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--paper-alt);
  color: var(--accent);
  margin-bottom: .8rem;
}
.access-card .lock svg { width: 1.15rem; height: 1.15rem; }
.access-card h3 { margin: 0 0 .4rem; }
.access-card p { color: var(--ink-soft); margin: 0 0 1rem; font-size: .95rem; }
.access-card .go { color: var(--accent); font-weight: 600; }
.access .register-line { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }

/* ---------- print (safety card, schedules, board pack) ---------- */
@media print {
  .demo, .masthead, .appbar, .statusbar, .btn, footer { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: none; }
  .card, .panel, table, th, td { border-color: #999 !important; }
}

