:root {
  --ink: #18211d;
  --muted: #56645d;
  --paper: #fbfaf4;
  --panel: #ffffff;
  --line: #d9ded7;
  --leaf: #27624d;
  --leaf-dark: #183d31;
  --sun: #d99a3d;
  --sky: #d9edf1;
  --warm: #f3eee3;
  --shadow: 0 18px 45px rgba(24, 33, 29, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 12px clamp(18px, 5vw, 64px);
  background: rgba(251, 250, 244, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  width: clamp(210px, 24vw, 360px);
  min-width: 210px;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 100%;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

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

.main-nav a {
  padding: 10px 12px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 750;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a[aria-current="page"] {
  color: var(--ink);
  background: #eef4ef;
}

.home-hero {
  min-height: calc(100svh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: stretch;
  background: var(--leaf-dark);
}

.home-hero > img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

.home-hero-copy {
  display: grid;
  align-content: center;
  padding: clamp(34px, 6vw, 86px);
  color: #fff;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.home-hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.home-hero p:not(.eyebrow),
.page-hero p:not(.eyebrow) {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.62;
}

.hero-actions,
.form-footer,
.dashboard-head,
.toolbar,
.invoice-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--leaf);
}

.button.primary:hover,
.button.primary:focus {
  background: #1e4f3e;
}

.button.secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.button.secondary:hover,
.button.secondary:focus {
  background: #eef4ef;
}

.button.danger {
  color: #fff;
  background: #a63e32;
}

.button.danger:hover,
.button.danger:focus {
  background: #842d24;
}

.page-hero {
  padding: clamp(58px, 10vw, 122px) clamp(18px, 6vw, 80px);
  color: #fff;
  background: linear-gradient(135deg, var(--leaf-dark), #315847);
}

.section {
  padding: clamp(48px, 8vw, 92px) clamp(18px, 6vw, 80px);
}

.intro,
.notes-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.intro h2,
.notes-section h2,
.committee-panel h2,
.dashboard h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.intro > p,
.committee-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.68;
}

.quick-facts,
.home-links,
.facility-grid,
.contact-grid,
.booking-paths,
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.quick-facts {
  padding-top: 0;
}

.quick-facts article,
.home-links a,
.facility-grid article,
.contact-grid article,
.booking-paths article,
.stat,
.booking-card,
.committee-panel,
.booking-form,
.invoice-preview,
.calendar-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quick-facts article,
.home-links a,
.facility-grid article,
.contact-grid article,
.booking-paths article,
.stat,
.calendar-card {
  padding: 22px;
}

.home-links {
  background: var(--warm);
}

.home-links a {
  display: grid;
  gap: 10px;
  text-decoration: none;
}

.home-links a:hover,
.home-links a:focus {
  border-color: var(--leaf);
  transform: translateY(-2px);
}

.quick-facts span,
.home-links span,
.contact-grid span,
.booking-paths span,
.stat span,
.calendar-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.quick-facts strong,
.home-links strong,
.contact-grid strong,
.stat strong {
  display: block;
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1.2;
}

.booking-paths {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: 0;
}

.booking-paths article {
  display: grid;
  align-content: start;
  gap: 12px;
}

.booking-paths h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.05;
}

.booking-paths p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.booking-paths .button {
  width: max-content;
  margin-top: 8px;
}

.hipcamp-button {
  display: inline-flex;
  width: max-content;
  margin-top: 8px;
  border-radius: 8px;
}

.hipcamp-button img {
  display: block;
  width: 200px;
  height: 65px;
}

.quick-facts p,
.facility-grid p,
.contact-grid p,
.booking-card p,
.calendar-card p {
  color: var(--muted);
  line-height: 1.58;
}

.facility-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.facility-grid h2 {
  margin: 14px 0 8px;
  font-size: 1.35rem;
}

.icon {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--sky);
}

.icon::before,
.icon::after {
  position: absolute;
  content: "";
  border-radius: 3px;
  background: var(--leaf-dark);
}

.icon::before {
  inset: 11px 10px;
}

.icon::after {
  width: 18px;
  height: 4px;
  left: 12px;
  top: 8px;
  transform: rotate(35deg);
}

.notes-section {
  background: var(--warm);
}

.note-list {
  display: grid;
  gap: 12px;
}

.note-list p {
  margin: 0;
  padding: 16px 18px;
  color: var(--muted);
  line-height: 1.55;
  background: #fff;
  border: 1px solid #e4d7c0;
  border-radius: 8px;
}

.note-list strong {
  color: var(--ink);
}

.booking-section {
  background: #edf3ee;
}

.booking-form,
.login-form {
  display: grid;
  gap: 18px;
}

.booking-form {
  max-width: 1020px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 34px);
}

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

.form-row:has(label:nth-child(3)) {
  grid-template-columns: 1fr 1fr 0.6fr;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd4cd;
  border-radius: 8px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(39, 98, 77, 0.16);
}

.form-footer {
  justify-content: space-between;
}

#bookingEstimate {
  margin: 0;
  color: var(--leaf-dark);
  font-weight: 900;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--leaf-dark);
  font-weight: 850;
}

