/* ============================================
   Riley Keane — Author Site
   Palette: deep forest green + rink-glow pink
   ============================================ */

:root {
  --ink: #131f14;            /* deep forest green (logo background) */
  --ink-soft: #1b2a1d;
  --ink-lifted: #22331f;
  --cream: #f4f1e8;          /* warm off-white (logo mark) */
  --cream-dim: #cfd2c4;
  --glow: #ff2d6f;           /* rink-light magenta */
  --glow-hot: #ff5a3c;       /* ember orange from the covers */
  --gradient: linear-gradient(120deg, #b7266d, #ff2d6f 45%, #ff5a3c);
  --serif: "Cormorant Garamond", Georgia, serif;
  --display: "Italiana", "Cormorant Garamond", serif;
  --sans: "Jost", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.7;
  overflow-x: hidden;
}

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

a { color: inherit; }

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

/* ---------- Flowy aurora background ---------- */

.aurora {
  position: fixed;
  inset: 0;
  z-index: -1; /* behind all content, no stacking-context games needed */
  overflow: hidden;
  pointer-events: none;
}

/* Soft-edged radial gradients — no blur filter, so the GPU cost stays tiny */
.blob {
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  border-radius: 50%;
  opacity: 0.45;
  will-change: transform;
}

.blob-1 {
  background: radial-gradient(circle at 50% 50%, rgba(255, 45, 111, 0.5), rgba(255, 45, 111, 0.18) 40%, transparent 70%);
  top: -20vmax; left: -15vmax;
  animation: drift-1 26s ease-in-out infinite alternate;
}

.blob-2 {
  background: radial-gradient(circle at 50% 50%, rgba(255, 90, 60, 0.38), rgba(255, 90, 60, 0.14) 40%, transparent 70%);
  bottom: -25vmax; right: -18vmax;
  animation: drift-2 32s ease-in-out infinite alternate;
}

.blob-3 {
  background: radial-gradient(circle at 50% 50%, rgba(122, 46, 160, 0.4), rgba(122, 46, 160, 0.15) 40%, transparent 70%);
  top: 30%; left: 55%;
  width: 45vmax; height: 45vmax;
  animation: drift-3 38s ease-in-out infinite alternate;
}

.blob-4 {
  background: radial-gradient(circle at 50% 50%, rgba(46, 160, 122, 0.26), rgba(46, 160, 122, 0.1) 40%, transparent 70%);
  top: 60%; left: -20vmax;
  animation: drift-4 30s ease-in-out infinite alternate;
}

.blob-5 {
  background: radial-gradient(circle at 50% 50%, rgba(80, 200, 235, 0.3), rgba(80, 200, 235, 0.1) 40%, transparent 70%);
  top: -10vmax; left: 40%;
  width: 38vmax; height: 38vmax;
  animation: drift-2 24s ease-in-out infinite alternate;
}

.blob-6 {
  background: radial-gradient(circle at 50% 50%, rgba(255, 190, 80, 0.24), rgba(255, 190, 80, 0.08) 40%, transparent 70%);
  top: 75%; left: 60%;
  width: 42vmax; height: 42vmax;
  animation: drift-1 34s ease-in-out infinite alternate;
}

@keyframes drift-1 {
  from { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(12vw, 8vh) scale(1.15) rotate(20deg); }
  to   { transform: translate(4vw, 16vh) scale(0.95); }
}

@keyframes drift-2 {
  from { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-14vw, -10vh) scale(1.1); }
  to   { transform: translate(-6vw, -18vh) scale(1.2) rotate(-15deg); }
}

@keyframes drift-3 {
  from { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-16vw, 12vh) scale(1.25); }
  to   { transform: translate(8vw, -10vh) scale(0.9); }
}

@keyframes drift-4 {
  from { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(10vw, -12vh) scale(1.1); }
  to   { transform: translate(18vw, 6vh) scale(1.2); }
}

.aurora .star {
  position: absolute;
  font-size: 0.9rem;
  animation: star-twinkle 4s ease-in-out infinite;
}

.star-pink { color: rgba(255, 45, 111, 0.75); text-shadow: 0 0 12px rgba(255, 45, 111, 0.8); }
.star-gold { color: rgba(255, 200, 90, 0.75); text-shadow: 0 0 12px rgba(255, 190, 80, 0.8); }
.star-ice  { color: rgba(140, 220, 245, 0.75); text-shadow: 0 0 12px rgba(80, 200, 235, 0.8); }
.star-lav  { color: rgba(200, 150, 255, 0.75); text-shadow: 0 0 12px rgba(170, 110, 250, 0.8); }

@keyframes star-twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50%      { opacity: 0.9;  transform: scale(1.2); }
}

@media (prefers-reduced-motion: reduce) {
  .blob, .aurora .star, .hero-stars { animation: none; }
}

/* ---------- Type helpers ---------- */

.section-kicker {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--glow);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: 0.06em;
  margin-bottom: 1.2rem;
}

.accent { color: var(--glow); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  cursor: pointer;
}

.btn-solid {
  background: var(--gradient);
  color: #fff;
  border: none;
  box-shadow: 0 4px 24px rgba(255, 45, 111, 0.35);
}

.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 45, 111, 0.55);
}

