:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: #111;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #eee;
}

.site-title {
  margin: 0;
  text-align: center;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.calendar-card {
  background: #1b1b1b;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  width: min(760px, 94vw);
}

.calendar-header {
  text-align: center;
  margin-bottom: 24px;
}

.calendar-header h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
}

.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 12px;
}

.weekdays span {
  text-align: center;
  font-size: 1rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.day {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #242424;
  font-size: 1.4rem;
}

.day.empty {
  background: transparent;
}

.day.today {
  outline: 2px solid #555;
}

.day.today .day-number {
  font-weight: 700;
}

.day.workout-done {
  background: #2a1414;
  cursor: pointer;
}

.day.workout-done .day-number {
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 0.75rem;
  color: #999;
}

.workout-cross {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff5c5c;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal.hidden {
  display: none;
}

.modal-content {
  position: relative;
  background: #1b1b1b;
  border-radius: 12px;
  padding: 28px;
  width: min(360px, 100%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.modal-content h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.modal-content p {
  margin: 0;
  color: #ccc;
  line-height: 1.5;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: #eee;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
