/* ============================================================
   TEAM SQUEAKY — teamsqueaky.com
   Design system: hand-operated scoreboard
   Pine green board · cream tiles · old gold · awareness gray
   ============================================================ */

:root {
  --pine: #17422c;
  --pine-deep: #0e2c1d;
  --pine-line: #23573b;
  --cream: #f6f1e1;
  --cream-tile: #fbf7ea;
  --cream-dim: #e9e2cd;
  --gold: #c6a15b;
  --gold-deep: #a8843f;
  --gray: #8c9196;      /* glioblastoma awareness gray */
  --gray-soft: #b9bcbf;
  --ink: #1b211d;
  --ink-soft: #46514a;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Source Serif 4", Georgia, serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;

  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
}

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

a { color: var(--pine); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Navigation ---------- */

.nav {
  background: var(--cream);
  border-bottom: 1px solid var(--cream-dim);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  max-width: var(--maxw);
  margin: 0 auto;
}

.nav-mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-tile {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: var(--cream-tile);
  background: var(--pine);
  padding: 0.15rem 0.5rem;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.25);
}

.nav-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine);
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover { color: var(--pine); border-bottom-color: var(--gold); }
.nav-links a[aria-current="page"] { color: var(--pine); border-bottom-color: var(--pine); }

@media (max-width: 640px) {
  .nav-inner { flex-direction: column; gap: 0.4rem; }
  .nav-links { gap: 1rem; flex-wrap: wrap; justify-content: center; }
}

/* ---------- Scoreboard hero ---------- */

.board {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0 2px, transparent 2px 4px),
    linear-gradient(180deg, var(--pine) 0%, var(--pine-deep) 100%);
  color: var(--cream-tile);
  padding: 4.5rem 1.25rem 4rem;
  border-bottom: 6px solid var(--gold);
}

.board-inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }

.board-eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6rem;
}

.tiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 0.5rem;
}

.tiles + .tiles { margin-top: 6px; }

.tile {
  font-family: var(--display);
  font-weight: 700;
  background: var(--cream-tile);
  color: var(--pine-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 3.4rem;
  font-size: 2.35rem;
  box-shadow: inset 0 -5px 0 rgba(0,0,0,0.18), 0 2px 0 rgba(0,0,0,0.35);
  border-radius: 2px;
}

.tile--space { background: transparent; box-shadow: none; width: 1.1rem; }

.tile--gold { background: var(--gold); color: var(--pine-deep); }

.tiles--sub .tile {
  width: 1.55rem;
  height: 2.1rem;
  font-size: 1.25rem;
  font-weight: 600;
}
.tiles--sub .tile--space { width: 0.7rem; }

@media (max-width: 640px) {
  .tile { width: 1.9rem; height: 2.6rem; font-size: 1.7rem; }
  .tile--space { width: 0.8rem; }
  .tiles--sub .tile { width: 1.15rem; height: 1.7rem; font-size: 0.95rem; }
}

.board-dates {
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  color: var(--gray-soft);
  margin-top: 1.4rem;
}

.board-tag {
  font-family: var(--body);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--cream);
  max-width: 40rem;
  margin: 1.6rem auto 0;
}

.board-ctas {
  margin-top: 2.2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.6rem;
  border-radius: 2px;
  border: 2px solid transparent;
}

.btn--gold {
  background: var(--gold);
  color: var(--pine-deep);
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.18);
}
.btn--gold:hover { background: var(--gold-deep); color: var(--cream-tile); }

.btn--ghost {
  border-color: var(--cream-tile);
  color: var(--cream-tile);
}
.btn--ghost:hover { background: var(--cream-tile); color: var(--pine-deep); }

.btn--pine {
  background: var(--pine);
  color: var(--cream-tile);
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.25);
}
.btn--pine:hover { background: var(--pine-deep); }

/* ---------- Scorecard rule (divider) ---------- */

.rule {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.rule::before, .rule::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--gray-soft);
  border-bottom: 1px solid var(--gray-soft);
  height: 3px;
}

.rule span {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gray);
  white-space: nowrap;
}

/* ---------- Sections ---------- */

.section { padding: 4rem 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.8rem;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pine-deep);
  line-height: 1.1;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }

.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 44rem;
}

