:root {
  font-family: Arial, Roboto, sans-serif;
  color: #202124;
  background: #f8fafd;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.page {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

header {
  margin-bottom: 40px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #1a73e8;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #202124;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.intro {
  width: 70%;
  margin: 18px 0 0;
  color: #5f6368;
  font-size: 1.125rem;
  line-height: 1.6;
}

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

.card {
  display: flex;
  min-height: 310px;
  padding: 28px;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid #dadce0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
  transition: box-shadow 150ms ease, transform 150ms ease;
}

.card:hover {
  box-shadow:
    0 1px 3px rgba(60, 64, 67, 0.2),
    0 4px 8px rgba(60, 64, 67, 0.1);
  transform: translateY(-2px);
}

.tag {
  margin: 0 0 14px;
  color: #1a73e8;
  font-size: 0.875rem;
  font-weight: 600;
}

h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
}

.card p:not(.tag) {
  margin: 0;
  color: #5f6368;
  line-height: 1.5;
}

.actions {
  display: grid;
  gap: 10px;
}

.button {
  display: block;
  padding: 12px 18px;
  border: 1px solid #dadce0;
  border-radius: 20px;
  color: #1a73e8;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease;
}

.button:hover {
  border-color: #d2e3fc;
  background: #f1f7fe;
}

.button:focus-visible {
  outline: 3px solid #aecbfa;
  outline-offset: 2px;
}

.button.primary {
  border-color: #1a73e8;
  background: #1a73e8;
  color: #fff;
}

.button.primary:hover {
  border-color: #1765cc;
  background: #1765cc;
}

.calendar-panel {
  margin-top: 32px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid #dadce0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-kicker {
  margin: 0 0 4px;
  color: #1a73e8;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calendar-toolbar h2 {
  margin: 0;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calendar-month {
  min-width: 150px;
  margin: 0;
  font-weight: 600;
  text-align: center;
  text-transform: capitalize;
}

.calendar-nav-button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #3c4043;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.calendar-nav-button:hover:not(:disabled) {
  background: #f1f3f4;
}

.calendar-nav-button:focus-visible {
  outline: 3px solid #aecbfa;
  outline-offset: 1px;
}

.calendar-nav-button:disabled {
  color: #bdc1c6;
  cursor: default;
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays span {
  padding: 8px 4px;
  color: #5f6368;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

.calendar-days {
  overflow: hidden;
  border: 1px solid #dadce0;
  border-radius: 8px;
  background: #dadce0;
  gap: 1px;
}

.calendar-day {
  min-width: 0;
  min-height: 92px;
  padding: 8px;
  overflow: hidden;
  background: #fff;
}

.calendar-day.outside {
  background: #f8fafd;
  color: #9aa0a6;
}

.calendar-date {
  display: block;
  margin-bottom: 8px;
  font-size: 0.875rem;
  text-align: right;
}

.calendar-event {
  display: block;
  padding: 5px 7px;
  overflow: hidden;
  border-radius: 4px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event.week-1 {
  background: #1a73e8;
}

.calendar-event.week-2 {
  background: #188038;
}

.note {
  margin: 30px 0 0;
  color: #5f6368;
  font-size: 0.875rem;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .page {
    padding: 40px 0;
  }

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

  .intro {
    width: 100%;
  }

  .card {
    min-height: 0;
  }

  .calendar-panel {
    padding: 18px;
  }

  .calendar-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .calendar-nav {
    justify-content: space-between;
  }

  .calendar-month {
    min-width: 0;
  }

  .calendar-day {
    min-height: 58px;
    padding: 5px;
  }

  .calendar-date {
    margin-bottom: 5px;
    font-size: 0.75rem;
  }

  .calendar-event {
    width: 8px;
    height: 8px;
    margin: 0 auto;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .button {
    transition: none;
  }
}
