:root {
  --bg: #fff9ef;
  --bg2: #f2fbff;
  --card: rgba(255, 255, 255, 0.74);
  --card2: rgba(255, 255, 255, 0.86);
  --text: rgba(16, 33, 44, 0.94);
  --muted: rgba(16, 33, 44, 0.72);
  --faint: rgba(16, 33, 44, 0.58);
  --border: rgba(16, 33, 44, 0.14);
  --shadow: 0 14px 34px rgba(16, 33, 44, 0.1);

  --primary: #48c7c2;
  --primary2: #ffd1a3;
  --focus: rgba(72, 199, 194, 0.45);

  --radius: 16px;
  --radius2: 22px;
  --container: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(1100px 700px at 18% -10%, rgba(255, 209, 163, 0.5), transparent 55%),
    radial-gradient(900px 600px at 85% 5%, rgba(72, 199, 194, 0.26), transparent 55%),
    radial-gradient(900px 700px at 55% 75%, rgba(158, 221, 255, 0.22), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  min-height: 100vh;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.skip-link:focus {
  left: 12px;
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(255, 249, 239, 0.78);
  border-bottom: 1px solid rgba(16, 33, 44, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 18px;
  flex-wrap: wrap;
}

.brand-title {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 16px;
}

.brand-subtitle {
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 10px;
}

.nav a:hover {
  color: var(--text);
  background: rgba(16, 33, 44, 0.06);
}

.hero {
  padding: 64px 0 28px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 240px at 15% 18%, rgba(72, 199, 194, 0.12), transparent 60%),
    radial-gradient(900px 240px at 85% 30%, rgba(255, 209, 163, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  opacity: 0.9;
}

.hero {
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 22px;
  align-items: stretch;
}

.hero-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 4.5vw, 46px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero-copy p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 16px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 14px;
}

.hero-note {
  color: var(--faint);
  font-size: 13px;
}

.banner {
  padding: 8px 0 0;
}

.banner-media {
  height: 420px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
  border: 0;
  box-shadow: none;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0)),
    var(--banner-image, none);
  background-size: cover;
  background-position: center;
}

.section {
  padding: 14px 0;
}

.section.alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
  border-top: 1px solid rgba(16, 33, 44, 0.06);
  border-bottom: 1px solid rgba(16, 33, 44, 0.06);
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.grid > article {
  grid-column: span 6;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  align-items: start;
}

.gift-grid.slider {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: visible;
  align-items: flex-start;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
}

.gift-grid.slider .gift {
  flex: 0 0 320px;
  max-width: 320px;
  scroll-snap-align: start;
}

@media (min-width: 740px) {
  .gift-grid.slider {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    overflow: visible;
    scroll-snap-type: none;
  }

  .gift-grid.slider .gift {
    width: 100%;
    max-width: none;
  }

  .gift {
    max-width: none;
  }
}

.gift-grid.slider::-webkit-scrollbar {
  height: 10px;
}

.gift-grid.slider::-webkit-scrollbar-track {
  background: rgba(16, 33, 44, 0.06);
  border-radius: 999px;
}

.gift-grid.slider::-webkit-scrollbar-thumb {
  background: rgba(16, 33, 44, 0.16);
  border-radius: 999px;
}

.gift {
  max-width: 340px;
  width: 100%;
}

.gift {
  display: flex;
}

.gift-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.gift-link:hover .gift-card {
  transform: translateY(-1px);
}

.gift-card {
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.gift-link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
  border-radius: var(--radius2);
}

.gift-summary {
  list-style: none;
  cursor: pointer;
}

.gift-summary::-webkit-details-marker {
  display: none;
}

.gift-card {
  border: 1px solid rgba(16, 33, 44, 0.12);
  border-radius: var(--radius2);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.gift-media {
  height: 210px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    radial-gradient(900px 280px at 20% 20%, rgba(72, 199, 194, 0.22), transparent 60%),
    radial-gradient(900px 280px at 75% 35%, rgba(255, 209, 163, 0.32), transparent 60%),
    var(--gift-image, none),
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.45));
  background-size: cover;
  background-position: center;
}

