:root {
  --ios-glass-light: rgba(255, 255, 255, 0.58);
  --ios-glass-soft: rgba(255, 255, 255, 0.38);
  --ios-glass-dark: rgba(26, 18, 22, 0.58);
  --ios-glass-border: rgba(255, 255, 255, 0.62);
  --ios-glass-gold: rgba(218, 185, 127, 0.28);
  --ios-glass-shadow:
    0 22px 60px rgba(71, 42, 52, 0.12),
    0 3px 14px rgba(71, 42, 52, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

html {
  background: #f7f2ec;
}

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 220, 229, 0.45), transparent 28rem),
    radial-gradient(circle at 90% 18%, rgba(218, 185, 127, 0.22), transparent 30rem),
    #faf7f2;
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 76%, rgba(255, 255, 255, 0.62), transparent 24rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 42%);
}

.glass-panel,
form.glass-panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.38)) !important;
  border: 1px solid var(--ios-glass-border) !important;
  border-radius: 24px !important;
  box-shadow: var(--ios-glass-shadow) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
}

body > header,
header.glass-panel {
  background: rgba(250, 247, 242, 0.68) !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
  border-radius: 0 0 26px 26px !important;
  box-shadow:
    0 12px 34px rgba(71, 42, 52, 0.09),
    inset 0 -1px 0 rgba(218, 185, 127, 0.14) !important;
  -webkit-backdrop-filter: blur(26px) saturate(180%) !important;
  backdrop-filter: blur(26px) saturate(180%) !important;
}

#root > div > nav > div {
  background:
    linear-gradient(145deg, rgba(32, 23, 27, 0.72), rgba(19, 14, 17, 0.52)) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
}

#main-content {
  background:
    radial-gradient(circle at 86% 12%, rgba(245, 207, 219, 0.22), transparent 30rem),
    radial-gradient(circle at 8% 48%, rgba(218, 185, 127, 0.14), transparent 28rem),
    hsl(var(--background)) !important;
}

#story [class*="overflow-hidden"][class*="rounded-sm"],
#gallery [class*="overflow-hidden"][class*="rounded-sm"],
main .rounded-lg,
#portal-hero-section {
  border-radius: 24px !important;
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow:
    0 22px 56px rgba(61, 36, 45, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

#gallery [class*="overflow-hidden"][class*="rounded-sm"] {
  background: var(--ios-glass-dark);
  border-color: rgba(255, 255, 255, 0.12);
}

#rates [class*="border-l-2"],
#story [class*="border"][class*="border-primary/20"][class*="rounded-sm"] {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.26));
  border: 1px solid rgba(255, 255, 255, 0.68) !important;
  border-left: 1px solid rgba(218, 185, 127, 0.38) !important;
  border-radius: 22px;
  box-shadow: var(--ios-glass-shadow);
  padding: 30px !important;
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
}

input,
select,
textarea {
  background: rgba(255, 255, 255, 0.48) !important;
  border-color: rgba(255, 255, 255, 0.78) !important;
  border-radius: 14px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 6px 18px rgba(71, 42, 52, 0.06);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

button,
.btn-gold {
  border-radius: 14px !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(218, 185, 127, 0.82);
  outline-offset: 3px;
}

#mobile-bottom-nav {
  background:
    linear-gradient(180deg, rgba(31, 22, 27, 0.9), rgba(18, 13, 16, 0.96)) !important;
  border-top-color: rgba(218, 185, 127, 0.28) !important;
  box-shadow:
    0 -14px 42px rgba(20, 12, 16, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
}

#mobile-bottom-nav > div {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045)) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  width: min(100%, 430px);
  gap: 4px !important;
  padding: 5px !important;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

#mobile-bottom-nav a {
  flex: 1 1 0;
  min-width: 0;
  padding: 10px 7px;
  border: 1px solid transparent !important;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76) !important;
  font-size: 9px !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  line-height: 1;
  text-align: center;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

