:root {
  --bg: #f8f5f2;
  --paper: #fffdfb;
  --text: #660033;
  --accent: #660033;
  --accent-soft: rgba(102, 0, 51, 0.2);
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

button,
input,
select,
textarea,
a {
  font-family: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.2;
  margin-top: 0;
}

.hero {
  min-height: 88vh;
  padding: 1.25rem;
  background:
    linear-gradient(rgba(248, 245, 242, 0.72), rgba(248, 245, 242, 0.9)),
    radial-gradient(circle at top right, #eadfd7, transparent 55%);
  display: flex;
  flex-direction: column;
  position: relative;
}

.top-nav {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.language-wrap {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-size: 1.1rem;
}

.language-toggle {
  border: 1px solid var(--accent-soft);
  background: rgba(255, 255, 255, 0.6);
  color: inherit;
  padding: 0.95rem 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
}

.hero-content {
  max-width: 720px;
  margin: auto;
  text-align: center;
  padding: 2rem 1rem;
}

.hero-monogram {
  display: block;
  width: min(300px, 56vw);
  height: auto;
  margin: 0 auto 0.5rem;
}

.hero-names {
  font-size: clamp(3.7rem, 8.4vw, 5.7rem);
  font-style: italic;
  font-weight: 600;
  margin-bottom: 0.2rem;
  white-space: nowrap;
}

.hero-invite {
  font-size: clamp(1.75rem, 4.3vw, 2.55rem);
  margin: 0 0 0.6rem;
  font-style: italic;
  font-weight: 600;
}

.hero-date {
  font-size: clamp(2rem, 6.2vw, 3rem);
  margin-bottom: 1.2rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.cta {
  display: inline-block;
  margin-top: 1.3rem;
  text-decoration: none;
  background: var(--accent);
  color: #fffdfb;
  border: 1px solid var(--accent);
  padding: 0.95rem 1.6rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 999px;
}

.countdown {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  padding: 0.95rem 1rem;
  background: rgba(255, 253, 251, 0.82);
  border-radius: 12px;
  min-width: 155px;
  box-shadow: 0 10px 24px rgba(102, 0, 51, 0.08);
}

.countdown-label {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.2;
}

.countdown-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  padding: 0.55rem;
  display: grid;
  text-align: center;
}

.countdown-item span {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
}

.countdown-item small {
  font-size: 1rem;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.25rem;
}

.section h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 1.4rem;
}

#schedule h2 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
}

#schedule .card h3 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

#schedule .card p {
  font-size: clamp(1.1rem, 2.7vw, 1.3rem);
}

#schedule .card p strong {
  font-size: 1.15em;
}

.photo-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 0.8rem;
}

.photo-section img {
  width: 100%;
  max-width: 320px;
  justify-self: center;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 20px;
}

.card-grid,
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--paper);
  padding: 1.2rem;
  border-radius: 12px;
  border: 1px solid #ece2da;
}

.card a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.location-name {
  font-size: clamp(2rem, 4.2vw, 2.4rem);
}

#location .location-detail,
#location .location-link {
  font-size: clamp(1.1rem, 2.7vw, 1.3rem);
  line-height: 1.35;
}

#location .location-link {
  display: inline-block;
  margin-top: 0.4rem;
}

.map-wrap {
  margin-top: 1rem;
}

.map-wrap iframe {
  width: 100%;
  min-height: 320px;
  border-radius: 12px;
  border: 0;
}

.things-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.6rem;
}

#things-to-do .things-item {
  font-size: clamp(1.1rem, 2.7vw, 1.3rem);
  line-height: 1.35;
}

#contacts .contact-title {
  font-size: clamp(1.3rem, 2.8vw, 1.6rem);
  margin-bottom: 0.6rem;
}

#contacts .contact-detail {
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  line-height: 1.4;
}

@media (max-width: 700px) {
  .hero {
    min-height: auto;
    padding: 1rem 0.9rem 2rem;
  }

  .section {
    padding-top: 3rem;
    padding-bottom: 3rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .top-nav {
    justify-content: center;
  }

  .language-wrap {
    font-size: 1rem;
  }

  .language-toggle {
    padding: 0.8rem 0.95rem;
    font-size: 1rem;
  }

  .hero-content {
    padding: 5.6rem 0.3rem 1rem;
  }

  .hero-monogram {
    width: min(225px, 58vw);
    margin-bottom: 0.35rem;
  }

  .hero-names {
    white-space: normal;
    font-size: clamp(2.8rem, 11vw, 4rem);
    line-height: 1.05;
  }

  .hero-invite {
    font-size: clamp(1.45rem, 6vw, 2rem);
    line-height: 1.2;
  }

  .hero-date {
    font-size: clamp(1.7rem, 7vw, 2.25rem);
  }

  .cta {
    width: min(100%, 320px);
    padding: 0.9rem 1.25rem;
    font-size: 1.1rem;
  }

  .photo-section {
    grid-template-columns: 1fr;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .countdown {
    top: 4.6rem;
    left: 50%;
    transform: translateX(-50%);
    min-width: 132px;
    padding: 0.75rem 0.85rem;
  }

  .countdown-label {
    font-size: 0.95rem;
  }

  .countdown-item {
    padding: 0.4rem;
  }

  .countdown-item span {
    font-size: 1.8rem;
  }

  .countdown-item small {
    font-size: 0.9rem;
  }

  .card {
    padding: 1rem;
  }

  .location-name {
    font-size: clamp(1.7rem, 8vw, 2.1rem);
  }

  .map-wrap iframe {
    min-height: 240px;
  }
}
