@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,500&family=Tangerine:wght@700&display=swap");

:root {
  --green: #505911;
  --green-deep: #3f470d;
  --cream: #efe3ce;
  --paper: #fffdf9;
  --ink: #3a3a2f;
  --max: 600px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: #e7e4d8;
  color: var(--green);
  font-family: "Cormorant Garamond", "Georgia", serif;
  -webkit-font-smoothing: antialiased;
}

.invitation {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.15);
}

@media (min-width: 640px) {
  body {
    padding: 40px 16px;
  }
}

img {
  display: block;
  width: 100%;
  height: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
}

.hero img {
  width: 100%;
}

/* ---------- Sections ---------- */
section {
  position: relative;
  padding: 64px 32px;
  text-align: center;
}

.divider-icon {
  width: 56px;
  height: auto;
  margin: 0 auto 40px;
  color: var(--green);
}

.divider-icon.small {
  width: 40px;
  margin-bottom: 0;
}

/* Monogram flourish */
.monogram {
  position: absolute;
  top: -0.15em;
  font-family: "Tangerine", cursive;
  font-size: clamp(9rem, 40vw, 13rem);
  color: var(--green);
  opacity: 0.16;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.monogram--left {
  left: -0.05em;
}

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

section > * {
  position: relative;
  z-index: 1;
}

/* ---------- Quote ---------- */
.quote {
  padding-top: 88px;
  padding-bottom: 24px;
}

.quote p {
  font-size: 1.5rem;
  line-height: 1.5;
  font-weight: 500;
  max-width: 30ch;
  margin: 0 auto;
}

/* ---------- Framed photo ---------- */
.framed-photo {
  padding: 0 32px 64px;
}

.framed-photo__frame {
  background: var(--green);
  padding: 24px;
  display: inline-block;
  width: 100%;
}

.framed-photo img {
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ---------- Full-bleed banner photos ---------- */
.banner-photo {
  padding: 0;
}

/* ---------- Ceremony ---------- */
.ceremony {
  padding-top: 96px;
}

.eyebrow-icon {
  width: 64px;
  margin: 0 auto 20px;
  color: var(--green);
}

h2.section-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 32px;
}

.venue-name {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 6px;
}

.venue-address {
  font-size: 1.25rem;
  line-height: 1.5;
  margin: 0 0 20px;
}

.map-link {
  display: inline-block;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid var(--green);
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}

.map-link:hover {
  opacity: 0.6;
}

/* ---------- Date & time ---------- */
.datetime {
  padding-top: 56px;
  padding-bottom: 96px;
}

.pill-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 56px;
}

.pill {
  border: 1.5px solid var(--green);
  padding: 14px clamp(16px, 6vw, 32px);
  font-size: clamp(1.15rem, 5.5vw, 1.7rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  max-width: 100%;
}

.pill sup {
  font-size: 0.55em;
  letter-spacing: 0.06em;
}

.dress-code {
  font-size: 1.35rem;
  line-height: 1.7;
}

.dress-code strong {
  font-weight: 600;
}

/* ---------- RSVP ---------- */
.rsvp {
  padding-top: 80px;
  background: var(--cream);
}

.rsvp p.rsvp-intro {
  font-size: 1.2rem;
  line-height: 1.5;
  margin: 0 0 32px;
}

#rsvp-greeting {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 1.7rem;
  margin: 0 0 4px;
}

#rsvp-passes-note {
  font-size: 1.05rem;
  margin: 0 0 28px;
  min-height: 1.3em;
}

.rsvp-form {
  text-align: left;
  max-width: 380px;
  margin: 0 auto;
}

.rsvp-field {
  margin-bottom: 22px;
}

.rsvp-field label.rsvp-label {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.rsvp-field input[type="text"],
.rsvp-field input[type="number"],
.rsvp-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1.1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(80, 89, 17, 0.4);
  padding: 10px 12px;
  border-radius: 2px;
}

.rsvp-field input[readonly] {
  background: rgba(80, 89, 17, 0.06);
  color: var(--green);
}

.rsvp-field textarea {
  resize: vertical;
  min-height: 72px;
}

.rsvp-radio-row {
  display: flex;
  gap: 24px;
}

.rsvp-radio-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  cursor: pointer;
}

.rsvp-radio-row input[type="radio"] {
  accent-color: var(--green);
  width: 18px;
  height: 18px;
}

#rsvp-count-wrap {
  display: none;
}

.rsvp-submit {
  display: block;
  width: 100%;
  border: 1.5px solid var(--green);
  background: var(--green);
  color: var(--paper);
  font-family: inherit;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 20px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.rsvp-submit:hover:not(:disabled) {
  background: var(--paper);
  color: var(--green);
}

.rsvp-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.rsvp-success {
  max-width: 380px;
  margin: 0 auto;
  font-size: 1.25rem;
  line-height: 1.6;
}

.rsvp-success strong {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 8px;
}

/* ---------- Gifts ---------- */
.gifts {
  padding-top: 72px;
  padding-bottom: 72px;
}

.gifts a.registry-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 1.15rem;
  color: var(--green);
  word-break: break-word;
  text-decoration: none;
  border-bottom: 1px solid rgba(80, 89, 17, 0.4);
}

.gifts a.registry-link:hover {
  border-bottom-color: var(--green);
}

/* ---------- Closing ---------- */
.closing {
  padding-top: 24px;
  padding-bottom: 88px;
}

.closing .divider-icon {
  margin-bottom: 0;
  width: 64px;
}

/* ---------- Music toggle ---------- */
.music-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(80, 89, 17, 0.3);
  background: var(--paper);
  color: var(--green);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  padding: 0;
}

.music-toggle svg {
  width: 20px;
  height: 20px;
}

.music-toggle .music-toggle__bars {
  display: none;
}

.music-toggle.is-playing .music-toggle__note {
  display: none;
}

.music-toggle.is-playing .music-toggle__bars {
  display: block;
}

.music-toggle.is-playing {
  animation: music-pulse 1.6s ease-in-out infinite;
}

@keyframes music-pulse {
  0%, 100% { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18); }
  50% { box-shadow: 0 2px 16px rgba(80, 89, 17, 0.45); }
}
