:root {
  --ink: #111;
  --ink-soft: #333;
  --paper: #f7f5f3;
  --accent: #c2b59b;
  /* warm neutral */
}

* {
  box-sizing: border-box
}



html,
body {
    margin: 0;
    padding: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: 'Cormorant Garamond', serif;
    font-size: large;
}

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

.caps {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600
}

.subcaps {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(140%) blur(6px);
  background: rgba(247, 245, 243, 0.65);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 1rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  margin: 0 .6rem
}

.site-nav .brand {
  font-weight: 700;
  letter-spacing: .2em
}



/* --- Mobile nav (burger) --- */
.nav-toggle {
    appearance: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: .4rem;
    line-height: 0;
    display: none; /* hidden on desktop */
   
}

/* Keep links nicely tappable inside the dropdown */
.site-nav nav a {
    text-decoration: none;
}
.site-nav .nav-toggle svg path {
    stroke: var(--ink-soft)
}

/* Mobile breakpoint */
@media (max-width: 768px) {
    .nav-toggle { /* show the burger on mobile */
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Make header a positioned container so the dropdown anchors to it */
    .site-nav {
        position: sticky;
        top: 0;
    }

        /* Turn the inline nav into a dropdown panel */
        .site-nav nav {
            position: absolute;
            top: 100%; /* directly under the header */
            left: 0;
            right: 0;
            display: none; /* hidden until opened */
            flex-direction: column;
            background: rgba(247, 245, 243, 0.98);
            backdrop-filter: saturate(140%) blur(6px);
            border-bottom: 1px solid rgba(0,0,0,.06);
            padding: .75rem 1rem 1rem;
        }

            /* Larger tap targets */
            .site-nav nav a {
                padding: .6rem 0;
                margin: 0; /* override inline spacing */
                font-size: 1.05rem;
            }

        /* When menu is open (a class we toggle in JS) */
        .site-nav.menu-open nav {
            display: flex;
        }
}





















.hero {
  position: relative;
  min-height: 92dvh;
  display: grid;
  place-items: center;
  text-align: center;
       isolation: isolate;    
}


.hero-video {
    position: absolute;
    inset: 0;
    width: 100%; /* fill width of viewport */
    height: 100%;
    object-fit: cover; /* cover without letterboxing */
    display: block;
    z-index: 1;
    max-width: none; /* avoid any layout “intrinsic width” causing overflow */
}
.hero picture,
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
 z-index: 2;
}

.hero .hero-copy {
  position: relative;
  z-index: 3;
  padding: 2rem;
  max-width: 920px
}

.hero .caps {
  font-size: clamp(1.2rem, 2vw + 1rem, 2.6rem);
  letter-spacing: .25em
}

.hero .date {
  font-size: clamp(1rem, 1.5vw + .6rem, 1.5rem);
  margin: .3rem 0 1rem
}

.names {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.2rem, 4vw + 1.6rem, 5rem);
  font-weight: 400;
  margin: .2rem 0 .3rem;
}

.location {
  margin: .6rem 0 1.2rem;
  font-size: 1.05rem;
  letter-spacing: .1em
}

.btn {
  display: inline-block;
  padding: .8rem 1.25rem;
  border: 1px solid var(--ink);
  text-decoration: none;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .9rem;
  background: transparent;
  cursor: pointer;
  transition: transform .08s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(0, 0, 0, .03)
}

.section {
  padding: 2rem 1rem
}

.container {
  max-width: 980px;
  margin: 0 auto
}

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 1.2rem 0 0
}

.mini-caps {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink-soft)
}

.note {
  margin-top: 1rem;
  color: var(--ink-soft)
}

.rsvp .card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 10px;
  padding: 1.2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .04)
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}


.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* example */
    gap: 1rem;
}

    /* Anything with .full spans both columns */
    .form-grid .full {
        grid-column: 1 / -1;
    }

/* Let the names group manage its own inner layout */
.names-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}































label {
  display: grid;
  gap: .35rem;
  font-size: 1rem
}

label.full {
  grid-column: 1/-1
}

input,
select,
textarea {
  width: 100%;
  padding: .7rem .8rem;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 1rem
}

.muted {
  color: var(--ink-soft);
  margin-top: .6rem
}

details {
  padding: .8rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, .06)
}

details summary {
  cursor: pointer;
  list-style: none
}

details[open] {
  background: linear-gradient(to bottom, rgba(0, 0, 0, .03), transparent)
}

.footer {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--ink-soft)
}

/* --- Horizontal timeline --- */
.timeline {
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 1.25rem;
    padding: 1.25rem 0 0.75rem;
    margin: 1rem 0 0.25rem;
    list-style: none;
    border-top: 1px solid rgba(0,0,0,.08); /* subtle line to anchor the steps */
}

/* Each stop */
.timeline-item {
    position: relative;
    padding-top: .9rem; /* space above the connector dot */
    text-align: center;
}

    /* Connector dot */
    .timeline-item::before {
        content: "";
        position: absolute;
        top: -6px; /* sits on the top border line */
        left: 50%;
        transform: translateX(-50%);
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #fff;
        border: 2px solid var(--ink);
        box-shadow: 0 2px 6px rgba(0,0,0,.06);
    }

/* Time + title styling, leaning on your existing look */
.timeline-time {
    display: block;
    color: var(--ink-soft);
    margin-bottom: .25rem;
    letter-spacing: .18em; /* matches .mini-caps vibe */
}

.timeline-title {
    margin: 0;
    font-weight: 600;
    font-size: 1.05rem;
}

/* Responsive: stack vertically on smaller screens */
@media (max-width: 720px) {
    .timeline {
        grid-auto-flow: row;
        grid-auto-columns: unset;
        gap: 1rem;
        border-top: 0;
        padding-top: 0;
    }

    .timeline-item {
        text-align: left;
        padding-left: 2.2rem;
        padding-top: 0;
    }

        .timeline-item::before {
            left: 0.9rem;
            top: 0.6rem;
        }

    .timeline-item {
        border-left: 1px solid rgba(0,0,0,.08);
    }
}
