/* Shattered Realms — shared styles (multi-page)
   Last updated: 2026-04-23 */

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

:root {
  --sage: #6B7F3A;
  --forest: #4A5A28;
  --bg: #F6F7F3;
  --dark: #2A2E24;
  --gold: #D9AB3F;
  --gray: #8A8A82;
  --light-sage: rgba(107, 127, 58, 0.1);
  --border-sage: rgba(107, 127, 58, 0.18);
}

body { font-family: 'Lora', serif; color: var(--dark); background: var(--bg); line-height: 1.7; font-size: 17px; }
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 400; color: var(--sage); }

/* NAV */
.site-nav { position: sticky; top: 0; z-index: 100; background: var(--bg); padding: 1em 3em; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-sage); backdrop-filter: blur(10px); }
.site-nav .brand { font-family: 'Playfair Display', serif; font-size: 1.4em; font-weight: 700; color: var(--sage); text-decoration: none; }
.nav-links { display: flex; gap: 1.8em; align-items: center; }
.nav-links a { font-family: 'Nunito', sans-serif; font-size: 0.9em; color: var(--dark); text-decoration: none; opacity: 0.6; transition: all 0.2s; border-bottom: 2px solid transparent; padding-bottom: 2px; }
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; color: var(--sage); border-bottom-color: var(--sage); }
.nav-links .buy-nav { background: var(--sage); color: var(--bg) !important; padding: 0.45em 1.4em; border-radius: 300px; font-weight: 600; opacity: 1 !important; border: none !important; }

/* BREADCRUMBS */
.breadcrumbs { max-width: 1000px; margin: 0 auto; padding: 1em 2em 0; font-family: 'Nunito', sans-serif; font-size: 0.82em; color: var(--gray); }
.breadcrumbs a { color: var(--sage); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 0.5em; opacity: 0.5; }

/* SHARED */
.section { padding: 3em 2em; max-width: 1000px; margin: 0 auto; }
.section-dark { background: var(--dark); color: var(--bg); padding: 5em 2em; }
.section-dark h2, .section-dark h3 { color: var(--bg); }
.divider { max-width: 1000px; margin: 0 auto; border: none; border-top: 1px solid var(--border-sage); }
.btn { display: inline-block; font-family: 'Nunito', sans-serif; font-size: 17px; font-weight: 600; padding: 0 30px; height: 48px; line-height: 48px; border-radius: 300px; text-decoration: none; text-align: center; transition: transform 0.15s, box-shadow 0.15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(42,46,36,0.1); }
.btn-primary { background: var(--sage); color: var(--bg); }
.btn-outline { background: transparent; color: var(--sage); border: 2px solid var(--sage); }
.btn-dark { background: var(--sage); color: var(--bg); }
.genre-tag { font-family: 'Nunito', sans-serif; font-size: 0.78em; font-weight: 600; padding: 0.4em 1em; border-radius: 300px; background: var(--light-sage); color: var(--forest); border: 1px solid rgba(107,127,58,0.25); display: inline-block; }
.atmospheric { font-style: italic; color: var(--gray); font-size: 0.95em; margin-bottom: 1em; }
.subtext { color: var(--gray); font-size: 0.92em; }

/* PAGE HEADER */
.page-header { text-align: center; padding: 3em 2em 1em; max-width: 900px; margin: 0 auto; }
.page-header h1 { font-size: 2.6em; margin-bottom: 0.3em; }
.page-header h1, .page-header h2 { font-size: 2.6em; margin-bottom: 0.3em; }
.page-header p.subtitle, .page-header p { font-style: italic; color: var(--gray); font-size: 1.05em; }

/* HOME */
.hero { text-align: center; padding: 3em 2em 2em; max-width: 900px; margin: 0 auto; }
.hero .atmospheric { font-size: 0.9em; margin-bottom: 1.5em; }
.hero h1 { font-size: 2.8em; font-weight: 700; color: var(--sage); margin-bottom: 0.4em; line-height: 1.15; }
.hero .sub { font-size: 1.05em; margin-bottom: 2em; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero .buttons { display: flex; gap: 1em; justify-content: center; flex-wrap: wrap; margin-bottom: 2em; }
.hero .cover-img { max-width: 280px; border-radius: 4px; box-shadow: 0 8px 30px rgba(42,46,36,0.15); }

.pitch { max-width: 750px; margin: 0 auto; padding: 3em 2em; }
.pitch h2 { text-align: center; font-size: 2em; margin-bottom: 1em; }
.pitch p { margin-bottom: 1em; }
.pitch .tags { text-align: center; margin-top: 1.5em; display: flex; gap: 0.5em; justify-content: center; flex-wrap: wrap; }

.mimi-feature { max-width: 1000px; margin: 0 auto; padding: 3em 2em; display: flex; gap: 3em; align-items: center; }
.mimi-feature .mimi-img { flex: 0 0 260px; text-align: center; }
.mimi-feature .mimi-img img { max-width: 240px; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1)); }
.mimi-feature h2 { font-size: 1.8em; margin-bottom: 0.6em; }

