@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');
@import url('https://use.typekit.net/kys7ctr.css');

:root {
  --ink: #333b20;
  --ink-soft: #58603f;
  --moss: #68704a;
  --moss-dark: #333b20;
  --sage: #d8ddc3;
  --sage-light: #eef1e4;
  --cream: #fbf8ef;
  --paper: #fffdf7;
  --blush: #f6efe5;
  --gold: #b79a5b;
  --line: rgba(51, 59, 32, 0.22);
  --shadow: 0 24px 70px rgba(51, 59, 32, 0.16);
  --display: "new-spirit", "Oregano and Mint", Georgia, serif;
  --body: "Libre Baskerville", Georgia, serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--cream);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(216, 221, 195, 0.72), transparent 32rem),
    linear-gradient(180deg, var(--cream), #f5efdf 45%, var(--cream));
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
  opacity: 0.34;
  background-repeat: no-repeat;
  background-size: contain;
}

body::before {
  width: min(44vw, 520px);
  height: min(44vw, 520px);
  right: -110px;
  top: 110px;
  background-image: url("../images/floral-page.jpg");
  filter: saturate(0.85);
}

body::after {
  width: min(38vw, 460px);
  height: min(38vw, 460px);
  left: -130px;
  bottom: -80px;
  background-image: url("../images/floral-home.jpg");
  transform: rotate(180deg);
  filter: saturate(0.85);
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.skip-link:focus { left: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 239, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 74px;
}

.brand {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  line-height: 1;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--ink);
  font-family: var(--body);
}

.primary-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px 18px;
  font-size: 0.77rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.primary-nav a {
  position: relative;
  text-decoration: none;
  padding: 6px 0;
  color: var(--ink-soft);
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: width 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a.active::after { width: 100%; }
.primary-nav a.active { color: var(--ink); }

.header-date {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: calc(100svh - 74px);
  display: grid;
  align-items: stretch;
  isolation: isolate;
  overflow: hidden;
  background: var(--sage-light);
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: url("../images/hero.jpg") center/cover no-repeat;
  transform: scale(1.015);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(251, 248, 239, 0.88) 0%, rgba(251, 248, 239, 0.64) 36%, rgba(51, 59, 32, 0.14) 70%),
    linear-gradient(0deg, rgba(51, 59, 32, 0.44), rgba(51, 59, 32, 0.06) 40%, rgba(51, 59, 32, 0.3));
}

.hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  align-content: center;
  min-height: calc(100svh - 74px);
  padding: clamp(36px, 6vw, 80px) 0 clamp(72px, 9vw, 120px);
  transform: translateY(clamp(-72px, -5vw, -32px));
}

.kicker {
  margin: 0 0 10px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero h1,
.page-hero h1,
.section-title,
.card h2,
.story-card h2 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.75rem, 5.9vw, 5.15rem);
  line-height: 1.04;
}

.name-line {
  display: block;
  white-space: nowrap;
}

.ampersand {
  display: block;
  width: fit-content;
  font-size: 0.48em;
  line-height: 0.95;
  margin: 0.16em 0;
}

.hero-meta {
  margin-top: 28px;
  max-width: 470px;
  display: grid;
  gap: 4px;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 28px;
}

.countdown div {
  min-width: 76px;
  padding: 10px 12px;
  text-align: center;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.75);
  box-shadow: 0 10px 30px rgba(51, 59, 32, 0.08);
}

.countdown strong {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
  font-weight: 500;
}

.countdown span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.button-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--moss-dark);
  border-radius: 999px;
  background: var(--moss-dark);
  color: var(--paper);
  text-decoration: none;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
  cursor: pointer;
}
.button:hover { transform: translateY(-2px); }
.button.secondary { background: transparent; color: var(--moss-dark); }
.button.secondary:hover { background: rgba(51, 59, 32, 0.08); }
.button.disabled { pointer-events: none; opacity: 0.58; }

