:root {
  --ink: #000000;
  --muted: #64635e;
  --paper: #f4e9cd;
  --white: #ffffff;
  --line: #ddd0ad;
  --green: #3a5a50;
  --green-dark: #263f37;
  --gold: #a97b3e;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.church-link {
  display: inline-flex;
  align-items: center;
}

.church-link img {
  width: min(280px, 62vw);
  height: auto;
  display: block;
}

.season-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  color: var(--green-dark);
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  min-height: min(72vh, 720px);
  display: grid;
  align-items: end;
  padding: clamp(28px, 5vw, 72px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(15, 25, 19, 0.82), rgba(15, 25, 19, 0.42) 48%, rgba(15, 25, 19, 0.12)),
    linear-gradient(0deg, rgba(15, 25, 19, 0.68), rgba(15, 25, 19, 0.04) 48%),
    url("assets/hero-woods.png") center / cover;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Vollkorn", Georgia, serif;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(44px, 8vw, 86px);
  line-height: 1;
}

h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.hero p:last-child {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 253, 248, 0.88);
  font-size: clamp(18px, 2.3vw, 23px);
}

.scoreboard-band,
.rules-band {
  padding: clamp(22px, 4vw, 46px) clamp(18px, 4vw, 54px);
  background: var(--green-dark);
}

.scoreboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.leader-card {
  min-height: 136px;
  padding: 20px;
  color: var(--white);
  background: rgba(255, 253, 248, 0.08);
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 8px;
}

.leader-card-primary {
  background: var(--paper);
  color: var(--ink);
}

.stat-label {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.leader-card-primary .stat-label {
  color: var(--muted);
}

.leader-card strong {
  display: block;
  font-family: "Vollkorn", Georgia, serif;
  font-size: 26px;
  line-height: 1.12;
}

.leader-card span:last-child {
  display: block;
  margin-top: 8px;
  color: currentColor;
  opacity: 0.72;
  font-weight: 700;
}

.content-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(38px, 6vw, 76px) clamp(18px, 4vw, 28px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.formula {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  text-align: right;
}

.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  background: #eee0bd;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.rank {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
  font-weight: 900;
}

.score {
  color: var(--green-dark);
  font-size: 24px;
  font-weight: 900;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  color: var(--green-dark);
  background: #efe4c4;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.entries-section {
  padding-top: 0;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.entry-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.entry-photo {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.86);
  background:
    linear-gradient(135deg, rgba(58, 90, 80, 0.86), rgba(100, 99, 94, 0.7)),
    url("assets/hero-woods.png") center / cover;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.entry-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
}

.entry-body {
  padding: 18px;
}

.entry-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.entry-topline h3 {
  margin: 0;
  font-family: "Vollkorn", Georgia, serif;
  font-size: 24px;
}

.entry-score {
  min-width: 58px;
  color: var(--green-dark);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  text-align: right;
}

.entry-meta,
.entry-note {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.entry-note {
  margin-top: 12px;
  font-weight: 600;
}

.entry-body .tag-list {
  margin-top: 14px;
}

.rules-band {
  color: var(--white);
}

.rules-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
  gap: clamp(26px, 5vw, 58px);
  max-width: 1180px;
  margin: 0 auto;
}

.rules-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rules-list li {
  min-height: 56px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.rules-list strong {
  color: var(--paper);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 22px clamp(18px, 4vw, 54px);
  color: var(--muted);
  background: #eee0bd;
  font-weight: 700;
}

@media (max-width: 900px) {
  .scoreboard-grid,
  .entry-grid,
  .rules-layout,
  .rules-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .formula {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .site-header,
  .site-footer {
    align-items: start;
    flex-direction: column;
  }

  .hero {
    min-height: 640px;
    background-position: center;
  }

  .scoreboard-grid,
  .entry-grid,
  .rules-layout,
  .rules-list {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 48px;
  }
}
