/* Yessie - Telegram landing page. "After dark": a full-bleed portrait fading into near-black, champagne
   gold and a hot rose accent, an italic display serif for the name. Mobile first; split screen from 900px.
   Fonts are self-hosted (static/fonts, OFL); nothing is loaded from third parties.
   Motion uses transform/opacity only and is switched off for prefers-reduced-motion.
   <body class="bg-rich"> (default) or "bg-subtle" sets the film-grain strength (content/profile.json "background"). */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-500-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/outfit-latin.woff2") format("woff2");
}

:root {
  --ink: #0b0708;
  --cream: #f7ede0;
  --cream-dim: rgba(247, 237, 224, .72);
  --gold: #e8c892;
  --gold-hi: #f8e6c2;
  --gold-lo: #c99a5c;
  --rose: #ff5d7a;
  --btn-ink: #1c1011;
  --serif: "Cormorant Garamond", "Iowan Old Style", Didot, Georgia, serif;
  --sans: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --ease-out: cubic-bezier(.2, .75, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
body {
  margin: 0;
  min-height: 100vh;
  font: 400 16px/1.5 var(--sans);
  color: var(--cream);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }

/* Film grain over everything (static texture, no animation). */
.grain {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: url("../img/grain.svg") repeat;
  opacity: .07;
}
.bg-subtle .grain { opacity: .035; }

/* ---------- hero: photo fills the screen, copy sits bottom-left ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #1a1112;
}
.hero-img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 66% 25%;
}
.hero-photo::after {                          /* fade to near-black at the bottom + soft vignette */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 7, 8, .45) 0%, rgba(11, 7, 8, 0) 16%, rgba(11, 7, 8, 0) 40%,
      rgba(11, 7, 8, .55) 56%, rgba(11, 7, 8, .9) 70%, var(--ink) 84%),
    radial-gradient(120% 80% at 55% 30%, rgba(11, 7, 8, 0) 55%, rgba(11, 7, 8, .55) 100%);
}

.hero-text {
  position: relative;
  width: 100%;
  max-width: 560px;
  padding: 0 max(26px, env(safe-area-inset-right)) calc(30px + env(safe-area-inset-bottom)) max(26px, env(safe-area-inset-left));
}
.name {
  margin: 0 0 14px -.04em;
  padding-right: .12em;                       /* room for the italic overhang */
  font: italic 500 clamp(5rem, 27vw, 7.5rem)/.82 var(--serif);
  letter-spacing: .015em;
  color: var(--cream);
  background: linear-gradient(100deg, var(--cream) 30%, var(--gold) 75%, var(--gold-lo) 105%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 24px rgba(11, 7, 8, .6));
}
.tagline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
  font: 500 12.5px/1.4 var(--sans);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
}
.tagline:has(+ .bio) { margin-bottom: 14px; }
.tagline::before {
  content: "";
  flex: 0 0 30px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--rose);
  box-shadow: 0 0 10px rgba(255, 93, 122, .8);
}

.bio {                                         /* optional short bio (content/profile.json "bio") */
  max-width: 34ch;
  margin: 0 0 24px;
  font: 400 15.5px/1.55 var(--sans);
  color: rgba(247, 237, 224, .8);              /* ~12:1 on the near-black fade */
  text-shadow: 0 1px 12px rgba(11, 7, 8, .7);
  text-wrap: pretty;
}

