/* kovareilly.com — "Midnight Sweetheart · Gentle Glow" */

:root {
  --navy: #111528;
  --navy-2: #1A1F38;
  --magenta: #D04FA0;
  --pink: #FBB8E0;
  --text: #F4EEF6;
  --muted: #C9C3D6;
  --line: rgba(251, 184, 224, .18);
  --radius: 14px;
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  /* Moonlight haze lives only at the top of the page, behind the hero. */
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(208, 79, 160, .28), transparent 70%) no-repeat,
    var(--navy);
  background-size: 100% 900px, auto;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--pink); }

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 900; line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
h3 { font-size: 1.15rem; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--pink); color: var(--navy); padding: 8px 14px; border-radius: 999px;
  font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.card {
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--magenta);
  color: #fff;
  /* 19px bold = WCAG "large text", so white on brand magenta (3.95:1) passes AA. */
  font-size: 1.1875rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 20px -6px rgba(208, 79, 160, .55);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -6px rgba(208, 79, 160, .65); }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17, 21, 40, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(251, 184, 224, .08);
}

.nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; min-height: 64px; }

.nav-logo img { width: 44px; height: auto; }

.nav-toggle {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: none; border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-links {
  display: none;
  list-style: none; margin: 0; padding: 8px 0 16px;
  width: 100%;
}
.nav-open .nav-links { display: block; }
.nav-links a {
  display: block; padding: 10px 4px;
  color: var(--text); font-weight: 800; text-decoration: none;
}
.nav-links a:hover { color: var(--pink); }

@media (min-width: 768px) {
  .nav { flex-wrap: nowrap; }
  .nav-toggle { display: none; }
  .nav-links { display: flex; gap: 28px; width: auto; padding: 0; }
  .nav-links a { padding: 8px 0; color: var(--muted); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  text-align: center;
  padding-top: 56px;
  padding-bottom: 72px;
}
.hero-logo { width: min(520px, 85vw); margin: 0 auto 28px; }
.eyebrow { color: var(--muted); font-weight: 700; margin: 0 0 6px; }
.hero h1 { font-size: clamp(2.6rem, 9vw, 4.5rem); margin-bottom: .2em; }
.accent { color: var(--pink); }
.tagline { color: var(--muted); font-size: 1.15rem; font-weight: 600; margin: 0 0 24px; }

.sparkle {
  position: absolute;
  color: var(--pink);
  opacity: .8;
  font-size: 1.2rem;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}
.s1 { left: 8%; top: 18%; }
.s2 { right: 10%; top: 26%; animation-delay: -2s; }
.s3 { right: 18%; bottom: 18%; font-size: .9rem; animation-delay: -4s; }
.s4 { left: 14%; bottom: 28%; font-size: .9rem; animation-delay: -3s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.not-found { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.not-found .avatar { width: 140px; margin-bottom: 24px; }

/* ---------- Sections ---------- */

.section { padding-top: 48px; padding-bottom: 48px; }
.section-lede { color: var(--muted); margin: -4px 0 24px; }

/* Demos */
.reels { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .reels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.reel { padding: 20px; display: flex; flex-direction: column; min-width: 0; }
.reel-desc { color: var(--muted); font-size: .95rem; margin: 0 0 16px; flex: 1; }

.player { display: flex; align-items: center; gap: 12px; }
.play {
  flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: var(--pink); color: var(--navy);
  font-size: .95rem; font-weight: 900;
  box-shadow: 0 4px 14px -6px rgba(251, 184, 224, .6);
}
.play:disabled { cursor: not-allowed; }

.seek {
  flex: 1; min-width: 0;
  accent-color: var(--magenta);
  height: 6px;
  cursor: pointer;
}
.time { flex: none; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.soon { margin: 12px 0 0; color: var(--pink); font-weight: 700; font-size: .95rem; }
.reel.is-soon .play, .reel.is-soon .seek { opacity: .5; }
.reel.is-soon .time { display: none; }

/* About */
.about { padding: 24px; display: grid; gap: 24px; align-items: center; }
.avatar { width: 160px; margin: 0 auto; }
@media (min-width: 768px) {
  .about { grid-template-columns: 200px 1fr; padding: 32px; }
  .avatar { width: 200px; }
}
.tags { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 4px 14px; border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--pink); font-weight: 700; font-size: .9rem;
}

/* Credits */
.credit-groups { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .credit-groups { grid-template-columns: 1fr 1fr; } }
.credit-group { padding: 20px; }
.credit-group h3 { color: var(--pink); }
.credit-list { list-style: none; margin: 0; padding: 0; }
.credit-list li {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(251, 184, 224, .12);
}
.credit-list li:last-child { border-bottom: 0; }
.credit-list span { color: var(--muted); }

/* Hire */
.hire { padding: 32px 24px; text-align: center; }
.offer-list { list-style: none; padding: 0; margin: 0 auto 16px; max-width: 520px; text-align: left; }
.offer-list li { padding: 6px 0; }
.offer-list span { color: var(--pink); margin-right: 8px; }
.studio-note { color: var(--muted); font-weight: 700; margin: 0 0 24px; }

/* ---------- Footer ---------- */

.site-footer { padding: 40px 0 48px; text-align: center; }
.socials { list-style: none; padding: 0; margin: 0 0 16px; display: flex; justify-content: center; gap: 12px; }
.socials a {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text);
  transition: color .15s ease, border-color .15s ease;
}
.socials a:hover { color: var(--pink); border-color: var(--pink); }
.socials svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.socials svg .fill { fill: currentColor; stroke: none; }
.copyright { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sparkle { animation: none; }
  .btn { transition: none; }
}
