/*
Theme Name:  Raven — The Lost Tear
Theme URI:   https://authornraven.com/
Author:      Raven Nguyen
Author URI:  https://authornraven.com/
Description: Dark navy/plum + gold romantasy theme with starfield background, ported from the original Next.js authornraven.com site. Block theme (theme.json + template parts) with a full set of block patterns for the book landing, story blurb, praise, merch grid and author bio.
Version:     1.0.0
Requires at least: 6.7
Tested up to:      6.7
Requires PHP: 8.0
License:     GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: raven-lostmoon
Tags:        block-theme, dark, one-column, portfolio, book
*/

/* ---------------------------------------------------------------------------
   Base body + starfield overlay — ported straight from src/app/globals.css
   of the Next.js site so the visual feel is identical.
--------------------------------------------------------------------------- */

html { color-scheme: dark; scroll-behavior: smooth; }

body {
  background-color: #0c1128;
  background-image:
    radial-gradient(ellipse 80% 60% at 15% -10%, rgb(67 32 122 / 0.55), transparent 60%),
    radial-gradient(ellipse 70% 50% at 95% 10%, rgb(34 48 106 / 0.6),  transparent 60%),
    radial-gradient(ellipse 90% 60% at 50% 110%, rgb(45 21 83 / 0.5),  transparent 65%);
  background-attachment: fixed;
  color: #ede8f8;
}

body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff8, transparent),
    radial-gradient(1px 1px at 72% 32%, #fff6, transparent),
    radial-gradient(1.5px 1.5px at 40% 70%, #e9dcff88, transparent),
    radial-gradient(1px 1px at 85% 80%, #fff5, transparent),
    radial-gradient(1px 1px at 25% 90%, #fff4, transparent),
    radial-gradient(1.5px 1.5px at 58% 12%, #ecd9a877, transparent),
    radial-gradient(1px 1px at 93% 55%, #fff5, transparent),
    radial-gradient(1px 1px at 5% 50%, #fff4, transparent);
  background-size: 600px 600px;
}
body > * { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------- */

.gold-text {
  background: linear-gradient(180deg, #ecd9a8, #d8b46a 60%, #a8823f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Gilded horizontal divider — reused inside patterns via .raven-divider  */
.raven-divider {
  display: flex; align-items: center; gap: 1rem;
  color: #d8b46a;
  font-family: var(--wp--preset--font-family--display), serif;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin: 0 0 1.5rem 0;
}
.raven-divider::before,
.raven-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(216 180 106 / 0.5), transparent);
}

/* Card-style container the patterns lean on */
.raven-card {
  background: linear-gradient(160deg, rgb(45 21 83 / 0.55), rgb(15 23 57 / 0.7));
  border: 1px solid rgb(196 178 240 / 0.14);
  border-radius: 1rem;
  backdrop-filter: blur(6px);
  padding: 1.75rem;
}

/* Round pill buttons — WP core buttons keep their own class but our patterns
   also use these direct utility classes for consistency with the original site. */
.raven-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  font-family: var(--wp--preset--font-family--display), serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
}
.raven-btn.is-gold {
  background: linear-gradient(180deg, #ecd9a8, #d8b46a);
  color: #140a26;
  box-shadow: 0 0 24px rgb(216 180 106 / 0.25);
}
.raven-btn.is-gold:hover {
  box-shadow: 0 0 36px rgb(216 180 106 / 0.45);
  transform: translateY(-1px);
}
.raven-btn.is-ghost {
  border: 1px solid rgb(196 178 240 / 0.4);
  color: #c4b2f0;
  background: transparent;
}
.raven-btn.is-ghost:hover {
  background: rgb(196 178 240 / 0.08);
  border-color: #c4b2f0;
}

/* Trope chips */
.raven-tropes { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 2rem 0 0 0; }
.raven-tropes li {
  border: 1px solid rgb(196 178 240 / 0.45);
  background: rgb(34 48 106 / 0.55);
  color: #ede8f8;
  padding: .25rem .8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-family: var(--wp--preset--font-family--sans), system-ui, sans-serif;
}

/* Praise quote card ornament */
.raven-praise-mark {
  font-family: var(--wp--preset--font-family--serif), Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: #d8b46a;
}

/* Excerpt (Chapter One) blockquote */
.raven-excerpt {
  border-left: 2px solid rgb(216 180 106 / 0.5);
  padding-left: 1.5rem;
  font-family: var(--wp--preset--font-family--serif), Georgia, serif;
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.7;
  color: rgb(237 232 248 / 0.9);
}

/* Site-header nav link styling */
.wp-block-navigation .wp-block-navigation-item__label {
  font-family: var(--wp--preset--font-family--display), serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a49dc4;
}
.wp-block-navigation .wp-block-navigation-item__label:hover { color: #c4b2f0; }

.wp-block-site-title a {
  font-family: var(--wp--preset--font-family--display), serif;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: #ecd9a8;
  text-decoration: none;
  text-transform: uppercase;
}

/* Reduce motion respect */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
