:root {
  --ink: #172018;
  --muted: #5a665c;
  --line: #d8decf;
  --paper: #fffaf0;
  --panel: #ffffff;
  --grass: #226b3a;
  --grass-dark: #154728;
  --gold: #f2c14e;
  --sky: #dff1ff;
  --danger: #b4342f;
  --shadow: 0 18px 45px rgba(18, 41, 25, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f4fbff 0%, #fff7e7 38%, #edf5e5 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

.hero {
  min-height: 78vh;
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  padding: 34vh clamp(20px, 5vw, 72px) 48px;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 31, 21, 0.86) 0%, rgba(13, 31, 21, 0.58) 42%, rgba(13, 31, 21, 0.08) 100%),
    linear-gradient(180deg, rgba(13, 31, 21, 0.2) 0%, rgba(13, 31, 21, 0.84) 100%);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
}

.hero__content {
  width: min(820px, 100%);
  position: relative;
  color: white;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--grass);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(3rem, 8vw, 7.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 0;
  font-size: 1rem;
}

.hero__copy {
  width: min(650px, 100%);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.5;
}

.hero__facts,
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__facts span,
.stat {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: -34px auto 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
  gap: 24px;
  position: relative;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.booking-panel {
  padding: clamp(20px, 4vw, 34px);
}

.event-panel {
  align-self: start;
  overflow: hidden;
}

.event-panel img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 30%;
}

.event-panel div {
  padding: 22px;
}

.event-panel p:last-child {
  color: var(--muted);
  line-height: 1.55;
}

.section-heading {
  margin-bottom: 18px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border: 0;
  padding: 0;
  margin: 0 0 22px;
}

.segmented label {
  cursor: pointer;
}

.segmented input {
  position: absolute;
  opacity: 0;
}

.segmented span {
  min-height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--muted);
  background: #f7f8f3;
  font-weight: 800;
  text-align: center;
}

.segmented input:checked + span {
  border-color: var(--grass);
  color: white;
  background: var(--grass);
}

.tee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}

.tee-option {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.tee-option[aria-pressed="true"] {
  border-color: var(--grass-dark);
  background: #e8f3df;
}

.tee-option strong,
.tee-option span {
  display: block;
}

.tee-option span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
}

.players {
  display: grid;
  gap: 14px;
}

.player-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fffdf8;
}

.player-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--danger);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

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

label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd3c4;
  border-radius: 8px;
  padding: 9px 11px;
  background: white;
  color: var(--ink);
}

input:focus,
select:focus,
button:focus-visible {
  outline: 3px solid rgba(242, 193, 78, 0.55);
  outline-offset: 2px;
}

.form-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button {
  min-height: 46px;
  border: 1px solid var(--grass-dark);
  border-radius: 8px;
  padding: 10px 18px;
  background: var(--grass);
  color: white;
  cursor: pointer;
  font-weight: 900;
}

.button--ghost {
  border-color: var(--line);
  background: white;
  color: var(--grass-dark);
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.notice {
  min-height: 28px;
  margin-top: 14px;
  color: var(--grass-dark);
  font-weight: 800;
}

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

.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 32px;
  text-align: right;
}

.footer a {
  color: var(--grass-dark);
  font-weight: 800;
}

.admin-body {
  min-height: 100vh;
  background: #f5f7ef;
}

.admin-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.admin-login {
  width: min(480px, 100%);
  margin: 12vh auto;
  padding: 28px;
}

.login-form {
  display: grid;
  gap: 14px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-header h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.stats {
  margin-bottom: 18px;
}

.stat {
  border-color: var(--line);
  background: white;
  color: var(--grass-dark);
  box-shadow: none;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 18px;
}

.admin-grid .panel {
  padding: 20px;
  box-shadow: none;
}

.tee-sheet,
.booking-list {
  display: grid;
  gap: 12px;
}

.team,
.booking-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fffdf8;
}

.team__head,
.booking-row__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-weight: 900;
}

.player-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.player-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #edf0e6;
  padding-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

@media (max-width: 860px) {
  .hero {
    min-height: 72vh;
    padding-top: 26vh;
  }

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

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

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

  .admin-header {
    align-items: stretch;
    flex-direction: column;
  }
}
