@font-face {
  font-family: "Brittany Signature";
  src: url("assets/BrittanySignature.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: oklch(0.955 0.008 100);
  --paper-light: oklch(0.975 0.006 100);
  --sage: oklch(0.925 0.014 138);
  --rule: oklch(0.86 0.014 130);
  --rule-strong: oklch(0.84 0.016 132);
  --frame: oklch(0.84 0.016 135);
  --field-line: oklch(0.8 0.018 140);
  --ink: oklch(0.34 0.015 155);
  --heading: oklch(0.3 0.018 155);
  --body: oklch(0.38 0.015 155);
  --muted: oklch(0.42 0.015 155);
  --note: oklch(0.45 0.015 155);
  --label: oklch(0.48 0.02 150);
  --diamond: oklch(0.5 0.03 150);
  --accent: oklch(0.38 0.03 155);
  --accent-dark: oklch(0.3 0.025 155);
  --on-accent: oklch(0.96 0.008 100);
}

html { scroll-behavior: smooth; }
body { margin: 0; background: #f3f1e9; -webkit-font-smoothing: antialiased; }
a { color: oklch(0.45 0.035 155); text-decoration: none; border-bottom: 1px solid oklch(0.45 0.035 155 / 0.35); }
a:hover { color: oklch(0.34 0.03 155); border-bottom-color: oklch(0.34 0.03 155 / 0.6); }
::selection { background: oklch(0.82 0.03 145); }
[hidden] { display: none !important; }

.page {
  font-family: Montserrat, sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
}

/* ---------- Shared type ---------- */

.script-heading {
  font-family: "Brittany Signature", cursive;
  font-weight: 400;
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.6;
  margin: 0.28em 0 0;
  padding-bottom: 0.16em;
  color: var(--heading);
}

.eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--diamond);
}
.alt .eyebrow { color: oklch(0.46 0.03 150); }

.lede {
  margin: 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--body);
  text-wrap: pretty;
}

.diamond {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--diamond);
  transform: rotate(45deg);
}

.stack { display: flex; flex-direction: column; }

/* ---------- Sections ---------- */

.section { padding: clamp(80px, 11vw, 148px) 24px; }
.section.alt {
  background: var(--sage);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.wrap { margin: 0 auto; }

.photo {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--frame);
  overflow: hidden;
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Back to top ---------- */

.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 60;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(0.965 0.008 100 / 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid oklch(0.82 0.018 138);
  border-radius: 50%;
  color: oklch(0.36 0.025 152);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 260ms ease, transform 260ms ease;
}
.to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top span {
  width: 11px;
  height: 11px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  border-top-left-radius: 3px;
  transform: rotate(45deg);
  margin-bottom: -4px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 26px;
  padding: 15px 24px;
  background: oklch(0.955 0.008 100 / 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: oklch(0.42 0.02 155);
}
.nav a { color: inherit; border: 0; opacity: 0.7; }
.nav a:hover { opacity: 1; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(28px, 4vw, 56px);
  background: linear-gradient(oklch(0.965 0.006 100) 0%, oklch(0.93 0.012 135) 100%);
}
.woodland {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("assets/woodland-band.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.72;
  pointer-events: none;
}
.hero .woodland {
  height: 58%;
  background-position: center bottom;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 34%, black 66%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 34%, black 66%, transparent 100%);
}
.hero-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1100px, 96%);
  height: min(880px, 94%);
  background: radial-gradient(56% 50% at 50% 50%, oklch(0.965 0.008 100 / 0.94) 0%, oklch(0.965 0.008 100 / 0.62) 60%, transparent 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  max-width: 860px;
  padding: clamp(40px, 6vw, 72px) 12px;
}
.ornament { display: flex; align-items: center; gap: 14px; }
.ornament .line { width: 54px; height: 1px; background: oklch(0.74 0.02 145); }
.hero h1 {
  font-family: "Brittany Signature", cursive;
  font-weight: 400;
  font-size: clamp(48px, 8.4vw, 116px);
  line-height: 1.6;
  margin: 0.15em 0;
  padding-bottom: 0.12em;
  color: var(--heading);
}
.hero h1 .amp { font-size: 0.55em; display: inline-block; }
.hero-date {
  font-size: clamp(13px, 1.5vw, 17px);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: oklch(0.34 0.02 155);
}
.hero-place {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(17px, 1.9vw, 21px);
  color: oklch(0.46 0.02 155);
}
.hero-quote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  max-width: 620px;
}
.hero-quote p {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(19px, 2.2vw, 27px);
  line-height: 1.5;
  margin: 0;
  color: oklch(0.28 0.02 155);
  text-wrap: pretty;
}
.hero-quote span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: oklch(0.36 0.02 152);
}
.hero-cue {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: oklch(0.32 0.02 152);
}
.hero-cue a {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 0;
  color: oklch(0.52 0.02 150);
  opacity: 0.75;
}
.hero-cue a:hover { opacity: 1; }
.hero-cue .shaft { width: 3px; height: 50px; border-radius: 3px; background: linear-gradient(transparent, currentColor); }
.hero-cue .head {
  width: 14px;
  height: 14px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  border-bottom-right-radius: 4px;
  transform: rotate(45deg);
  margin-top: -10px;
}