.committee-section {
  background: #edf3ee;
}

.committee-panel,
.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  padding: clamp(20px, 4vw, 34px);
}

.login-form {
  align-content: start;
}

.hidden {
  display: none;
}

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

.invoice-preview {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.invoice-preview h3 {
  margin: 0 0 8px;
}

.invoice-preview p {
  margin: 8px 0;
}

.invoice-view-section {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 4vw, 34px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.invoice-dialog {
  width: min(980px, calc(100% - 28px));
  max-height: min(90vh, 1100px);
  padding: clamp(18px, 4vw, 30px);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(24, 33, 29, 0.28);
}

.invoice-dialog::backdrop {
  background: rgba(24, 33, 29, 0.5);
}

.dialog-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.invoice-view-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.invoice-view-head h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  line-height: 1.04;
}

.invoice-paper {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(22px, 5vw, 54px);
  color: #232323;
  background: #fff;
  border: 1px solid #d9ded7;
  box-shadow: 0 14px 34px rgba(24, 33, 29, 0.12);
}

.invoice-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.65fr);
  gap: 34px;
  align-items: start;
}

.invoice-topline img {
  width: min(320px, 100%);
  height: auto;
  margin-bottom: 18px;
}

.invoice-topline p,
.invoice-detail-grid p,
.invoice-footer-notes p {
  color: #4c5651;
  line-height: 1.55;
}

.invoice-title-block {
  text-align: right;
}

.invoice-title-block h3 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.9;
}

.invoice-title-block dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.invoice-title-block div,
.invoice-totals div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.invoice-title-block dt,
.invoice-totals span,
.invoice-detail-grid span {
  color: #6a746f;
  font-size: 0.84rem;
  font-weight: 850;
  text-transform: uppercase;
}

.invoice-title-block dd {
  margin: 0;
  font-weight: 800;
}

.balance-band {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  margin: 26px 0;
  padding: 16px 18px;
  color: #fff;
  background: var(--leaf-dark);
}

.balance-band span {
  text-transform: uppercase;
}

.balance-band strong {
  font-size: 1.25rem;
}

.invoice-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.invoice-detail-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 1.12rem;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
}

.invoice-table th {
  padding: 12px 10px;
  color: #fff;
  background: #2b2b2b;
  text-align: left;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.invoice-table td {
  padding: 14px 10px;
  border-bottom: 1px solid #e1e5e2;
  vertical-align: top;
}

.invoice-table th:first-child,
.invoice-table td:first-child {
  width: 48px;
  text-align: center;
}

.invoice-table th:nth-child(3),
.invoice-table td:nth-child(3),
.invoice-table th:nth-child(4),
.invoice-table td:nth-child(4),
.invoice-table th:nth-child(5),
.invoice-table td:nth-child(5) {
  width: 72px;
  text-align: center;
}

.invoice-table th:nth-child(6),
.invoice-table td:nth-child(6) {
  width: 110px;
  text-align: right;
}

.invoice-table th:last-child,
.invoice-table td:last-child {
  width: 120px;
  text-align: right;
}

.invoice-table td span {
  display: block;
  margin-top: 4px;
  color: #6a746f;
}

.invoice-totals {
  display: grid;
  gap: 8px;
  width: min(300px, 100%);
  margin-left: auto;
  padding: 8px 0 22px;
}

.invoice-totals div:last-child {
  padding-top: 10px;
  border-top: 2px solid #2b2b2b;
}

.invoice-footer-notes {
  padding-top: 18px;
  border-top: 1px solid #e1e5e2;
}

.dashboard-head,
.toolbar {
  justify-content: space-between;
}

.dashboard-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.toolbar label {
  min-width: 220px;
}

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

.booking-card {
  display: grid;
  gap: 20px;
  padding: 20px;
}

.booking-card-head,
.booking-card-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.booking-card h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
}

.booking-card-head p {
  margin: 0;
  color: var(--muted);
}

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