#mobile-bottom-nav a[aria-current="page"] {
  color: #fff4df !important;
  background:
    linear-gradient(145deg, rgba(218, 185, 127, 0.3), rgba(218, 185, 127, 0.14)) !important;
  border-color: rgba(218, 185, 127, 0.42) !important;
  box-shadow:
    0 5px 18px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

#age-gate-overlay {
  background: rgba(24, 17, 21, 0.78) !important;
  -webkit-backdrop-filter: blur(34px) saturate(160%) !important;
  backdrop-filter: blur(34px) saturate(160%) !important;
}

#age-gate-overlay > div {
  margin: 20px;
  padding: 38px 30px !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

#age-gate-enter,
#age-gate-exit {
  border-radius: 14px !important;
}

footer {
  background: rgba(240, 235, 228, 0.62) !important;
  border-color: rgba(255, 255, 255, 0.72) !important;
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
}

/* Stronger readability on photography without changing the editorial design. */
#scroll-text-container > div,
#scroll-welcome > div {
  padding: 22px 30px !important;
  background: rgba(20, 14, 17, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(12px) saturate(135%);
  backdrop-filter: blur(12px) saturate(135%);
}

#scroll-text-container p,
#scroll-welcome h2 {
  text-shadow:
    0 2px 5px rgba(0, 0, 0, 0.95),
    0 8px 26px rgba(0, 0, 0, 0.76) !important;
}

main .relative > .absolute.bottom-4.left-6 {
  padding: 9px 13px;
  color: #fff4df !important;
  background: rgba(28, 20, 24, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
}

main .relative > .absolute.bottom-4.left-6 span {
  color: #fff4df !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.72);
}

/* Tighter, more intentional vertical rhythm. */
#main-content > section[class*="relative w-full overflow-hidden"] > [class*="grid md:grid-cols-2"] {
  min-height: 0 !important;
  height: min(78svh, 760px);
}

#main-content section[class*="py-28"],
#main-content section[class*="py-24"] {
  padding-top: 88px !important;
  padding-bottom: 88px !important;
}

#main-content section[class*="py-32"] {
  padding-top: 96px !important;
  padding-bottom: 96px !important;
}

#story > div > [class*="mb-24"],
#story > div > [class*="md:mb-32"] {
  margin-bottom: 76px !important;
}

#main-content [class~="mb-16"] {
  margin-bottom: 44px !important;
}

#gallery .editorial-gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 12px !important;
  height: auto !important;
}

#gallery .editorial-gallery-grid > * {
  width: auto !important;
  margin-top: 0 !important;
  aspect-ratio: 4 / 5 !important;
}

#gallery .editorial-gallery-grid img {
  object-position: center top;
}

body > main {
  padding-top: 42px !important;
  padding-bottom: 52px !important;
}

body > main[class*="space-y-10"] > :not([hidden]) ~ :not([hidden]) {
  margin-top: 30px !important;
}

body > main > .relative[class*="mb-8"] {
  margin-bottom: 24px !important;
}

body > footer[class*="py-12"] {
  padding-top: 34px !important;
  padding-bottom: 34px !important;
}