/* ---------- Our story ---------- */

.story {
  max-width: 1280px;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 4.5vw, 56px);
  align-items: center;
}
.story .photo { flex: 1 1 220px; }
.story-text { flex: 1.7 1 400px; gap: 22px; }
.story-text h2 { white-space: nowrap; }
.signoff { margin-top: 6px; display: flex; align-items: center; gap: 14px; }
.signoff em {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 19px;
  color: oklch(0.45 0.02 150);
}

/* ---------- Details ---------- */

.details { max-width: 1040px; gap: 48px; }
.heading-block { gap: 14px; }
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--rule-strong);
}
.fact { background: var(--sage); padding: 30px; display: flex; flex-direction: column; gap: 10px; }
.fact-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: oklch(0.48 0.025 150);
}
.fact-value {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.5;
}
.fact-note { font-size: 14px; font-weight: 300; line-height: 1.6; color: oklch(0.42 0.02 155); }
.map-block { gap: 12px; }
.map-frame { height: clamp(260px, 34vw, 420px); border: 1px solid var(--rule-strong); overflow: hidden; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-links { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; font-size: 14px; }
.map-links span { font-weight: 300; color: oklch(0.44 0.02 155); }

/* ---------- Travel ---------- */

.travel { max-width: 1040px; gap: 52px; }
.travel .heading-block { max-width: 620px; }
.travel-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }
.travel-mode { gap: 12px; }
.travel-mode h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0;
  color: oklch(0.34 0.02 155);
}
.travel-mode p { margin: 0; font-size: 15px; font-weight: 300; line-height: 1.8; color: oklch(0.4 0.015 155); }
.stay { gap: 20px; }
.stay > h3 { margin: 0; }
.stay-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.stay-card {
  border: 1px solid var(--rule);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  background: var(--paper-light);
}
.stay-card .tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--diamond);
}
.stay-card .name { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.stay-card p { margin: 0; font-size: 14px; font-weight: 300; line-height: 1.75; color: var(--muted); }
.stay-card > a { font-size: 14px; margin-top: 2px; align-self: flex-start; }
.password {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: oklch(0.4 0.02 155);
  background: var(--sage);
  border: 1px solid var(--rule);
  padding: 8px 10px;
}
.inns {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 300;
  color: oklch(0.4 0.015 155);
}
.inns li { display: flex; justify-content: space-between; gap: 12px; }
.inns li span:last-child { color: oklch(0.52 0.02 150); }
.stay-note { font-size: 13px; font-weight: 300; color: var(--note); }

/* ---------- Schedule ---------- */

.schedule { max-width: 880px; gap: 44px; }
.schedule .lede { line-height: 1.8; color: oklch(0.4 0.015 155); }
.timeline { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.timeline li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--rule-strong);
  align-items: baseline;
}
.timeline li:last-child { border-bottom: 1px solid var(--rule-strong); }
.timeline .time {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: oklch(0.36 0.025 152);
}
.timeline .time.tbc { font-weight: 500; letter-spacing: 0.2em; color: oklch(0.55 0.02 150); }
.timeline .what { font-family: "Cormorant Garamond", serif; font-size: 24px; margin-bottom: 4px; }
.timeline .desc { font-size: 15px; font-weight: 300; line-height: 1.75; color: var(--muted); }

/* ---------- Dress code ---------- */

