:root {
  --ink: #243045;
  --muted: #6f7580;
  --paper: #fbf8f3;
  --cream: #f3ede4;
  --white: #fffdf9;
  --blue: #526b91;
  --blue-dark: #344a6a;
  --coral: #c98276;
  --line: rgba(52, 74, 106, 0.14);
  --shadow: 0 18px 50px rgba(47, 50, 58, 0.11);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(201, 130, 118, 0.11), transparent 28rem),
    var(--paper);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

a { color: inherit; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }

.container {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-style: italic;
  text-decoration: none;
}

.wordmark::before {
  content: "☾";
  margin-right: 0.45rem;
  color: var(--coral);
  font-style: normal;
}

.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--blue-dark); }

.hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
  min-height: calc(100vh - 76px);
  padding: 5rem 0;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--coral);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 {
  margin: 0;
  font-size: clamp(4.4rem, 11vw, 8.3rem);
  font-style: italic;
  letter-spacing: -0.07em;
  line-height: 0.85;
}

.hero-copy {
  max-width: 33rem;
  margin: 2rem 0 2.25rem;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border: 1px solid var(--blue-dark);
  border-radius: 999px;
  color: var(--blue-dark);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--blue-dark); }

.hero-image-wrap { position: relative; padding: 0 0 2rem 2rem; }
.hero-image-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64%;
  height: 74%;
  border-radius: 48% 48% 8px 8px;
  background: var(--cream);
}
.hero-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 50% 50% 10px 10px;
  box-shadow: var(--shadow);
}
.hero-note {
  position: absolute;
  right: -1.2rem;
  bottom: 0.25rem;
  z-index: 1;
  width: 8.5rem;
  height: 8.5rem;
  display: grid;
  place-content: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--coral);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.4;
  text-align: center;
  transform: rotate(7deg);
}

.section { padding: clamp(5rem, 10vw, 9rem) 0; border-top: 1px solid var(--line); }
.section-soft { background: rgba(243, 237, 228, 0.65); }
.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 2rem;
  margin-bottom: 3rem;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.045em;
  line-height: 1;
}
.section-heading p { max-width: 31rem; margin: 0 0 0.35rem auto; color: var(--muted); }

.card-frame {
  padding: clamp(0.65rem, 2vw, 1.25rem);
  border: 1px solid rgba(201, 130, 118, 0.35);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.card-frame img { width: 100%; border-radius: 8px; }

.gallery {
  columns: 3 250px;
  column-gap: 1rem;
}
.gallery-item {
  display: block;
  margin: 0 0 1rem;
  overflow: hidden;
  break-inside: avoid;
  border-radius: 8px;
  background: var(--cream);
}
.gallery-item img {
  width: 100%;
  transition: transform 400ms ease, filter 400ms ease;
}
.gallery-item:hover img { transform: scale(1.025); filter: saturate(1.05); }
.gallery-footer { margin: 2.5rem 0 0; color: var(--muted); text-align: center; }
.text-link { color: var(--blue-dark); font-weight: 700; text-underline-offset: 0.25em; }

.gift-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.gift-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 110px;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.gift-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(47, 50, 58, 0.08); }
.gift-card strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; font-weight: 400; }
.gift-card span { color: var(--muted); font-size: 0.85rem; }
.gift-card::after { content: "↗"; color: var(--coral); font-size: 1.4rem; }
.gift-card.copy::after { content: "＋"; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem 0; }
.login-shell { width: min(960px, calc(100% - 40px)); display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: 20px; background: var(--white); box-shadow: var(--shadow); }
.login-image { min-height: 620px; background: url("/static/pictures/30%20-%20_RH87524.jpg") center / cover; }
.login-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(2.5rem, 6vw, 5rem); }
.login-panel h1 { font-size: clamp(3.8rem, 8vw, 6rem); }
.login-panel h2 { margin: 1.7rem 0 0.5rem; font-size: 1.5rem; }
.login-panel p { color: var(--muted); }
.login-form { margin-top: 1.5rem; }
.login-form label { display: block; margin-bottom: 0.5rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.login-form input { width: 100%; height: 50px; padding: 0 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); outline: none; }
.login-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(82, 107, 145, 0.12); }
.login-form .button { width: 100%; margin-top: 0.75rem; }
.error { margin: 0.6rem 0 0; color: #a4463d !important; font-size: 0.9rem; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  opacity: 0;
  transform: translate(-50%, 1rem);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 760px) {
  .nav-links a:not(.logout) { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 3.5rem 0 5rem; }
  .hero-content { text-align: center; }
  .hero-copy { margin-inline: auto; }
  .button-row { justify-content: center; }
  .hero-image-wrap { max-width: 520px; margin: 0 auto; padding-left: 1rem; }
  .hero-note { right: -0.5rem; width: 7rem; height: 7rem; font-size: 0.8rem; }
  .section-heading { grid-template-columns: 1fr; gap: 1rem; }
  .section-heading p { margin-left: 0; }
  .gift-grid { grid-template-columns: 1fr; }
  .login-shell { grid-template-columns: 1fr; }
  .login-image { min-height: 240px; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 28px, 1120px); }
  .site-nav { min-height: 66px; }
  .hero { padding-top: 2.75rem; }
  .gallery { columns: 2 140px; column-gap: 0.65rem; }
  .gallery-item { margin-bottom: 0.65rem; }
  .site-footer { flex-direction: column; gap: 0.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
