/* ============================================================
   Harsh & Drshika's Engagement Tour — shared styles
   Fonts:  Shippori Mincho (headings) · Gilda Display (body serif) · Cutive Mono (labels/buttons)
   ============================================================ */

:root {
  --color-sky: #82bad1;
  --color-green: #83a588;
  --color-peach: #fcceb9;
  --color-maroon: #6c2222;
  --color-maroon-line: #6c2222;

  --font-heading: "Shippori Mincho", serif;
  --font-body: "Gilda Display", serif;
  --font-mono: "Cutive Mono", monospace;

  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-maroon);
  font-family: var(--font-body);
  background: var(--color-sky);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 2.2rem;
  letter-spacing: 0.1em;
  color: var(--color-maroon);
  background: var(--color-peach);
  border: 4px solid var(--color-maroon);
  border-radius: 8px;
  padding: 0.6em 2em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 0 var(--color-maroon);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ---------- Decorative illustrations ---------- */

.deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* ---------- Section base ---------- */

.section {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.section--sky {
  background: var(--color-sky);
}

.section--green {
  background: var(--color-green);
  border-top: 5px solid var(--color-maroon-line);
}

.section-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   HOME PAGE
   ============================================================ */

.hero {
  padding: 6vw 0 2vw;
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  width: 100%;
  max-width: 90vw;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 1.15;
  margin: 0 0 2rem;
  white-space: nowrap;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.flower--hero-tl { top: -2%; left: -2%; width: 14%; min-width: 100px; }

.cloud {
  width: 17%;
  min-width: 140px;
}

.cloud--tl {
  top: -2%;
  left: 0%;
  right: auto;
}

.cloud--tr-s {
  top: 2%;
  right: 2%;
  left: auto;
  width: 9%;
  min-width: 90px;
}

.cloud--l2 {
  top: 40%;
  left: 2%;
  right: auto;
}

.cloud--br {
  top: 55%;
  right: -2%;
  left: auto;
  width: 20%;
}

/* Events */

.events {
  padding: 5rem 0 3rem;
}

.event {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 4.5rem;
  position: relative;
  z-index: 2;
}

.event:last-of-type {
  margin-bottom: 3rem;
}

.event-date {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0 0 0.35em;
}

.event-subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  margin: -0.2em 0 0.8em;
  opacity: 0.9;
}

.event-location {
  font-family: var(--font-body);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin: 0 0 1.4em;
}

/* Flowers scattered around the green section */

.flower--top-left {
  top: 1%;
  left: 1%;
  width: 11%;
  min-width: 90px;
}

.flower--tl-yellow {
  top: calc(1% + 12vw + 1rem);
  left: 2%;
  width: 8%;
  min-width: 70px;
}

.flower--bl-1 {
  top: 74%;
  left: -1%;
  width: 12%;
  min-width: 100px;
}

.flower--bl-2 {
  top: 88%;
  left: 0%;
  width: 10%;
  min-width: 85px;
}

.flower--bl-yellow {
  top: 84%;
  left: 8%;
  width: 9%;
  min-width: 80px;
}

.flower--right-1 {
  top: 37%;
  right: 2%;
  width: 10%;
  min-width: 90px;
}

.flower--right-2 {
  top: 48%;
  right: 5%;
  width: 9%;
  min-width: 80px;
}

.flower--right-yellow {
  top: 46%;
  right: -1%;
  width: 7%;
  min-width: 65px;
}

/* Couple illustration + hearts */

.couple-wrap {
  position: relative;
  max-width: 620px;
  margin: 2rem auto 0;
}

.heart {
  width: 3%;
  min-width: 26px;
}

.heart--1 {
  top: 58%;
  left: 71%;
}

.heart--2 {
  top: 66%;
  left: 73%;
}

.heart--3 {
  top: 60%;
  left: 25%;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  text-align: center;
  padding: 1rem 1.5rem 3rem;
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--color-maroon);
  letter-spacing: 0.05em;
}

body.home .site-footer {
  background: var(--color-green);
}

body.story .site-footer,
body.guestbook .site-footer {
  background: var(--color-sky);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-decoration: none;
  border-bottom: 2px solid var(--color-maroon);
  transition: opacity 0.2s ease;
}

.site-footer a:hover {
  opacity: 0.6;
}

/* ============================================================
   STORY PAGE
   ============================================================ */

.story-header {
  text-align: center;
  padding: 4rem 0 3rem;
}

.story-header .btn {
  margin-bottom: 2.5rem;
}

.story-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 5.5rem);
  margin: 0 0 0.1em;
}

.story-subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(2rem, 5vw, 4.2rem);
  margin: 0;
  line-height: 1.1;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 4rem;
}

