/* Keenan Open — shared styles */

:root {
  --green-deep: #1F5C2E;
  --green: #3C8C40;
  --green-light: #E9F3E6;
  --orange: #D9772E;
  --cream: #FBF9F3;
  --ink: #22271F;
  --ink-soft: #5B6156;
  --line: #DDE3D7;
  --white: #FFFFFF;
  --font-display: 'Bitter', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
}

a { color: var(--green-deep); }
a:hover { color: var(--orange); }

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

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  height: 52px;
  width: auto;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--green-deep);
  letter-spacing: 0.2px;
}

nav.main-nav {
  display: flex;
  gap: 4px;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
}

nav.main-nav a:hover {
  background: var(--green-light);
  color: var(--green-deep);
}

nav.main-nav a.active {
  color: var(--green-deep);
  font-weight: 700;
}

/* Mobile nav */
.nav-toggle { display: none; }

@media (max-width: 680px) {
  nav.main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 8px 24px 16px;
  }
  nav.main-nav.open { display: flex; }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--green-deep);
    cursor: pointer;
    line-height: 1;
  }
}

/* Hero */
.hero {
  background: linear-gradient(180deg, #1F5C2E 0%, #1F5C2E 48%, var(--green-light) 68%, var(--cream) 100%);
  text-align: center;
  padding: 56px 24px 48px;
  border-bottom: 1px solid var(--line);
}

.hero img.hero-logo {
  height: 150px;
  width: auto;
  margin: 0 auto 20px;
}

.hero .eyebrow {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 10px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 44px;
  color: var(--green-deep);
  margin: 0 0 10px;
  font-weight: 700;
}

.hero p.tagline {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 auto;
}

/* Facts strip */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.facts .fact {
  text-align: center;
  padding: 22px 12px;
  border-right: 1px solid var(--line);
}

.facts .fact:last-child { border-right: none; }

.facts .fact .label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.facts .fact .value {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--green-deep);
  font-weight: 700;
}

.facts .fact .sub {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 2px;
}

@media (max-width: 680px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts .fact:nth-child(2) { border-right: none; }
  .facts .fact { border-bottom: 1px solid var(--line); }
  .hero h1 { font-size 32px; font-size: 32px; }
}

/* Main content */
main { padding: 48px 0 64px; }

section { margin-bottom: 44px; }

h2 {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--green-deep);
  margin: 0 0 6px;
  font-weight: 700;
}

h2 .icon {
  color: var(--orange);
  margin-right: 8px;
}

.section-sub {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0 0 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 24px;
}

.card + .card { margin-top: 14px; }

.card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  margin: 0 0 6px;
  color: var(--ink);
}

.card .date {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.empty-state {
  text-align: center;
  padding: 48px 24px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--white);
}

.empty-state .icon {
  font-size: 28px;
  color: var(--orange);
  margin-bottom: 10px;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--green-deep);
  margin: 0 0 6px;
}

.empty-state p {
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 420px;
  margin: 0 auto;
}

/* Player grid */
.player-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 20px;
}

.player-count .num {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--green-deep);
  font-weight: 700;
}

.player-count .of {
  color: var(--ink-soft);
  font-size: 15px;
}

.progress-track {
  height: 8px;
  background: var(--green-light);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 24px;
}

.progress-fill {
  height: 100%;
  background: var(--green);
  border-radius: 4px;
}

.player-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
}

.player-grid .player {
  padding: 12px 16px;
  font-size: 14.5px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.player-grid .player:nth-child(3n) { border-right: none; }

@media (max-width: 680px) {
  .player-grid { grid-template-columns: repeat(2, 1fr); }
  .player-grid .player:nth-child(3n) { border-right: 1px solid var(--line); }
  .player-grid .player:nth-child(2n) { border-right: none; }
}

.btn {
  display: inline-block;
  background: var(--green);
  color: var(--white) !important;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
}

.btn:hover { background: var(--green-deep); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--green-deep) !important;
  text-decoration: none;
  padding: 11px 21px;
  border-radius: 8px;
  border: 1px solid var(--green);
  font-weight: 600;
  font-size: 15px;
}

.btn-outline:hover { background: var(--green-light); }

table.rules-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

table.rules-table th, table.rules-table td {
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}

table.rules-table th {
  background: var(--green-light);
  color: var(--green-deep);
  font-family: var(--font-display);
  font-weight: 700;
}

table.rules-table tr:last-child td { border-bottom: none; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  text-align: center;
}

footer p {
  color: var(--ink-soft);
  font-size: 13px;
  margin: 4px 0;
}

footer .footer-logo {
  height: 34px;
  width: auto;
  margin: 0 auto 10px;
  opacity: 0.85;
}
