/* The Grays — wedding site v1
   Elegant, timeless: ivory/cream, soft sage, muted gold.
   Works fully with JavaScript disabled. */

:root {
  --ivory: #faf6ef;
  --cream: #f4eee1;
  --ink: #3e3a34;
  --ink-soft: #6b6459;
  --copper: #8a5a34;
  --copper-deep: #6f4526;
  --copper-soft: #c8a173;
  --sage: #7a8b6f;
  --sage-deep: #5c6b54;
  --sage-pale: #e9ede2;
  --gold: #b8935a;
  --gold-soft: #d9c193;
  --line: #e4dccb;
  --card: #fffdf8;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --script: "Pinyon Script", "Cormorant Garamond", cursive;
  --sans: "Jost", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--sage-deep); }
a:hover { color: var(--gold); }

/* ---------- layout ---------- */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

section.block { padding: 72px 0; }
section.block.tight { padding: 48px 0; }

/* ---------- header / nav ---------- */
.site-header {
  background: rgba(250, 247, 240, 0.97);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.wordmark {
  font-family: var(--script);
  font-size: 34px;
  color: var(--copper-deep);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.wordmark span { color: var(--copper); }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 1px;
  padding: 6px 2px;
}
.main-nav a:hover { color: var(--copper); }
.main-nav a.active {
  color: var(--copper-deep);
  border-bottom: 2px solid var(--copper-soft);
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 34px;
  border: 1px solid var(--copper);
  color: var(--copper-deep);
  background: transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.btn:hover { background: var(--copper); color: #fff; }

.btn.solid {
  background: var(--copper);
  color: #fff;
  border-color: var(--copper);
}
.btn.solid:hover { background: var(--copper-deep); border-color: var(--copper-deep); }

.btn.gold {
  border-color: var(--copper);
  color: #fff;
  background: var(--copper);
}
.btn.gold:hover { background: var(--copper-deep); border-color: var(--copper-deep); color: #fff; }

/* ---------- hero ---------- */
.hero {
  text-align: center;
  padding: 84px 24px 72px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--sage-pale) 0%, transparent 70%),
    var(--ivory);
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}

.hero h1 {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(52px, 9vw, 96px);
  line-height: 1.1;
  margin: 0 0 10px;
  color: var(--copper-deep);
}

.hero .amp {
  font-style: normal;
}

.hero-names {
  font-family: var(--script);
  font-size: clamp(34px, 5vw, 48px);
  color: var(--copper);
  margin: 0 0 6px;
}

/* ---------- photo filmstrip marquee (CSS-only, seamless loop) ---------- */
.hero-marquee {
  position: relative;
  overflow: hidden;
  max-width: 1400px;
  margin: 34px auto 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-drift 110s linear infinite;
}

.marquee-track img {
  height: clamp(320px, 52vw, 560px);
  width: auto;
  object-fit: cover;
  flex: 0 0 auto;
}

@keyframes marquee-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

.marquee-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: radial-gradient(ellipse 46% 60% at 50% 50%, rgba(62, 38, 20, 0.42) 0%, transparent 70%);
}

.marquee-overlay .script-title {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(56px, 10vw, 110px);
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-date {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 2px;
  color: var(--copper-deep);
  margin: 14px 0 4px;
}

.hero-place {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--ink-soft);
  margin: 0 0 30px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 320px;
  margin: 34px auto;
  color: var(--gold-soft);
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--gold-soft);
}
.divider .leaf { font-size: 18px; }

/* live countdown (progressive enhancement: hidden until JS fills it) */
.countdown-live { margin: 26px 0 8px; }
.countdown-live[hidden] { display: none; }

.countdown-units {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.count-unit {
  min-width: 86px;
  padding: 14px 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.count-unit .num {
  font-family: var(--serif);
  font-size: 38px;
  color: var(--copper-deep);
  line-height: 1;
}
.count-unit .lbl {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 6px;
}

.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
}

/* ---------- headings ---------- */
.page-title {
  text-align: center;
  padding: 64px 24px 8px;
}
.page-title h1 {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 72px);
  color: var(--copper-deep);
  margin: 0 0 8px;
}
.page-title .sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--ink-soft);
  margin: 0;
}

h2.section-heading {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 54px);
  color: var(--copper-deep);
  text-align: center;
  margin: 0 0 12px;
}
.center-sub {
  text-align: center;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 40px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
}