.beat {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.beat-text {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  line-height: 1.3;
  margin: 0 auto 2rem;
  border: none;
  background: radial-gradient(ellipse at center, rgba(130, 186, 209, 0.9) 50%, transparent 75%);
  padding: 3rem 6rem;
  width: fit-content;
  font-weight: bold;
}

.beat-index {
  opacity: 1;
}

.beat-photo {
  border: 4px solid var(--color-maroon);
  border-radius: 6px;
  overflow: hidden;
  max-width: 900px;
  width: 90vw;
  aspect-ratio: 16 / 10;
  margin: 0 auto 3.5rem;
}

.beat-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.beat-photo--empty {
  aspect-ratio: 16 / 10;
  background: transparent;
}

.beat-arrow {
  display: block;
  margin: 0 auto 3.5rem;
  height: 90px;
  width: auto;
}

.story-end {
  text-align: center;
  padding: 1rem 0 5rem;
}

.story-end .nullptr {
  display: block;
  font-family: var(--font-mono);
  color: var(--color-maroon);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 2;
  letter-spacing: 0.15em;
  word-spacing: 0.3em;
  margin: 0 0 3.5rem;
}

/* clouds reused on story page */
.cloud-s--tl {
  top: 0;
  left: 0;
  width: 18%;
  min-width: 140px;
}

.cloud-s--tr2 {
  top: 25vh;
  right: 0;
  width: 8%;
  min-width: 70px;
}

.cloud-s--l2 {
  top: 60vh;
  left: 0;
  width: 15%;
  min-width: 110px;
}

.cloud-s--br {
  top: 40vh;
  right: 0;
  width: 18%;
  min-width: 150px;
}

.cloud-s--bl {
  bottom: 0;
  left: 0;
  width: 18%;
  min-width: 140px;
}

.cloud-s--tr1 {
  top: 2%;
  right: 12%;
  width: 9%;
  min-width: 90px;
}

.cloud-s--bm {
  bottom: 6%;
  left: 40%;
  width: 9%;
  min-width: 90px;
}

.cloud-s--br2 {
  bottom: 20vh;
  right: 0;
  width: 8%;
  min-width: 70px;
}

.cloud-s--br3 {
  bottom: 0;
  right: 0;
  width: 18%;
  min-width: 150px;
}

/* ============================================================
   GUESTBOOK PAGE
   ============================================================ */

.guestbook {
  padding-bottom: 3rem;
}

.guestbook-header {
  text-align: center;
  padding: 4rem 0 3rem;
}

.guestbook-header .btn {
  margin-bottom: 2.5rem;
}

.guestbook-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 0.2em;
}

.guestbook-subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
  margin: 0 0 1.5rem;
  line-height: 1.25;
}

.guestbook--thanks .guestbook-header {
  padding-bottom: 6rem;
}

.guestbook .cloud--br {
  top: 30%;
  width: 25%;
  transform: scaleY(-1);
}

/* Form */

.guestbook-form {
  max-width: 560px;
  margin: 0 auto 5rem;
  padding: 2.5rem 2.5rem 2.5rem;
  background: var(--color-peach);
  border: 3px solid var(--color-maroon);
  border-radius: 18px;
  position: relative;
  z-index: 2;
}

.form-row {
  margin-bottom: 2rem;
  text-align: left;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.6em;
}

.form-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--color-maroon);
  background: #fff8f0;
  border: 3px solid var(--color-maroon);
  border-radius: 10px;
  padding: 0.8em 1em;
}

.form-input::placeholder {
  color: var(--color-maroon);
  opacity: 0.4;
}

.form-input:focus {
  outline: 2px solid var(--color-maroon);
  outline-offset: 2px;
}

.form-textarea {
  resize: vertical;
  min-height: 8em;
}

.guestbook-form .btn {
  display: flex;
  width: 100%;
  margin-top: 0.5rem;
  font-size: 1.15rem;
  border: 3px solid var(--color-maroon);
  border-radius: 12px;
}

.form-status {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  text-align: center;
  min-height: 1.4em;
  margin: 1rem 0 0;
}

/* Netlify honeypot field, hidden from real people */

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Entries */

.guestbook-entries {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 3rem;
}

.entries-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0 0 2rem;
}

.entries-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  text-align: left;
}

.entry {
  position: relative;
  background: var(--color-peach);
  border: 2px solid var(--color-maroon);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.entry-flower {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 50px;
  height: auto;
  z-index: 1;
}

.entry-message {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.55;
  margin: 0 0 0.6em;
}

.entry-name {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  text-align: right;
  opacity: 0.85;
  margin: 0;
}

.entries-empty {
  font-family: var(--font-mono);
  font-size: 1rem;
  opacity: 0.8;
}

.heart--gb-1 { top: -6%;  left: 6%;  width: 3.5%; min-width: 28px; }
.heart--gb-2 { top: -3%;  right: 8%; width: 3%;   min-width: 24px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 640px) {
  .hero {
    padding: 10vw 0 4vw;
    min-height: auto;
  }

  .hero-inner {
    max-width: 90vw;
  }

  .btn {
    font-size: 1.3rem;
    padding: 0.8em 2em;
  }

  .cloud {
    min-width: 60px;
  }

  .flower--right-yellow {
    width: 10vw;
    min-width: 40px;
  }

  .cloud--tr-s {
    display: block;
    top: -2%;
    right: -2%;
  }

  .events {
    padding-top: 5rem;
  }

  .event {
    margin-bottom: 4rem;
  }

  .flower--bl-1,
  .flower--bl-2,
  .flower--bl-yellow,
  .flower--right-1,
  .flower--right-2 {
    width: 14vw;
    min-width: 50px;
  }

  .flower--tl-yellow {
    width: 10vw;
    min-width: 40px;
    top: calc(1% + 10vw + 1rem);
    left: 2%;
  }

  .heart {
    min-width: 16px;
  }

  .beat-text {
    padding: 2.5rem 3rem;
    background: radial-gradient(ellipse closest-side, rgba(130, 186, 209, 0.9) 60%, transparent 100%);
  }

  .guestbook-form { margin-left: 1rem; margin-right: 1rem; padding: 1.5rem; }
  .heart--gb-1, .heart--gb-2 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}