.btn-ghost {
  border: 1px solid rgba(244, 241, 232, 0.35);
  color: var(--cream);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--glow);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 45, 111, 0.25);
  transform: translateY(-2px);
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 5vw, 3.5rem);
  background: rgba(19, 31, 20, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(244, 241, 232, 0.08);
}

.nav-brand {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.2rem);
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links a {
  text-decoration: none;
  color: var(--cream-dim);
  transition: color 0.2s ease;
}

.nav-links a:hover { color: #fff; }

.nav-links .nav-cta {
  color: var(--glow);
  border: 1px solid rgba(255, 45, 111, 0.5);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav-links .nav-cta:hover {
  background: var(--glow);
  color: #fff;
}

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

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 6rem;
}

.hero-logo {
  width: min(340px, 70vw);
  margin-bottom: 2.5rem;
  filter: drop-shadow(0 0 40px rgba(255, 45, 111, 0.15));
}

.hero-kicker {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--glow);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.5vw, 4.8rem);
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
}

.hero-sub {
  max-width: 34rem;
  color: var(--cream-dim);
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: 2.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-stars {
  position: absolute;
  bottom: 2.2rem;
  color: var(--glow);
  font-size: 1.1rem;
  animation: twinkle 2.6s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.9); }
  50%       { opacity: 1;   transform: scale(1.15); }
}

/* ---------- Series intro ---------- */

.series-intro {
  text-align: center;
  padding: 5rem 1.5rem 2rem;
  max-width: 46rem;
  margin: 0 auto;
}

.series-blurb { color: var(--cream-dim); }

.divider {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 3rem auto 0;
  max-width: 22rem;
  color: var(--glow);
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 45, 111, 0.5));
}

.divider::after {
  background: linear-gradient(90deg, rgba(255, 45, 111, 0.5), transparent);
}

/* ---------- Books ---------- */

.books {
  max-width: 68rem;
  margin: 0 auto;
  padding: 3rem clamp(1.2rem, 5vw, 3rem) 4rem;
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.book {
  display: grid;
  grid-template-columns: minmax(230px, 330px) 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.book-flip { direction: rtl; }
.book-flip > * { direction: ltr; }

.book-cover img {
  border-radius: 6px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(255, 45, 111, 0.18);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.book-cover a:hover img {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow:
    0 32px 70px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(255, 45, 111, 0.32);
}

.book-series {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--glow);
  margin-bottom: 0.6rem;
}

.book-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.book-tagline {
  font-style: italic;
  color: var(--cream-dim);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}

.book-blurb { margin-bottom: 1.4rem; }

.book-tropes {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
}

.book-tropes li {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
  border: 1px solid rgba(244, 241, 232, 0.22);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ---------- Coming soon ---------- */

.coming {
  position: relative;
  text-align: center;
  padding: 5.5rem 1.5rem 6rem;
  background: linear-gradient(180deg,
    transparent,
    rgba(27, 42, 29, 0.55) 12%,
    rgba(27, 42, 29, 0.55) 88%,
    transparent);
  overflow: hidden;
}

.coming-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 60% at 50% 30%, rgba(255, 45, 111, 0.12), transparent 70%);
  pointer-events: none;
}

.coming-book {
  position: relative;
  max-width: 62rem;
  margin: 2.5rem auto 0;
  text-align: left;
}

.cover-glow img {
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 90px rgba(255, 45, 111, 0.3);
}

/* ---------- About ---------- */

.about {
  padding: 6rem 1.5rem;
  text-align: center;
}

.about-inner {
  max-width: 40rem;
  margin: 0 auto;
}

.about-inner p { color: var(--cream-dim); margin-bottom: 1.2rem; }

.about-motto {
  font-style: italic;
  font-size: 1.35rem;
  color: var(--cream) !important;
  margin-bottom: 1.6rem !important;
}

.about-sign {
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  color: var(--glow) !important;
  margin-top: 1.8rem;
}

/* ---------- Newsletter ---------- */

.newsletter { padding: 1rem 1.5rem 6rem; }

.newsletter-card {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem);
  border-radius: 18px;
  background:
    linear-gradient(var(--ink-lifted), var(--ink-lifted)) padding-box,
    var(--gradient) border-box;
  border: 1px solid transparent;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

.newsletter-card p { color: var(--cream-dim); }

.newsletter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.8rem;
}

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

.footer {
  text-align: center;
  padding: 3.5rem 1.5rem 2.5rem;
}

/* soft hairline that fades out at the edges instead of a hard border */
.footer::before {
  content: "";
  display: block;
  height: 1px;
  max-width: 42rem;
  margin: 0 auto 3.5rem;
  background: linear-gradient(90deg, transparent, rgba(255, 45, 111, 0.35), transparent);
}

.footer-logo {
  width: 110px;
  margin: 0 auto 1.4rem;
  opacity: 0.85;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}

.footer-links a {
  color: var(--cream-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--glow); }

.footer-fine {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(244, 241, 232, 0.4);
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .nav { position: static; flex-direction: column; gap: 0.8rem; }

  .book,
  .coming-book {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .book-cover { max-width: 260px; margin: 0 auto; }

  .book-tropes,
  .book-actions { justify-content: center; }

  .coming-book { text-align: center; }
}
