:root {
  --main-green: #139619;
  --dark-green: #072C09;
  --light-green: #E5FBE6;
  --ink: #0d1f0e;
  --muted: #5a6b5b;
  --white: #ffffff;
  --border: #d7ead8;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(7, 44, 9, 0.08);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 50% -200px, var(--light-green), transparent),
    var(--white);
  line-height: 1.6;
}

h1, h2, .card-title, .section-title {
  font-family: "Syne", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark-green);
}

/* ---------- Header ---------- */
.site-header {
  padding: 28px clamp(20px, 5vw, 64px);
}
.wordmark {
  height: 34px;
  width: auto;
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 32px clamp(20px, 5vw, 64px) 16px;
  max-width: 760px;
  margin: 0 auto;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--main-green);
  margin: 0 0 8px;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  margin: 0 0 16px;
  line-height: 1.05;
}
.subtitle {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--muted);
  margin: 0 auto;
  max-width: 560px;
}

/* ---------- Sections ---------- */
main { padding-bottom: 48px; }

.calendar-section,
.signup-section {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px clamp(20px, 5vw, 32px);
}

/* Two-column layout (calendar left, signup right) on wider screens. */
.workshop-layout { max-width: 1060px; margin: 0 auto; }

@media (min-width: 880px) {
  .workshop-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 8px;
    align-items: start;
  }
  .workshop-layout .calendar-section,
  .workshop-layout .signup-section {
    max-width: none;
    margin: 0;
  }
  /* Keep the signup card visible while scrolling the calendar. */
  .workshop-layout .signup-section { position: sticky; top: 24px; }
}
.section-title {
  font-size: 1.6rem;
  margin: 0 0 4px;
  text-align: center;
}
.section-hint {
  text-align: center;
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 0.95rem;
}

/* ---------- Calendar ---------- */
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.calendar-days-contents {
  display: contents;
}
.weekday {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding-bottom: 4px;
}
.day {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
}
.day.empty { background: transparent; }
.day.plain { color: var(--muted); }

/* Workshop days are interactive */
.day.event {
  background: var(--light-green);
  border: 1.5px solid transparent;
  cursor: pointer;
  font-weight: 600;
  color: var(--dark-green);
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}
.day.event:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.day.event:focus-visible { outline: 3px solid var(--main-green); outline-offset: 2px; }
.day.event .day-topic {
  font-size: 0.54rem;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  margin-top: 2px;
  padding: 0 2px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.day.event.selected {
  background: var(--main-green);
  color: var(--white);
  border-color: var(--main-green);
}
.day.event.selected .day-num,
.day.event.selected .day-topic { color: var(--white); }
.day.event.selected::after {
  content: "\2713";
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ---------- Legend ---------- */
.legend {
  list-style: none;
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 16px 0 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.legend li { display: flex; align-items: center; gap: 8px; }
.legend-swatch {
  width: 16px; height: 16px; border-radius: 5px; display: inline-block;
}
.legend-event { background: var(--light-green); }
.legend-selected { background: var(--main-green); }

/* ---------- Signup card ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 36px);
  box-shadow: var(--shadow);
}
.card-title { font-size: 1.5rem; margin: 0 0 16px; }

.selected-summary {
  background: var(--light-green);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.9rem;
  color: var(--dark-green);
  margin-bottom: 20px;
}
.selected-summary.has-items { font-weight: 500; }

.field { display: block; margin-bottom: 16px; }
.field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark-green);
}
.field input {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fafdfa;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--main-green);
  box-shadow: 0 0 0 3px rgba(19, 150, 25, 0.15);
}

.form-error {
  color: #b3261e;
  font-size: 0.85rem;
  margin: 0 0 12px;
  min-height: 1em;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--white);
  background: var(--main-green);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}
.submit-btn:hover { background: #0f7d14; }
.submit-btn:active { transform: translateY(1px); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- Success ---------- */
.success-state { text-align: center; }
.success-check {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--main-green);
  color: var(--white);
  font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center;
}
.success-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  text-align: left;
  display: inline-block;
}
.success-list li {
  padding: 10px 14px;
  background: var(--light-green);
  border-radius: 10px;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark-green);
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-mark { height: 28px; width: auto; opacity: 0.85; margin-bottom: 8px; }
.site-footer p { margin: 0; }

/* ---------- Mobile ---------- */
@media (max-width: 480px) {
  .calendar { gap: 5px; padding: 12px; }
  .day { border-radius: 8px; font-size: 0.85rem; }
  .day.event .day-topic { font-size: 0.46rem; }
  .legend { gap: 14px; }
}
