@import url("fonts.css");

:root {
  --paper: #fbf7eb;
  --ink: #342b25;
  --gold: #b88d39;
  --rust: #a94e28;
  --rose: #ae666b;
  --leaf: #68715a;
  --nav-h: 64px;
}

* { box-sizing: border-box; }

html {
  background: #e9dfce;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  padding: 0 0 48px;
  color: var(--ink);
  font-family: Cormorant, Georgia, serif;
  font-size: 23px;
  line-height: 1.2;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }

a {
  color: #904a48;
}

a:hover { color: var(--rust); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 80;
  background: #aa4f2b;
  color: #fff8eb;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #f7efdf;
  border-bottom: 1px solid #c6a15e;
  box-shadow: 0 2px 12px #5f473314;
}

.site-header-inner {
  width: min(100%, 1040px);
  margin: auto;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 8px 20px;
  flex-wrap: wrap;
}

.nav-brand {
  font-family: GreatVibes, "Brush Script MT", cursive;
  font-size: clamp(30px, 4vw, 38px);
  color: #ad6065;
  text-decoration: none;
  line-height: 1;
  padding: 4px 0;
}
.nav-brand:hover { color: #904a48; }

.nav-toggle {
  display: none;
  appearance: none;
  border: 1.4px solid var(--gold);
  background: #fff8ef;
  color: var(--ink);
  font: 600 18px Cormorant, Georgia, serif;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-menu a {
  display: inline-block;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 20px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.site-menu a:hover {
  border-color: #d1a86d;
  background: #fff8ef;
  color: var(--ink);
}
.site-menu a[aria-current="page"] {
  background: #aa4f2b;
  color: #fff8eb;
  border-color: #aa4f2b;
}

.wrap {
  padding: 24px 16px 0;
}

.page {
  width: min(100%, 800px);
  margin: auto;
  background: var(--paper);
  box-shadow: 0 8px 35px #5f47331f;
  overflow: hidden;
}
.page-wide { width: min(100%, 960px); }

.invitation {
  position: relative;
  isolation: isolate;
  min-height: 1180px;
  padding: 32px 46px 39px;
  background:
    radial-gradient(circle at 15% 14%, #fffdf5 0 15%, transparent 50%),
    radial-gradient(circle at 80% 90%, #fffdf5 0 13%, transparent 45%),
    var(--paper);
}
.invitation:before,
.invitation:after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1.5px solid var(--gold);
  border-radius: 30px;
  z-index: 0;
}
.invitation:before { inset: 15px 20px 17px; }
.invitation:after { inset: 21px 26px 23px; border-width: 1px; opacity: .85; }

.paper-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .18;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.19'/%3E%3C/svg%3E");
}

.ornament {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
  filter: drop-shadow(0 2px 1px #977b5421);
}
.ornament svg { width: 100%; height: 100%; }
.flora-tl { top: 2px; left: 0; width: 260px; height: 265px; transform: rotate(-4deg); }
.flora-tr { top: 5px; right: 0; width: 260px; height: 265px; transform: scaleX(-1) rotate(-5deg); }
.flora-ml { top: 380px; left: 5px; width: 185px; height: 240px; transform: rotate(-16deg); }
.flora-mr { top: 390px; right: 0; width: 175px; height: 245px; transform: scaleX(-1) rotate(-10deg); }
.flora-bl { bottom: 4px; left: -13px; width: 220px; height: 300px; transform: rotate(8deg); }
.flora-br { bottom: 3px; right: -17px; width: 220px; height: 300px; transform: scaleX(-1) rotate(8deg); }

.head,
.date-panel,
.activities,
.rsvp,
.housing,
.home-links { position: relative; z-index: 3; }

.head { text-align: center; padding-top: 8px; }
h1 { margin: 0; font-weight: 400; line-height: .83; }
.script { display: block; font-family: GreatVibes, "Brush Script MT", cursive; font-weight: 400; }
.girls { font-size: clamp(82px, 13vw, 112px); color: #ad6065; transform: rotate(-3deg); margin: 3px 0 -10px; }
.retreat { display: block; font-size: clamp(104px, 17vw, 145px); font-weight: 500; letter-spacing: -.055em; line-height: .8; color: #3e3829; }
.weekend { font-size: clamp(77px, 11.5vw, 107px); color: #b27c2c; margin-top: -12px; }
.spark { position: absolute; font-family: Georgia, serif; font-size: 24px; color: var(--gold); top: 68px; }
.spark.left { left: 20%; }
.spark.right { right: 21%; }

.branch-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gold);
  height: 34px;
  font-size: 25px;
}
.branch-divider:before,
.branch-divider:after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold);
}

.heart-line {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin: 0 auto 10px;
  width: min(100%, 450px);
  color: #c77d7c;
}
.heart-line:before,
.heart-line:after { content: ""; height: 1px; background: var(--gold); flex: 1; }
.heart-line span { font-family: Georgia, serif; font-size: 24px; }

.subtitle { font-size: 26px; line-height: 1.04; margin: 0 auto 18px; max-width: 480px; font-weight: 600; }
.subtitle .dot { color: var(--rose); padding: 0 5px; }
.small-flourish { text-align: center; font-size: 24px; color: var(--gold); letter-spacing: 5px; margin-bottom: 8px; }

.date-panel {
  max-width: 510px;
  margin: 9px auto 13px;
  padding: 25px 25px 20px;
  text-align: center;
  border: 1.4px solid var(--gold);
  border-radius: 42px 42px 30px 30px;
  background:
    radial-gradient(circle at 20% 25%, #ffe7e0b8, transparent 42%),
    radial-gradient(circle at 85% 75%, #f6d6d1b8, transparent 42%),
    linear-gradient(#fff4ec, #fce5df);
}
.date-panel:before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid #d1a86d88;
  border-radius: 38px 38px 27px 27px;
  pointer-events: none;
}
.date { font-size: clamp(28px, 5vw, 44px); font-weight: 600; letter-spacing: -.025em; }
.date-sep {
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: center;
  margin: -3px auto -5px;
  color: var(--gold);
  font-size: 18px;
}
.date-sep:before,
.date-sep:after { content: ""; height: 1px; width: min(125px, 28%); background: var(--gold); }
.location { font-size: clamp(26px, 4.5vw, 37px); font-weight: 500; }
.location .pin {
  display: inline-block;
  vertical-align: -4px;
  width: 24px;
  height: 32px;
  margin-right: 7px;
  fill: #ac5b5c;
}

.activities { max-width: 585px; margin: auto; padding: 0 0 4px; }
.section-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
}
.activity {
  display: grid;
  grid-template-columns: minmax(82px, 143px) 1fr;
  align-items: center;
  column-gap: 19px;
  min-height: 131px;
  border-bottom: 1px dashed #b99152;
}
.activity:last-child { border-bottom: 0; }
.vignette {
  width: 100%;
  max-width: 143px;
  aspect-ratio: 143 / 108;
  border: 1px solid #aa8759;
  border-radius: 50%;
  overflow: hidden;
  background: #f6e9d1;
  box-shadow: inset 0 0 0 3px #fff9ed;
  display: block;
}
.vignette svg { width: 100%; height: 100%; }
.activity h3 { font-size: clamp(22px, 3.4vw, 33px); font-style: italic; color: var(--rose); font-weight: 500; margin: 0 0 -2px; }
.activity p { font-size: clamp(20px, 3vw, 29px); line-height: 1.04; margin: 0; font-weight: 600; }

.rsvp {
  max-width: 510px;
  margin: 11px auto 8px;
  padding: 13px 16px 10px;
  border: 1.4px solid var(--gold);
  border-radius: 30px;
  text-align: center;
  background: linear-gradient(112deg, #fff0e6, #fff7ef 60%, #fbe4db);
}
.rsvp-inner { display: flex; align-items: center; gap: 16px; justify-content: center; }
.rsvp-heart {
  width: 71px;
  height: 71px;
  flex: none;
  border-radius: 50%;
  background: #bb7272;
  display: grid;
  place-items: center;
  font: 35px Georgia, serif;
  color: white;
}
.rsvp-text .label { display: block; font-size: 30px; line-height: 1; margin-bottom: -6px; }
.rsvp-text .phone {
  display: block;
  font-size: clamp(28px, 6vw, 49px);
  line-height: 1;
  font-weight: 600;
  color: #904a48;
  letter-spacing: .02em;
  text-decoration: none;
}
.rsvp-text .deadline { display: block; font-size: 25px; line-height: 1.03; }

.housing {
  max-width: 575px;
  margin: 8px auto 0;
  padding: 12px 22px 11px;
  background: #aa4f2b;
  color: #fff8eb;
  text-align: center;
  border-radius: 26px;
  border: 3px solid #fff9ef;
  outline: 2px solid #a25a34;
  box-shadow: 0 3px 8px #6d331c30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
}
.housing:after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1.4px dashed #f4d8b8;
  border-radius: 20px;
  pointer-events: none;
}
.house-icon {
  width: 65px;
  height: 65px;
  flex: none;
  border-radius: 50%;
  background: #c27759;
  border: 1px solid #ead6bd;
  display: grid;
  place-items: center;
}
.house-icon svg { width: 45px; height: 45px; fill: #fff8ef; }
.housing span:last-child { font-size: clamp(22px, 3.4vw, 33px); font-weight: 700; line-height: .92; max-width: 420px; }

.home-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px auto 0;
  max-width: 575px;
}
.home-links a {
  display: inline-block;
  text-decoration: none;
  background: #fff8ef;
  border: 1.4px solid var(--gold);
  color: #7f4938;
  font-weight: 700;
  font-size: 22px;
  padding: 10px 18px;
  border-radius: 999px;
}

.content-page {
  position: relative;
  padding: 42px 48px 50px;
  background: radial-gradient(circle at 8% 0, #fff9ef, transparent 55%), var(--paper);
}
.content-page:before {
  content: "";
  position: absolute;
  inset: 16px 20px;
  border: 1px solid #b88d3999;
  border-radius: 25px;
  pointer-events: none;
}

.page-title {
  text-align: center;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1;
  margin: 0 0 10px;
  color: #7f4938;
  font-weight: 600;
}
.page-title:after {
  content: "❧  ♥  ❧";
  display: block;
  color: var(--gold);
  font-size: 21px;
  letter-spacing: 8px;
  margin: 10px 0 16px;
}

.lede {
  text-align: center;
  font-size: 22px;
  margin: 0 auto 18px;
  max-width: 640px;
  line-height: 1.25;
}

.pdf-link {
  text-align: center;
  margin: 0 0 28px;
  font-size: 20px;
}

.faq-item {
  position: relative;
  padding: 14px 0 16px;
  border-bottom: 1px dashed #bd9b69;
}
.faq-item:last-child { border-bottom: 0; }
.faq-question { font-size: clamp(22px, 3vw, 29px); line-height: 1.15; font-weight: 700; color: #984f50; margin-bottom: 5px; }
.faq-answer { font-size: clamp(20px, 2.4vw, 24px); line-height: 1.35; }

.day {
  margin: 0 0 34px;
}
.day:last-of-type { margin-bottom: 8px; }

.day-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  background: #aa4f2b;
  color: #fff8eb;
  border-radius: 18px;
  padding: 12px 20px;
  margin-bottom: 16px;
}
.day-name {
  margin: 0;
  font-family: GreatVibes, "Brush Script MT", cursive;
  font-size: 36px;
  line-height: 1;
}
.day-banner h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
}

.event {
  border: 1.4px solid #d1a86d88;
  border-radius: 22px;
  padding: 18px 20px 16px;
  margin: 0 0 14px;
  background: linear-gradient(180deg, #fffdf8, #fbf3e6);
}
.event h3 {
  margin: 0 0 6px;
  font-size: clamp(24px, 3.2vw, 30px);
  color: #984f50;
  font-weight: 700;
  line-height: 1.15;
}
.when {
  margin: 0 0 10px;
  font-weight: 700;
  color: #7f4938;
  font-size: 22px;
}
.event p { margin: 0 0 10px; font-size: clamp(19px, 2.3vw, 22px); line-height: 1.35; }
.event p:last-child { margin-bottom: 0; }

.place-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.place-list li {
  background: #fff8ef;
  border: 1px dashed #bd9b69;
  border-radius: 14px;
  padding: 10px 14px;
}
.place-label {
  display: block;
  font-weight: 700;
  color: #7f4938;
  font-size: 18px;
}
.place-web {
  display: block;
}
.place-list a,
.event a {
  overflow-wrap: anywhere;
}

.price {
  display: inline-block;
  background: #fce5df;
  border: 1px solid #d1a86d88;
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 700;
  color: #7f4938;
  font-size: 18px;
  margin: 0 6px 8px 0;
}

.note {
  font-style: italic;
}

.site-footer {
  text-align: center;
  padding: 18px;
  font-size: 18px;
  color: #725d4e;
  border-top: 1px solid #bf9e65;
  background: #f7efdf;
}
.site-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 8px;
}
.site-footer a { text-decoration: none; }

@media (min-width: 1100px) {
  .wrap { padding: 36px 24px 0; }
  body { font-size: 24px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .site-header-inner { min-height: 56px; }
  .site-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 0 0 10px;
  }
  .site-menu.is-open { display: flex; }
  .site-menu a { text-align: center; }
}

@media (max-width: 680px) {
  body { padding-bottom: 0; background: var(--paper); }
  .wrap { padding: 0; }
  .page { box-shadow: none; width: 100%; }
  .invitation { padding: 28px 22px 36px; min-height: auto; }
  .flora-tl, .flora-tr { width: 33%; height: 205px; }
  .flora-ml, .flora-mr { width: 22%; height: 180px; top: 330px; }
  .flora-bl, .flora-br { width: 24%; height: 190px; }
  .spark { display: none; }
  .subtitle { font-size: clamp(20px, 4vw, 25px); }
  .date-panel { max-width: 92%; padding: 20px 12px 17px; }
  .activities { max-width: 94%; }
  .activity { gap: 12px; min-height: 112px; }
  .rsvp { max-width: 92%; }
  .rsvp-text .label { font-size: 25px; }
  .housing { max-width: 94%; }
  .content-page { padding: 36px 22px 42px; }
  .content-page:before { inset: 10px; }
}

@media (max-width: 420px) {
  .invitation { padding: 30px 16px 31px; }
  .invitation:before { inset: 11px; }
  .invitation:after { inset: 17px; }
  .flora-tl, .flora-tr { height: 145px; }
  .flora-ml, .flora-mr { top: 300px; height: 150px; }
  .flora-bl, .flora-br { height: 155px; }
  .head { padding-top: 22px; }
  .girls { font-size: 66px; }
  .retreat { font-size: 82px; }
  .weekend { font-size: 67px; }
  .heart-line { width: 85%; }
  .subtitle { max-width: 260px; line-height: 1.1; }
  .date-panel { max-width: 100%; margin-top: 12px; }
  .activities { max-width: 100%; }
  .activity { grid-template-columns: 82px 1fr; gap: 8px; min-height: 99px; }
  .rsvp { max-width: 100%; padding: 10px; }
  .rsvp-heart { width: 50px; height: 50px; font-size: 27px; }
  .rsvp-inner { gap: 6px; }
  .rsvp-text .label { font-size: 22px; }
  .rsvp-text .deadline { font-size: 21px; }
  .housing { max-width: 100%; gap: 9px; padding: 10px; }
  .house-icon { width: 48px; height: 48px; }
  .house-icon svg { width: 32px; height: 32px; }
  .content-page { padding: 28px 16px 36px; }
  .event { padding: 14px 14px 12px; }
  .day-banner { padding: 10px 14px; }
}

@media print {
  html, body { background: white; }
  body { padding: 0; }
  .site-header, .nav-toggle, .skip-link, .home-links, .pdf-link { display: none !important; }
  .page, .wrap { width: 100%; box-shadow: none; padding: 0; }
  .invitation { break-after: page; }
  .event, .faq-item { break-inside: avoid; }
}