.reviews { max-width: 1000px; margin: 0 auto; padding: 3em 2em; }
.reviews h2 { text-align: center; font-size: 2em; margin-bottom: 1.5em; }
.reviews-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5em; }
.review-card { background: white; border-radius: 8px; padding: 1.5em; border: 1px solid var(--border-sage); }
.review-stars { color: var(--gold); font-size: 1.1em; margin-bottom: 0.5em; }
.review-text { font-size: 0.92em; margin-bottom: 0.8em; font-style: italic; }
.review-author { font-family: 'Nunito', sans-serif; font-size: 0.8em; color: var(--gray); }

.newsletter-cta { max-width: 650px; margin: 0 auto; padding: 3em 2em; text-align: center; border-top: 1px solid var(--border-sage); }
.newsletter-cta h2 { font-size: 1.8em; margin-bottom: 0.8em; }
.newsletter-cta p { margin-bottom: 1em; }
.ml-embedded { max-width: 460px; margin: 0 auto 1em; }
.ml-form-embedContent > h4, .ml-form-embedContent > p { display: none; }
.trust-line { font-size: 0.82em; color: var(--gray); opacity: 0.7; }

.buy-cta { max-width: 600px; margin: 0 auto; padding: 2em 2em 4em; text-align: center; }
.buy-cta h2 { font-size: 1.8em; margin-bottom: 0.3em; }
.buy-cta .buttons { display: flex; gap: 1em; justify-content: center; flex-wrap: wrap; margin-top: 1em; }

/* BOOK ONE */
.book-feature { max-width: 1000px; margin: 0 auto; padding: 2em 2em 4em; display: flex; gap: 3em; align-items: flex-start; }
.book-cover { flex: 0 0 300px; }
.book-cover img { width: 300px; border-radius: 4px; box-shadow: 0 8px 30px rgba(42,46,36,0.15); }
.book-details { flex: 1; }
.book-details .book-title { font-size: 2em; margin-bottom: 0.15em; line-height: 1.2; }
.book-details .book-author { font-style: italic; color: var(--gray); font-size: 1.05em; margin-bottom: 0.8em; }
.book-details .tags { display: flex; flex-wrap: wrap; gap: 0.5em; margin-bottom: 1.5em; }
.book-blurb p { margin-bottom: 1em; }
.book-blurb p:first-child { font-style: italic; color: var(--forest); }
.book-buttons { display: flex; gap: 1em; margin-top: 1.5em; flex-wrap: wrap; align-items: center; }
.book-buttons .text-link { font-family: 'Nunito', sans-serif; font-size: 0.9em; color: var(--sage); text-decoration: none; font-weight: 600; }
.book2-teaser .inner { max-width: 650px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.book2-label { font-family: 'Nunito', sans-serif; font-size: 0.75em; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1em; }
.book2-teaser h2 { font-size: 2em; margin-bottom: 0.8em; }
.book2-teaser p { color: rgba(246,247,243,0.75); margin-bottom: 1em; }
.book2-teaser .mystery { font-style: italic; color: var(--gold); font-size: 1.05em; margin: 1.2em 0; }
.series-note { max-width: 650px; margin: 0 auto; padding: 3em 2em; text-align: center; }
.series-note h3 { font-size: 1.4em; margin-bottom: 0.8em; }
.series-note p { color: var(--gray); font-size: 0.95em; }

/* CHARACTERS INDEX */
.char-grid { max-width: 1000px; margin: 0 auto; padding: 2em 2em 4em; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5em; }
.char-tile { background: white; border: 1px solid var(--border-sage); border-radius: 8px; padding: 2em; display: flex; gap: 1.5em; align-items: center; text-decoration: none; color: inherit; transition: transform 0.15s, box-shadow 0.15s; }
.char-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(42,46,36,0.08); }
.char-tile img { width: 110px; height: 140px; object-fit: contain; flex-shrink: 0; }
.char-tile h3 { font-size: 1.3em; margin-bottom: 0.2em; }
.char-tile .class-line { font-family: 'Nunito', sans-serif; font-size: 0.82em; color: var(--forest); margin-bottom: 0.5em; }
.char-tile p { font-size: 0.9em; line-height: 1.5; }

/* CHARACTER PAGE */
.char-page { max-width: 900px; margin: 0 auto; padding: 2em 2em 4em; }
.char-page .char-hero { display: flex; gap: 3em; align-items: flex-start; margin-bottom: 2em; }
.char-page .char-img { flex: 0 0 280px; text-align: center; }
.char-page .char-img img { max-width: 260px; filter: drop-shadow(0 4px 15px rgba(0,0,0,0.1)); }
.char-page h1 { font-size: 2.4em; margin-bottom: 0.3em; }
.char-page .char-stats { font-family: 'Nunito', sans-serif; font-size: 0.88em; color: var(--forest); margin-bottom: 1.5em; line-height: 2; }
.char-page .char-stats span { display: inline-block; background: var(--light-sage); padding: 0.2em 0.8em; border-radius: 4px; margin-right: 0.3em; margin-bottom: 0.3em; }
.char-page .char-bio p { margin-bottom: 1em; }
.char-back { font-family: 'Nunito', sans-serif; font-size: 0.88em; color: var(--sage); text-decoration: none; display: inline-block; margin-top: 1em; }

