/* ============================================================
   Cosmic Besties — styles.css
   Shared stylesheet. Reused by index.html, 404.html, and any
   future pages you add. Brand tokens live in :root below.
   ============================================================ */

:root{
  --night:#150E2E;
  --night-2:#241646;
  --plum:#5C2D5C;
  --rose:#E6A4BC;
  --gold:#E8C887;
  --lavender:#C9BBE8;
  --cream:#F4ECE2;
  --cream-dim:rgba(244,236,226,.66);
  --line:rgba(201,187,232,.18);
  --glass:rgba(244,236,226,.04);
  --glass-edge:rgba(244,236,226,.12);
  --maxw:1120px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--night);
  color:var(--cream);
  font-family:"Jost",system-ui,sans-serif;
  font-weight:300;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}

/* ---------- cosmic backdrop ---------- */
.sky{position:fixed;inset:0;z-index:-2;
  background:
    radial-gradient(120% 90% at 20% -10%, rgba(92,45,92,.55), transparent 55%),
    radial-gradient(100% 80% at 90% 0%, rgba(232,200,135,.10), transparent 50%),
    radial-gradient(120% 100% at 50% 120%, rgba(201,187,232,.12), transparent 55%),
    linear-gradient(180deg,var(--night) 0%, var(--night-2) 55%, var(--night) 100%);
}
.stars{position:fixed;inset:0;z-index:-1;pointer-events:none;}
.star{position:absolute;width:2px;height:2px;border-radius:50%;
  background:var(--cream);opacity:.5;animation:twinkle 4s ease-in-out infinite;}
@keyframes twinkle{0%,100%{opacity:.15;transform:scale(.7);}50%{opacity:.9;transform:scale(1.15);}}

/* ---------- layout ---------- */
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 28px;}
.eyebrow{
  font-size:.72rem;letter-spacing:.42em;text-transform:uppercase;
  color:var(--gold);font-weight:500;margin:0 0 18px;
}
h1,h2,h3{font-family:"Fraunces",serif;font-weight:400;line-height:1.08;margin:0;}

/* ---------- hero ---------- */
header.hero{position:relative;text-align:center;
  padding:clamp(70px,12vh,130px) 0 clamp(22px,3.5vh,40px);}
.signature{position:relative;width:min(420px,82vw);height:230px;margin:0 auto 14px;}
.orbit{position:absolute;top:50%;left:50%;width:340px;height:150px;
  margin:-75px 0 0 -170px;border:1px dashed rgba(232,200,135,.35);
  border-radius:50%;transform:rotate(-12deg);
  animation:spin 60s linear infinite;max-width:90vw;}
.orbit::after{content:"";position:absolute;top:-3px;left:50%;width:6px;height:6px;
  margin-left:-3px;border-radius:50%;background:var(--gold);
  box-shadow:0 0 12px 3px rgba(232,200,135,.8);}
@keyframes spin{to{transform:rotate(348deg);}}

.orb{position:absolute;top:50%;border-radius:50%;
  animation:float 7s ease-in-out infinite;}
