/* Vows, a free wedding template by Zerotheme. https://zerotheme.com/t/vows/
   Change the look in one place: the variables below. */
:root {
  --paper: #f6f1ea;
  --paper-2: #efe7dc;
  --ink: #2b2622;
  --ink-soft: #6b6058;
  --accent: #9a5b3f;       /* terracotta: buttons, links, the ampersand */
  --accent-ink: #fff;
  --line: #ddd2c4;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 4px;
  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; margin: 0 0 .4em; }
h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.eyebrow { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .8em; }
.amp { font-style: italic; color: var(--accent); font-weight: 400; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 680px; }
.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 36em; margin: 0 auto; }
.small { font-size: .9rem; color: var(--ink-soft); }
.link { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

.button {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  font: 500 .95rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase;
  padding: 16px 28px; border: 0; border-radius: var(--radius); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.button:hover { background: #864c33; transform: translateY(-1px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; color: #fff; transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}
.nav.is-solid { background: rgba(246, 241, 234, .96); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(6px); }
.nav-mark { font: 500 1.5rem/1 var(--font-display); color: inherit; text-decoration: none; letter-spacing: .04em; }
.nav-mark span { font-style: italic; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: inherit; text-decoration: none; font-size: .88rem; letter-spacing: .08em; text-transform: uppercase; }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-cta { border: 1px solid currentColor; padding: 8px 16px; border-radius: var(--radius); }
.nav-toggle { display: none; background: none; border: 0; color: inherit; padding: 10px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 64px 0 auto; flex-direction: column; gap: 0; background: var(--paper); color: var(--ink);
    padding: 8px 24px 20px; box-shadow: 0 12px 24px rgba(0,0,0,.08); display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-cta { border: 0; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,22,16,.45) 0%, rgba(30,22,16,.2) 40%, rgba(30,22,16,.65) 100%); }
.hero-inner { position: relative; z-index: 1; padding: 120px 24px 80px; }
.hero .eyebrow { color: rgba(255,255,255,.85); }
.hero-names { font-size: clamp(3.6rem, 13vw, 8.5rem); font-weight: 400; margin-bottom: .2em; }
.hero .amp { color: #f3d9c6; }
.hero-when { font-size: 1.1rem; letter-spacing: .06em; display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .7; }
@media (max-width: 560px) {
  .hero-when { flex-direction: column; gap: 2px; }
  .dot { display: none; }
}
.countdown { display: flex; justify-content: center; gap: clamp(10px, 3vw, 28px); margin: 34px 0 40px; }
.countdown div { min-width: 64px; }
.countdown span { display: block; font: 500 clamp(2rem, 6vw, 3rem)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.countdown small { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 11vw, 128px) 0; }
.section-alt { background: var(--paper-2); }
.section-head { text-align: center; margin-bottom: clamp(40px, 6vw, 64px); }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(40px, 6vw, 72px); }
.timeline li { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.timeline li:nth-child(even) img { order: 2; }
.timeline img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; width: 100%; }
.timeline .when { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--accent); margin-bottom: .3em; }
@media (max-width: 700px) {
  .timeline li { grid-template-columns: 1fr; }
  .timeline li:nth-child(even) img { order: 0; }
}

.events { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.event { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.event-main { border-color: var(--accent); }
.event-day { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .6em; }
.event-time { font-weight: 500; }
.venue { margin: 48px 0 0; }
.venue img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.venue figcaption { text-align: center; color: var(--ink-soft); font-style: italic; font-family: var(--font-display); font-size: 1.15rem; margin-top: 14px; }

.travel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.travel h3 { margin-top: 0; }
.travel-col > h3 + * { margin-bottom: 2em; }
.plain { list-style: none; padding: 0; margin: 0 0 2em; }
.plain li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.hotel { border-left: 2px solid var(--accent); padding: 4px 0 4px 20px; margin-bottom: 24px; }
@media (max-width: 700px) { .travel { grid-template-columns: 1fr; } }

/* ---------- RSVP form ---------- */
.rsvp { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
label, legend { font-weight: 500; font-size: .95rem; }
legend { margin-bottom: 6px; padding: 0; }
.optional { font-weight: 400; color: var(--ink-soft); }
input, select, textarea {
  font: inherit; color: inherit; background: #fffdf9; width: 100%;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 14px; min-height: 50px;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 2px solid color-mix(in srgb, var(--accent) 25%, transparent); outline-offset: 0; }
.choice { display: flex; gap: 10px; align-items: center; font-weight: 400; padding: 6px 0; }
.choice input { width: 20px; min-height: 0; height: 20px; accent-color: var(--accent); }
.rsvp .button { justify-self: start; }
.form-status { min-height: 1.6em; font-style: italic; color: var(--accent); margin: 0; }

/* ---------- registry ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { display: block; background: #fffdf9; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card .link { color: var(--accent); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 36px 22px 0; position: relative; font: 500 1.35rem/1.3 var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 300 1.6rem/1 var(--font-body); color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; color: var(--ink-soft); }

/* ---------- footer ---------- */
.footer { text-align: center; padding: 72px 24px 96px; background: var(--ink); color: #e9e1d6; }
.footer-names { font: 400 2.6rem/1 var(--font-display); margin-bottom: .4em; }
.footer .amp { color: #e0b399; }
.credit { font-size: .85rem; opacity: .7; margin-top: 2em; }
.credit a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
