/* ============================================================
   Kavi · The One With Every Fit
   Central Perk meets couture — Friends, made luxurious.
   Palette: Monica's purple door · Central Perk terracotta ·
            warm gold · cream · the little colored logo dots.
============================================================ */

:root {
  /* Champagne Noir — refined, quiet luxe */
  --plum-900: #14100e;   /* warm near-black */
  --plum-800: #1c1518;
  --plum-700: #3a1a24;   /* deep bordeaux */
  --plum-600: #4d2130;   /* bordeaux, lit */
  --wine:     #6e2a3c;   /* bordeaux */
  --terra:    #b892a6;   /* soft mauve (was orange) */
  --terra-soft:#cdb0c0;  /* pale mauve */
  --gold:     #cdbfb0;   /* pearl-taupe (was gold) */
  --gold-2:   #efe7dd;   /* light pearl / ivory */
  --gold-deep:#a5947f;   /* deep taupe */
  --cream:    #f3ebdd;   /* ivory */
  --cream-2:  #e9dcc8;
  --ink:      #f3ebdd;
  --muted:    #c4aeb8;   /* muted mauve-grey */

  /* the Friends logo dots — softened to jewel tones, no gold */
  --dot-red:   #b8515a;
  --dot-blue:  #5f7d9e;
  --dot-yellow:#cba79f;  /* taupe-rose (replaces yellow) */
  --dot-green: #6f8f74;
  --dot-plum:  #8e6a86;

  --shadow: 0 30px 70px -35px rgba(0,0,0,.75);
  --serif: "Playfair Display", Georgia, serif;
  --serif-2: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(110,42,60,.24), transparent 60%),
    radial-gradient(900px 600px at 0% 20%, rgba(184,146,166,.14), transparent 55%),
    linear-gradient(180deg, var(--plum-900), var(--plum-800) 40%, var(--plum-900));
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- the colored logo dots ---------- */
.dot {
  display: inline-block;
  width: .5rem; height: .5rem;
  border-radius: 50%;
  vertical-align: middle;
  box-shadow: 0 0 10px rgba(255,255,255,.15);
}
.dot--1 { background: var(--dot-red); }
.dot--2 { background: var(--dot-yellow); }
.dot--3 { background: var(--dot-blue); }
.dot--4 { background: var(--dot-green); }
.dot--5 { background: var(--dot-plum); }

.dots-row { display: flex; gap: .55rem; justify-content: center; align-items: center; margin-top: 1.6rem; }
.dots-row .dot { width: .6rem; height: .6rem; }

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .38em;
  font-size: .72rem;
  font-weight: 500;
  color: var(--gold-2);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.05;
  color: var(--cream);
  letter-spacing: .5px;
}
.section-sub {
  font-family: var(--serif-2);
  font-size: 1.3rem;
  color: var(--muted);
  margin-top: .8rem;
  font-style: italic;
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; padding: 0 1.5rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: .95rem 2.1rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .8rem;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-deep));
  color: #2a1424;
  box-shadow: 0 18px 40px -18px rgba(205,191,176,.7);
}
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -16px rgba(205,191,176,.85); }
.btn--ghost {
  border: 1px solid rgba(239,231,221,.5);
  color: var(--gold-2);
}
.btn--ghost:hover { background: rgba(239,231,221,.1); transform: translateY(-3px); }

/* ============================ NAV ============================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(28,15,24,.82), rgba(28,15,24,.4));
  border-bottom: 1px solid rgba(239,231,221,.14);
  transition: box-shadow .3s ease;
}
.nav__inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
}
.brand__word { display: inline-flex; align-items: center; gap: .08em; }
.brand__ltr {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--cream);
  letter-spacing: .02em;
}
.brand .dot { width: .42rem; height: .42rem; margin: 0 .12rem; }

.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  font-size: .82rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); font-weight: 400;
  position: relative; padding: .3rem 0;
  transition: color .25s ease;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: linear-gradient(90deg, var(--gold-2), var(--terra));
  transition: width .3s ease;
}
.nav__links a:hover { color: var(--gold-2); }
.nav__links a:hover::after { width: 100%; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; width: 32px; height: 26px; }
.nav__toggle span { display: block; height: 2px; background: var(--gold-2); border-radius: 2px; margin: 5px 0; transition: .3s; }

/* ============================ HERO ============================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  overflow: hidden;
}
.hero__glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 320px at 50% 18%, rgba(205,191,176,.20), transparent 70%),
    radial-gradient(500px 400px at 78% 80%, rgba(110,42,60,.30), transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 820px; }
.hero__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(3rem, 11vw, 7rem);
  line-height: .96;
  letter-spacing: 1px;
  margin: .4rem 0 1.5rem;
}
.hero__line { display: block; color: var(--cream); }
.hero__line--gold {
  background: linear-gradient(120deg, var(--gold-2), var(--gold) 40%, var(--terra) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic;
}
.hero__tag {
  font-family: var(--serif-2);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--muted);
  max-width: 620px; margin: 0 auto;
}
.hero__tag em { color: var(--gold-2); font-style: italic; }
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.4rem; }

.hero__umbrella {
  position: absolute; top: 12%; right: 8%;
  width: clamp(70px, 10vw, 120px);
  fill: none; stroke: var(--gold-2); stroke-width: 2.5;
  opacity: .5;
  animation: float 6s ease-in-out infinite;
}
.hero__umbrella path[fill]:not([fill="none"]),
.hero__umbrella circle { fill: rgba(205,191,176,.15); }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-4deg);} 50% { transform: translateY(-16px) rotate(3deg);} }

/* ============================ DIVIDER ============================ */
.divider {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 3.2rem 1.5rem;
  color: var(--gold);
}
.divider__line { width: min(120px, 22vw); height: 1px; background: linear-gradient(90deg, transparent, var(--gold-deep), transparent); }
.divider__gem { font-size: 1.15rem; filter: saturate(1.2); }

