/* ============================================================
   Hala & Joshua — 26 September 2026
   Cream ground, sage as stroke, white tulips from the invitation.
   Cormorant Garamond (display) over Lora (text).
   ============================================================ */

:root {
  --cream:      #FAF7F0;
  --parchment:  #F2EDE3;
  --white:      #FFFFFF;
  --sage:       #7E9179;
  --sage-soft:  #CFD7C9;
  --sage-hair:  #E1E5DA;
  --deep-sage:  #44543F;
  --ink:        #35342E;
  --ink-soft:   #6A685E;
  --max:        900px;
  --hair:       1px solid var(--sage-hair);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: "Lora", Georgia, serif;
  font-size: 17px;
  line-height: 1.75;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--deep-sage); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sage); }

.skip {
  position: absolute; left: -9999px;
  background: var(--white); color: var(--deep-sage);
  padding: 0.6rem 1rem; border: 1px solid var(--sage);
}
.skip:focus { left: 1rem; top: 1rem; z-index: 10; }

/* ---------- Navigation ---------- */
.nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  padding: 1.4rem clamp(1.25rem, 5vw, 3rem);
  border-bottom: var(--hair);
  background: var(--cream);
}

.nav .wordmark {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--deep-sage);
  text-decoration: none;
  white-space: nowrap;
}
.nav .wordmark em { font-style: italic; color: var(--sage); }

.nav ul { display: flex; gap: clamp(1.1rem, 3vw, 2.2rem); list-style: none; }

.nav a.navlink {
  font-family: "Lora", Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.nav a.navlink:hover,
.nav a.navlink[aria-current="page"] { color: var(--deep-sage); border-bottom-color: var(--sage); }

@media (max-width: 620px) {
  .nav { flex-direction: column; align-items: center; gap: 0.9rem; padding: 1.1rem 1rem 0.9rem; }
  .nav ul { gap: 0; width: 100%; justify-content: space-between; }
  .nav a.navlink { font-size: 0.68rem; letter-spacing: 0.1em; padding: 0.35rem 0.15rem; }
}

/* ---------- Scaffolding ---------- */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.25rem, 5vw, 2rem) 4rem;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}

h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 4rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--deep-sage);
  margin-bottom: 1.1rem;
}

h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 2.2rem);
  line-height: 1.2;
  color: var(--deep-sage);
  margin-bottom: 0.5rem;
}

h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--deep-sage);
  margin: 1.6rem 0 0.2rem;
}

p + p { margin-top: 0.95rem; }

.lede {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 58ch;
}

.page-head { padding-bottom: 0.5rem; }

/* ---------- Divider ---------- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin: clamp(2.75rem, 7vw, 4rem) auto;
  max-width: 340px;
}
.divider .hair { flex: 1; height: 1px; background: var(--sage-hair); }
.divider img { width: 18px; opacity: 0.85; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding-top: clamp(0.5rem, 3vw, 1.5rem); }

.hero-bouquet {
  width: clamp(170px, 38vw, 250px);
  margin: 0 auto clamp(1.5rem, 4vw, 2.25rem);
}

.hero .eyebrow { margin-bottom: 1.2rem; }

.hero .names {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(3rem, 12vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: 0.005em;
  color: var(--deep-sage);
  margin-bottom: 0;
}
.hero .amp { font-style: italic; font-weight: 300; color: var(--sage); font-size: 0.62em; padding: 0 0.12em; }

.hero-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 420px;
  margin: 1.7rem auto 0;
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-date .hair { flex: 1; height: 1px; background: var(--sage-hair); }

.hero .place {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--sage);
  margin-top: 0.6rem;
}

/* ---------- Plate (photographs) ---------- */
.plate {
  background: var(--white);
  border: 1px solid var(--sage-soft);
  padding: 9px;
  margin: 0;
}
.plate img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.02) sepia(0.07);
}

/* ---------- Intro (photo + text) ---------- */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(1.75rem, 5vw, 3rem);
  align-items: center;
  margin-top: clamp(2.75rem, 7vw, 4.25rem);
}
.intro .lede { font-size: 1.2rem; color: var(--ink); }
.intro p:not(.lede):not(.cal-line) { color: var(--ink-soft); }
.cal-line { margin-top: 1.5rem; }

@media (max-width: 700px) {
  .intro { grid-template-columns: 1fr; }
}

/* ---------- Button ---------- */
.btn {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--deep-sage);
  text-decoration: none;
  border: 1px solid var(--sage);
  padding: 0.8rem 1.4rem;
  min-height: 44px;
  transition: background-color 0.2s, color 0.2s;
}
.btn:hover { background: var(--parchment); color: var(--deep-sage); }
.btn:active { background: var(--sage-soft); }

/* ---------- Index list (home) ---------- */
.index-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.idx {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  border-top: 1px solid var(--sage-soft);
  padding-top: 1rem;
  text-decoration: none;
  color: var(--ink-soft);
  transition: border-color 0.2s;
}
.idx:hover { border-top-color: var(--sage); }

