@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

:root {
  --cream: #f8f4ec;
  --cream-deep: #eee5d6;
  --gold: #b28b50;
  --gold-light: #d5bc91;
  --ink: #28261f;
  --muted: #777064;
  --white: #fffdf8;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  line-height: 1.7;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.hero {
  min-height: 690px;
  min-height: min(850px, 100svh);
  position: relative;
  display: flex;
  flex-direction: column;
  color: var(--white);
  background:
    radial-gradient(ellipse at 50% 40%, rgba(180, 145, 91, .18), transparent 44%),
    linear-gradient(135deg, #3d382e 0%, #665641 50%, #282720 100%);
  overflow: hidden;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(213, 188, 145, .28);
  border-radius: 50%;
  pointer-events: none;
}
.hero::before { top: 12%; left: -190px; }
.hero::after { right: -190px; bottom: 8%; }
.hero-overlay {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(213, 188, 145, .28);
  pointer-events: none;
}
.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 32px clamp(28px, 7vw, 100px);
}
.brand {
  color: var(--white);
  font: 500 30px/1 var(--serif);
  text-decoration: none;
}
.brand span { color: var(--gold-light); }
.language-switcher { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.language-button {
  padding: 7px 11px;
  color: rgba(255, 253, 248, .78);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 2px;
  font: 500 11px var(--sans);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.language-button:hover, .language-button.active {
  color: var(--white);
  border-color: rgba(213, 188, 145, .7);
  background: rgba(255, 255, 255, .06);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(850px, 90%);
  margin: auto;
  padding: 70px 0 100px;
  text-align: center;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .23em;
  line-height: 1.8;
}
.hero .eyebrow { color: var(--gold-light); }
h1, h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
}
h1 { font-size: clamp(52px, 9vw, 100px); letter-spacing: -.04em; }
.hero-subtitle { margin: 24px 0 34px; color: rgba(255,253,248,.82); font-size: 14px; }
.hero-date { margin: 25px 0 0; color: rgba(255,253,248,.64); font-size: 11px; letter-spacing: .08em; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 27px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  transition: transform .2s, background .2s;
}
.button:hover { transform: translateY(-2px); }
.button-gold { color: #29251e; background: var(--gold-light); }
.button-gold:hover { background: #e2cda8; }
.button-dark { color: var(--white); background: var(--ink); }
.button-dark:hover { background: #4b4539; }
.hero-bottom-note {
  position: relative;
  z-index: 1;
  padding: 0 20px 36px;
  text-align: center;
  color: rgba(255,253,248,.5);
  font-size: 9px;
  letter-spacing: .22em;
}
.section { padding: 105px 24px; text-align: center; }
.section h2 { font-size: clamp(36px, 5vw, 54px); }
.story-section { max-width: 880px; margin: auto; }
.ornament { margin: 24px 0; color: var(--gold); font-size: 20px; }
.section-copy { max-width: 630px; margin: 24px auto 0; color: var(--muted); font-size: 14px; }
.signature { margin: 30px 0 0; font: italic 20px var(--serif); color: var(--gold); }
.memories-section { background: var(--white); }
.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  max-width: 1040px;
  margin: 45px auto 0;
}
.memory-card { min-width: 0; }
.photo-placeholder {
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  color: #796b56;
  background: linear-gradient(145deg, #eee5d6, #d8c9ae);
  border: 7px solid #fff;
  outline: 1px solid #e6dccb;
  font: italic 16px var(--serif);
}
.photo-placeholder span:first-child { font: 10px var(--sans); letter-spacing: .15em; }
.memory-two .photo-placeholder { background: linear-gradient(145deg, #e7ddd0, #c8b9a3); }
.memory-three .photo-placeholder { background: linear-gradient(145deg, #e8e2d3, #d6c6a8); }
.memory-four .photo-placeholder { background: linear-gradient(145deg, #e4d8c8, #c6b59b); }
.photo-caption { margin: 25px 0 0; color: var(--muted); font-size: 11px; font-style: italic; }
.invitation-section { background: var(--cream-deep); }
.invite-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 760px;
  margin: 45px auto 35px;
  border-top: 1px solid #d6c6ac;
  border-bottom: 1px solid #d6c6ac;
}
.detail-item { display: flex; flex-direction: column; gap: 8px; padding: 24px 15px; }
.detail-item + .detail-item { border-left: 1px solid #d6c6ac; }
.detail-label { color: var(--gold); font-size: 9px; font-weight: 600; letter-spacing: .18em; }
.detail-value { font-family: var(--serif); font-size: 15px; }
.small-note { max-width: 520px; margin: 20px auto 0; color: var(--muted); font-size: 11px; }
.private-address-card {
  max-width: 560px;
  margin: 42px auto 34px;
  padding: clamp(22px, 4vw, 38px);
  background: rgba(255, 253, 248, .72);
  border: 1px solid #d6c6ac;
  text-align: left;
}
.private-address-eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
  text-align: center;
}
.private-address-card h3 {
  margin: 0;
  font: 400 clamp(25px, 4vw, 32px)/1.25 var(--serif);
  text-align: center;
}
.private-address-description {
  margin: 14px auto 22px;
  max-width: 420px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
#private-address-form {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
#invite-password {
  min-width: 0;
  flex: 1;
  min-height: 46px;
  padding: 11px 13px;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid #cbb99a;
  border-radius: 0;
  font: 13px var(--sans);
}
#invite-password:focus-visible,
.private-address-card button:focus-visible,
.private-address-card a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
#unlock-address-button,
.private-address-actions .button {
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
}
#unlock-address-button:disabled,
#copy-address-button:disabled {
  opacity: .6;
  cursor: wait;
}
.private-address-status {
  min-height: 1.6em;
  margin: 12px 0 0;
  color: #8a382d;
  font-size: 12px;
  text-align: center;
}
.private-address-status.success { color: #356344; }
.private-address-result {
  margin-top: 18px;
  padding-top: 20px;
  border-top: 1px solid #d6c6ac;
}
.private-address-result[hidden] { display: none; }
.private-address-result-label {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
}
.private-address-text {
  margin: 0;
  overflow-wrap: anywhere;
  font: 18px/1.5 var(--serif);
}
.private-address-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer { padding: 35px 20px 45px; text-align: center; color: var(--muted); font-size: 11px; }
.footer-star { color: var(--gold); font-size: 18px; }
.footer p { margin: 7px 0; }
.back-to-top { display: inline-block; margin-top: 8px; color: var(--gold); text-decoration: none; }

@media (max-width: 700px) {
  .hero { min-height: 720px; }
  .topbar { align-items: flex-start; padding: 30px 28px; }
  .language-switcher { max-width: 230px; }
  .language-button { padding: 6px 8px; font-size: 10px; }
  .hero-content { padding: 50px 0 70px; }
  .section { padding: 78px 22px; }
  .memory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .invite-details { grid-template-columns: 1fr; }
  #private-address-form { flex-direction: column; }
  #unlock-address-button { width: 100%; }
  .private-address-actions { flex-direction: column; }
  .private-address-actions .button { width: 100%; }
  .detail-item { padding: 18px 12px; }
  .detail-item + .detail-item { border-left: 0; border-top: 1px solid #d6c6ac; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