/* ABOUT */
.about-section { max-width: 750px; margin: 0 auto; padding: 2em 2em; }
.about-section h2 { font-size: 1.8em; margin-bottom: 0.8em; }
.about-section p { margin-bottom: 1em; }
.connect-section { max-width: 700px; margin: 0 auto; padding: 3em 2em; text-align: center; }
.connect-section h2 { font-size: 1.8em; margin-bottom: 1em; }
.connect-links { display: flex; gap: 1em; justify-content: center; flex-wrap: wrap; margin-top: 1.5em; }
.connect-links a { font-family: 'Nunito', sans-serif; font-size: 0.9em; color: var(--sage); text-decoration: none; font-weight: 600; }
.review-prompt { background: var(--light-sage); border-radius: 8px; padding: 2em; margin-top: 2em; }
.review-prompt p { font-size: 0.95em; margin-bottom: 1em; }

/* BLOG INDEX */
.blog-list { max-width: 820px; margin: 0 auto; padding: 2em 2em 4em; }
.blog-card { background: white; border: 1px solid var(--border-sage); border-radius: 8px; padding: 2em; margin-bottom: 1.5em; text-decoration: none; color: inherit; display: block; transition: transform 0.15s, box-shadow 0.15s; }
.blog-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(42,46,36,0.08); }
.blog-card .blog-meta { font-family: 'Nunito', sans-serif; font-size: 0.78em; color: var(--gray); margin-bottom: 0.5em; text-transform: uppercase; letter-spacing: 0.05em; }
.blog-card h3 { font-size: 1.5em; margin-bottom: 0.5em; line-height: 1.3; }
.blog-card p { font-size: 0.95em; color: var(--dark); }
.blog-card .read-more { font-family: 'Nunito', sans-serif; font-size: 0.85em; color: var(--sage); font-weight: 600; margin-top: 0.8em; display: inline-block; }

/* BLOG POST */
.blog-post { max-width: 720px; margin: 0 auto; padding: 2em 2em 4em; }
.blog-post .post-meta { font-family: 'Nunito', sans-serif; font-size: 0.82em; color: var(--gray); margin-bottom: 0.8em; text-transform: uppercase; letter-spacing: 0.05em; }
.blog-post h1 { font-size: 2.4em; margin-bottom: 0.5em; line-height: 1.2; }
.blog-post .lead { font-size: 1.1em; color: var(--forest); font-style: italic; margin-bottom: 1.5em; }
.blog-post h2 { font-size: 1.5em; margin: 1.8em 0 0.6em; }
.blog-post h3 { font-size: 1.2em; margin: 1.4em 0 0.5em; }
.blog-post p { margin-bottom: 1em; line-height: 1.8; }
.blog-post a { color: var(--sage); }
.blog-post a.btn-primary, .blog-post a.btn-dark { color: var(--bg); }
.blog-post a.btn-outline { color: var(--sage); }
.blog-post ul, .blog-post ol { margin: 0 0 1em 1.5em; }
.blog-post li { margin-bottom: 0.5em; line-height: 1.7; }
.blog-post blockquote { border-left: 3px solid var(--sage); padding-left: 1.2em; margin: 1.2em 0; color: var(--forest); font-style: italic; }
.blog-post .book-callout { background: var(--light-sage); border-radius: 8px; padding: 1.5em; margin: 1.5em 0; }
.blog-post .book-callout h4 { font-size: 1.1em; margin-bottom: 0.3em; }
.blog-post .post-sign-off { margin-top: 2em; padding-top: 1.5em; border-top: 1px solid var(--border-sage); font-family: 'Nunito', sans-serif; font-size: 0.9em; color: var(--gray); }

/* FOOTER */
.site-footer { background: var(--dark); padding: 3em 2em; margin-top: 2em; }
.footer-inner { max-width: 1000px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 2em; flex-wrap: wrap; }
.footer-col { flex: 1; min-width: 200px; }
.footer-col h4 { font-family: 'Nunito', sans-serif; font-size: 0.8em; font-weight: 600; color: rgba(246,247,243,0.5); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.8em; }
.footer-col p, .footer-col a { font-family: 'Lora', serif; font-size: 0.88em; color: rgba(246,247,243,0.6); text-decoration: none; line-height: 1.8; display: block; }
.footer-col a:hover { color: var(--sage); }
.footer-bottom { text-align: center; padding-top: 1.5em; font-family: 'Nunito', sans-serif; font-size: 0.75em; color: rgba(246,247,243,0.3); max-width: 1000px; margin: 2em auto 0; border-top: 1px solid rgba(246,247,243,0.08); }

@media (max-width: 768px) {
  .site-nav { padding: 1em; flex-direction: column; gap: 0.8em; }
  .nav-links { flex-wrap: wrap; justify-content: center; gap: 1em; }
  .hero h1, .page-header h1, .page-header h2 { font-size: 2em; }
  .mimi-feature, .book-feature, .char-page .char-hero { flex-direction: column; align-items: center; text-align: center; }
  .char-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