.idx-num {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
  color: var(--sage);
}
.idx-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  line-height: 1.15;
  color: var(--deep-sage);
}
.idx-desc { font-size: 0.94rem; line-height: 1.6; }
.idx-go {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: 0.5rem;
}
.idx:hover .idx-go { color: var(--deep-sage); }

@media (max-width: 700px) {
  .index-list { grid-template-columns: 1fr; gap: 1.5rem; }
  .idx { padding-top: 0.85rem; }
}

/* ---------- Panels (notes) ---------- */
.panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.25rem, 3.5vw, 2rem);
  margin-top: clamp(2.75rem, 7vw, 4rem);
}

.panel {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--sage-soft);
  padding: clamp(1.6rem, 4vw, 2.25rem);
  color: var(--ink-soft);
}

.panel-label {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  color: var(--deep-sage);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--sage-hair);
}

.panel b { color: var(--ink); font-weight: 500; }
.panel-note { font-size: 0.93rem; color: var(--ink-soft); }
.panel-more {
  margin-top: 1.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.panel-more a { text-decoration: none; color: var(--sage); }
.panel-more a:hover { color: var(--deep-sage); }

.panel-stem {
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: 96px;
  opacity: 0.14;
  pointer-events: none;
}

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin-top: clamp(2rem, 5vw, 3rem); }

.timeline li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0 clamp(1.25rem, 4vw, 2.25rem);
  padding: 1.5rem 0;
  border-top: 1px solid var(--sage-hair);
}
.timeline li:last-child { border-bottom: 1px solid var(--sage-hair); }

.timeline .time {
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--sage);
  padding-top: 0.35rem;
}

.timeline .what strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 1.85rem);
  line-height: 1.2;
  color: var(--deep-sage);
}
.timeline .what p { color: var(--ink-soft); font-size: 0.99rem; margin-top: 0.4rem; max-width: 52ch; }
.timeline .what b { color: var(--ink); font-weight: 500; }

@media (max-width: 560px) {
  .timeline li { grid-template-columns: 1fr; gap: 0.3rem; padding: 1.25rem 0; }
  .timeline .time { padding-top: 0; font-size: 0.8rem; letter-spacing: 0.18em; }
}

/* ---------- Venue ---------- */
.venue-block {
  border-top: 1px solid var(--sage-soft);
  padding-top: 1.5rem;
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
}

.venue-block address {
  font-style: normal;
  margin: 0.6rem 0 1rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.venue-block > p { color: var(--ink-soft); max-width: 58ch; }

.link-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.5rem 0 1.25rem; }

.w3w {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9rem;
  border: 1px solid var(--sage-hair);
  background: var(--white);
  padding: 0.3rem 0.9rem;
  text-decoration: none;
  color: var(--deep-sage);
  transition: border-color 0.2s, background-color 0.2s;
}
.w3w:hover { border-color: var(--sage); background: var(--parchment); color: var(--deep-sage); }

.map-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--sage-soft);
  margin: 1.25rem 0 0.5rem;
  filter: saturate(0.85);
}

.detail-list { list-style: none; margin-top: 0.6rem; max-width: 58ch; }
.detail-list li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.99rem;
}
.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 8px;
  height: 8px;
  border: 1px solid var(--sage);
  border-radius: 50%;
}
.detail-list b { color: var(--ink); font-weight: 500; }

/* ---------- RSVP ---------- */
.deadline {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--deep-sage);
  border: 1px solid var(--sage);
  padding: 0.65rem 1.2rem;
  margin: 1.5rem 0 0;
}

.form-slot {
  background: var(--white);
  border: 1px solid var(--sage-soft);
  padding: clamp(0.75rem, 3vw, 1.5rem);
  margin-top: 2rem;
}

.gform-frame {
  display: block;
  width: 100%;
  border: 0;
  min-height: 1700px; /* taller than Google's own form, avoids an inner scrollbar */
}

@media (max-width: 480px) {
  .gform-frame { min-height: 1900px; } /* Google stacks fields narrower on small screens */
}

.form-fallback {
  font-size: 0.9rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--sage-hair);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 3.5rem) 1.25rem 3.5rem;
  border-top: 1px solid var(--sage-hair);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.foot-stem { width: 26px; margin: 0 auto 1.1rem; opacity: 0.75; }

footer .foot-names {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  color: var(--deep-sage);
  margin-bottom: 0.35rem;
}
footer .foot-names em { font-style: italic; color: var(--sage); }

.foot-contact { margin-top: 0.9rem; font-size: 0.85rem; }

/* ---------- Motion ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.fade-up.delay-1 { animation-delay: 0.12s; }
.fade-up.delay-2 { animation-delay: 0.24s; }

@keyframes fadeUp { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { animation: none; opacity: 1; transform: none; }
}

:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }

::selection { background: var(--sage-soft); color: var(--deep-sage); }
