:root {
  --ink: #1c1a17;
  --paper: #faf8f5;
  --muted: #6b675f;
  --line: #e3ddd2;
  --serif: "Playfair Display", "Georgia", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 600;
  margin: 0 0 20px;
}

p {
  line-height: 1.6;
  margin: 0 0 16px;
}

.section,
.hero__content {
  max-width: 480px;
  margin: 0 auto;
  padding: 64px 24px;
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(160deg, #2b2620 0%, #17140f 65%, #0c0a08 100%);
  color: #f4efe6;
  text-align: center;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(12, 10, 8, 0.55) 0%,
    rgba(12, 10, 8, 0.65) 55%,
    rgba(12, 10, 8, 0.9) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 96px;
  padding-bottom: 48px;
}

.hero h1 {
  font-size: 2.1rem;
}

.hero p {
  color: #ddd5c6;
}

.hero__date {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  color: #f4efe6;
}

.hero__countdown-label {
  margin-top: 32px;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 24px 0 40px;
}

.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 12px;
  border-right: 1px solid rgba(244, 239, 230, 0.25);
}

.countdown__item:last-child {
  border-right: none;
}

.countdown__value {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 600;
}

.countdown__unit {
  font-size: 0.8rem;
  color: #bdb4a3;
  margin-top: 4px;
}

/* Sections */

.section {
  text-align: center;
}

.section h2 {
  font-size: 1.7rem;
}

.section p {
  color: var(--muted);
}

.placeholder-image {
  margin-top: 24px;
  height: 220px;
  border-radius: 4px;
  background: linear-gradient(135deg, #e3ddd2, #cfc6b4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
}

.venue-image {
  margin-top: 24px;
  width: 100%;
  height: 280px;
  border-radius: 4px;
  object-fit: cover;
}

.map {
  margin-top: 24px;
  height: 320px;
  border-radius: 4px;
  overflow: hidden;
  background: #e3ddd2;
}

.map__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.divider {
  color: var(--muted);
  font-size: 1.5rem;
  margin: 28px 0;
}

/* Buttons */

.button {
  display: block;
  text-decoration: none;
  text-align: center;
  border: none;
  border-radius: 2px;
  padding: 18px 24px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
}

.button--hero {
  background: #f4efe6;
  color: #17140f;
}

.button--map {
  background: var(--ink);
  color: var(--paper);
  margin-top: 16px;
}

.button--form {
  width: 100%;
  background: var(--ink);
  color: var(--paper);
  margin-top: 8px;
}

.button--form:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Form */

#rsvp-form {
  text-align: left;
}

.field {
  border: none;
  padding: 0;
  margin: 0 0 28px;
}

.field legend,
.field label[for] {
  font-weight: 600;
  padding: 0;
  margin-bottom: 12px;
  display: block;
}

.field__hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin: -6px 0 12px;
}

.radio,
.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.field input[type="text"] {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 1rem;
  background: #fff;
}

.form-status {
  min-height: 20px;
  text-align: center;
  font-size: 0.9rem;
}

.form-status[data-state="ok"] {
  color: #2f6b3a;
}

.form-status[data-state="error"] {
  color: #a3352f;
}

@media (max-width: 360px) {
  .countdown {
    gap: 12px;
  }
  .countdown__item {
    padding: 0 6px;
  }
}