.music-control {
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.74);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 14px;
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.floating-dogs {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.floating-dogs img {
  position: absolute;
  bottom: -26vh;
  width: clamp(82px, 13vw, 210px);
  opacity: 0.93;
  filter: drop-shadow(0 12px 16px rgba(0,0,0,0.2));
  animation: floatUp linear infinite;
}
.floating-dogs img:nth-child(1) { left: 3%; animation-duration: 18s; animation-delay: -2s; }
.floating-dogs img:nth-child(2) { left: 18%; width: clamp(105px, 17vw, 280px); animation-duration: 13s; animation-delay: -9s; }
.floating-dogs img:nth-child(3) { left: 34%; width: clamp(115px, 19vw, 330px); animation-duration: 16s; animation-delay: -5s; }
.floating-dogs img:nth-child(4) { left: 54%; animation-duration: 14s; animation-delay: -11s; }
.floating-dogs img:nth-child(5) { left: 68%; width: clamp(110px, 17vw, 280px); animation-duration: 20s; animation-delay: -7s; }
.floating-dogs img:nth-child(6) { left: 84%; animation-duration: 12s; animation-delay: -3s; }

@keyframes floatUp {
  0% { transform: translateY(0) rotate(-6deg) scale(0.94); opacity: 0; }
  10% { opacity: 0.95; }
  84% { opacity: 0.8; }
  100% { transform: translateY(-132vh) rotate(9deg) scale(1.18); opacity: 0; }
}

main { min-height: 70vh; }
.section,
.page-content {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 0;
}

.story-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
}

.story-card,
.card,
.faq-item,
.travel-card,
.event-card,
.placeholder-panel {
  position: relative;
  background: rgba(255, 253, 247, 0.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.story-card,
.card,
.placeholder-panel { padding: clamp(28px, 5vw, 54px); }
.story-card::before,
.placeholder-panel::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(51, 59, 32, 0.14);
  pointer-events: none;
}

.story-card h2,
.section-title {
  margin: 0 0 18px;
  font-size: clamp(3rem, 8vw, 6.3rem);
}

.story-photo {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 12px solid var(--paper);
  box-shadow: var(--shadow);
  transform: rotate(1.6deg);
}

.page-hero {
  min-height: 46vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 78px 18px 58px;
  background:
    linear-gradient(rgba(251, 248, 239, 0.54), rgba(251, 248, 239, 0.7)),
    url("../images/watercolor-mountain-banner.png") center/cover no-repeat;
}

.page-hero.has-photo {
  min-height: 54vh;
  color: var(--paper);
  background:
    linear-gradient(rgba(51, 59, 32, 0.34), rgba(51, 59, 32, 0.52)),
    var(--hero-img) center/cover no-repeat;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(4rem, 12vw, 9rem);
}
.page-hero p {
  max-width: 720px;
  margin: 14px auto 0;
}

.event-date {
  margin: 0 0 26px;
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 500;
}
.event-list { display: grid; gap: 28px; }
.event-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  padding: clamp(24px, 4vw, 38px);
}
.event-time {
  border-right: 1px solid var(--line);
  padding-right: 22px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
}
.event-card h3,
.travel-card h2,
.faq-item h2,
.card h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1;
}
.eyebrow {
  margin: 0 0 6px;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.address { margin: 10px 0; color: var(--ink-soft); }
.map-link { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; }

.travel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.travel-card { padding: clamp(24px, 4vw, 38px); }
.travel-type { color: var(--gold); }

.gallery-grid {
  width: 100%;
  max-width: 100%;
  columns: 3 260px;
  column-gap: 18px;
  overflow: hidden;
}
.gallery-grid figure {
  display: inline-block;
  width: 100%;
  margin: 0 0 18px;
  overflow: hidden;
  break-inside: avoid;
  background: var(--paper);
  border: 10px solid var(--paper);
  box-shadow: 0 18px 45px rgba(51, 59, 32, 0.14);
}
.gallery-grid img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 260ms ease;
}
.gallery-grid figure:hover img { transform: scale(1.02); }

.faq-list { display: grid; gap: 18px; }
.faq-item { padding: clamp(22px, 3vw, 34px); }
.faq-item h2 { font-size: clamp(1.6rem, 3.3vw, 2.7rem); text-transform: uppercase; }