.section p + p { margin-top: 1rem; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 780px) { .two-col { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Fund cards (scorecard rows) ---------- */

.funds { display: grid; gap: 1.1rem; margin-top: 2rem; }

.fund {
  background: var(--cream-tile);
  border: 1px solid var(--cream-dim);
  border-left: 6px solid var(--gold);
  padding: 1.4rem 1.6rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

.fund h3 { margin-bottom: 0.25rem; }

.fund p { color: var(--ink-soft); font-size: 1rem; max-width: 46rem; }

.fund .btn { justify-self: end; white-space: nowrap; }

@media (max-width: 640px) {
  .fund { grid-template-columns: 1fr; }
  .fund .btn { justify-self: start; }
}

/* ---------- Gray awareness strip ---------- */

.gray-strip {
  background: var(--gray);
  color: #ffffff;
  padding: 3rem 1.25rem;
}

.gray-strip .wrap { max-width: 46rem; text-align: center; }

.gray-strip h2 { color: #ffffff; }

.gray-strip p { color: #f2f3f4; }

/* ---------- Photo figure ---------- */

.photo-fig {
  background: var(--cream-tile);
  border: 1px solid var(--cream-dim);
  padding: 10px 10px 0.75rem;
  box-shadow: 0 3px 0 rgba(0,0,0,0.08);
}

.photo-fig img {
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.photo-fig figcaption {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--gray);
  text-align: center;
  padding-top: 0.7rem;
}

/* ---------- Photo placeholder ---------- */

.photo-slot {
  background:
    repeating-linear-gradient(45deg, var(--cream-dim) 0 12px, var(--cream-tile) 12px 24px);
  border: 2px dashed var(--gray-soft);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

.photo-slot span {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--gray);
  max-width: 22rem;
}

/* ---------- Timeline ---------- */

.timeline { list-style: none; margin-top: 2rem; }

.timeline li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1.4rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--cream-dim);
}

.timeline .tl-year {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
  padding-top: 0.2rem;
}

.timeline p { color: var(--ink-soft); }

@media (max-width: 560px) {
  .timeline li { grid-template-columns: 1fr; gap: 0.3rem; }
}

/* ---------- Tournament tables ---------- */

.card-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--cream-tile);
  border: 1px solid var(--cream-dim);
  margin-top: 1.5rem;
  font-size: 1rem;
}

.card-table th {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  background: var(--pine);
  color: var(--cream-tile);
  padding: 0.7rem 1rem;
}

.card-table td {
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--cream-dim);
  vertical-align: top;
  color: var(--ink-soft);
}

.card-table td:first-child {
  font-family: var(--mono);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--pine);
  white-space: nowrap;
}

/* ---------- Sponsor tiers ---------- */

.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
  margin-top: 2rem;
}

.tier {
  background: var(--cream-tile);
  border: 1px solid var(--cream-dim);
  border-top: 6px solid var(--gray-soft);
  padding: 1.4rem;
}

.tier--presenting { border-top-color: var(--gold); }
.tier--eagle { border-top-color: var(--pine); }

.tier .price {
  font-family: var(--mono);
  font-size: 1.15rem;
  color: var(--gold-deep);
  margin-bottom: 0.6rem;
}

.tier ul { list-style: none; }

.tier li {
  padding: 0.35rem 0 0.35rem 1.2rem;
  position: relative;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.tier li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 1px;
}

/* ---------- Callout ---------- */

.callout {
  background: var(--pine);
  color: var(--cream);
  padding: 2.2rem;
  border-left: 6px solid var(--gold);
  margin-top: 2.5rem;
}

.callout h3 { color: var(--cream-tile); }
.callout p { color: var(--cream-dim); }
.callout .btn { margin-top: 1.2rem; }

/* ---------- Footer ---------- */

.footer {
  background: var(--pine-deep);
  color: var(--gray-soft);
  padding: 3rem 1.25rem 2.5rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}

.footer h3 {
  color: var(--cream-tile);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  margin-bottom: 0.7rem;
}

.footer a { color: var(--cream-dim); text-decoration: none; }
.footer a:hover { color: var(--gold); }

.footer ul { list-style: none; }
.footer li { padding: 0.2rem 0; font-size: 0.98rem; }

.footer-note {
  max-width: var(--maxw);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--pine-line);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; } }