.booking-edit-grid textarea {
  min-height: 112px;
}

.booking-edit-grid label:nth-last-child(-n + 3) {
  grid-column: span 1;
}

.booking-email-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: #f4f7f4;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.booking-email-head,
.booking-email-grid,
.booking-template-grid {
  display: grid;
  gap: 14px;
}

.booking-email-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.booking-email-head h4 {
  margin: 4px 0 0;
  font-size: 1.22rem;
}

.email-timing-note {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.email-status-summary {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.email-status-summary p {
  margin: 0;
}

.email-status-summary strong {
  color: var(--ink);
}

.booking-email-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.booking-template-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.booking-template-grid textarea {
  min-height: 220px;
}

.email-actions {
  justify-content: flex-start;
}

.status-pill {
  display: inline-flex;
  width: max-content;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--leaf-dark);
  background: #dcebe0;
  font-size: 0.82rem;
  font-weight: 900;
}

.invoice-pill {
  color: #59360e;
  background: #f4dfb9;
}

.private-calendar-section {
  background: #edf3ee;
}

.private-notice,
.private-calendar {
  max-width: 1180px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 34px);
}

.private-notice h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
}

.private-notice p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.calendar-toolbar h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.legend::before {
  width: 12px;
  height: 12px;
  content: "";
  border-radius: 999px;
  background: var(--leaf);
}

.legend.pending::before {
  background: #d99a3d;
}

.legend.past::before {
  background: #7b8580;
}

.legend.cancelled::before {
  background: #a5423d;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #fff;
}

.weekday,
.month-day {
  min-width: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.weekday {
  padding: 10px;
  color: var(--muted);
  background: #f4f7f4;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.month-day {
  min-height: 142px;
  padding: 10px;
  background: #fff;
}

.month-day.empty {
  background: #f6f4ec;
}

.day-number {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 900;
}

.no-booking {
  color: #9aa49f;
  font-size: 0.82rem;
}

.booking-chip {
  display: grid;
  gap: 2px;
  margin-bottom: 6px;
  padding: 7px 8px;
  color: #fff;
  background: var(--leaf);
  border-radius: 8px;
}

.booking-chip strong,
.booking-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-chip strong {
  font-size: 0.84rem;
}

.booking-chip span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 800;
}

.booking-chip.pending {
  background: #d99a3d;
}

.booking-chip.past {
  background: #7b8580;
}

.booking-chip.cancelled {
  background: #a5423d;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 6vw, 80px);
  color: #fff;
  background: var(--leaf-dark);
}

.site-footer span {
  color: rgba(255, 255, 255, 0.78);
}

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

  .brand {
    width: min(320px, 100%);
    min-width: 0;
  }

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

  .home-hero,
  .intro,
  .notes-section,
  .committee-panel,
  .invoice-topline,
  .invoice-detail-grid {
    grid-template-columns: 1fr;
  }

  .invoice-title-block {
    text-align: left;
  }

  .home-hero > img {
    min-height: 360px;
  }

  .quick-facts,
  .home-links,
  .facility-grid,
  .contact-grid,
  .booking-paths,
  .dashboard-stats,
  .form-row,
  .form-row:has(label:nth-child(3)),
  .booking-edit-grid {
    grid-template-columns: 1fr;
  }

  .booking-email-head,
  .booking-email-grid,
  .booking-template-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: #fff;
  }

  .site-header,
  .page-hero,
  .committee-panel,
  .dashboard-head,
  .dashboard-stats,
  .toolbar,
  .booking-list,
  .invoice-view-head,
  .invoice-dialog .invoice-view-head,
  .site-footer {
    display: none !important;
  }

  .section,
  .committee-section,
  .dashboard,
  .invoice-view-section {
    display: block;
    padding: 0;
    background: #fff;
    border: 0;
    box-shadow: none;
  }

  .invoice-paper {
    max-width: none;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}

@media (max-width: 720px) {
  .month-grid {
    display: block;
    border-right: 1px solid var(--line);
  }

  .weekday,
  .month-day.empty {
    display: none;
  }

  .month-day {
    min-height: 0;
  }

  .day-number::before {
    content: "Day ";
  }
}

@media (max-width: 540px) {
  .site-header {
    gap: 12px;
  }

  .main-nav a {
    padding: 8px 9px;
    font-size: 0.94rem;
  }

  .home-hero h1,
  .page-hero h1 {
    font-size: 3.05rem;
  }

  .button {
    width: 100%;
  }

  .toolbar label,
  .toolbar .button {
    width: 100%;
  }
}
