:root {
  color-scheme: light;
  --ink: #14213d;
  --muted: #5d6878;
  --line: #dfe5ec;
  --paper: #ffffff;
  --field: #eef5ef;
  --green: #1f7a4d;
  --gold: #f3b13f;
  --blue: #2c66a8;
  --danger: #b42318;
  --shadow: 0 24px 80px rgba(20, 33, 61, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f7faf8 0%, #ffffff 42%, #f5f8fb 100%);
}

a {
  color: inherit;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  color: white;
  background: var(--green);
  border-radius: 50%;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.14);
}

.nav-links a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.55fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: stretch;
  min-height: calc(100vh - 12rem);
  padding: clamp(3rem, 8vw, 7rem) clamp(1rem, 4vw, 4rem);
  background:
    radial-gradient(circle at 78% 18%, rgba(243, 177, 63, 0.26), transparent 24rem),
    linear-gradient(135deg, rgba(31, 122, 77, 0.12), rgba(44, 102, 168, 0.10));
}

.hero-copy {
  max-width: 58rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
}

h3 {
  font-size: 1.35rem;
}

.lede {
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions,
.admin-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

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

.button.ghost {
  background: white;
}

.button.disabled {
  opacity: 0.68;
}

.season-panel,
.form-card,
.team-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

.season-panel {
  align-self: end;
  padding: 1.4rem;
}

.status,
.pill {
  display: inline-flex;
  width: fit-content;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.status.open {
  color: #0d5130;
  background: #dff4e8;
}

.status.closed,
.pill {
  color: #6a3d00;
  background: #fff0d1;
}

.band,
.section,
.form-shell,
.admin-shell,
.footer {
  padding: clamp(2.2rem, 5vw, 5rem) clamp(1rem, 4vw, 4rem);
}

.band {
  display: grid;
  grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem;
  background: var(--ink);
  color: white;
}

.band .eyebrow {
  color: var(--gold);
}

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

.note-grid p {
  margin: 0;
  color: #dce7f3;
  line-height: 1.5;
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 1.5rem;
}

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

.team-card {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
}

dl,
dd {
  margin: 0;
}

dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin-bottom: 0.8rem;
  line-height: 1.45;
}

.form-shell {
  max-width: 62rem;
  margin: 0 auto;
}

.form-shell.compact {
  max-width: 38rem;
}

.form-intro {
  max-width: 42rem;
}

.form-card {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.7rem 0.75rem;
  color: var(--ink);
  border: 1px solid #cbd5df;
  border-radius: 0.45rem;
  font: inherit;
  background: white;
}

textarea {
  min-height: 6rem;
  resize: vertical;
}

.notice {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border-radius: 0.5rem;
  font-weight: 800;
}

.notice.success {
  color: #0d5130;
  background: #dff4e8;
}

.notice.warning {
  color: #6a3d00;
  background: #fff0d1;
}

.notice.error {
  color: var(--danger);
  background: #fee4e2;
}

.admin-shell {
  min-height: 70vh;
}

.admin-block {
  margin: 2rem 0 2.5rem;
}

.admin-controls {
  margin-bottom: 1.5rem;
}

.team-editor-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.team-editor {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.team-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.team-editor-head h3 {
  margin: 0;
}

.team-editor small {
  color: var(--muted);
  font-weight: 600;
}

.add-team {
  margin-top: 1rem;
}

.add-team summary {
  cursor: pointer;
  font-weight: 900;
}

.add-team .team-editor {
  margin-top: 1rem;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.switch {
  display: flex;
  grid-template-columns: none;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
}

.switch input {
  width: 1.2rem;
}

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

.registration-filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.registration-filters label { flex: 1 1 180px; }
.registration-pagination { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1rem; }
.registration-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.registration-meta dt { color: var(--muted); font-size: 0.85rem; }
.registration-meta dd { margin: 0.25rem 0 0; overflow-wrap: anywhere; }
.form-shell h1 { font-size: 2rem; }
.registration-actions { margin-top: 2rem; border-top: 1px solid var(--line); }
.registration-action { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.registration-action summary { cursor: pointer; font-weight: 700; }
.registration-action form { display: grid; gap: 1rem; margin-top: 1rem; }
.registration-action .button { justify-self: start; }
.button.danger { background: #a52032; color: white; }
.registration-action .switch input { flex: 0 0 1.2rem; }

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.85rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .hero,
  .band {
    grid-template-columns: 1fr;
  }

  .team-grid,
  .note-grid,
  .team-editor-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.8rem;
  }
}