/* ---------- cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 38px 34px;
  text-align: center;
  box-shadow: 0 2px 14px rgba(122, 139, 111, 0.08);
}

.card .card-kicker {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}
.card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
  margin: 0 0 6px;
}
.card .time {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--sage-deep);
  margin: 0 0 14px;
}
.card address {
  font-style: normal;
  color: var(--ink-soft);
  margin: 0 0 22px;
  line-height: 1.6;
}
.card .card-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.card .card-links .btn { padding: 10px 22px; font-size: 12px; }

/* ---------- placeholder / coming soon ---------- */
.coming-soon {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  padding: 30px 24px 10px;
}
.coming-soon .ornament {
  font-family: var(--serif);
  font-size: 44px;
  color: var(--gold-soft);
  margin-bottom: 12px;
}
.coming-soon h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 10px;
}
.coming-soon p {
  color: var(--ink-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
}

/* ---------- chapel illustration: gentle breeze on the garden (CSS only) ----------
   The four plants are separate transparent layers over the pixel-aligned
   base. Each sways on its own slow timing so it reads as a real breeze.
   No JavaScript. */
.chapel-anim {
  position: relative;
  aspect-ratio: 1264 / 842;
  max-width: 880px;
  margin: 8px auto 48px;
}
.chapel-base {
  display: block;
  width: 100%;
  height: 100%;
}
.breeze {
  position: absolute;
  animation: breeze-sway 6s ease-in-out infinite;
}
.breeze.b1 {
  left: 7.4%; top: 47.9%; width: 16.2%; height: 33.9%;
  transform-origin: 50% 100%;
  animation-duration: 6.4s;
}
.breeze.b2 {
  left: 76.3%; top: 50.5%; width: 16.3%; height: 31.4%;
  transform-origin: 50% 100%;
  animation-duration: 7.7s;
  animation-delay: -2.4s;
}
.breeze.b3 {
  left: 36.3%; top: 72.2%; width: 10.6%; height: 18.6%;
  transform-origin: 50% 90%;
  animation-duration: 5.5s;
  animation-delay: -1.1s;
}
.breeze.b4 {
  left: 51.2%; top: 71.2%; width: 12.4%; height: 19.7%;
  transform-origin: 50% 90%;
  animation-duration: 6.9s;
  animation-delay: -3.3s;
}
@keyframes breeze-sway {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  30% { transform: translateX(2.5px) rotate(0.5deg); }
  55% { transform: translateX(-2px) rotate(-0.35deg); }
  80% { transform: translateX(1.5px) rotate(0.2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .breeze { animation: none; }
}

/* ---------- two watercolor doves gliding across the chapel sky ----------
   Opposite directions, same 34s cycle, staggered 17s apart so they never
   share the sky. Crossing takes ~12s, then each rests off-screen.
   Pure CSS, no JavaScript. */
.bird {
  position: absolute;
  opacity: 0;
}
.bird img {
  display: block;
  width: 100%;
  height: auto;
  animation: bird-bob 4.6s ease-in-out infinite;
}
.bird.b1 {
  top: 12%;
  width: 56px;
  animation: glide-r 34s linear infinite;
}
.bird.b2 {
  top: 24%;
  width: 46px;
  transform: scaleX(-1); /* face left for the return flight */
  animation: glide-l 34s linear infinite;
  animation-delay: 17s;
}
.bird.b2 img { animation-delay: -2.3s; }
@keyframes glide-r {
  0% { left: -12%; opacity: 0; }
  6% { opacity: 0.9; }
  35% { left: 104%; opacity: 0.9; }
  43%, 100% { left: 104%; opacity: 0; }
}
@keyframes glide-l {
  0% { right: -12%; opacity: 0; }
  6% { opacity: 0.9; }
  35% { right: 104%; opacity: 0.9; }
  43%, 100% { right: 104%; opacity: 0; }
}
@keyframes bird-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@media (prefers-reduced-motion: reduce) {
  .bird, .bird img { animation: none; }
}

/* ---------- photo grid (real photos) ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.photo-grid figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 2px 14px rgba(138, 90, 52, 0.08);
}
.photo-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ---------- faq structure ---------- */
.faq-list { max-width: 720px; margin: 30px auto 0; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 4px;
}
.faq-item .q {
  font-family: var(--serif);
  font-size: 22px;
  margin: 0 0 6px;
}
.faq-item .a { color: var(--ink-soft); margin: 0; }

/* ---------- forms ---------- */
.form-wrap {
  max-width: 620px;
  margin: 20px auto 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 40px 36px;
  box-shadow: 0 2px 14px rgba(122, 139, 111, 0.08);
}

.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 12px 14px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--sage);
  border-color: var(--sage);
}

.radio-row { display: flex; gap: 26px; flex-wrap: wrap; }
.radio-row label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  cursor: pointer;
}
.radio-row input[type="radio"] {
  width: 18px; height: 18px;
  accent-color: var(--copper);
}

/* Segmented Yes / No buttons: real radios, styled as toggle buttons.
   Works with keyboard, screen readers, and JavaScript disabled. */