.placeholder-panel {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.placeholder-panel p { margin-left: auto; margin-right: auto; max-width: 690px; }

.bitcoin-gift {
  margin: 30px auto 0;
  padding-top: 28px;
  max-width: 560px;
  border-top: 1px solid rgba(51, 59, 32, 0.14);
}
.bitcoin-qr {
  display: block;
  width: min(287px, 100%);
  height: auto;
  margin: 20px auto 16px;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(51, 59, 32, 0.12);
}
.bitcoin-address {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bitcoin-address code {
  display: block;
  padding: 12px 14px;
  border: 1px solid rgba(51, 59, 32, 0.14);
  border-radius: 8px;
  background: rgba(51, 59, 32, 0.07);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-transform: none;
}

.site-footer {
  padding: 44px 18px 54px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: rgba(251, 248, 239, 0.72);
}
.footer-script {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  margin: 0 0 8px;
}
.site-footer p { margin: 0; color: var(--ink-soft); font-size: 0.8rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; scroll-behavior: auto !important; transition: none !important; }
  .floating-dogs { display: none; }
}

@media (max-width: 860px) {
  .nav-wrap { grid-template-columns: minmax(0, 1fr) auto; min-height: 64px; }
  .brand { font-size: clamp(1.25rem, 5.6vw, 1.75rem); white-space: normal; padding-right: 54px; }
  .header-date { display: none; }
  .nav-toggle {
    display: inline-flex;
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 80;
    background: rgba(255, 253, 247, 0.94);
  }
  .primary-nav {
    grid-column: 1 / -1;
    display: none;
    justify-content: flex-start;
    padding: 0 0 16px;
    max-width: 100%;
  }
  .primary-nav.open { display: flex; }
  .hero { min-height: calc(100svh - 64px); }
  .hero-content {
    min-height: calc(100svh - 64px);
    max-width: 100%;
    width: min(100% - 32px, 560px);
    transform: translateY(clamp(-46px, -7vw, -22px));
  }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(251, 248, 239, 0.9), rgba(251, 248, 239, 0.66) 54%, rgba(51, 59, 32, 0.36)),
      linear-gradient(0deg, rgba(51, 59, 32, 0.5), rgba(51, 59, 32, 0.04));
  }
  .hero h1 { font-size: clamp(1.78rem, 7.8vw, 2.72rem); max-width: 100%; }
  .floating-dogs img { width: clamp(62px, 18vw, 128px); opacity: 0.72; }
  .floating-dogs img:nth-child(2),
  .floating-dogs img:nth-child(3),
  .floating-dogs img:nth-child(5) { width: clamp(76px, 22vw, 150px); }
  .story-wrap { grid-template-columns: 1fr; }
  .story-photo { max-height: 520px; width: 100%; transform: none; }
  .event-card { grid-template-columns: 1fr; gap: 14px; }
  .event-time { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 12px; }
  .travel-grid { grid-template-columns: 1fr; }
  .gallery-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    columns: auto;
  }
  .gallery-grid figure { display: block; margin-bottom: 0; }
}

@media (max-width: 520px) {
  body::before, body::after { opacity: 0.2; }
  .primary-nav { gap: 8px 14px; font-size: 0.72rem; }
  .button-row { align-items: stretch; }
  .button, .music-control { width: 100%; background-color: rgba(51, 59, 32, 0.95); color: var(--paper); }
  .button.secondary { background: rgba(255, 253, 247, 0.86); color: var(--moss-dark); }
  .countdown { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .countdown div { min-width: 0; padding: 9px 8px; }
  .countdown strong { font-size: 1.7rem; }
  .story-card, .card, .placeholder-panel { padding: 30px 22px; }
  .story-card::before, .placeholder-panel::before { inset: 9px; }
  .page-hero h1 { font-size: clamp(2.9rem, 14vw, 4.2rem); }
  .section-title, .story-card h2 { font-size: clamp(2.45rem, 12vw, 4rem); }
  .event-date { font-size: clamp(2rem, 10vw, 3.1rem); }
  .event-card h3, .travel-card h2, .faq-item h2, .card h2 { font-size: clamp(1.75rem, 8.8vw, 2.75rem); }
  .faq-item h2.faq-question-long {
    font-size: clamp(1.42rem, 7.2vw, 2.15rem);
    letter-spacing: -0.01em;
  }
  .event-card, .travel-card, .faq-item { overflow-wrap: normal; }
  .event-card h3, .travel-card h2, .faq-item h2, .card h2 { overflow-wrap: normal; word-break: normal; hyphens: none; }
}

.schedule-map {
  width: 100%;
  max-width: 610px;
  margin: 0 auto clamp(42px, 7vw, 76px);
  padding: clamp(8px, 1.4vw, 14px);
  background: rgba(255, 253, 247, 0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.schedule-map img {
  width: 100%;
  height: auto;
  border-radius: 2px;
}
