:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-card: #1a1a1a55;
  --text-primary: #f5f5f5;
  --text-secondary: #dddddd;
  --text-dark: #555;
  --accent: #ffffff;
  --border: #2a2a2a;
  --gradient-start: #1a1a2e;
  --gradient-mid: #1e2c54;
  --gradient-end: #123f76;
  --overlay: rgba(0, 0, 0, 0.8);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  color: var(--text-primary);
}

body {
  min-height: 100vh;
  background: linear-gradient(
    135deg,
    var(--gradient-start) 0%,
    var(--gradient-mid) 50%,
    var(--gradient-end) 100%
  );
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  letter-spacing: 0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
[role="button"] {
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.hero-names {
  font-size: 4rem;
  font-weight: 600;
  background: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    var(--text-dark) 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textGradientShift 4s ease infinite;
}

.hero-divider {
  width: 80px;
  height: 1px;
  background: var(--text-secondary);
  margin: 2rem auto;
}

.hero-date,
.hero-site {
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 300;
  margin-top: 1rem;
}

.section {
  min-height: 65dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes textGradientShift {
  0% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
  100% {
    background-position: 0% center;
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 3rem 2rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.card-title {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.count-display {
  font-family: "Montserrat", sans-serif;
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  min-height: 2rem;
}

.attendee-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 400px;
}

.attendee-item {
  display: flex;
  justify-content: space-between;
  font-family: "Montserrat", sans-serif;
  text-transform: capitalize;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.attendee-item:last-child {
  border-bottom: none;
}

.attendee-name {
  color: var(--text-primary);
}

.attendee-guests {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.empty-state {
  color: var(--text-secondary);
  font-style: italic;
}

.overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem;
  max-width: 90%;
  width: 360px;
  text-align: center;
}

.modal-title {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.modal-text {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
