
:root {
  --black: #0A0A0A;
  --dark-grey: #262626;
  --light-grey: #A3A3A3;
  --off-white: #F2F1ED;
  --white: #FFFFFF;

  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--white);
  background: var(--black);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  line-height: 1.6;
}

a {
  color: var(--off-white);
  text-underline-offset: 4px;
}

a:hover {
  color: var(--white);
}

header {
  background: var(--black);
  border-bottom: 1px solid var(--dark-grey);
  padding: 1.25rem max(1rem, calc((100vw - 1100px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

header a {
  color: var(--white);
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--light-grey);
  font-size: 0.9rem;
}

nav a:hover {
  color: var(--white);
}

main {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  min-height: 70vh;
}

h1, h2, h3 {
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 750;
}

h2 {
  font-size: 1.5rem;
}

p {
  color: var(--light-grey);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
}

article {
  background: var(--dark-grey);
  padding: 1.75rem;
  border: 1px solid var(--light-grey);
  border-radius: 8px;
  margin: 1rem 0;
}

label {
  display: block;
  margin: 1rem 0;
  color: var(--off-white);
}

input, textarea, select {
  display: block;
  width: 100%;
  max-width: 560px;
  padding: 0.85rem;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 4px;
  font: inherit;
}

textarea {
  min-height: 110px;
}

button, .cta {
  display: inline-block;
  background: var(--off-white);
  color: var(--black);
  border: 1px solid var(--off-white);
  border-radius: 4px;
  padding: 0.75rem 1.25rem;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

button:hover, .cta:hover {
  background: var(--white);
  color: var(--black);
}

.cta.secondary {
  background: transparent;
  color: var(--off-white);
  border-color: var(--light-grey);
}

.cta.secondary:hover {
  background: var(--dark-grey);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

footer {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--light-grey);
  border-top: 1px solid var(--dark-grey);
}

.note, .hint {
  color: var(--light-grey);
}

.description {
  white-space: pre-wrap;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.page-heading h1 {
  margin: 0.25rem 0;
}

.page-heading p {
  max-width: 650px;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--light-grey);
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0;
}

.calendar-toolbar h2 {
  margin: 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--light-grey);
  border: 1px solid var(--light-grey);
  border-radius: 6px;
  overflow: hidden;
}

.weekday {
  text-align: center;
  padding: 0.7rem 0.2rem;
  background: var(--dark-grey);
  color: var(--off-white);
  font-weight: 700;
  font-size: 0.8rem;
}

.calendar-day {
  background: var(--black);
  min-height: 110px;
  padding: 0.55rem;
  min-width: 0;
}

.calendar-day.outside {
  background: var(--dark-grey);
  color: var(--light-grey);
}

.day-number {
  font-size: 0.8rem;
  font-weight: 700;
}

.calendar-event {
  display: block;
  margin-top: 0.5rem;
  padding: 0.4rem;
  border: 1px solid var(--light-grey);
  border-radius: 4px;
  background: var(--dark-grey);
  color: var(--white);
  text-decoration: none;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.calendar-event:hover {
  background: var(--black);
}

.calendar-event strong,
.calendar-event small {
  display: block;
}

.calendar-event small {
  margin-top: 0.2rem;
  color: var(--light-grey);
}

.hint {
  font-size: 0.85rem;
}

.event-detail {
  max-width: 760px;
}

.event-detail .cta {
  margin: 0.5rem 0;
}

@media (max-width: 650px) {
  header {
    flex-wrap: wrap;
  }

  main {
    margin: 2rem auto;
    padding: 0 1rem;
  }

  .calendar-day {
    min-height: 76px;
    padding: 0.25rem;
  }

  .calendar-event {
    font-size: 0.65rem;
    padding: 0.25rem;
  }

  .weekday {
    font-size: 0.7rem;
    padding: 0.5rem 0.1rem;
  }

  .calendar-toolbar h2 {
    font-size: 1.1rem;
  }
}

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