/* ============================================================
   Haxtun Bulldogs Softball — stylesheet
   Aesthetic: athletic editorial. Bold display type, sharp red
   accents, generous whitespace, oversized data display.
   ============================================================ */

:root {
  --red: #c8102e;
  --red-deep: #8b0a1f;
  --black: #111111;
  --ink: #1a1a1a;
  --paper: #ffffff;
  --bone: #f5f3ee;
  --line: #e5e0d8;
  --muted: #6b6b6b;

  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ====================== Site Header / Nav ====================== */
.site-header {
  background: var(--black);
  color: #fff;
  border-bottom: 4px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.25rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }

.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: .04em;
  border-radius: 4px;
  line-height: 1;
}

.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: .06em;
}
.brand__sub {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #c0c0c0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
}
.site-nav__link {
  color: #ddd;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav__link:hover { color: #fff; text-decoration: none; border-color: var(--red); }
.site-nav__link.is-active { color: #fff; border-color: var(--red); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    padding: .5rem 1.25rem 1.25rem;
    border-bottom: 4px solid var(--red);
    gap: 0;
  }
  .site-nav.is-open { display: flex; }
  .site-nav__link {
    padding: .85rem 0;
    border-bottom: 1px solid #333;
    width: 100%;
  }
}

/* ====================== Page Header ====================== */
.page-header {
  background: var(--bone);
  border-bottom: 1px solid var(--line);
  padding: 3rem 0 2.25rem;
}
.page-header__eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .5rem;
}
.page-header__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: .02em;
  line-height: 1;
  margin: 0;
  color: var(--black);
}
.page-header__sub {
  margin: .75rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 60ch;
}

.main { padding-bottom: 4rem; }
.content { padding-top: 2.5rem; }
.content > h2:first-child { margin-top: 0; }

h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: .03em;
  font-weight: 400;
  line-height: 1.15;
  color: var(--black);
}
h2 { font-size: 2rem; margin-top: 2.5rem; }
h3 { font-size: 1.4rem; margin-top: 1.75rem; }

.content p, .content li { font-size: 1.05rem; }

/* ====================== Home / Hero ====================== */
.hero {
  background: linear-gradient(135deg, var(--black) 0%, #2a0a0e 100%);
  color: #fff;
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(200,16,46,.18), transparent 40%);
  pointer-events: none;
}
.hero__eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--red);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 6.5rem);
  letter-spacing: .02em;
  line-height: .95;
  margin: .75rem 0 1rem;
}
.hero__title em {
  font-style: normal;
  color: var(--red);
}
.hero__sub {
  font-size: 1.15rem;
  color: #d6d2cc;
  max-width: 56ch;
}

.next-game {
  background: #fff;
  color: var(--ink);
  border-radius: 6px;
  padding: 1.75rem;
  margin-top: 2.5rem;
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
}
.next-game__label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: .25rem;
}
.next-game__date {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
}
.next-game__matchup {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: .03em;
}
.next-game__meta {
  color: var(--muted);
  font-size: .95rem;
  margin-top: .25rem;
}
.next-game__badge {
  align-self: stretch;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: .15em;
  padding: 0 1.25rem;
  border-radius: 4px;
}
@media (max-width: 700px) {
  .next-game { grid-template-columns: 1fr; }
  .next-game__badge { padding: .5rem; }
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}
.card {
  border: 1px solid var(--line);
  padding: 1.5rem;
  border-radius: 4px;
  transition: transform .15s ease, border-color .15s ease;
  background: #fff;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--red);
  text-decoration: none;
}
.card h3 {
  margin: 0 0 .35rem;
  font-size: 1.4rem;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}
.card__arrow { color: var(--red); font-weight: 700; }

/* ====================== Schedule table ====================== */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .98rem;
}
.schedule-table thead th {
  background: var(--black);
  color: #fff;
  text-align: left;
  padding: .75rem 1rem;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
}
.schedule-table tbody td {
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.schedule-table tbody tr:hover { background: var(--bone); }

.tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .2rem .5rem;
  border-radius: 3px;
}
.tag--home { background: var(--red); color: #fff; }
.tag--away { background: #fff; color: var(--black); border: 1px solid var(--black); }
.tag--bye  { background: #999; color: #fff; }

.callout {
  background: var(--bone);
  border-left: 4px solid var(--red);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
}
.callout strong { color: var(--red-deep); }

/* ====================== Roster grid ====================== */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.roster-card {
  border: 1px solid var(--line);
  padding: 1.25rem;
  border-radius: 4px;
  text-align: center;
  background: #fff;
  transition: border-color .15s ease;
}
.roster-card:hover { border-color: var(--red); }
.roster-card__num {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--red);
}
.roster-card__name {
  font-weight: 700;
  font-size: 1.05rem;
  margin: .5rem 0 .15rem;
}
.roster-card__pos {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ====================== Standings ====================== */
.standings-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.standings-table thead th {
  background: var(--black);
  color: #fff;
  padding: .75rem 1rem;
  text-align: left;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.standings-table th.num,
.standings-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.standings-table tbody td {
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--line);
}
.standings-table tr.is-us {
  background: rgba(200,16,46,.06);
  font-weight: 700;
}

/* ====================== Rules pages ====================== */
.rule {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.25rem;
}
.rule:last-child { border-bottom: 1px solid var(--line); }
.rule__num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--red);
  line-height: 1;
}
.rule__body p { margin: 0; }
.rule__body p + p { margin-top: .5rem; }

.badge-9-12 {
  display: inline-block;
  margin-left: .5rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--red);
  color: #fff;
  padding: .15rem .45rem;
  border-radius: 3px;
}

/* ====================== News list ====================== */
.news-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.news-list li {
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
}
.news-list a {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: .02em;
}
.news-list a:hover { color: var(--red); text-decoration: none; }
.news-list time {
  display: block;
  color: var(--muted);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}

.post__date {
  color: var(--muted);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.post__back { margin-top: 2.5rem; }

/* ====================== Gallery ====================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .5rem;
  margin: 1.5rem 0;
}
.gallery-grid img {
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
}

/* ====================== Forms ====================== */
.form { max-width: 560px; margin-top: 1.5rem; }
.form label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin: 1rem 0 .35rem;
}
.form input,
.form textarea,
.form select {
  width: 100%;
  padding: .65rem .8rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
  background: #fff;
}
.form input:focus,
.form textarea:focus { outline: 2px solid var(--red); border-color: var(--red); }
.form textarea { min-height: 140px; }

.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: .8rem 1.5rem;
  border: 0;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: .12em;
  cursor: pointer;
  margin-top: 1.25rem;
  text-decoration: none;
}
.btn:hover { background: var(--red-deep); text-decoration: none; }

/* ====================== Footer ====================== */
.site-footer {
  background: var(--black);
  color: #ccc;
  margin-top: 4rem;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding: 3rem 1.25rem 2rem;
}
.site-footer__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: .08em;
  margin: 0 0 .75rem;
}
.site-footer p { margin: .25rem 0; font-size: .92rem; }
.site-footer__legal {
  border-top: 1px solid #2a2a2a;
  padding: 1.25rem 0;
  font-size: .8rem;
  color: #888;
}
.site-footer__legal p { margin: 0; }
