:root {
  --bg: #151515;
  --text: #f5f5f5;
  --text-muted: #b3b3b3;
  --accent: #ffd503;
  --line: rgba(255, 255, 255, 0.08);
  --max-width: 480px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  background-image: url('/images/background.png');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% 100%;
  color: var(--text);
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

.illustration {
  margin: 0 auto;
}

.illustration-link {
  display: block;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section {
  padding: 48px 24px;
}

.section__title {
  margin: 0 0 28px;
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section__title--left {
  text-align: left;
  text-transform: uppercase;
}

.section__title--right {
  text-align: right;
  text-transform: uppercase;
}

/* Hero */

.hero {
  padding: 56px 24px 48px;
  text-align: center;
}

.hero__logo {
  width: 160px;
  margin: 0 auto 28px;
}

.hero__title {
  margin: 0 0 16px;
  font-size: clamp(18px, 5.2vw, 24px);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero__intro {
  margin: 0 auto;
  max-width: 360px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Agenda */

.agenda {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 320px;
}

.agenda__row {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: baseline;
  gap: 16px;
  width: 100%;
}

.agenda__time {
  font-weight: 700;
  color: var(--accent);
  font-size: 16px;
  text-align: right;
  white-space: nowrap;
}

.agenda__label {
  font-size: 16px;
  font-weight: 600;
  text-align: left;
}

/* Illustration cards (event map / location) */

/* RSVP */

.rsvp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.rsvp__buttons {
  display: flex;
  gap: 16px;
}

.rsvp__button {
  min-width: 96px;
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  background: #ffffff;
  color: #151515;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.rsvp__button:hover {
  transform: translateY(-1px);
}

.rsvp__button:active {
  transform: translateY(0);
}

.rsvp__button[aria-pressed="true"] {
  background: var(--accent);
  color: #151515;
}

.rsvp__button:disabled {
  cursor: default;
  opacity: 0.6;
}

.rsvp__status {
  min-height: 20px;
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* Footer */

.footer {
  padding: 48px 24px 56px;
  text-align: center;
}

.footer__title {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.footer__subtitle {
  margin: -10px 0 40px;
  font-weight: 300;
  font-size: 18px;
  color: var(--text);
}

.footer__contact-title {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 28px;
}

.contact-list__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  white-space: nowrap;
}

.contact-list__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.contact-list a {
  color: var(--text);
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--accent);
}

/* Larger viewports */

@media (min-width: 600px) {
  :root {
    --max-width: 560px;
  }

  .hero__title {
    font-size: 34px;
  }

  .section__title {
    font-size: 26px;
  }
}
