:root {
  color-scheme: light;
  --ink: #25302b;
  --muted: #64716b;
  --line: #d8e0da;
  --paper: #fffdf8;
  --wash: #f2f6ed;
  --sage: #3d755b;
  --sage-dark: #244b3b;
  --coral: #c9634b;
  --gold: #b4892e;
  --sky: #dceaf1;
  --shadow: 0 18px 55px rgba(35, 47, 42, 0.13);
}

* {
  box-sizing: border-box;
}

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

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

.site-header,
.admin-header {
  background:
    linear-gradient(110deg, rgba(242, 246, 237, 0.98), rgba(220, 234, 241, 0.88)),
    radial-gradient(circle at 85% 25%, rgba(201, 99, 75, 0.18), transparent 28%);
  border-bottom: 1px solid var(--line);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 22px;
}

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

.staff-link {
  color: var(--sage-dark);
  font-weight: 700;
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(340px, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
  max-width: 1160px;
  min-height: 560px;
  margin: 0 auto;
  padding: 48px 22px 70px;
}

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

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

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

h1 {
  max-width: 540px;
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero p:last-child {
  max-width: 500px;
  margin: 22px 0 0;
  color: #43504a;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.72;
}

.hero-art {
  position: relative;
  order: -1;
  min-height: clamp(330px, 42vw, 430px);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(36, 75, 59, 0.12), rgba(180, 137, 46, 0.14)),
    url("/hero.jpg") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.hero-art span {
  position: absolute;
  display: block;
  height: 2px;
  background: rgba(255, 253, 248, 0.82);
}

.hero-art span:nth-child(1) {
  left: 11%;
  right: 18%;
  bottom: 26%;
}

.hero-art span:nth-child(2) {
  left: 18%;
  right: 12%;
  bottom: 20%;
}

.hero-art span:nth-child(3) {
  left: 30%;
  right: 28%;
  bottom: 14%;
}

main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 44px 22px 80px;
}

.schedule-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.schedule-header h2,
.admin-header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.schedule-header > p {
  max-width: 390px;
  color: var(--muted);
  line-height: 1.55;
}

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

.session-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  min-height: 290px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 30px rgba(39, 53, 47, 0.06);
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border-radius: 8px;
  background: var(--wash);
  color: var(--sage-dark);
  text-align: center;
}

.time-block strong {
  font-size: 1.35rem;
}

.time-block span {
  color: var(--muted);
  font-size: 0.84rem;
}

.session-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.session-content h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.session-meta,
.capacity-line {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.session-description {
  flex: 1;
  color: #425149;
  line-height: 1.55;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.tag {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--sage-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.primary-button,
.secondary-button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.primary-button {
  padding: 0 18px;
  background: var(--sage);
  color: white;
}

.primary-button:hover {
  background: var(--sage-dark);
}

.secondary-button {
  padding: 0 16px;
  border: 1px solid var(--line);
  background: white;
  color: var(--sage-dark);
}

.waitlist-button {
  background: var(--gold);
}

.dialog {
  width: min(560px, calc(100vw - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

.dialog::backdrop {
  background: rgba(24, 33, 29, 0.55);
}

.dialog-panel {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 28px;
}

.dialog-panel h2 {
  margin: 0;
  font-size: 2rem;
}

.dialog-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  cursor: pointer;
}

.close-button {
  position: absolute;
  top: 18px;
  right: 18px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--sage-dark);
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: white;
  color: var(--ink);
}

input:focus,
select:focus {
  outline: 3px solid rgba(61, 117, 91, 0.2);
  border-color: var(--sage);
}

.form-message {
  min-height: 24px;
  color: var(--coral);
  font-weight: 700;
}

.admin-header section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 54px 22px 64px;
}

.admin-main {
  padding-top: 32px;
}

.login-panel {
  max-width: 420px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

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

.dashboard {
  display: grid;
  gap: 22px;
}

.toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.toolbar label {
  width: min(420px, 100%);
}

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

.summary-card {
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

.summary-card strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
}

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

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

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--sage-dark);
  font-size: 0.82rem;
  text-transform: uppercase;
}

td {
  color: #3f4d47;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.status-confirmed {
  background: #dceee5;
  color: #23533f;
}

.status-waitlist {
  background: #f8ead0;
  color: #795515;
}

.status-cancelled {
  background: #f1dcd8;
  color: #8a3b2a;
}

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

  .hero {
    min-height: 0;
    padding-top: 34px;
  }

  .hero-copy,
  .hero-copy h1,
  .hero-copy p:last-child {
    max-width: 680px;
  }

  .hero-art {
    min-height: 300px;
  }

  .schedule-header,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

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

@media (max-width: 560px) {
  .topbar {
    padding-inline: 16px;
  }

  .hero,
  main,
  .admin-header section {
    padding-inline: 16px;
  }

  .session-card {
    grid-template-columns: 1fr;
  }

  .time-block {
    min-height: 82px;
  }

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