.radio-row.segmented { gap: 0; }
.radio-row.segmented label {
  margin: 0;
  padding: 0;
}
.radio-row.segmented input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.radio-row.segmented .choice {
  display: inline-block;
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 44px;
  border: 1px solid var(--copper);
  color: var(--copper-deep);
  background: var(--card);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.radio-row.segmented label:first-child .choice {
  border-radius: 3px 0 0 3px;
  border-right: none;
}
.radio-row.segmented label:last-child .choice {
  border-radius: 0 3px 3px 0;
}
.radio-row.segmented input[type="radio"]:checked + .choice {
  background: var(--copper);
  color: #fff;
}
.radio-row.segmented input[type="radio"]:focus-visible + .choice {
  outline: 2px solid var(--copper-deep);
  outline-offset: 2px;
}

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

.form-note {
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 18px;
}

/* ---------- RSVP page: blurred photo backdrop, big cards, motion ---------- */
.rsvp-bg {
  position: fixed;
  inset: -24px;
  z-index: -1;
  background: url("/photos/photo-7.jpg") center 30% / cover no-repeat;
  filter: blur(16px) saturate(0.9) brightness(1.04);
  animation: rsvp-bg-breathe 36s ease-in-out infinite alternate;
}
.rsvp-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(250, 246, 239, 0.84);
}
@keyframes rsvp-bg-breathe {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}

.rsvp-page .page-title h1 { text-shadow: 0 1px 0 rgba(255,255,255,.6); }

.rsvp-page .form-wrap {
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(4px);
  box-shadow: 0 12px 44px rgba(111, 69, 38, 0.16);
}

/* staggered entrance, pure CSS */
.rsvp-page .form-wrap .field,
.rsvp-page .form-wrap button[type="submit"],
.rsvp-page .form-wrap .form-note {
  animation: rsvp-rise 0.7s ease both;
}
.rsvp-page .form-wrap .field:nth-of-type(1) { animation-delay: 0.05s; }
.rsvp-page .form-wrap .field:nth-of-type(2) { animation-delay: 0.13s; }
.rsvp-page .form-wrap .field:nth-of-type(3) { animation-delay: 0.21s; }
.rsvp-page .form-wrap .field:nth-of-type(4) { animation-delay: 0.29s; }
.rsvp-page .form-wrap .field:nth-of-type(5) { animation-delay: 0.37s; }
.rsvp-page .form-wrap .field:nth-of-type(6) { animation-delay: 0.45s; }
.rsvp-page .form-wrap button[type="submit"] { animation-delay: 0.55s; }
.rsvp-page .form-wrap .form-note { animation-delay: 0.62s; }
@keyframes rsvp-rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* big meal cards */
.meal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.meal-cards label { margin: 0; cursor: pointer; }
.meal-cards input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.meal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  text-align: center;
  transition: transform 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
  height: 100%;
}
.meal-card:hover {
  transform: translateY(-2px);
  border-color: var(--copper-soft);
  box-shadow: 0 6px 18px rgba(111, 69, 38, 0.12);
}
.meal-card .meal-name {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--ink);
}
.meal-card .meal-sub {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.meal-cards input[type="radio"]:checked + .meal-card {
  background: var(--copper);
  border-color: var(--copper-deep);
  box-shadow: 0 8px 22px rgba(111, 69, 38, 0.28);
  transform: translateY(-2px);
}
.meal-cards input[type="radio"]:checked + .meal-card .meal-name,
.meal-cards input[type="radio"]:checked + .meal-card .meal-sub {
  color: #fff;
}
.meal-cards input[type="radio"]:focus-visible + .meal-card {
  outline: 2px solid var(--copper-deep);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .rsvp-bg { animation: none; }
  .rsvp-page .form-wrap .field,
  .rsvp-page .form-wrap button[type="submit"],
  .rsvp-page .form-wrap .form-note { animation: none; }
}

/* ---------- thank you ---------- */
.thanks {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 24px;
}
.thanks h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 6vw, 54px);
  margin: 0 0 12px;
}
.thanks p { color: var(--ink-soft); font-size: 18px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--cream);
  margin-top: 40px;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 44px 24px 36px;
  text-align: center;
}
.footer-wordmark {
  font-family: var(--script);
  font-size: 40px;
  color: var(--copper-deep);
  margin: 0 0 6px;
  line-height: 1.2;
}
.footer-wordmark span { color: var(--copper); }
.footer-tag {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 20px;
}
.footer-nav ul {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  justify-content: center;
}
.footer-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.footer-nav a:hover { color: var(--sage-deep); }
.footer-contact {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}
.footer-contact a { color: var(--sage-deep); }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .header-inner { flex-direction: column; gap: 10px; padding: 12px 16px; }
  .main-nav ul { gap: 2px 14px; justify-content: center; }
  .main-nav a { font-size: 12px; }
  section.block { padding: 52px 0; }
  .hero { padding: 60px 18px 54px; }
  .form-wrap { padding: 28px 22px; }
  .count-unit { min-width: 70px; }
  .count-unit .num { font-size: 30px; }
}