/* ============================ DIARY ============================ */
.diary { max-width: 1180px; margin: 0 auto; padding: 1rem 1.5rem 4rem; }

.chips { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-bottom: 3rem; }
.chip {
  font-family: var(--sans);
  font-size: .78rem; letter-spacing: .06em;
  padding: .6rem 1.2rem; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(239,231,221,.22);
  color: var(--muted);
  transition: all .25s ease;
}
.chip:hover { color: var(--gold-2); border-color: rgba(239,231,221,.5); }
.chip.is-active {
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 60%, var(--gold-deep));
  color: #2a1424; border-color: transparent; font-weight: 500;
  box-shadow: 0 12px 28px -14px rgba(205,191,176,.7);
}

.diary__state {
  text-align: center; color: var(--muted); font-family: var(--serif-2);
  font-size: 1.25rem; font-style: italic; padding: 1rem 0 2rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 2rem;
}

/* each fit = a gold-framed photo, like the peephole frame */
.card {
  position: relative; cursor: pointer;
  border-radius: 6px;
  padding: 12px;
  background:
    linear-gradient(135deg, var(--gold-2), var(--gold) 45%, var(--gold-deep));
  box-shadow: var(--shadow);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease;
}
.card::before {
  /* inner bevel of the gold frame */
  content: ""; position: absolute; inset: 8px;
  border: 1px solid rgba(0,0,0,.25);
  border-radius: 4px; pointer-events: none; z-index: 3;
}
.card:hover { transform: translateY(-8px) rotate(-.6deg); box-shadow: 0 40px 80px -30px rgba(0,0,0,.85); }
.card.is-hidden { display: none; }

.card__img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  border-radius: 2px; background: var(--plum-700);
}
.card figcaption {
  position: relative; z-index: 2;
  margin-top: 10px;
  font-family: var(--serif-2);
  color: #2a1424; font-style: italic; font-size: 1.1rem;
  text-align: center; padding: 0 6px 4px;
}
.card__tag {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  text-transform: uppercase; letter-spacing: .18em;
  font-size: .62rem; color: var(--wine); font-weight: 600;
  margin-bottom: .25rem;
}

/* ============================ ABOUT ============================ */
.about { max-width: 1120px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.about__grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center;
}

/* Monica's purple door with a gold-framed portrait */
.door { display: flex; justify-content: center; }
.door__panel {
  position: relative;
  width: min(360px, 82vw);
  background:
    linear-gradient(180deg, var(--plum-600), var(--plum-700) 50%, var(--plum-800));
  border-radius: 8px;
  padding: 2.4rem 1.8rem 2.6rem;
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(0,0,0,.25), inset 0 0 60px rgba(0,0,0,.35);
  border: 1px solid rgba(0,0,0,.4);
}
.peephole {
  width: 26px; height: 26px; border-radius: 50%;
  margin: 0 auto 1.4rem;
  background: radial-gradient(circle at 35% 30%, var(--gold-2), var(--gold-deep));
  box-shadow: 0 0 0 4px rgba(0,0,0,.3), inset 0 0 6px rgba(0,0,0,.5);
}
.peephole span { display:block; }
.gold-frame {
  padding: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 45%, var(--gold-deep));
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), 0 20px 40px -22px rgba(0,0,0,.7);
}
.portrait, .portrait__img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 2px;
}
.portrait {
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(205,191,176,.25), transparent 60%),
    linear-gradient(160deg, var(--plum-700), var(--wine));
  position: relative;
}
.portrait::after {
  content: attr(data-label);
  position: absolute; bottom: 12px; left: 0; right: 0; text-align: center;
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .25em;
  font-size: .62rem; color: var(--gold-2);
}
.portrait__mono {
  font-family: var(--serif); font-weight: 800; font-size: 5rem;
  color: var(--gold-2); opacity: .85;
}
.door__number {
  position: absolute; top: 1.4rem; right: 1.6rem;
  font-family: var(--serif); font-weight: 800; font-size: 1.5rem;
  color: var(--gold-2);
  text-shadow: 0 2px 4px rgba(0,0,0,.5);
}

