/* Courtney Theme — all the pretty things ✨ */
/* Fonts: Poppins + Dancing Script (see index.html) */

:root{
  --bg: #0b0b12;
  --bg-soft: #121221;
  --text: #f5f5fa;
  --muted: #c9c9d6;
  --accent: #ff7ab6;            /* pink */
  --accent-2: #9b8cff;          /* lilac */
  --glow: rgba(255, 122, 182, 0.45);
  --card: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.12);
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --radius: 18px;
  --gap: 1.2rem;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, #24124a 0%, transparent 60%),
    radial-gradient(900px 500px at 110% 10%, #351331 0%, transparent 60%),
    radial-gradient(800px 400px at 50% 120%, #101826 0%, transparent 65%),
    var(--bg);
  line-height: 1.6;
}

/* utils */
.wrap{ width:min(1100px, 92%); margin-inline:auto; }
.section{ padding: 72px 0; position:relative; }
.section-title{
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 0.3rem;
  letter-spacing: 0.5px;
}
.section-sub{ color: var(--muted); margin: 0 0 1.5rem; }
.accent{ color: var(--accent); }

/* header */
.site-header{
  position: sticky; top:0; z-index: 50;
  backdrop-filter: blur(8px);
  background: linear-gradient(to bottom, rgba(11,11,18,0.85), rgba(11,11,18,0));
  border-bottom: 1px solid var(--border);
}
.site-header .wrap{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
}
.logo{
  font-weight: 700; font-size: 1.3rem; color: var(--text); text-decoration:none;
  padding: 6px 10px; border:1px solid var(--border); border-radius: 12px;
  display:inline-flex; align-items:center; gap:6px;
}
.logo span{ color: var(--accent); }
.nav a{
  color: var(--muted); text-decoration:none; margin-left: 18px; font-weight: 500;
  position:relative;
}
.nav a::after{
  content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin:left; transition: transform .25s;
}
.nav a:hover{ color: var(--text); }
.nav a:hover::after{ transform: scaleX(1); }

/* hero */
.hero{ padding: 80px 0 40px; }
.hero-grid{
  display:grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 48px); align-items:center;
}
.hero-copy h1{
  margin: 0 0 12px;
  line-height:1.1;
}
.script{
  font-family: "Dancing Script", cursive;
  font-weight: 700;
  font-size: clamp(2.7rem, 7vw, 5rem);
  color: var(--text);
  text-shadow: 0 8px 40px rgba(255,255,255,0.08);
}
.shine{
  display:inline-block;
  font-weight: 700;
  font-size: clamp(1.3rem, 3.2vw, 2rem);
  background: linear-gradient(90deg, #ffd1e5, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.18));
}
.hero-copy p{ color: var(--muted); max-width: 55ch; }
.cta-row{ display:flex; gap: 12px; margin-top: 18px; flex-wrap:wrap; }
.btn{
  --ring: 0 0 0 0 rgba(255,255,255,0);
  appearance:none; border:1px solid var(--border); padding:12px 18px; border-radius: 999px;
  color: var(--text); text-decoration:none; font-weight: 600; transition: transform .15s, box-shadow .2s, border-color .2s;
  box-shadow: var(--ring);
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }
.btn.primary{
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  box-shadow: 0 12px 30px var(--glow);
}
.btn.ghost{
  background: transparent;
}
.hero-photo{
  margin: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  padding: 10px;
  box-shadow: var(--shadow);
}
.hero-photo img{
  width: 100%; height: auto; display:block; border-radius: var(--radius);
  aspect-ratio: 4/5; object-fit: cover;
}
.hero-photo figcaption{
  text-align:center; color: var(--muted); padding-top: 8px; font-size: .9rem;
}

/* polaroid gallery */
.gallery .polaroids{
  display:grid; grid-template-columns: repeat( auto-fit, minmax(180px, 1fr) );
  gap: 20px; margin-top: 10px;
}
.polaroid{
  background: #fff;
  border-radius: 10px;
  padding: 10px 10px 30px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
  transform: rotate(var(--tilt, -2deg));
  display:block;
  text-decoration:none;
  transition: transform .15s ease, box-shadow .2s ease;
}
.polaroid img{ width:100%; height:auto; display:block; border-radius: 6px; aspect-ratio: 4/5; object-fit: cover; }
.polaroid .caption{
  display:block; text-align:center; color:#333; font-weight:600; margin-top:8px;
}
.polaroid:hover{
  transform: rotate(0deg) translateY(-2px) scale(1.02);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}
.polaroid:nth-child(2){ --tilt: 3deg; }
.polaroid:nth-child(3){ --tilt: -4deg; }
.polaroid:nth-child(4){ --tilt: 2deg; }
.polaroid:nth-child(5){ --tilt: -3deg; }
.polaroid:nth-child(6){ --tilt: 4deg; }

/* reasons chips */
.reasons .chips{
  list-style:none; padding:0; margin: 18px 0 0;
  display:flex; flex-wrap:wrap; gap: 10px;
}
.reasons .chips li{
  padding:10px 14px; border-radius: 999px; font-weight:600; letter-spacing:.2px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border:1px solid var(--border);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
  transition: transform .15s ease, background .3s ease;
}
.reasons .chips li:hover{
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
}

/* notes */
.notes .note-grid{
  display:grid; gap: 18px; grid-template-columns: repeat( auto-fit, minmax(240px, 1fr) );
}
.note{
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border:1px solid var(--border); border-radius: var(--radius); padding: 18px 18px 16px;
  box-shadow: var(--shadow);
  position:relative; overflow:hidden;
}
.note::before{
  content:""; position:absolute; inset:-1px;
  background: conic-gradient(from 140deg, transparent 0 75%, rgba(255,255,255,0.15) 75% 85%, transparent 85% 100%);
  filter: blur(18px); opacity:.6; pointer-events:none;
}
.note h3{ margin: 0 0 6px; font-size: 1.1rem; }
.note p { margin: 0 0 10px; color: var(--muted); }
.sig{ font-size:.9rem; color:#bdbdd3; }

/* timeline */
.timeline .line{
  list-style:none; padding:0; margin: 24px 0 0;
  border-left: 2px dashed rgba(255,255,255,0.18);
}
.timeline .line li{
  position:relative; padding-left: 22px; margin: 18px 0 26px;
}
.timeline .dot{
  position:absolute; left:-7px; top: 4px; width: 12px; height:12px; border-radius:50%;
  background: radial-gradient(circle at 30% 30%, #fff, #ffd1e5 60%, #ff7ab6 100%);
  box-shadow: 0 0 0 4px rgba(255,122,182,0.18), 0 6px 18px var(--glow);
}
.timeline .card{
  background: var(--card); border:1px solid var(--border); border-radius: 14px; padding: 12px 14px;
  backdrop-filter: blur(6px);
}
.timeline time{ display:block; font-size:.9rem; color: var(--muted); margin-bottom: 2px; }
.timeline h3{ margin: 0 0 6px; }

/* footer */
.site-footer{
  border-top:1px solid var(--border);
  padding: 26px 0; text-align:center; color: var(--muted);
}

/* floating hearts (decor) */
.hearts{ position: fixed; inset:0; overflow:hidden; pointer-events:none; z-index:0; }
.hearts span{
  position:absolute; left: var(--x, 50%); top: -10vh; width: 14px; height:14px;
  background: radial-gradient(circle at 30% 30%, #ff99c9, #ff7ab6 60%, #e14b90);
  transform: rotate(45deg);
  animation: fall var(--t, 12s) linear infinite;
  opacity: .55; filter: blur(0.2px);
  box-shadow: 0 0 12px rgba(255,122,182,0.5);
}
.hearts span::before,
.hearts span::after{
  content:""; position:absolute; width:14px; height:14px; background: inherit; border-radius:50%;
}
.hearts span::before{ left:-7px; top:0; }
.hearts span::after{ left:0; top:-7px; }
.hearts span:nth-child(1){ --x:10%; --t:14s; animation-delay: -2s; }
.hearts span:nth-child(2){ --x:22%; --t:12s; animation-delay: -8s; }
.hearts span:nth-child(3){ --x:35%; --t:11s; animation-delay: -4s; }
.hearts span:nth-child(4){ --x:48%; --t:13s; animation-delay: -6s; }
.hearts span:nth-child(5){ --x:60%; --t:15s; animation-delay: -10s; }
.hearts span:nth-child(6){ --x:73%; --t:12s; animation-delay: -7s; }
.hearts span:nth-child(7){ --x:82%; --t:11s; animation-delay: -5s; }
.hearts span:nth-child(8){ --x:90%; --t:16s; animation-delay: -12s; }
.hearts span:nth-child(9){ --x:27%; --t:17s; animation-delay: -9s; }
.hearts span:nth-child(10){ --x:55%; --t:18s; animation-delay: -11s; }

@keyframes fall{
  0%   { transform: translateY(-10vh) rotate(45deg) scale(0.9); }
  60%  { transform: translateY(70vh)  rotate(45deg) scale(1); }
  100% { transform: translateY(110vh) rotate(45deg) scale(1.05); }
}

/* === Mobile polish (drop-in) ===================================== */

/* Make media scale perfectly */
.hero-photo video,
.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

/* Improve tap targets + spacing on smaller screens */
@media (max-width: 940px) {
  .site-header .wrap { padding: 10px 0; }
  .nav { display:flex; gap:14px; flex-wrap:wrap; justify-content:flex-end; }
  .nav a { margin-left: 0; padding: 6px 0; } /* bigger tap area */
  .cta-row { gap: 10px; }
}

/* Phones (<= 680px) */
@media (max-width: 680px) {
  :root{
    --gap: 1rem;
    --radius: 14px;
  }

  .wrap{ width:min(100%, 92%); }
  .section{ padding: 56px 0; }

  .site-header{
    position: sticky; top:0;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
  }
  .logo{ font-size: 1.05rem; padding: 6px 10px; }

  .hero{ padding: 56px 0 28px; }
  .hero-copy p{ max-width: none; font-size: 0.98rem; }

  /* Buttons: easier to tap, wrap nicely */
  .cta-row{
    gap: 10px;
  }
  .btn{
    padding: 12px 16px;
    font-size: 0.98rem;
  }
  /* If you want stacked buttons on very small screens uncomment:
  .cta-row .btn{ flex:1 1 100%; text-align:center; }
  */

  .hero-photo{
    padding: 8px;
    border-radius: calc(var(--radius) + 4px);
  }
  .hero-photo figcaption{ font-size: .88rem; }

  /* Polaroids: fewer columns, bigger targets */
  .gallery .polaroids{
    grid-template-columns: repeat( auto-fit, minmax(150px, 1fr) );
    gap: 14px;
  }
  .polaroid{
    padding: 8px 8px 22px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.32);
  }
  .polaroid img{ aspect-ratio: 3/4; }

  /* Notes grid: comfortable columns */
  .notes .note-grid{
    grid-template-columns: repeat( auto-fit, minmax(200px, 1fr) );
    gap: 14px;
  }
  .note{ padding: 16px; }
  .note h3{ font-size: 1.02rem; }

  /* Timeline spacing */
  .timeline .line{ margin-top: 18px; }
  .timeline .line li{ margin: 14px 0 20px; }
}

/* Small phones (<= 480px) */
@media (max-width: 480px){
  .script{ font-size: clamp(2.2rem, 10vw, 3.2rem); }
  .shine{ font-size: clamp(1.1rem, 5.5vw, 1.35rem); }
  .section-title{ font-size: clamp(1.4rem, 6vw, 1.8rem); }
  .site-footer{ padding: 22px 0; font-size: .95rem; }

  /* Tighter header nav to avoid wrapping weirdly */
  .nav{ gap: 10px; }
  .nav a{ font-size: .98rem; }

  /* Reduce motion & cost of heart effect on tiny screens */
  .hearts span{ opacity:.4; filter: blur(0.6px); }
}

/* Respect safe area (iOS notches) */
@supports(padding:max(0px)){
  body{ padding-left:max(0px, env(safe-area-inset-left));
        padding-right:max(0px, env(safe-area-inset-right)); }
}

@media (prefers-reduced-motion: reduce){
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .hearts{ display:none; }
}
