/* ============================================================
   Coach Ivy — Kawaii Midnight theme (shared base)
   Used by index.html and /blog/*
   ============================================================ */

:root {
  --bg:        #1A1128;
  --bg-2:      #120822;
  --surface:   #231539;
  --surface-2: rgba(196, 181, 253, 0.06);
  --ink:       #FFF1F9;
  --ink-dim:   #E7D8EE;
  --lavender:  #C4B5FD;
  --muted:     #8E7AB5;
  --line:        rgba(196, 181, 253, 0.14);
  --line-strong: rgba(196, 181, 253, 0.22);

  --violet:      #8B5CF6;
  --violet-soft: #A78BFA;
  --violet-deep: #6D28D9;
  --sakura:      #F9A8D4;
  --sakura-soft: rgba(249, 168, 212, .18);
  --sky:         #93C5FD;
  --sky-soft:    rgba(147, 197, 253, .16);
  --butter:      #FCD34D;
  --butter-soft: rgba(252, 211, 77, .14);

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 30px 60px rgba(0, 0, 0, 0.45);

  --radius-sm: 14px;
  --radius:    22px;
  --radius-lg: 32px;
  --radius-xl: 44px;

  --container: 1180px;
  --pad: clamp(20px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
body::before {
  content: ""; position: fixed; inset: -10vmax;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(28vmax 28vmax at 12% 8%,  rgba(139, 92, 246, 0.32),  transparent 70%),
    radial-gradient(22vmax 22vmax at 92% 18%, rgba(249, 168, 212, 0.22), transparent 70%),
    radial-gradient(26vmax 26vmax at 88% 78%, rgba(139, 92, 246, 0.22),  transparent 70%),
    radial-gradient(20vmax 20vmax at 8% 88%,  rgba(147, 197, 253, 0.18), transparent 70%);
  filter: blur(40px);
}
body::after {
  content: ""; position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'><g fill='%23C4B5FD' opacity='0.18'><circle cx='40' cy='30' r='1'/><circle cx='180' cy='50' r='1.2'/><circle cx='220' cy='160' r='1'/><circle cx='90' cy='120' r='1'/><circle cx='30' cy='200' r='1.2'/><circle cx='160' cy='200' r='1'/></g><g fill='%23F9A8D4' opacity='0.22'><path d='M120 90 l1 2 2 .3 -1.5 1.5 .4 2.2 -1.9 -1 -1.9 1 .4 -2.2 -1.5 -1.5 2 -.3z'/><path d='M50 140 l1 2 2 .3 -1.5 1.5 .4 2.2 -1.9 -1 -1.9 1 .4 -2.2 -1.5 -1.5 2 -.3z'/></g></svg>");
  background-repeat: repeat;
  opacity: .9;
}
.container, header, section, footer, main { position: relative; z-index: 1; }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  line-height: 1.08;
}
h1 { font-size: clamp(42px, 6.6vw, 80px); line-height: 1.02; font-weight: 700; }
h2 { font-size: clamp(32px, 4.4vw, 56px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; }
p  { margin: 0; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-dim); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--violet);
  color: #FFFFFF;
  box-shadow: 0 10px 26px rgba(139,92,246,.38), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover {
  background: var(--violet-soft);
  box-shadow: 0 16px 36px rgba(139,92,246,.55), 0 0 0 6px rgba(139,92,246,.12), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn-ghost {
  background: rgba(196,181,253,.08);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: rgba(196,181,253,.14); border-color: var(--line-strong); }
.btn-light { background: var(--ink); color: var(--bg); box-shadow: var(--shadow-sm); }
.btn .apple { width: 18px; height: 18px; }

/* ----- Nav ----- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 0;
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  background: rgba(26, 17, 40, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
header.nav.scrolled { background: rgba(18, 8, 34, 0.82); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Playfair Display', serif;
  font-weight: 700; font-size: 22px; letter-spacing: -0.01em; color: var(--ink);
}
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: transparent;
  display: grid; place-items: center;
  overflow: hidden;
  flex: none;
  box-shadow: 0 6px 20px rgba(139,92,246,.35);
}
.brand-mark img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  display: block;
}
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  padding: 10px 14px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500;
  color: var(--lavender);
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: rgba(196,181,253,.08); color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
}

/* ----- Eyebrow chip ----- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px;
  background: rgba(196,181,253,.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--lavender);
  letter-spacing: .01em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 4px rgba(139,92,246,.22), 0 0 14px rgba(139,92,246,.8);
}

/* ----- Footer ----- */
footer.site {
  padding: 88px 0 40px;
  background: linear-gradient(180deg, transparent, rgba(18, 8, 34, 0.7));
  border-top: 1px solid var(--line);
  margin-top: 80px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 40px;
}
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-brand p { color: var(--ink-dim); font-size: 14.5px; margin-top: 16px; max-width: 320px; }
.foot-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 18px;
}
.foot-col a {
  display: block; padding: 7px 0;
  color: var(--ink-dim); font-size: 14.5px;
  transition: color .15s ease;
}
.foot-col a:hover { color: var(--sakura); }
.foot-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 32px; margin-top: 60px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap; gap: 16px;
  color: var(--muted); font-size: 13.5px;
}
.socials { display: flex; gap: 10px; }
.soc {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(196,181,253,.06);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--lavender);
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.soc:hover {
  background: var(--violet); color: #fff; border-color: var(--violet);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139,92,246,.4);
}
.soc svg { width: 16px; height: 16px; }

/* ----- Reveal on scroll ----- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

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