:root {
  --maroon: #6f1027;
  --maroon-deep: #3a0713;
  --black: #090909;
  --white: #ffffff;
  --forest: #1f4d34;
  --grey-50: #f7f7f5;
  --grey-100: #ececea;
  --grey-300: #c8c6c1;
  --text: #181715;
  --muted: #62605b;
  --line: rgba(24, 23, 21, 0.14);
  --shadow: 0 18px 60px rgba(9, 9, 9, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--grey-50);
  color: var(--text);
  font-family:
    Arial,
    Helvetica,
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 80px;
  padding: 12px 32px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: inline-flex;
  flex-shrink: 0;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 800;
}

.brand img {
  border-radius: 999px;
  height: 48px;
  object-fit: cover;
  width: 48px;
}

.primary-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.primary-nav a {
  border: 1px solid transparent;
  border-radius: 8px;
  color: #34322f;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 12px;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  background: var(--grey-100);
  border-color: var(--line);
  color: var(--maroon);
  outline: none;
}

.home-hero {
  background-image:
    linear-gradient(90deg, rgba(9, 9, 9, 0.98), rgba(111, 16, 39, 0.95) 58%, rgba(9, 9, 9, 0.62)),
    url("/redwood-logo.png");
  background-position:
    center,
    right 8% center;
  background-repeat: no-repeat;
  background-size:
    cover,
    660px;
  color: var(--white);
  min-height: 560px;
  padding: 92px 32px 96px;
}

.home-hero-content {
  max-width: 1120px;
  margin: 0 auto;
}

.home-hero p,
.activity-hero p,
.club-intro p:first-child,
.membership-band p:first-child,
.section-heading p {
  color: var(--grey-300);
  font-size: 0.84rem;
  font-weight: 800;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.home-hero h1 {
  font-size: 5.8rem;
  line-height: 0.95;
  margin: 0 0 22px;
  max-width: 760px;
}

.home-hero span {
  display: block;
  font-size: 1.35rem;
  line-height: 1.6;
  max-width: 660px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
}

.button-primary {
  background: var(--white);
  color: var(--maroon);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: var(--white);
}

.club-intro,
.membership-band {
  align-items: center;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  padding: 44px 32px;
}

.club-intro > *,
.membership-band > * {
  margin-left: auto;
  margin-right: auto;
  max-width: 1120px;
  width: 100%;
}

.club-intro h2,
.membership-band h2 {
  color: var(--maroon);
  font-size: 2rem;
  margin: 0;
}

.club-intro > p,
.membership-band > p {
  color: #3f3c38;
  font-size: 1.12rem;
  line-height: 1.75;
  margin: 0;
}

.activities-section,
.history-section,
.notes-band {
  padding: 78px 32px;
}

.activities-section {
  background: var(--grey-50);
}

.history-section {
  background: var(--white);
}

.section-heading {
  margin: 0 auto 34px;
  max-width: 1120px;
}

.section-heading p {
  color: var(--forest);
}

.section-heading h2 {
  font-size: 2.4rem;
  line-height: 1.1;
  margin: 0 0 14px;
  max-width: 780px;
}

.section-heading span {
  color: var(--muted);
  display: block;
  font-size: 1.06rem;
  line-height: 1.75;
  max-width: 780px;
}

.activity-card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1120px;
}

.activity-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 252px;
  padding: 24px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.activity-card:hover,
.activity-card:focus-visible {
  border-color: rgba(111, 16, 39, 0.4);
  box-shadow: var(--shadow);
  outline: none;
  transform: translateY(-3px);
}

.activity-card span {
  color: var(--forest);
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 38px;
  text-transform: uppercase;
}

.activity-card h2 {
  font-size: 1.45rem;
  margin: 0 0 12px;
}

.activity-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.timeline {
  display: grid;
  gap: 14px;
  margin: 0 auto;
  max-width: 1120px;
}

.timeline article {
  align-items: start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 20px;
  grid-template-columns: 120px minmax(170px, 0.5fr) minmax(0, 1fr);
  padding: 22px 0;
}

.timeline strong {
  color: var(--maroon);
  font-size: 1.35rem;
}

.timeline h2 {
  font-size: 1.2rem;
  margin: 0;
}

.timeline p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.membership-band {
  background: var(--black);
  border-bottom: 0;
  color: var(--white);
}

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

.membership-band > p {
  color: var(--grey-300);
}

.activity-hero {
  background-image:
    linear-gradient(90deg, rgba(9, 9, 9, 0.95), rgba(9, 9, 9, 0.8)),
    url("/redwood-logo.png");
  background-position:
    center,
    right 12% center;
  background-repeat: no-repeat;
  background-size:
    cover,
    430px;
  color: var(--white);
  padding: 92px 32px;
}

.activity-hero-maroon {
  background-color: var(--maroon-deep);
}

.activity-hero-green {
  background-color: var(--forest);
}

.activity-hero-black {
  background-color: var(--black);
}

.activity-hero-inner {
  margin: 0 auto;
  max-width: 1120px;
}

