:root {
  --color-bg: #0e2019;
  --color-bg-card: #163329;
  --color-ink: #f4efe4;
  --color-muted: #a9bdb2;
  --color-accent: #b32017;
  --color-gold: #d9b25c;
  --color-border: rgba(244, 239, 228, 0.12);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
}

#snow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
}

.hero {
  text-align: center;
  padding-bottom: 3rem;
}

.eyebrow {
  color: var(--color-gold);
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3rem);
}

.highlight {
  color: var(--color-accent);
}

.subtitle {
  max-width: 46ch;
  margin: 1rem auto 0;
  color: var(--color-muted);
}

.calendar {
  padding-block: 2.5rem;
  border-top: 1px solid var(--color-border);
}

.calendar h2 {
  text-align: center;
  font-size: 1.4rem;
}

.calendar__hint {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.calendar__grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.calendar__day {
  aspect-ratio: 1;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.calendar__day:hover {
  transform: translateY(-2px);
  border-color: var(--color-gold);
}

.calendar__day.opened {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.gallery {
  padding-block: 2.5rem;
  border-top: 1px solid var(--color-border);
}

.gallery h2 {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gallery__item {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-card);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.site-footer {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.85rem;
  padding-top: 2.5rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal[hidden] {
  display: none;
}

.modal__content {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 380px;
  text-align: center;
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: var(--color-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.modal__day {
  color: var(--color-gold);
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
}

.modal__text {
  margin: 0;
  color: var(--color-ink);
}

@media (max-width: 560px) {
  .calendar__grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .gallery__grid {
    grid-template-columns: 1fr 1fr;
  }
}
