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

:root {
  --dark: #1c1c1c;
  --dark-soft: #2a2a2a;
  --white: #ffffff;
  --text: #333;
  --text-light: #666;
  --font: "Josefin Sans", sans-serif;
  --font-serif: "Italiana", serif;
  --font-monogram: "Cinzel", serif;
  --font-story: "Cormorant Garamond", serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-weight: 200;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.35) 50%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 3rem 1.5rem 4rem;
  width: 100%;
  max-width: 420px;
}

.monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15em;
  margin-bottom: 2rem;
}

.monogram-t,
.monogram-s {
  font-family: var(--font-monogram);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.monogram-t {
  margin-right: -0.05em;
}

.monogram-s {
  font-style: normal;
  opacity: 0.95;
}

.hero-text {
  font-family: var(--font-story);
  font-size: calc(1.05rem + 2px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.85;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
  color: var(--white);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.hero-names {
  font-family: var(--font-story);
  font-size: calc(1.05rem + 2px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: var(--white);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

/* ===== Invitation ===== */
.invitation {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: calc(16vh - 70px);
  overflow: hidden;
}

.section-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.invitation .section-bg {
  filter: grayscale(100%);
}

.invitation-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 2rem;
  max-width: 420px;
}

.story-text {
  font-family: var(--font-story);
  font-size: calc(1.05rem + 2px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.85;
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
  color: var(--white);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.highlight-date {
  font-family: var(--font-serif);
  font-size: calc(3.5rem + 2px);
  font-weight: 400;
  letter-spacing: 0.08em;
  margin: 1.5rem 0 !important;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

/* ===== Timing ===== */
.timing {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 5rem 1.5rem;
}

.timing h2 {
  font-size: 1.1rem;
  font-weight: 200;
  letter-spacing: 0.15em;
  margin-bottom: 3rem;
}

.timing-block {
  margin-bottom: 3rem;
}

.timing-block:last-child {
  margin-bottom: 0;
}

.timing-time {
  font-size: 3rem;
  font-weight: 200;
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.timing-place {
  font-size: 0.95rem;
  font-weight: 200;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

/* ===== Save the Date ===== */
.save-the-date {
  display: flex;
  background: var(--dark);
  min-height: 70vh;
}

.save-photo {
  flex: 1;
  overflow: hidden;
}

.save-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%);
  min-height: 400px;
}

.save-label {
  width: 72px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.save-label span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text);
  white-space: nowrap;
}

/* ===== Venue (Ceremony & Reception) ===== */
.venue {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 4rem 1.5rem 5rem;
}

.venue-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.venue-inner-reverse {
  flex-direction: row-reverse;
}

.venue-vertical {
  writing-mode: vertical-rl;
  font-size: 2.5rem;
  font-weight: 200;
  letter-spacing: 0.12em;
  line-height: 1;
  flex-shrink: 0;
}

.venue-circle {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.venue-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%);
}

.venue-address {
  font-size: 0.9rem;
  font-weight: 200;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}

.btn-pill {
  display: inline-block;
  padding: 0.6rem 2rem;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 200;
  letter-spacing: 0.06em;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--white);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.3s,
    color 0.3s;
}

.btn-pill:hover {
  background: var(--white);
  color: var(--dark);
}

/* ===== RSVP ===== */
.rsvp {
  background: var(--white);
  padding: 4rem 1.5rem 5rem;
}

.rsvp-title {
  text-align: center;
  font-size: 1rem;
  font-weight: 200;
  letter-spacing: 0.06em;
  margin-bottom: 2.5rem;
}

.rsvp-form {
  max-width: 340px;
  margin: 0 auto;
}

.form-field {
  position: relative;
  margin-bottom: 2rem;
}

.form-field input {
  width: 100%;
  padding: 0.5rem 0;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 200;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1px solid #ccc;
  outline: none;
}

.form-field input:focus {
  border-bottom-color: var(--dark);
}

.form-field label {
  position: absolute;
  left: 0;
  top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 200;
  color: var(--text-light);
  pointer-events: none;
  transition:
    transform 0.2s,
    font-size 0.2s,
    top 0.2s;
}

.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label {
  top: -0.75rem;
  font-size: 0.7rem;
}

.form-radios {
  margin-bottom: 1.5rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.4rem 0;
  font-size: 0.85rem;
  font-weight: 200;
}

.radio-label input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-circle {
  width: 16px;
  height: 16px;
  border: 1px solid var(--text);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.radio-label input:checked + .radio-circle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  background: var(--text);
  border-radius: 50%;
}

.btn-confirm {
  color: var(--text);
  border-color: var(--text);
  margin-top: 0.5rem;
}

.btn-confirm:hover {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

.form-success {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  font-weight: 200;
  color: var(--text-light);
}

/* ===== Countdown ===== */
.countdown-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.countdown-section .section-bg {
  filter: grayscale(100%) brightness(1.15);
  object-position: center 35%;
}

.countdown-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.2) 40%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

.countdown-welcome {
  position: absolute;
  top: 6%;
  left: 0;
  right: 0;
  z-index: 1;
  text-align: center;
  font-family: var(--font-story);
  font-size: calc(1.05rem + 2px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: var(--white);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  padding: 0 2rem;
  max-width: 340px;
  margin: 0 auto;
}

.countdown-bottom {
  position: absolute;
  bottom: 14%;
  left: 0;
  right: 0;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 0 1.5rem;
}

.countdown-heading {
  font-size: 0.95rem;
  font-weight: 200;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.countdown-block {
  text-align: center;
}

.countdown-ring {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  position: relative;
}

.countdown-ring::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.countdown-number {
  font-size: 1.25rem;
  font-weight: 200;
  letter-spacing: 0.05em;
}

.countdown-label {
  font-size: 0.75rem;
  font-weight: 200;
  letter-spacing: 0.06em;
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
  .hero-text {
    font-size: calc(1.2rem + 2px);
  }

  .hero-names {
    font-size: calc(1.2rem + 2px);
  }

  .monogram-t,
  .monogram-s {
    font-size: 5.5rem;
  }

  .invitation-content {
    max-width: 480px;
  }

  .story-text {
    font-size: calc(1.2rem + 2px);
  }

  .countdown-welcome {
    font-size: calc(1.2rem + 2px);
    max-width: 400px;
  }

  .highlight-date {
    font-size: calc(4.5rem + 2px);
  }

  .timing-time {
    font-size: 3.5rem;
  }

  .venue-circle {
    width: 300px;
    height: 300px;
  }

  .venue-vertical {
    font-size: 3rem;
  }

  .save-label {
    width: 90px;
  }

  .save-label span {
    font-size: 1.35rem;
  }

  .countdown-ring {
    width: 72px;
    height: 72px;
  }

  .countdown-number {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .venue-inner {
    gap: 0;
  }

  .venue-vertical {
    font-size: 2rem;
  }

  .venue-circle {
    width: 220px;
    height: 220px;
  }

  .countdown {
    gap: 0.75rem;
  }

  .countdown-ring {
    width: 56px;
    height: 56px;
  }
}