.about__body .about__text {
  font-family: var(--serif-2); font-size: 1.3rem; color: var(--muted);
  margin: 1rem 0 1.6rem;
}
.style-words { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.8rem; }
.style-word {
  font-family: var(--sans); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .5rem 1.1rem; border-radius: 999px;
  border: 1px solid rgba(239,231,221,.3); color: var(--gold-2);
  background: rgba(184,146,166,.14);
}
.pullquote {
  font-family: var(--serif); font-style: italic; font-size: 1.5rem;
  color: var(--cream); border-left: 3px solid var(--gold); padding-left: 1.2rem;
}
.pullquote em { color: var(--terra-soft); }

/* ============================ NOTE ============================ */
.note { padding: 2rem 1.5rem 4rem; display: flex; justify-content: center; }
.chalkboard {
  max-width: 720px; width: 100%;
  text-align: center;
  padding: 3.5rem 2.5rem 3rem;
  border-radius: 10px;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(110,42,60,.20), transparent 70%),
    linear-gradient(160deg, #14100e, #1b1410);
  border: 10px solid transparent;
  background-clip: padding-box;
  box-shadow: var(--shadow), 0 0 0 2px var(--gold-deep), 0 0 0 12px #241a12;
  position: relative;
}
.chalkboard__perk {
  font-family: var(--serif); font-style: italic; color: var(--terra-soft);
  letter-spacing: .1em; margin-bottom: .6rem; font-size: 1.1rem;
}
.chalkboard__title {
  font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 6vw, 3.2rem);
  color: var(--gold-2); margin-bottom: 1.2rem;
}
.chalkboard__body { font-family: var(--serif-2); font-size: 1.35rem; color: var(--muted); }
.fav-list { list-style: none; margin: 1.8rem 0; display: grid; gap: .6rem; }
.fav-list li {
  font-family: var(--serif-2); font-size: 1.2rem; color: var(--cream); font-style: italic;
}
.fav-list li::before { content: "☕ "; }
.chalkboard__sign { font-family: var(--serif); font-style: italic; color: var(--gold-2); margin-top: 1rem; }

/* ============================ CONNECT ============================ */
.connect { max-width: 900px; margin: 0 auto; padding: 2rem 1.5rem 3rem; text-align: center; }
.connect__btns { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; }
.social {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 2rem; border-radius: 999px;
  font-family: var(--sans); letter-spacing: .1em; text-transform: uppercase; font-size: .82rem;
  border: 1px solid rgba(239,231,221,.35); color: var(--cream);
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
}
.social__ico { font-size: 1.1rem; color: var(--gold-2); }
.social:hover { transform: translateY(-3px); border-color: var(--gold); background: rgba(239,231,221,.08); }

/* ============================ FOOTER ============================ */
.footer { text-align: center; padding: 3rem 1.5rem 4rem; border-top: 1px solid rgba(239,231,221,.12); }
.footer__brand { font-family: var(--serif); font-size: 1.3rem; color: var(--cream); margin: 1.2rem 0 .4rem; }
.footer__fine { font-family: var(--serif-2); font-style: italic; color: var(--muted); }

/* ============================ LIGHTBOX ============================ */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  background: rgba(12,7,11,.9); backdrop-filter: blur(8px);
  padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox__figure {
  max-width: 620px; width: 100%;
  padding: 14px; border-radius: 6px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 45%, var(--gold-deep));
  box-shadow: var(--shadow);
  animation: pop .35s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox__img { width: 100%; max-height: 74vh; object-fit: contain; border-radius: 3px; background: var(--plum-800); }
.lightbox__caption {
  text-align: center; margin-top: .8rem; color: #2a1424;
  font-family: var(--serif-2); font-style: italic; font-size: 1.2rem;
}
.lightbox__close {
  position: absolute; top: 1.4rem; right: 1.8rem;
  background: none; border: 0; color: var(--gold-2); font-size: 2.6rem; cursor: pointer;
  line-height: 1; transition: transform .2s ease;
}
.lightbox__close:hover { transform: rotate(90deg) scale(1.1); }

/* ============================ REVEAL ANIM ============================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .nav__links {
    position: fixed; inset: 64px 0 auto 0;
    flex-direction: column; align-items: center; gap: 1.4rem;
    background: rgba(28,15,24,.97); backdrop-filter: blur(16px);
    padding: 2rem 0; transform: translateY(-140%); transition: transform .4s ease;
    border-bottom: 1px solid rgba(239,231,221,.14);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__toggle { display: block; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero__umbrella { top: 6%; right: 4%; opacity: .35; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
