/* ABOUTME: Main stylesheet for the wedding website.
   ABOUTME: Contains all styles for layout, typography, and the growing vine animation. */

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

body {
  min-height: 100vh;
  background: linear-gradient(
    180deg,
    #fdf8f5 0%,
    #fef6f0 50%,
    #f8f4f1 100%
  );
  font-family: "Lora", serif;
  color: #5a5a5a;
  position: relative;
  overflow-x: hidden;
}

/* Main content */
main {
  text-align: center;
  padding: 2rem;
  z-index: 1;
  position: relative;
}

/* Hero section */
.hero {
  min-height: auto;
  padding: 3rem 0 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Decorative flower */
.flower {
  margin-bottom: 1.5rem;
}

.flower svg {
  width: 60px;
  height: 60px;
}

h1 {
  font-family: "Alex Brush", cursive;
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 400;
  color: #d4a5a5;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

h1 .name {
  display: inline-block;
  opacity: 0;
}

h1 .name-first {
  transform: translateX(-50px) translateY(-0.15em);
}

h1 .name-second {
  transform: translateX(50px) translateY(0.15em);
}

.ampersand {
  font-style: italic;
  color: #c9b8a8;
  display: inline;
  font-size: 0.8em;
  margin: 0 0.3em;
  opacity: 0;
}

h2 {
  font-family: "Lora", serif;
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-weight: 400;
  color: #8fbc8f;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 1.5rem;
}

/* Decorative line */
.divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d4a5a5, transparent);
  margin: 2rem auto;
}

/* Venue address */
.venue {
  font-style: normal;
  margin-top: 1.5rem;
  line-height: 1.6;
  color: #6a6a6a;
  font-size: 0.95rem;
}

.venue strong {
  color: #5a5a5a;
  font-weight: 500;
}

.venue-figure {
  margin: 1.5rem 0 0;
}

.venue-map-link {
  display: inline-block;
  transition: transform 0.3s ease;
}

.venue-map-link:hover {
  transform: scale(1.02);
}

.venue-map {
  max-width: 400px;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  display: block;
}

.venue-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-style: italic;
  color: #8a8a8a;
}

/* Leaf decorations */
.leaf-decoration {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  opacity: 0.7;
}

.leaf {
  width: 24px;
  height: 24px;
  fill: #a8c9a8;
}

/* Action items */
.actions {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
}

.action-item {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.action-item h3 {
  font-family: "Alex Brush", cursive;
  font-size: 2rem;
  color: #d4a5a5;
  margin-bottom: 0.75rem;
}

.action-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #6a6a6a;
  margin-bottom: 1rem;
}

.action-item .password {
  display: inline-block;
  background: #f8f4f1;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9rem;
  color: #8fbc8f;
  border: 1px dashed #a8c9a8;
}

.action-item .btn {
  display: inline-block;
  background: linear-gradient(135deg, #d4a5a5, #e8b4b4);
  color: white;
  text-decoration: none;
  padding: 0.75rem 2rem;
  border-radius: 30px;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 165, 165, 0.3);
}

.action-item .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 165, 165, 0.4);
}

/* Content sections */
.section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

.section-content {
  max-width: 600px;
  text-align: center;
}

.section h3 {
  font-family: "Alex Brush", cursive;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 400;
  color: #d4a5a5;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.section p {
  font-size: 1rem;
  line-height: 1.8;
  color: #6a6a6a;
  margin-bottom: 1rem;
}

/* Growing flower vine */
.growing-vine {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.7;
}

.vine-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.vine-path {
  stroke-dasharray: 1100;
  stroke-dashoffset: 1100;
  transition: stroke-dashoffset 0.1s ease-out;
}

.vine-flower {
  position: absolute;
  transform: scale(0);
  transform-origin: center center;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.vine-flower.bloomed {
  transform: scale(1);
}

.vine-leaf {
  position: absolute;
  width: 28px;
  height: 16px;
  pointer-events: none;
  transform: scale(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vine-leaf.grown {
  transform: scale(1);
}

.vine-leaf svg {
  width: 100%;
  height: 100%;
}