.dress {
  max-width: 1040px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
.dress-text { gap: 20px; }

/* ---------- Gifts ---------- */

.section.gifts-section { padding: clamp(72px, 9vw, 120px) 24px; }
.gifts { max-width: 700px; gap: 18px; text-align: center; align-items: center; }
.gifts .small { font-size: 15px; line-height: 1.8; color: var(--note); }

/* ---------- RSVP ---------- */

.rsvp { max-width: 720px; gap: 38px; }
.rsvp .lede { line-height: 1.8; color: oklch(0.4 0.015 155); }

.thanks {
  border: 1px solid var(--rule-strong);
  background: var(--sage);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  align-items: center;
}
.thanks .diamond { width: 8px; height: 8px; }
.thanks-title { font-family: "Brittany Signature", cursive; font-size: 38px; color: var(--heading); }
.thanks p { margin: 0; font-size: 15px; font-weight: 300; line-height: 1.75; color: var(--muted); max-width: 420px; }

.form { gap: 26px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--label);
}
.hint { font-size: 13px; font-weight: 300; line-height: 1.7; color: var(--note); }
.question { gap: 12px; }
.question.follow-up { padding-top: 10px; }
.guests-block { gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; }

.input,
.select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--field-line);
  color: var(--heading);
  font-family: Montserrat, sans-serif;
  font-weight: 300;
  font-size: 16px;
  padding: 10px 2px;
  outline: none;
  min-height: 46px;
}
.textarea {
  background: transparent;
  border: 1px solid var(--rule-strong);
  color: var(--heading);
  font-family: Montserrat, sans-serif;
  font-weight: 300;
  font-size: 16px;
  padding: 12px;
  outline: none;
  resize: vertical;
}

.chip {
  background: transparent;
  color: oklch(0.36 0.02 155);
  border: 1px solid var(--field-line);
  padding: 13px 26px;
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 46px;
}
.chip.is-active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

.guest-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  align-items: end;
  border-top: 1px solid var(--rule);
  padding-top: 18px;
}
.btn-remove {
  justify-self: start;
  background: transparent;
  border: 1px solid var(--rule-strong);
  color: oklch(0.42 0.02 155);
  padding: 12px 18px;
  font-family: Montserrat, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 46px;
}
.btn-remove:hover { border-color: oklch(0.6 0.03 150); color: oklch(0.3 0.025 155); }
.btn-add {
  align-self: start;
  background: transparent;
  border: 1px solid var(--field-line);
  color: oklch(0.36 0.02 155);
  padding: 13px 24px;
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 46px;
}
.btn-add:hover { background: var(--sage); }

.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 4px; }
.btn-submit {
  background: var(--accent);
  color: var(--on-accent);
  border: 0;
  padding: 17px 34px;
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 46px;
}
.btn-submit:hover { background: var(--accent-dark); }
.status { font-size: 13px; font-weight: 300; color: var(--note); }

/* ---------- FAQ ---------- */

.section.faq-section { border-bottom: 0; }
.faq { max-width: 820px; gap: 40px; }
.faq-list { display: flex; flex-direction: column; gap: 28px; }
.faq-item { display: flex; flex-direction: column; gap: 9px; border-top: 1px solid var(--rule-strong); padding-top: 24px; }
.faq-item:last-child { border-bottom: 1px solid var(--rule-strong); padding-bottom: 24px; }
.faq-item h3 { font-family: "Cormorant Garamond", serif; font-weight: 400; font-size: 25px; margin: 0; }
.faq-item p { margin: 0; font-size: 16px; font-weight: 300; line-height: 1.85; color: oklch(0.4 0.015 155); text-wrap: pretty; }

/* ---------- Footer ---------- */

.closing {
  position: relative;
  padding: clamp(90px, 11vw, 150px) 24px clamp(150px, 20vw, 260px);
  background: linear-gradient(oklch(0.955 0.008 100) 0%, oklch(0.9 0.016 140) 100%);
  text-align: center;
  overflow: hidden;
}
.closing .woodland {
  height: 56%;
  background-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 34%, black 68%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 34%, black 68%, transparent 100%);
}
.closing-inner {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.closing-inner .diamond { width: 7px; height: 7px; }
.closing-inner h2 { margin-top: 0.2em; }
.closing-inner .lede { color: oklch(0.4 0.015 155); }
.closing-inner > a { font-size: 15px; }
.phones { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; font-size: 15px; font-weight: 300; color: var(--body); }
.closing-aside { margin: 0; font-size: 14px; font-weight: 300; line-height: 1.75; color: oklch(0.46 0.015 155); text-wrap: pretty; }
.closing-date {
  margin-top: 18px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: oklch(0.46 0.02 150);
}
