/* ============================================
   G & C — August 7, 2027
   Design tokens
   ============================================ */
:root {
  --ivory: #faf6ef;
  --ivory-deep: #f2ebe0;
  --ink: #2b2620;
  --ink-soft: #55503f;
  --forest: #2f3b2e;
  --forest-light: #4a5c47;
  --gold: #a8843f;
  --gold-light: #c9ab72;
  --white: #ffffff;
  --line: rgba(43, 38, 32, 0.14);

  --display: "Bodoni Moda", "Times New Roman", serif;
  --body: "EB Garamond", Georgia, serif;

  --max: 760px;
  --gap: clamp(2.5rem, 6vw, 5rem);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--forest);
  margin: 0;
}

a {
  color: var(--forest);
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-nav .wrap {
  max-width: 1000px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.site-nav .mark {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: var(--forest);
  text-decoration: none;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 2.5vw, 1.9rem);
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--forest);
  border-color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.4rem 0.65rem;
  font-family: var(--body);
  color: var(--forest);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(5rem, 14vw, 8rem) 1.5rem clamp(4rem, 10vw, 6rem);
  text-align: center;
  overflow: hidden;
}

.hero-monogram {
  font-family: var(--display);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
  opacity: 0;
  animation: rise 0.9s ease forwards;
}

.hero h1 {
  font-size: clamp(3rem, 9vw, 5.4rem);
  line-height: 1.05;
  margin: 1.1rem 0;
  opacity: 0;
  animation: rise 0.9s ease 0.15s forwards;
}

.hero h1 .amp {
  display: inline-block;
  font-style: italic;
  color: var(--gold);
  padding: 0 0.15em;
}

.hero-date {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  opacity: 0;
  animation: rise 0.9s ease 0.3s forwards;
}

.hero-place {
  margin-top: 0.4rem;
  color: var(--ink-soft);
  font-style: italic;
  opacity: 0;
  animation: rise 0.9s ease 0.4s forwards;
}

.hero-rule {
  width: 64px;
  height: 1px;
  background: var(--gold);
  margin: 2rem auto 0;
  opacity: 0;
  animation: rise 0.9s ease 0.5s forwards;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.countdown {
  margin-top: 2.4rem;
  display: flex;
  justify-content: center;
  gap: clamp(1.1rem, 4vw, 2.4rem);
  opacity: 0;
  animation: rise 0.9s ease 0.6s forwards;
}

.countdown div {
  text-align: center;
}

.countdown .num {
  font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  color: var(--forest);
  display: block;
}

.countdown .lbl {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Sections ---------- */
section {
  padding: var(--gap) 1.5rem;
  border-top: 1px solid var(--line);
}

.section-head {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-head .kicker {
  display: block;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.section-head h2 {
  font-size: clamp(2rem, 5vw, 2.7rem);
}

.lede {
  max-width: 620px;
  margin: 1.1rem auto 0;
  color: var(--ink-soft);
}

/* ---------- Story timeline ---------- */
.timeline {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2.4rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.6rem;
  align-items: start;
}

.timeline-item .year {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--gold);
  text-align: right;
  padding-top: 0.15rem;
}

.timeline-item .content {
  border-left: 1px solid var(--line);
  padding-left: 1.6rem;
}

.timeline-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.timeline-item p {
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- Gallery ---------- */
.gallery {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.gallery .frame {
  aspect-ratio: 4 / 5;
  background: var(--ivory-deep);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-align: center;
  overflow: hidden;
}

.gallery .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery .frame:nth-child(3n+2) {
  aspect-ratio: 1 / 1;
}

/* ---------- Details / travel ---------- */
.details-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.6rem;
}

.detail-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.8rem 1.6rem;
  text-align: center;
}

.detail-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.detail-card p {
  color: var(--ink-soft);
  margin: 0;
}

.detail-card .icon {
  font-family: var(--display);
  font-style: italic;
  color: var(--gold);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

/* ---------- Registry ---------- */
.registry-body {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  color: var(--ink-soft);
}

.registry-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border: 1px solid var(--forest);
  color: var(--forest);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--forest);
  color: var(--white);
}

.btn.primary {
  background: var(--forest);
  color: var(--white);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  background: var(--forest-light);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.2rem 0;
  font-family: var(--body);
  font-size: 1.05rem;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-q .plus {
  color: var(--gold);
  font-family: var(--display);
  font-size: 1.3rem;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-q .plus {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--ink-soft);
}

.faq-a p {
  margin: 0 0 1.2rem;
}

/* ---------- RSVP ---------- */
.rsvp-form {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 1.3rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field select,
.field textarea {
  font-family: var(--body);
  font-size: 1rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

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

.radio-row {
  display: flex;
  gap: 1.6rem;
}

.radio-row label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-size: 1rem;
}

.rsvp-submit {
  justify-self: start;
  cursor: pointer;
  background: var(--forest);
  color: var(--white);
  border: 1px solid var(--forest);
  padding: 0.8rem 2rem;
  font-family: var(--body);
  font-size: 1rem;
  letter-spacing: 0.03em;
  margin-top: 0.4rem;
  transition: background 0.2s ease;
}

.rsvp-submit:hover,
.rsvp-submit:focus-visible {
  background: var(--forest-light);
}

.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.rsvp-confirm {
  display: none;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 1px solid var(--gold-light);
  background: var(--ivory-deep);
}

.rsvp-confirm.show {
  display: block;
}

.rsvp-confirm h3 {
  margin-bottom: 0.5rem;
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 3rem 1.5rem 4rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

footer .mark {
  display: block;
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--forest);
  margin-bottom: 0.6rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .site-nav ul {
    display: none;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-item {
    grid-template-columns: 70px 1fr;
  }

  .radio-row {
    gap: 1rem;
  }
}

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