/* ---------- the Telegram button: wide champagne-gold pill ---------- */
.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 16px 28px;
  border-radius: 999px;
  font: 600 16.5px/1.2 var(--sans);
  letter-spacing: .02em;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn-primary {
  color: var(--btn-ink);
  background: linear-gradient(105deg, var(--gold-hi) 0%, var(--gold) 45%, var(--gold-lo) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    0 0 0 1px rgba(255, 93, 122, .0),
    0 14px 34px -12px rgba(232, 200, 146, .55),
    0 4px 22px -6px rgba(255, 93, 122, .35);
  transition: transform .18s var(--ease-out), box-shadow .3s ease;
}
.btn-primary > :not(.shine) { position: relative; z-index: 1; }
.tg-icon { flex: none; }
.shine {                                       /* clips the shimmer and tap ripples to the pill */
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}
.shine::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 34%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
  transform: translateX(-120%) skewX(-18deg);
  animation: shimmer 6s ease-in-out 1.6s infinite;
}
.ripple {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: rgba(255, 93, 122, .35);
  animation: ripple .7s ease-out forwards;
}
a.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 18px 40px -12px rgba(232, 200, 146, .7), 0 6px 28px -6px rgba(255, 93, 122, .5); }
a.btn-primary:active { transform: scale(.97); transition-duration: .08s; }
.btn-primary:focus-visible { outline: 3px solid var(--rose); outline-offset: 4px; }
.btn.is-disabled {
  color: var(--cream-dim);
  background: rgba(247, 237, 224, .06);
  box-shadow: inset 0 0 0 1px rgba(232, 200, 146, .45);
  cursor: default;
}

/* Entrance: copy rises in once. Content is fully visible without it (reduced motion, no animation support). */
.name, .tagline, .bio, .btn { animation: rise .9s var(--ease-out) both; }
.tagline { animation-delay: .12s; }
.bio { animation-delay: .18s; }
.btn { animation-delay: .24s; }

/* ---------- gallery (only rendered when content lists photos) ---------- */
.gallery { padding: 30px 0 calc(40px + env(safe-area-inset-bottom)); }
.label {
  margin: 0 0 18px;
  padding: 0 26px;
  font: 500 12.5px/1.4 var(--sans);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
}
.reel {
  display: flex;
  gap: 14px;
  padding: 0 26px 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.reel::-webkit-scrollbar { display: none; }
.shot {
  flex: 0 0 72vw;
  margin: 0;
  scroll-snap-align: center;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(232, 200, 146, .25);
}
.shot img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.reveal.pending { opacity: 0; transform: translateY(28px); }
.reveal.pending.in { opacity: 1; transform: none; transition: opacity .9s ease, transform .9s var(--ease-out); }

.footer {
  padding: 20px 26px calc(24px + env(safe-area-inset-bottom));
  font-size: 13px;
  color: var(--cream-dim);
}

/* ---------- desktop: split screen, photo left, copy right ---------- */
@media (min-width: 900px) {
  .hero {
    display: grid;
    grid-template-columns: 55% 1fr;
    align-items: center;
    min-height: 100vh;
  }
  .hero-photo {
    position: relative;
    height: 100vh;
    min-height: 560px;
    -webkit-mask-image: linear-gradient(90deg, #000 62%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 62%, transparent 100%);
  }
  .hero-img { object-position: 60% 22%; }
  .hero-photo::after {
    background:
      linear-gradient(180deg, rgba(11, 7, 8, .35) 0%, rgba(11, 7, 8, 0) 18%, rgba(11, 7, 8, 0) 70%, rgba(11, 7, 8, .7) 100%),
      radial-gradient(110% 90% at 45% 35%, rgba(11, 7, 8, 0) 55%, rgba(11, 7, 8, .6) 100%);
  }
  .hero-text { padding: 48px 6vw 48px 3vw; max-width: 600px; }
  .name { font-size: clamp(7rem, 10vw, 10rem); margin-bottom: 20px; }
  .tagline { font-size: 14px; margin-bottom: 40px; }
  .tagline:has(+ .bio) { margin-bottom: 18px; }
  .bio { font-size: 16.5px; margin-bottom: 36px; }
  .btn { width: auto; min-width: 340px; max-width: 420px; }
  .reel { justify-content: center; }
  .shot { flex: 0 1 280px; }
  .label { text-align: center; }
}

@keyframes rise    { from { opacity: 0; transform: translateY(18px); } }
@keyframes shimmer { 0%, 70% { transform: translateX(-120%) skewX(-18deg); } 100% { transform: translateX(520%) skewX(-18deg); } }
@keyframes ripple  { to { transform: scale(26); opacity: 0; } }

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