/* ============================================
   Riley Cross — Dark Romance
   Author Website
   ============================================ */

/* ---------- CSS Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --text-primary: #e8e0d8;
  --text-secondary: #9a9088;
  --text-muted: #6b6560;
  --accent: #8b2035;
  --accent-light: #b8304f;
  --accent-glow: rgba(139, 32, 53, 0.3);
  --gold: #c4a265;
  --gold-muted: rgba(196, 162, 101, 0.15);
  --border: #2a2424;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-light);
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

h1 em {
  font-style: italic;
  color: var(--gold);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 0.75rem;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 550px;
  margin: 1rem auto 0;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.nav-logo span {
  color: var(--accent-light);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-light);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-top: 72px;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(139, 32, 53, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(196, 162, 101, 0.05) 0%, transparent 60%),
    var(--bg-primary);
}

.hero-content {
  max-width: 700px;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 2.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-light);
  color: #fff;
  box-shadow: 0 0 30px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold-muted);
  color: var(--gold);
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Book Cards Grid ---------- */
.featured-books {
  background: var(--bg-secondary);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.books-grid--five {
  grid-template-columns: repeat(5, 1fr);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.book-card {
  text-align: center;
  transition: transform var(--transition);
}

.book-card:hover {
  transform: translateY(-6px);
}

.book-cover {
  width: 100%;
  aspect-ratio: 2/3;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-cover-placeholder {
  text-align: center;
  padding: 2rem 1rem;
}

.book-cover-placeholder .book-title-placeholder {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.book-cover-placeholder .book-author-placeholder {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.book-card h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.book-card .book-series-tag {
  font-size: 0.75rem;
  color: var(--accent-light);
  font-weight: 500;
}

/* ---------- Standalone Book Feature ---------- */
.standalone-feature {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.standalone-cover {
  width: 240px;
}

.standalone-blurb {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.tropes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.trope-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-card);
}

.coming-soon-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-light);
  border: 1px solid var(--accent);
  padding: 0.5rem 1.5rem;
  opacity: 0.8;
}

/* ---------- About Section ---------- */
.about-section {
  background: var(--bg-secondary);
}

.about-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}

.about-photo {
  width: 280px;
  aspect-ratio: 3/4;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo-placeholder {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

/* ---------- Newsletter / AWeber Section ---------- */
.newsletter {
  background:
    radial-gradient(ellipse at center, rgba(139, 32, 53, 0.12) 0%, transparent 70%),
    var(--bg-primary);
  text-align: center;
  padding: 7rem 0;
}

.newsletter h2 {
  margin-bottom: 0.75rem;
}

.newsletter p {
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 2rem;
}

/* AWeber Form Styling */
.aweber-form {
  max-width: 520px;
  margin: 0 auto;
}

.aweber-form-fields {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.aweber-field {
  flex: 1;
}

.aweber-field input {
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}

.aweber-field input::placeholder {
  color: var(--text-muted);
}

.aweber-field input:focus {
  border-color: var(--accent);
}

.aweber-form .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.form-privacy {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* ---------- Connect / Social Section ---------- */
.connect-layout {
  text-align: center;
}

.connect-text {
  max-width: 600px;
  margin: 0 auto 3rem;
}

.connect-text h2 {
  margin-bottom: 1rem;
}

.connect-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.social-card:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
  background: rgba(139, 32, 53, 0.08);
  transform: translateY(-3px);
}

.social-card svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.social-card span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Footer ---------- */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer a {
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- Thank You Page ---------- */
.thankyou-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 72px;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(139, 32, 53, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(196, 162, 101, 0.06) 0%, transparent 50%),
    var(--bg-primary);
}

.thankyou-content {
  max-width: 620px;
}

.thankyou-content h1 {
  margin-bottom: 1.5rem;
}

.thankyou-message {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.thankyou-submessage {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.thankyou-next {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.thankyou-next h3 {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .standalone-feature {
    grid-template-columns: 200px 1fr;
    gap: 2rem;
  }

  .standalone-cover {
    width: 200px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .about-photo {
    margin: 0 auto;
    width: 240px;
  }

  .books-grid--five {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .standalone-feature {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .standalone-cover {
    width: 180px;
    margin: 0 auto;
  }

  .tropes {
    justify-content: center;
  }

  .aweber-form-fields {
    flex-direction: column;
  }

  .books-grid--five {
    grid-template-columns: repeat(2, 1fr);
  }

  .social-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  section {
    padding: 4rem 0;
  }

  .newsletter {
    padding: 5rem 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .books-grid--five {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .social-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-links {
    gap: 1.25rem;
  }
}

/* ============================================
   Brinewick Files update (Sept 2026)
   ============================================ */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Featured book hero */
.hero--book {
  text-align: left;
  padding-top: calc(72px + 3rem);
  padding-bottom: 4rem;
}

.featured-book {
  display: grid;
  grid-template-columns: minmax(240px, 380px) 1fr;
  gap: 4rem;
  align-items: center;
}

.featured-cover {
  display: block;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 80px rgba(196, 162, 101, 0.08);
  transition: transform var(--transition);
}

.featured-cover:hover { transform: translateY(-6px); }
.featured-cover img { width: 100%; height: auto; }

.featured-info h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

.hero-divider--left { margin: 0 0 1.75rem; }

.featured-blurb {
  color: var(--text-secondary);
  font-size: 1.02rem;
  margin-bottom: 1.1rem;
  max-width: 620px;
}

.readout {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold);
  border-left: 2px solid var(--accent);
  padding: 0.4rem 0 0.4rem 1rem;
  margin: 0 0 1.25rem;
}

.btn-group--left { justify-content: flex-start; }

.content-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
  max-width: 560px;
}

/* Series grid */
a.book-card { color: inherit; display: block; }
a.book-card:hover h3 { color: var(--gold); }

.book-card h3 { transition: color var(--transition); }

.book-card--soon .book-cover {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(196, 162, 101, 0.07) 0%, transparent 65%),
    linear-gradient(180deg, #141212 0%, #0b0b0b 100%);
}

.book-card--soon h3 { color: var(--text-secondary); }

.placeholder-series {
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 1.25rem;
}

.book-card--soon .book-title-placeholder {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.series-cta {
  text-align: center;
  color: var(--text-secondary);
  margin-top: 3rem;
}

.about-text--center {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

/* Thank-you book block */
.thankyou-book {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  align-items: center;
  text-align: left;
}

.thankyou-cover img { width: 100%; height: auto; box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6); }
.thankyou-book h3 { margin-bottom: 0.5rem; color: var(--text-primary); }
.thankyou-book .thankyou-submessage { margin-bottom: 1.25rem; }

/* Legal pages */
.legal {
  padding: calc(72px + 4rem) 0 5rem;
}

.legal-container { max-width: 760px; }

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.5rem;
}

.legal-updated {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.legal h2 {
  font-size: 1.3rem;
  margin: 2.25rem 0 0.75rem;
  color: var(--gold);
}

.legal p, .legal li {
  color: var(--text-secondary);
  font-size: 0.97rem;
  margin-bottom: 1rem;
}

.legal ul { padding-left: 1.25rem; }
.legal strong { color: var(--text-primary); }

@media (max-width: 900px) {
  .featured-book { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .featured-cover { max-width: 300px; margin: 0 auto; }
  .hero-divider--left { margin: 0 auto 1.75rem; }
  .featured-blurb, .content-note { margin-left: auto; margin-right: auto; }
  .readout { display: inline-block; text-align: left; }
  .btn-group--left, .featured-info .tropes { justify-content: center; }
}

@media (max-width: 600px) {
  .thankyou-book { grid-template-columns: 1fr; text-align: center; }
  .thankyou-cover { max-width: 160px; margin: 0 auto; }
  .thankyou-book .btn-group--left { justify-content: center; }
}