.gift-media--registry {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    radial-gradient(900px 280px at 20% 18%, rgba(158, 221, 255, 0.24), transparent 60%),
    radial-gradient(900px 280px at 78% 40%, rgba(255, 209, 163, 0.28), transparent 60%),
    var(--gift-image, none),
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.45));
  background-size: cover;
  background-position: center;
}

.gift-content {
  padding: 16px;
  background: rgba(232, 225, 214, 0.55);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 142px;
}

.gift-title {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 18px;
}

.gift-subtitle {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}

.gift-cta {
  margin-top: 14px;
  margin-top: auto;
}

.gift-details {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(16, 33, 44, 0.08);
}

.card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--card), rgba(255, 255, 255, 0.58));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-title {
  padding: 16px 16px 0;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.card-body {
  padding: 12px 16px 16px;
}

.hint {
  margin-top: 10px;
  color: var(--faint);
  font-size: 12.5px;
}

.field {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.field-label {
  font-size: 12px;
  color: var(--faint);
}

.field-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(16, 33, 44, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 13px;
  color: rgba(16, 33, 44, 0.92);
  overflow-wrap: anywhere;
}

.small {
  font-size: 12.5px;
}

.muted {
  color: var(--muted);
}

.stack {
  display: grid;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(16, 33, 44, 0.14);
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
}

.btn-dark {
  border: 1px solid rgba(16, 33, 44, 0.85);
  background: rgba(16, 33, 44, 0.92);
  color: rgba(255, 255, 255, 0.94);
}

.btn-dark:hover {
  background: rgba(16, 33, 44, 0.98);
}

.btn:hover {
  background: rgba(255, 255, 255, 0.92);
}

.btn-primary {
  border: 1px solid rgba(72, 199, 194, 0.42);
  background: linear-gradient(90deg, rgba(72, 199, 194, 0.3), rgba(255, 209, 163, 0.35));
}

.btn-primary:hover {
  background: linear-gradient(90deg, rgba(72, 199, 194, 0.42), rgba(255, 209, 163, 0.48));
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.74);
}

.copy {
  appearance: none;
  border: 1px solid rgba(16, 33, 44, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 10px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}

.copy:hover {
  background: rgba(255, 255, 255, 0.92);
}

.copy:focus-visible,
.btn:focus-visible,
.nav a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(16, 33, 44, 0.12);
  text-decoration: none;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
}

.link-row:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
}

.hero-card {
  align-self: start;
}

.callout {
  margin-top: 18px;
  border: 1px solid rgba(16, 33, 44, 0.12);
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(255, 209, 163, 0.22), rgba(72, 199, 194, 0.14));
  padding: 16px;
}

.callout-title {
  font-weight: 650;
  margin-bottom: 6px;
}

.callout-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.registry-card {
  max-width: 560px;
}

.faq {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

details.card {
  padding: 0;
}

details summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 650;
}

details summary::-webkit-details-marker {
  display: none;
}

details[open] summary {
  border-bottom: 1px solid rgba(16, 33, 44, 0.1);
}

.site-footer {
  padding: 24px 0 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(16, 33, 44, 0.08);
  padding-top: 18px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(16, 33, 44, 0.16);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  font-size: 13px;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .grid > article {
    grid-column: span 12;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }

  .nav a {
    padding: 8px 10px;
  }

  .hero {
    padding: 14px 0 18px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .field-value {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .copy {
    width: 100%;
  }

  .gift-media {
    height: 180px;
  }

  .banner-media {
    height: 170px;
  }

  .gift-grid.slider {
    gap: 14px;
  }

  .gift-grid.slider .gift {
    flex-basis: 86vw;
    max-width: 86vw;
  }
}
