:root {
  color-scheme: light;
  --ink: #334459;
  --muted: #718094;
  --blue-deep: #93adc1;
  --gold: #b98542;
  --line: rgba(124, 151, 171, .26);
  --shadow: 0 24px 70px rgba(62, 82, 101, .14);
  font-family: "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 236, 197, .7), transparent 26rem),
    radial-gradient(circle at 91% 28%, rgba(200, 221, 235, .66), transparent 32rem),
    linear-gradient(180deg, #fbfdff 0%, #f5f9fc 43%, #fffaf3 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .55;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(185, 133, 66, .34) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(125, 159, 185, .3) 0 1px, transparent 1.6px);
  background-position: 0 0, 32px 38px;
  background-size: 76px 76px, 94px 94px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

main { overflow: hidden; }

.language-switch {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 10;
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(124, 151, 171, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 10px 30px rgba(62, 82, 101, .12);
  backdrop-filter: blur(12px);
}

.language-switch a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 13px;
  color: #718094;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
}

.language-switch a[aria-current="page"] {
  color: #fff;
  background: #60798e;
}

.language-switch a:focus-visible {
  outline: 3px solid rgba(185, 133, 66, .48);
  outline-offset: 2px;
}

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(44px, 8vw, 96px) 0 clamp(54px, 8vw, 92px);
  text-align: center;
}

.symbol {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 24px;
  line-height: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .24em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #526a80;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 10vw, 7.8rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .95;
}

.dates {
  margin: 18px 0 34px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  letter-spacing: .05em;
}

.portrait {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: clamp(18px, 3vw, 34px);
  background: #f4e9da;
  box-shadow: var(--shadow);
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(110, 91, 67, .08);
}

.portrait img { display: block; width: 100%; height: auto; }

.portrait figcaption {
  position: relative;
  z-index: 1;
  padding: 18px 22px 20px;
  color: #60758a;
  background: rgba(255, 255, 255, .92);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-style: italic;
  line-height: 1.55;
}

.story-wrap {
  padding: clamp(64px, 9vw, 116px) 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .5);
}

.story { width: min(690px, 100%); margin: 0 auto; text-align: center; }

.story h2 {
  margin: 0 0 42px;
  color: #526a80;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
}

.story p {
  margin: 0 auto 28px;
  color: #46596d;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.9;
}

.story p:first-of-type {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.42rem, 3vw, 1.9rem);
}

.heart-line {
  width: min(220px, 56vw);
  height: 1px;
  margin: 44px auto;
  background: linear-gradient(90deg, transparent, var(--blue-deep), transparent);
}

.heart-line::after {
  content: "♡";
  display: inline-grid;
  width: 36px;
  height: 28px;
  place-items: center;
  color: var(--gold);
  background: #fbfcfc;
  font-size: 23px;
  transform: translateY(-14px);
}

.dedication { padding: clamp(64px, 9vw, 112px) 20px; text-align: center; }

.dedication p {
  max-width: 580px;
  margin: 0 auto;
  color: #65798c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  line-height: 1.75;
}

.dedication a,
footer a {
  color: inherit;
  text-decoration-color: rgba(185, 133, 66, .58);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

.dedication a:hover,
footer a:hover { color: var(--gold); }

.dedication a:focus-visible,
footer a:focus-visible {
  outline: 3px solid rgba(185, 133, 66, .4);
  outline-offset: 3px;
  border-radius: 2px;
}

footer {
  padding: 22px 20px 30px;
  color: #8a98a5;
  font-size: .74rem;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 620px) {
  .language-switch { top: 10px; right: 10px; }
  .language-switch a { min-height: 34px; padding-inline: 11px; }
  .hero { width: min(100% - 20px, 1180px); padding-top: 72px; }
  .portrait { border-radius: 16px; }
  .story-wrap { padding-inline: 24px; }
  .story p { line-height: 1.78; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise .8s both; }
  .hero .portrait { animation-delay: .12s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