.activity-hero h1 {
  font-size: 3.7rem;
  line-height: 1.06;
  margin: 0 0 22px;
  max-width: 820px;
}

.activity-hero span {
  color: var(--grey-100);
  display: block;
  font-size: 1.2rem;
  line-height: 1.7;
  max-width: 760px;
}

.stat-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.stat-strip div {
  border-right: 1px solid var(--line);
  padding: 26px 32px;
  text-align: center;
}

.stat-strip div:last-child {
  border-right: 0;
}

.stat-strip strong {
  color: var(--maroon);
  display: block;
  font-size: 2rem;
  line-height: 1.1;
}

.stat-strip span {
  color: var(--muted);
  display: block;
  font-weight: 700;
  margin-top: 6px;
}

.feature-photo-band {
  background: var(--grey-50);
  border-bottom: 1px solid var(--line);
  padding: 42px 32px 0;
}

.feature-photo-band figure {
  margin: 0 auto;
  max-width: 1120px;
}

.feature-photo-band img {
  border-radius: 8px;
  box-shadow: var(--shadow);
  height: auto;
  width: 100%;
}

.feature-photo-band figcaption {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  margin-top: 12px;
  text-transform: uppercase;
}

.activity-layout {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) 340px;
  margin: 0 auto;
  max-width: 1120px;
  padding: 78px 32px;
}

.activity-main .section-heading {
  margin-left: 0;
  margin-right: 0;
}

.rhythm-list {
  display: grid;
  gap: 14px;
}