@media (max-width: 767px) {
  .glass-panel,
  form.glass-panel {
    border-radius: 20px !important;
    -webkit-backdrop-filter: blur(22px) saturate(170%) !important;
    backdrop-filter: blur(22px) saturate(170%) !important;
  }

  #story [class*="overflow-hidden"][class*="rounded-sm"],
  #gallery [class*="overflow-hidden"][class*="rounded-sm"],
  main .rounded-lg,
  #portal-hero-section {
    border-radius: 20px !important;
  }

  #scroll-text-container > div,
  #scroll-welcome > div {
    width: min(100%, 340px);
    padding: 17px 19px !important;
    border-radius: 20px;
  }

  #scroll-text-container p {
    font-size: clamp(28px, 9vw, 36px) !important;
  }

  #scroll-welcome h2 {
    font-size: clamp(36px, 12vw, 48px) !important;
  }

  #main-content > section[class*="relative w-full overflow-hidden"] > [class*="grid md:grid-cols-2"] {
    height: auto;
  }

  #main-content section[class*="py-28"],
  #main-content section[class*="py-24"],
  #main-content section[class*="py-32"] {
    padding-top: 62px !important;
    padding-bottom: 62px !important;
  }

  #story > div > [class*="mb-24"],
  #story > div > [class*="md:mb-32"] {
    margin-bottom: 50px !important;
  }

  #main-content [class~="mb-16"] {
    margin-bottom: 34px !important;
  }

  #gallery .grid.grid-cols-2.md\:hidden {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  #gallery .grid.grid-cols-2.md\:hidden > * {
    aspect-ratio: 1 / 1 !important;
  }

  #gallery .editorial-gallery-grid {
    display: none !important;
  }

  #story [class*="md:grid-cols-3"] {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  #story [class*="md:grid-cols-3"] > * {
    aspect-ratio: 4 / 5 !important;
    min-height: 0 !important;
  }

  #gallery + section [class*="aspect-[3/4]"] {
    aspect-ratio: 4 / 3 !important;
  }

  #main-content > section[class*="relative w-full overflow-hidden"] [class*="py-16"] {
    padding-top: 42px !important;
    padding-bottom: 42px !important;
  }

  body > main {
    padding-top: 28px !important;
    padding-bottom: 38px !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .glass-panel,
  form.glass-panel,
  #mobile-bottom-nav,
  #mobile-bottom-nav > div,
  #age-gate-overlay > div {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}
/* Keep the light editorial sections comfortably readable. */
#root .text-foreground\/60 {
  color: rgba(58, 44, 48, 0.88) !important;
}

#root .text-foreground\/70 {
  color: rgba(58, 44, 48, 0.9) !important;
}

#root .border-primary\/20 {
  border-color: rgba(148, 110, 65, 0.3) !important;
}

#root h4 {
  color: #3a2c30;
  font-weight: 500;
}

/* Social profiles integrated into the footer — no cards or floating panel. */
.social-links-panel {
  width: min(100%, 860px);
  margin: 1.5rem auto 1.5rem;
  padding: 1.25rem 0 0;
  border: 0;
  border-top: 1px solid rgba(218, 185, 127, 0.25);
  border-radius: 0;
  color: #3a2c30;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

#connect .social-links-panel {
  border-top-color: rgba(218, 185, 127, 0.22);
  color: #faf7f2;
}

.social-links-eyebrow {
  margin: 0 0 1.15rem;
  color: #dab97f;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

#connect .social-links-eyebrow {
  color: #dab97f;
}

.social-links-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem clamp(1.1rem, 3vw, 2rem);
}

.social-link {
  position: relative;
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.75rem;
  color: inherit !important;
  border: 0 !important;
  border-radius: 9999px;
  background: transparent;
  box-shadow: none;
  text-decoration: none !important;
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.social-link::after {
  display: none !important;
}

.social-link:hover,
.social-link:focus-visible {
  color: #b98a50 !important;
  transform: translateY(-1px);
}

#connect .social-link:hover,
#connect .social-link:focus-visible {
  color: #dab97f !important;
}

.social-link:hover::after,
.social-link:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.social-link:focus-visible {
  outline: 2px solid #dab97f;
  outline-offset: 5px;
}

.social-link-icon {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.social-link-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.social-link-icon-wide {
  width: 42px;
  flex-basis: 42px;
}

.social-link-icon-wide img {
  width: 42px;
  height: 22px;
}

.social-link-copy {
  display: block;
  min-width: 0;
}

.social-link-copy strong {
  color: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-transform: uppercase;
}

@media (max-width: 620px) {
  .social-links-panel {
    margin: 2.4rem auto 1.5rem;
    padding: 1.35rem 0.35rem 0;
  }

  .social-links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem 1rem;
  }

  .social-link {
    justify-content: center;
  }
}
