@import url("https://fonts.googleapis.com/css2?family=Unbounded:wght@300;500;700&family=Alegreya+Sans:wght@300;400;600&display=swap");

:root {
  --mc-green: #2f6b2f;
  --mc-orange: #f28c28;
  --mc-cream: #f7f2e8;
  --mc-forest: #16331b;
  --mc-bark: #3a2b20;
  --mc-shadow: rgba(22, 51, 27, 0.25);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Alegreya Sans", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at top left, rgba(242, 140, 40, 0.15), transparent 55%),
    radial-gradient(circle at 10% 30%, rgba(47, 107, 47, 0.15), transparent 40%),
    var(--mc-cream);
  color: var(--mc-forest);
}

h1,
h2,
h3 {
  font-family: "Unbounded", "Trebuchet MS", sans-serif;
  margin: 0 0 0.5rem 0;
}

.hero {
  position: relative;
  min-height: 240px;
  padding: 2.5rem 8vw;
  background: linear-gradient(120deg, rgba(22, 51, 27, 0.95), rgba(47, 107, 47, 0.85)),
    var(--hero-image, url("/static/img/sasquatch.svg")) right 10% center/220px no-repeat;
  color: var(--mc-cream);
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(242, 140, 40, 0.2), transparent 50%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(242, 140, 40, 0.2);
  border: 1px solid rgba(242, 140, 40, 0.6);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.hero__meta {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  opacity: 0.85;
  flex-wrap: wrap;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 2rem;
  padding: 2rem 8vw 3rem;
}

.calendar-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 18px 40px var(--mc-shadow);
  padding: 1.5rem;
}

.calendar-toolbar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.btn {
  background: var(--mc-orange);
  color: #1f1208;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(242, 140, 40, 0.25);
}

.btn--ghost {
  background: transparent;
  color: var(--mc-forest);
  border: 1px solid rgba(22, 51, 27, 0.3);
  box-shadow: none;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.panel__section {
  background: #fff;
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 12px 26px var(--mc-shadow);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding: 0 8vw 3rem;
}

.gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 12px 26px var(--mc-shadow);
}

.label {
  display: block;
  font-weight: 600;
  margin: 0.75rem 0 0.3rem;
}

textarea,
input[type="text"],
input[type="number"],
input[type="datetime-local"],
input[type="password"],
input[type="color"] {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(22, 51, 27, 0.2);
  font-family: inherit;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
  font-weight: 600;
}

.actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
}

.note-block {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(242, 140, 40, 0.12);
  border-radius: 12px;
  font-style: italic;
}

.legend {
  list-style: none;
  margin: 0;
  padding: 0;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.4rem 0;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(22, 51, 27, 0.15);
}

.muted {
  color: rgba(22, 51, 27, 0.6);
  font-style: italic;
}

.hidden {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 51, 27, 0.4);
}

.modal__content {
  position: relative;
  background: #fff;
  padding: 1.5rem;
  border-radius: 16px;
  width: min(420px, 90vw);
  z-index: 1;
  box-shadow: 0 18px 40px var(--mc-shadow);
}

.login-page {
  background: linear-gradient(120deg, rgba(22, 51, 27, 0.9), rgba(47, 107, 47, 0.8)),
    url("/static/img/sasquatch.svg") center/240px no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  background: rgba(247, 242, 232, 0.95);
  padding: 2rem;
  border-radius: 18px;
  width: min(360px, 90vw);
  text-align: center;
  box-shadow: 0 18px 40px var(--mc-shadow);
}

.login-card__badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mc-forest);
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2rem 6vw;
  }
}
