@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('/fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 100 1000; font-display: swap; src: url('/fonts/dm-sans-latin-wght-normal.woff2') format('woff2'); }

:root {
  --color-primary: #FF2D96;
  --color-primary-button: #D9167B;
  --color-primary-hover: #B90D66;
  --color-secondary: #D58AF5;
  --color-accent: #7210B5;
  --color-text: #301344;
  /* Muted Mauve (#86758F) is 4.1:1 on white; this darker mauve is 5.7:1 and is what small text uses. */
  --color-text-soft: #6F5F78;
  --color-background: #FFFBFE;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F5EAFC;
  --color-highlight: #FFF0F7;
  --color-border: #EADCF2;
  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius-card: 20px;
  --radius-pill: 9999px;
  --shadow-card: 0 4px 20px rgba(48, 19, 68, 0.06);
  --shadow-card-hover: 0 8px 30px rgba(48, 19, 68, 0.12);
  --transition-fast: 150ms ease;
  --transition-normal: 200ms ease;
  --transition-slow: 300ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--color-background); color: var(--color-text); font: 400 16px/1.6 var(--font-body); }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--color-accent); }
h1, h2, h3 { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

.top { border-bottom: 1px solid var(--color-border); background: var(--color-background); }
.top-in { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: block; }
.logo img { height: 48px; width: auto; }
.age { font: 600 13px var(--font-body); color: var(--color-accent); }

.hero { padding: 24px 0 8px; }
.hero h1 { font: 800 34px/1.1 var(--font-heading); letter-spacing: -0.02em; margin: 0 0 6px; }
.hero p, .empty { margin: 0; color: var(--color-text-soft); }
.empty { padding: 24px 0 48px; }

/* The landing page: what bubblyX is, then one featured model. */
.landing-hero { max-width: 720px; padding-bottom: 20px; }
.landing-hero p { margin: 8px 0 0; }
.landing-hero .soon { font: 600 14px var(--font-body); color: var(--color-accent); }
.featured { padding-bottom: 24px; }
.featured-media { display: block; position: relative; margin: 0 -16px; aspect-ratio: 4 / 5; max-height: calc(100svh - 160px); background: var(--color-surface-alt); overflow: hidden; }
.featured-media img, .featured-media video { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.featured-info { padding-top: 14px; }
.featured-label { display: inline-block; margin: 0 0 6px; padding: 2px 12px; border-radius: var(--radius-pill); background: var(--color-highlight); color: var(--color-primary-button); font: 700 12px/1.6 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; }
.featured-info h2 { font: 800 32px/1.1 var(--font-heading); letter-spacing: -0.02em; margin: 0; }
.featured-tagline { margin: 4px 0 0; font-weight: 600; }
.featured-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 20px; }
.featured-pic { display: block; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--color-surface-alt); }
.featured-pic img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px 0 48px; }
.cards.feed { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.card { display: block; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); color: inherit; text-decoration: none; transition: transform var(--transition-normal), box-shadow var(--transition-normal); }
.card-media { position: relative; aspect-ratio: 4 / 5; background: var(--color-surface-alt); }
.card-media img, .card-media video { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.card-meta { padding: 10px 12px 12px; }
.card-meta h3 { font: 700 18px/1.2 var(--font-heading); margin: 0; }
.card-meta p { margin: 2px 0 0; font-size: 14px; color: var(--color-text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.model { padding-bottom: 96px; }
.model-media { position: relative; margin: 0 -16px; height: min(125vw, calc(100vh - 300px)); height: min(125vw, calc(100svh - 300px)); min-height: 240px; background: var(--color-surface-alt); }
.model-media img, .model-media video { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.model-head { padding: 14px 0 0; }
.model-head h1 { font: 800 32px/1.1 var(--font-heading); letter-spacing: -0.02em; margin: 0; }
.bio { margin: 6px 0 0; color: var(--color-text-soft); }
.cta { display: block; text-align: center; background: var(--color-primary-button); color: #fff; font: 600 16px/1.25 var(--font-body); padding: 14px 24px; min-height: 48px; border-radius: var(--radius-pill); text-decoration: none; margin-top: 14px; transition: background var(--transition-fast); }
.cta:hover { background: var(--color-primary-hover); }
.cta-note { text-align: center; font-size: 12.5px; color: var(--color-text-soft); margin: 6px 0 0; }
.section-title { font: 700 22px/1.2 var(--font-heading); margin: 32px 0 12px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.gallery > * { aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--color-surface-alt); }
.gallery img, .gallery video { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
/* Darker than the brand's lavender-to-purple gradient so white text is readable on all of it. */
.more-tile { display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px; color: #fff; font: 700 14px/1.3 var(--font-body); text-decoration: none; background: linear-gradient(135deg, #8E2BC9 0%, #5A0C91 100%); }
.others .cards { padding-bottom: 0; }

/* The viewer: one picture big on a dark plum backdrop. The picture is shown whole, as large as the screen and its own size allow. */
.zoom { display: block; width: 100%; height: 100%; cursor: zoom-in; }
html:has(.viewer[open]) { overflow: hidden; }
.viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: transparent; color: #fff; touch-action: pinch-zoom; }
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: viewer-in var(--transition-normal); }
.viewer::backdrop { background: rgba(24, 8, 36, 0.95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); animation: viewer-in var(--transition-normal); }
.viewer [hidden] { display: none !important; }
.viewer-top { display: flex; align-items: center; justify-content: space-between; padding: calc(8px + env(safe-area-inset-top)) 8px 8px 20px; }
.viewer-count { font: 600 14px var(--font-body); color: rgba(255, 255, 255, 0.75); font-variant-numeric: tabular-nums; }
.viewer-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.7); cursor: pointer; transition: background var(--transition-fast), color var(--transition-fast); }
.viewer-btn:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }
.viewer:focus { outline: none; }
.viewer :focus-visible { outline-color: #fff; }
.viewer-prev, .viewer-next { position: absolute; top: 50%; margin-top: -22px; }
.viewer-prev { left: 8px; }
.viewer-next { right: 8px; }
.viewer-stage, .viewer-end { grid-row: 2; display: flex; align-items: center; justify-content: center; padding: 0 12px; }
.viewer-stage { container-type: size; }
.viewer-stage > * { --w: 1280; width: min(100cqw, 100cqh * var(--r), var(--w) * 1px); max-width: none; height: auto; aspect-ratio: var(--r); border-radius: 12px; background: rgba(255, 255, 255, 0.06); box-shadow: 0 16px 60px rgba(0, 0, 0, 0.45); animation: viewer-in var(--transition-slow); }
.viewer-end { flex-direction: column; text-align: center; padding: 0 64px; }
.viewer-end-title { font: 800 30px/1.15 var(--font-heading); letter-spacing: -0.02em; margin: 0 0 6px; }
.viewer-end .cta { width: 100%; max-width: 360px; }
.viewer-end .cta-note { color: rgba(255, 255, 255, 0.7); }
.viewer-foot { grid-row: 3; display: flex; justify-content: center; min-height: 68px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.viewer-foot .cta { margin: 0; min-height: 44px; padding: 12px 22px; font-size: 15px; }
@keyframes viewer-in { from { opacity: 0; } }

.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; gap: 12px; align-items: center; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 251, 254, 0.97); border-top: 1px solid var(--color-border); transform: translateY(110%); visibility: hidden; transition: transform var(--transition-slow), visibility var(--transition-slow); }
.bar.show { transform: none; visibility: visible; }
.bar-name { flex: 1; min-width: 0; font: 700 16px var(--font-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .cta { margin: 0; padding: 12px 20px; white-space: nowrap; }

.foot { border-top: 1px solid var(--color-border); margin-top: 48px; padding: 24px 0 32px; font-size: 13px; color: var(--color-text-soft); }
.foot p { margin: 0 0 6px; }
.foot a { color: inherit; margin-right: 16px; }
.legal { max-width: 720px; padding: 32px 0; }
.legal h1 { font: 700 32px/1.2 var(--font-heading); margin: 0 0 16px; }
.legal h2 { font: 700 20px/1.3 var(--font-heading); margin: 28px 0 8px; }

@media (hover: hover) {
  .card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
}

@media (min-width: 640px) {
  .wrap { padding: 0 24px; }
  .hero h1 { font-size: 44px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .cards.feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: center; padding-top: 16px; }
  .featured-media { margin: 0; max-height: none; border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
  .featured-info { padding-top: 0; }
  .featured-info .cta { max-width: 360px; }
  .featured-strip { gap: 8px; max-width: 480px; }
  .model-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: start; padding-top: 24px; }
  .model-media { margin: 0; height: auto; min-height: 0; aspect-ratio: 4 / 5; border-radius: var(--radius-card); overflow: hidden; }
  .model-head { padding: 0; }
  .model-head .cta, .model-head .cta-note { max-width: 360px; }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .gallery-cta { max-width: 360px; }
  .viewer-prev { left: 20px; }
  .viewer-next { right: 20px; }
  .viewer-stage, .viewer-end { padding: 0 84px; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 56px; }
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .cards.feed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .model { padding-bottom: 0; }
  .model-media { position: sticky; top: 24px; }
  /* On desktop the name and the button stay at the top of the right column while the gallery scrolls under them. */
  .model-head { position: sticky; top: 0; z-index: 2; background: var(--color-background); padding: 16px 0; }
  .model-head h1 { font-size: 46px; }
  .featured-info h2 { font-size: 46px; }
  .bar { display: none; }
}

@media (min-width: 1440px) {
  .cards:not(.feed) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .others .cards:not(.feed) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