.orb.k{left:50%;width:118px;height:118px;margin:-59px 0 0 -118px;
  background:radial-gradient(circle at 35% 30%, #F6C9DA, var(--rose) 45%, var(--plum) 100%);
  box-shadow:0 0 46px rgba(230,164,188,.55), inset 0 0 30px rgba(92,45,92,.5);}
.orb.c{left:50%;width:104px;height:104px;margin:-44px 0 0 6px;
  background:radial-gradient(circle at 35% 30%, #FBEBC4, var(--gold) 50%, #B98C6A 100%);
  box-shadow:0 0 46px rgba(232,200,135,.5), inset 0 0 28px rgba(120,80,60,.45);
  animation-delay:-3.5s;}
@keyframes float{0%,100%{transform:translateY(-6px);}50%{transform:translateY(6px);}}

.link-line{position:absolute;top:50%;left:50%;width:60px;height:1px;
  margin:-1px 0 0 -30px;background:linear-gradient(90deg,transparent,var(--lavender),transparent);
  opacity:.6;}

.hero h1{font-size:clamp(2.9rem,9vw,5.6rem);letter-spacing:-.01em;
  background:linear-gradient(120deg,var(--cream),var(--lavender) 60%,var(--gold));
  -webkit-background-clip:text;background-clip:text;color:transparent;}
.hero h1 em{font-style:italic;font-weight:500;}
.hero .tag{font-family:"Fraunces",serif;font-style:italic;font-weight:400;
  font-size:clamp(1.15rem,2.6vw,1.5rem);color:var(--cream);
  margin:22px auto 0;max-width:30ch;}
.hero .sub{color:var(--cream-dim);max-width:50ch;margin:18px auto 0;font-size:1.02rem;}

.cta-row{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-top:36px;}
.btn{display:inline-flex;align-items:center;gap:9px;
  padding:14px 26px;border-radius:100px;font-family:"Jost",sans-serif;
  font-weight:500;font-size:.92rem;letter-spacing:.02em;cursor:pointer;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease;}
.btn-primary{background:linear-gradient(120deg,var(--rose),var(--gold));color:#2a1330;
  box-shadow:0 8px 30px rgba(232,200,135,.28);}
.btn-primary:hover{transform:translateY(-3px);box-shadow:0 14px 40px rgba(232,200,135,.4);}
.btn-ghost{border:1px solid var(--glass-edge);color:var(--cream);background:var(--glass);}
.btn-ghost:hover{transform:translateY(-3px);border-color:var(--lavender);}
.btn svg{width:17px;height:17px;}

/* ---------- generic section ---------- */
section{padding:clamp(32px,5vh,56px) 0;}
.reveal{opacity:0;transform:translateY(26px);
  transition:opacity .8s ease, transform .8s ease;}
.reveal.in{opacity:1;transform:none;}

/* ---------- intro ---------- */
.intro{text-align:center;max-width:60ch;margin:0 auto;}
.intro h2{font-size:clamp(1.7rem,4vw,2.5rem);margin-bottom:18px;}
.intro p{color:var(--cream-dim);font-size:1.08rem;}
.glyph{display:flex;align-items:center;justify-content:center;gap:14px;
  color:var(--gold);margin:0 0 26px;font-size:.8rem;letter-spacing:.3em;}
.glyph::before,.glyph::after{content:"";height:1px;width:54px;
  background:linear-gradient(90deg,transparent,var(--line));}
.glyph::after{background:linear-gradient(90deg,var(--line),transparent);}

/* ---------- meet the besties ---------- */
.meet-head{text-align:center;margin-bottom:48px;}
.meet-head h2{font-size:clamp(1.9rem,4.5vw,2.8rem);}
.besties{display:grid;grid-template-columns:1fr 1fr;gap:26px;}
.card{position:relative;padding:38px 32px 34px;border-radius:24px;
  background:var(--glass);border:1px solid var(--glass-edge);
  backdrop-filter:blur(10px);text-align:center;
  transition:transform .3s ease, border-color .3s ease, box-shadow .3s ease;}
.card:hover{transform:translateY(-6px);border-color:var(--lavender);
  box-shadow:0 20px 60px rgba(21,14,46,.6);}

/* orb photo frame — reuses the binary-star motif.
   Drop a square photo at assets/img/kelly.jpg / cristiana.jpg and it
   appears automatically; if the file is missing, the initial shows. */
.orb-photo{width:150px;height:150px;border-radius:50%;margin:0 auto 22px;
  position:relative;display:flex;align-items:center;justify-content:center;
  font-family:"Fraunces",serif;font-size:3rem;color:var(--cream);}
.orb-photo.k{box-shadow:0 0 0 1px rgba(230,164,188,.4),0 0 46px rgba(230,164,188,.35);
  background-color:rgba(230,164,188,.14);}
.orb-photo.c{box-shadow:0 0 0 1px rgba(232,200,135,.4),0 0 46px rgba(232,200,135,.32);
  background-color:rgba(232,200,135,.14);}
.orb-photo .ring{position:absolute;inset:-9px;border-radius:50%;
  border:1px dashed rgba(201,187,232,.4);}
.orb-photo .photo{position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;border-radius:50%;}

.card .name{font-family:"Fraunces",serif;font-size:1.75rem;margin:0;}
.card .role{color:var(--gold);font-size:.74rem;letter-spacing:.22em;
  text-transform:uppercase;margin:9px 0 16px;font-weight:500;}
.card .bio{color:var(--cream-dim);font-size:1rem;margin:0 0 26px;}
.card-links{display:flex;flex-direction:column;gap:10px;}
.pill{display:flex;align-items:center;justify-content:space-between;
  padding:13px 20px;border-radius:14px;border:1px solid var(--glass-edge);
  font-size:.92rem;font-weight:400;transition:background .25s ease, border-color .25s ease;}
.pill span.sm{color:var(--cream-dim);font-size:.78rem;}
.pill:hover{background:rgba(244,236,226,.07);border-color:var(--lavender);}
.pill .arr{color:var(--gold);transition:transform .25s ease;}
.pill:hover .arr{transform:translateX(4px);}

/* ---------- youtube ---------- */
.yt-wrap{max-width:880px;margin:0 auto;text-align:center;}
.yt-wrap h2{font-size:clamp(1.8rem,4vw,2.6rem);margin-bottom:12px;}
.yt-wrap p{color:var(--cream-dim);max-width:52ch;margin:0 auto 34px;font-size:1.05rem;}
.yt-plate{position:relative;display:block;border-radius:22px;overflow:hidden;
  border:1px solid var(--glass-edge);
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(92,45,92,.6), transparent 60%),
    linear-gradient(160deg,#1d1238,#2c1a50);
  aspect-ratio:16/9;transition:transform .3s ease, box-shadow .3s ease;}
.yt-plate:hover{transform:translateY(-5px);box-shadow:0 26px 70px rgba(21,14,46,.7);}
.yt-inner{position:absolute;inset:0;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:18px;}
.play{width:80px;height:80px;border-radius:50%;display:grid;place-items:center;
  background:linear-gradient(120deg,var(--rose),var(--gold));
  box-shadow:0 0 40px rgba(232,200,135,.5);transition:transform .3s ease;}
.yt-plate:hover .play{transform:scale(1.08);}
.play svg{width:30px;height:30px;margin-left:4px;fill:#2a1330;}
.yt-handle{font-family:"Fraunces",serif;font-size:1.4rem;color:var(--cream);}
.yt-note{display:block;margin-top:16px;font-size:.78rem;color:var(--cream-dim);
  letter-spacing:.04em;}

/* responsive aspect-ratio iframe (if you later embed a video) */
.yt-embed{position:relative;border-radius:22px;overflow:hidden;
  border:1px solid var(--glass-edge);aspect-ratio:16/9;}
.yt-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0;}

/* ---------- footer ---------- */
footer{border-top:1px solid var(--line);padding:56px 0 44px;text-align:center;}
.foot-links{display:flex;gap:14px 30px;justify-content:center;flex-wrap:wrap;
  margin-bottom:28px;font-size:.9rem;}
.foot-links a{color:var(--cream-dim);transition:color .2s ease;}
.foot-links a:hover{color:var(--gold);}
.foot-mark{font-family:"Fraunces",serif;font-style:italic;font-size:1.3rem;
  color:var(--cream);margin-bottom:8px;}
.foot-fine{color:var(--cream-dim);font-size:.78rem;letter-spacing:.03em;}

/* ---------- 404 / error page ---------- */
.err{min-height:80vh;display:flex;flex-direction:column;align-items:center;
  justify-content:center;text-align:center;padding:40px 28px;}
.err h1{font-size:clamp(3rem,12vw,6rem);
  background:linear-gradient(120deg,var(--cream),var(--lavender) 60%,var(--gold));
  -webkit-background-clip:text;background-clip:text;color:transparent;}
.err p{color:var(--cream-dim);max-width:40ch;margin:14px auto 30px;}

/* ---------- responsive ---------- */
@media(max-width:760px){
  .besties{grid-template-columns:1fr;}
  .signature{height:200px;}
}
@media(max-width:560px){
  .wrap{padding:0 20px;}
  header.hero{padding:clamp(46px,9vh,90px) 0 clamp(16px,3vh,30px);}
  .hero h1{font-size:clamp(2.6rem,12vw,3.4rem);}
  .hero .tag{font-size:1.15rem;margin-top:18px;}
  .hero .sub{font-size:.98rem;margin-top:14px;}
  .cta-row{gap:10px;margin-top:28px;}
  .btn{padding:13px 22px;font-size:.9rem;}
  section{padding:clamp(26px,4.5vh,42px) 0;}
  .intro p{font-size:1rem;}
  .meet-head{margin-bottom:30px;}
  .card{padding:30px 22px 28px;}
  .yt-wrap p{font-size:1rem;}
  .about-photo{width:148px;height:148px;font-size:3rem;}
  .prose{padding:26px 20px;}
  .prose p,.prose p.lead{font-size:1.04rem;}
}

/* ---------- focus + reduced motion ---------- */
a:focus-visible,.btn:focus-visible,.pill:focus-visible,.yt-plate:focus-visible{
  outline:2px solid var(--gold);outline-offset:3px;border-radius:8px;}
@media(prefers-reduced-motion:reduce){
  *{animation:none!important;scroll-behavior:auto;}
  .reveal{opacity:1;transform:none;}
}

/* ============================================================
   About pages (about-kelly.html, about-cristy.html)
   ============================================================ */
.topbar{padding:26px 0 4px;}
.topbar a{display:inline-flex;align-items:center;gap:8px;color:var(--cream-dim);
  font-size:.85rem;letter-spacing:.04em;transition:color .2s ease;}
.topbar a:hover{color:var(--gold);}

.about-hero{text-align:center;padding:clamp(24px,5vh,56px) 0 4px;}
.about-photo{width:174px;height:174px;font-size:3.4rem;}
.about-hero h1{font-size:clamp(2.4rem,7vw,4rem);
  background:linear-gradient(120deg,var(--cream),var(--lavender) 60%,var(--gold));
  -webkit-background-clip:text;background-clip:text;color:transparent;}
.about-hero .role{color:var(--gold);font-size:.76rem;letter-spacing:.22em;
  text-transform:uppercase;margin:12px 0 0;font-weight:500;}
.pull{font-family:"Fraunces",serif;font-style:italic;
  font-size:clamp(1.2rem,3vw,1.6rem);color:var(--cream);
  max-width:32ch;margin:20px auto 0;line-height:1.3;}

.prose{max-width:62ch;margin:0 auto;padding:clamp(30px,6vh,56px) 28px;}
.prose p{color:var(--cream-dim);font-size:1.08rem;margin:0 0 22px;}
.prose p.lead{color:var(--cream);font-size:1.2rem;line-height:1.55;}
.prose strong{color:var(--cream);font-weight:500;}
.prose em{color:var(--lavender);font-style:italic;}

.about-cta{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;
  margin-top:4px;padding:0 28px;}

.crosslink{text-align:center;padding:14px 0 36px;}
.crosslink a{color:var(--cream-dim);font-size:.95rem;transition:color .2s ease;}
.crosslink a:hover{color:var(--gold);}
.crosslink .arr{color:var(--gold);}

/* "Read my story" link on the homepage bestie cards */
.story-link{display:inline-block;margin:0 0 22px;color:var(--gold);
  font-size:.86rem;letter-spacing:.02em;border-bottom:1px solid transparent;
  transition:border-color .2s ease;}
.story-link:hover{border-color:var(--gold);}