.rhythm-list article,
.notes-grid article,
.activity-aside {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.rhythm-list article {
  padding: 24px;
}

.rhythm-list h2,
.activity-aside h2 {
  font-size: 1.2rem;
  margin: 0 0 10px;
}

.rhythm-list p,
.activity-aside p,
.notes-grid p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.activity-aside {
  align-self: start;
  padding: 24px;
}

.activity-aside img {
  border-radius: 999px;
  height: 86px;
  margin-bottom: 24px;
  object-fit: cover;
  width: 86px;
}

.activity-aside ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.activity-aside li {
  border-top: 1px solid var(--line);
  color: #34322f;
  font-weight: 800;
  padding-top: 10px;
}

.notes-band {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.football-panel {
  padding: 78px 32px;
}

.vote-tracker-section {
  background: var(--grey-50);
  border-top: 1px solid var(--line);
}

.awards-section {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.vote-tracker,
.awards-grid {
  margin: 0 auto;
  max-width: 1120px;
}

.vote-tracker {
  display: grid;
  gap: 16px;
  grid-template-columns: 0.78fr 1.22fr;
}

.vote-summary,
.vote-chart,
.table-wrap,
.award-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.vote-summary {
  padding: 24px;
}

.vote-summary > p {
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 800;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.vote-summary > div {
  display: grid;
  gap: 12px;
}

.vote-summary article {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.vote-summary strong,
.vote-bar strong,
.award-current strong {
  color: var(--maroon);
  display: block;
  font-size: 1.55rem;
}

.vote-summary span,
.vote-bar span,
.award-current span,
.standings-table th,
.award-card dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.vote-chart {
  display: grid;
  gap: 14px;
  max-height: 560px;
  min-height: 260px;
  overflow-y: auto;
  padding: 24px;
}

.vote-bar {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 150px minmax(0, 1fr) 48px;
}

.vote-bar div {
  background: var(--grey-100);
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}

.vote-bar i {
  background: var(--maroon);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.chart-empty {
  align-content: center;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 42px 42px;
  border: 1px dashed rgba(111, 16, 39, 0.34);
  border-radius: 8px;
  display: grid;
  min-height: 212px;
  padding: 24px;
}

.chart-empty strong {
  color: var(--maroon);
  font-size: 1.25rem;
}

.chart-empty span {
  color: var(--muted);
  line-height: 1.6;
  margin-top: 8px;
}

.table-wrap {
  grid-column: 1 / -1;
  overflow-x: auto;
}

.standings-table {
  border-collapse: collapse;
  min-width: 680px;
  width: 100%;
}

.standings-table th,
.standings-table td {
  border-bottom: 1px solid var(--line);
  padding: 15px 18px;
  text-align: left;
}

.standings-table td {
  color: #34322f;
  font-weight: 700;
}

.standings-table tr:last-child td {
  border-bottom: 0;
}

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

.award-card {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.award-card p {
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}

.award-current {
  background: var(--grey-50);
  border-left: 4px solid var(--maroon);
  padding: 14px 16px;
}

.award-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.award-card dl div {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding-top: 10px;
}

.award-card dd {
  color: #34322f;
  font-weight: 800;
  margin: 0;
  text-align: right;
}

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

.notes-grid article {
  min-height: 150px;
  padding: 22px;
}

.notes-grid span {
  background: var(--forest);
  border-radius: 999px;
  display: block;
  height: 10px;
  margin-bottom: 26px;
  width: 10px;
}

.site-footer {
  align-items: center;
  background: var(--maroon-deep);
  color: var(--white);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 28px 32px;
}

.site-footer div {
  align-items: center;
  display: flex;
  gap: 12px;
}

.site-footer img {
  border-radius: 999px;
  height: 44px;
  object-fit: cover;
  width: 44px;
}

.site-footer p {
  color: var(--grey-300);
  line-height: 1.5;
  margin: 0;
}

.site-footer div p {
  color: var(--white);
  font-weight: 800;
}

.admin-page {
  padding: 64px 32px 88px;
}

.admin-hero,
.admin-grid,
.admin-current,
.admin-alert {
  margin-left: auto;
  margin-right: auto;
  max-width: 1120px;
}

.admin-hero {
  margin-bottom: 34px;
}

.admin-hero p {
  color: var(--forest);
  font-size: 0.84rem;
  font-weight: 800;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.admin-hero h1 {
  font-size: 3.4rem;
  line-height: 1.05;
  margin: 0 0 14px;
}

.admin-hero span {
  color: var(--muted);
  display: block;
  font-size: 1.05rem;
}

.admin-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 360px;
  margin-bottom: 48px;
}

.admin-form,
.admin-help {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.admin-form {
  display: grid;
  gap: 18px;
}

.admin-form label {
  display: grid;
  gap: 8px;
}

.admin-form label span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-form input {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  min-height: 46px;
  padding: 10px 12px;
}

.admin-form input:focus {
  border-color: var(--maroon);
  outline: none;
}

.admin-help h2 {
  font-size: 1.2rem;
  margin: 0 0 10px;
}

.admin-help p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 18px;
}

.admin-help code {
  background: var(--grey-50);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  overflow-x: auto;
  padding: 12px;
}

.admin-alert {
  border-radius: 8px;
  font-weight: 800;
  margin-bottom: 16px;
  padding: 14px 16px;
}

.admin-alert-success {
  background: rgba(31, 77, 52, 0.1);
  border: 1px solid rgba(31, 77, 52, 0.26);
  color: var(--forest);
}

.admin-alert-error {
  background: rgba(111, 16, 39, 0.1);
  border: 1px solid rgba(111, 16, 39, 0.28);
  color: var(--maroon);
}

.admin-current .section-heading {
  margin-left: 0;
}

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

  .primary-nav {
    justify-content: flex-start;
  }

  .home-hero {
    background-position:
      center,
      right -130px center;
    background-size:
      cover,
      560px;
    min-height: 520px;
  }

  .home-hero h1 {
    font-size: 4.5rem;
  }

  .activity-card-grid,
  .notes-grid,
  .awards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline article {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .timeline p {
    grid-column: 2;
  }

  .activity-layout {
    grid-template-columns: 1fr;
  }

  .vote-tracker {
    grid-template-columns: 1fr;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .activity-aside {
    max-width: none;
  }
}

@media (max-width: 700px) {
  .site-header,
  .home-hero,
  .club-intro,
  .membership-band,
  .activities-section,
  .history-section,
  .activity-hero,
  .activity-layout,
  .feature-photo-band,
  .football-panel,
  .admin-page,
  .notes-band,
  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-header {
    gap: 8px;
    min-height: auto;
    padding-bottom: 10px;
    padding-top: 10px;
  }

  .brand {
    font-size: 1.08rem;
  }

  .brand img {
    height: 40px;
    width: 40px;
  }

  .primary-nav {
    gap: 4px;
  }

  .primary-nav a {
    font-size: 0.84rem;
    padding: 7px 8px;
  }

  .home-hero {
    background-position:
      center,
      center bottom 6px;
    background-size:
      cover,
      320px;
    min-height: 440px;
    padding-bottom: 44px;
    padding-top: 44px;
  }

  .home-hero h1 {
    font-size: 2.95rem;
    margin-bottom: 16px;
  }

  .home-hero span,
  .activity-hero span {
    font-size: 1.06rem;
    line-height: 1.55;
  }

  .hero-actions {
    gap: 8px;
    margin-top: 22px;
  }

  .button {
    min-height: 44px;
    padding: 11px 14px;
  }

  .admin-hero h1 {
    font-size: 2.5rem;
  }

  .club-intro,
  .membership-band,
  .stat-strip {
    grid-template-columns: 1fr;
  }

  .club-intro h2,
  .membership-band h2,
  .section-heading h2 {
    font-size: 2rem;
  }

  .activity-card-grid,
  .notes-grid,
  .awards-grid {
    grid-template-columns: 1fr;
  }

  .timeline article {
    grid-template-columns: 1fr;
  }

  .timeline p {
    grid-column: auto;
  }

  .activity-hero {
    background-position:
      center,
      right -160px center;
    background-size:
      cover,
      360px;
    padding-bottom: 72px;
    padding-top: 72px;
  }

  .activity-hero h1 {
    font-size: 2.55rem;
  }

  .stat-strip div {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .stat-strip div:last-child {
    border-bottom: 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .vote-bar {
    grid-template-columns: 1fr;
  }

  .vote-bar strong {
    font-size: 1.2rem;
  }
}
