/*
Theme Name: Rachel M. Harrison Books
Theme URI: https://rachelmharrisonbooks.com
Author: Rachel M. Harrison
Author URI: https://rachel-m-harrison.com
Description: Author website theme for Rachel M. Harrison's complete book catalog. Built on the Sanctuary Well brand — deep sage, warm cream, gold accents, Cormorant Garant serif type. Includes 11 individual full-width book landing pages, a books archive, About, and Contact templates.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rmh-books
Tags: author, books, literary, custom-colors, custom-logo, full-width-template
*/

/* =============================================
   CSS VARIABLES
============================================= */
:root {
  --sage: #2D4A3E;
  --sage-light: #3D6054;
  --cream: #F7F3ED;
  --cream-dark: #EDE8E0;
  --gold: #C9A84C;
  --gold-light: #E2C97A;
  --charcoal: #1C1C1A;
  --text: #2A2A28;
  --muted: #6B6B68;
  --white: #FFFFFF;
}

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* =============================================
   TYPOGRAPHY
============================================= */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garant', serif;
  font-weight: 400;
  line-height: 1.2;
}
.eyebrow {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.2rem;
}
.sec-title {
  font-family: 'Cormorant Garant', serif;
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--sage);
  margin-bottom: .35rem;
}
.sec-rule {
  width: 44px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 2.2rem;
}

/* =============================================
   NAVIGATION
============================================= */
.site-nav {
  background: var(--sage);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-nav__brand {
  font-family: 'Cormorant Garant', serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: .04em;
}
.site-nav__brand span { color: var(--gold-light); }
.site-nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.site-nav__links a {
  color: var(--cream);
  opacity: .8;
  font-size: .8rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: opacity .2s;
}
.site-nav__links a:hover,
.site-nav__links a.current-menu-item { opacity: 1; color: var(--gold-light); }
.site-nav__ext {
  display: flex;
  gap: 1rem;
  margin-left: 1.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(247,243,237,.2);
}
.site-nav__ext a {
  color: var(--gold-light);
  opacity: .75;
  font-size: .72rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: opacity .2s;
}
.site-nav__ext a:hover { opacity: 1; }

/* =============================================
   BUTTONS
============================================= */
.btn {
  display: inline-block;
  padding: .7rem 2rem;
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background .2s;
  cursor: pointer;
  border: none;
}
.btn--gold { background: var(--gold); color: var(--sage); }
.btn--gold:hover { background: var(--gold-light); }
.btn--sage { background: var(--sage); color: var(--cream); }
.btn--sage:hover { background: var(--sage-light); }
.btn--ghost {
  background: transparent;
  border: 1px solid var(--sage);
  color: var(--sage);
  padding: .38rem .75rem;
  font-size: .68rem;
}
.btn--ghost:hover { background: var(--sage); color: var(--cream); }
.btn--sm { padding: .38rem .75rem; font-size: .68rem; }

/* =============================================
   HERO
============================================= */
.hero {
  background: var(--sage);
  color: var(--cream);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(201,168,76,.1) 0%, transparent 65%);
  pointer-events: none;
}
.hero__title {
  font-family: 'Cormorant Garant', serif;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  color: var(--cream);
}
.hero__title em { font-style: italic; color: var(--gold-light); }
.hero__sub {
  font-size: .95rem;
  opacity: .8;
  max-width: 500px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  line-height: 1.9;
}
.hero__site-links {
  margin-top: 2rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__site-links a {
  color: var(--gold-light);
  font-size: .78rem;
  letter-spacing: .07em;
  opacity: .85;
  transition: opacity .2s;
}
.hero__site-links a:hover { opacity: 1; }

/* =============================================
   BOOKSHELF
============================================= */
.shelf-section {
  padding: 2.5rem 2rem;
  background: var(--cream-dark);
  border-top: 1px solid rgba(45,74,62,.12);
}
.shelf-section__label {
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 1.5rem;
}
.shelf {
  display: flex;
  gap: 3px;
  justify-content: center;
  align-items: flex-end;
  padding: .5rem 0;
  overflow-x: auto;
  flex-wrap: wrap;
}
.spine {
  width: 32px;
  border-radius: 2px 0 0 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: height .22s ease, filter .18s;
  text-decoration: none;
}
.spine:hover { filter: brightness(1.1); }
.spine span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'Cormorant Garant', serif;
  font-size: .58rem;
  color: rgba(255,255,255,.9);
  letter-spacing: .05em;
  white-space: nowrap;
  overflow: hidden;
  padding: 0 4px;
  max-height: 90%;
  text-overflow: ellipsis;
}
.shelf-wood {
  width: 100%;
  max-width: 700px;
  height: 8px;
  background: #6B4F10;
  border-radius: 2px;
  margin: 0 auto;
}

/* =============================================
   SECTION WRAPPER
============================================= */
.section {
  padding: 3.5rem 2rem;
  max-width: 1020px;
  margin: 0 auto;
}

/* =============================================
   CATEGORY DIVIDER
============================================= */
.cat-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.8rem 0 1.4rem;
}
.cat-row__name {
  font-family: 'Cormorant Garant', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--sage);
  white-space: nowrap;
}
.cat-row__line {
  flex: 1;
  height: 1px;
  background: rgba(45,74,62,.18);
}

/* =============================================
   BOOK GRID & CARDS
============================================= */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 1.8rem;
}
.book-card {
  background: var(--white);
  border: 1px solid rgba(45,74,62,.12);
  padding: 1.25rem;
  transition: transform .2s, box-shadow .2s;
}
.book-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(45,74,62,.1);
}
.book-cover {
  width: 100%;
  aspect-ratio: 2/3;
  margin-bottom: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.book-cover__inner { padding: .8rem; text-align: center; }
.book-cover__title {
  font-family: 'Cormorant Garant', serif;
  font-size: .82rem;
  color: var(--cream);
  line-height: 1.35;
  margin-bottom: .4rem;
}
.book-cover__author {
  font-size: .58rem;
  color: var(--gold-light);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.book-cover__accent {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold);
}
.book-card__title {
  font-weight: 500;
  font-size: .88rem;
  line-height: 1.4;
  margin-bottom: .2rem;
  color: var(--text);
}
.book-card__sub {
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: .5rem;
}
.book-tag {
  display: inline-block;
  font-size: .6rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .18rem .55rem;
  background: var(--cream-dark);
  color: var(--sage);
  margin-bottom: .7rem;
}
.btn-row { display: flex; gap: .4rem; flex-wrap: wrap; }

/* Cover color schemes */
.c-trauma   { background: linear-gradient(155deg, #2D4A3E 0%, #1a3028 100%); }
.c-leadership { background: linear-gradient(155deg, #4A3728 0%, #2D2018 100%); }
.c-reflect  { background: linear-gradient(155deg, #3A2D4A 0%, #211a30 100%); }
.c-inspire  { background: linear-gradient(155deg, #4A4228 0%, #2D2818 100%); }
.c-kids     { background: linear-gradient(155deg, #2D6080 0%, #1a3f5a 100%); }
.c-kids2    { background: linear-gradient(155deg, #5a3d7a 0%, #3a2050 100%); }

/* =============================================
   FEATURED BOOK
============================================= */
.featured {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(45,74,62,.12);
  padding: 1.8rem;
  margin-bottom: 2rem;
}
.featured__cover {
  width: 120px;
  flex-shrink: 0;
  aspect-ratio: 2/3;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.featured__title {
  font-family: 'Cormorant Garant', serif;
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--sage);
  margin-bottom: .25rem;
  line-height: 1.3;
}
.featured__sub {
  font-size: .75rem;
  color: var(--gold);
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: .7rem;
}
.featured__desc {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: .9rem;
}
.price-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .9rem; }
.price-pill {
  font-size: .72rem;
  padding: .25rem .65rem;
  background: var(--cream-dark);
  color: var(--sage);
}

/* =============================================
   ABOUT
============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}
.about-img {
  background: var(--sage);
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-monogram {
  font-family: 'Cormorant Garant', serif;
  font-size: 3.5rem;
  color: rgba(247,243,237,.25);
}
.about-text p {
  margin-bottom: 1.1rem;
  color: var(--text);
  line-height: 1.85;
  font-size: .92rem;
}
.about-text h3 {
  font-family: 'Cormorant Garant', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--sage);
  margin: 1.6rem 0 .6rem;
}
.cred {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .35rem;
  font-size: .82rem;
  color: var(--muted);
}
.cred::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.pull-quote {
  margin: 1.5rem 0;
  padding: 1.4rem 1.6rem;
  background: var(--cream-dark);
  border-left: 3px solid var(--gold);
}
.pull-quote p {
  font-family: 'Cormorant Garant', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--sage);
  margin-bottom: .4rem;
}
.pull-quote cite { font-size: .75rem; color: var(--muted); }
.site-links-block {
  margin-top: 1.5rem;
  padding: 1.2rem 1.5rem;
  background: var(--cream-dark);
  border: 1px solid rgba(45,74,62,.12);
}
.site-links-block p {
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .8rem;
}
.site-link-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .5rem;
}
.site-link-item a { color: var(--sage); font-size: .88rem; font-weight: 500; transition: color .2s; }
.site-link-item a:hover { color: var(--gold); }
.site-link-item span { font-size: .75rem; color: var(--muted); }

/* =============================================
   CONTACT
============================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info h3 {
  font-family: 'Cormorant Garant', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--sage);
  margin-bottom: .8rem;
}
.contact-info p { color: var(--muted); line-height: 1.8; font-size: .88rem; margin-bottom: 1rem; }
.contact-link-block { margin-top: 1.2rem; display: flex; flex-direction: column; gap: .5rem; }
.contact-link-card {
  display: block;
  padding: .9rem 1.1rem;
  background: var(--white);
  border: 1px solid rgba(45,74,62,.12);
  transition: border-color .2s, transform .15s;
}
.contact-link-card:hover { border-color: var(--sage); transform: translateX(3px); }
.contact-link-card .clc-label { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.contact-link-card .clc-url { font-size: .9rem; color: var(--sage); font-weight: 500; }
.contact-link-card .clc-desc { font-size: .75rem; color: var(--muted); margin-top: .15rem; }
.wpcf7 .form-group, .contact-form .form-group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .9rem; }
.wpcf7 label, .contact-form label { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea,
.wpcf7 select,
.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: .65rem .85rem;
  border: 1px solid rgba(45,74,62,.22);
  background: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: .88rem;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
  width: 100%;
}
.wpcf7 input:focus, .wpcf7 textarea:focus,
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--sage); }
.wpcf7 textarea, .contact-form textarea { height: 110px; resize: vertical; }
.wpcf7 input[type="submit"], .contact-form .form-submit {
  width: 100%;
  padding: .7rem;
  background: var(--sage);
  color: var(--cream);
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
}
.wpcf7 input[type="submit"]:hover, .contact-form .form-submit:hover { background: var(--sage-light); }

/* =============================================
   FOOTER
============================================= */
.site-footer {
  background: var(--charcoal);
  color: rgba(247,243,237,.55);
  text-align: center;
  padding: 2rem;
  font-size: .75rem;
  margin-top: 4rem;
}
.site-footer__links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: .8rem;
}
.site-footer__links a { color: var(--gold-light); transition: opacity .2s; }
.site-footer__links a:hover { opacity: .8; }

/* =============================================
   WORDPRESS CONTENT
============================================= */
.entry-content p { margin-bottom: 1.2rem; line-height: 1.85; }
.entry-content h2 { font-family: 'Cormorant Garant', serif; font-size: 1.6rem; color: var(--sage); margin: 2rem 0 .8rem; }
.entry-content h3 { font-family: 'Cormorant Garant', serif; font-size: 1.25rem; color: var(--sage); margin: 1.5rem 0 .6rem; }
.entry-content a { color: var(--sage); border-bottom: 1px solid var(--gold); }
.entry-content a:hover { color: var(--gold); }

/* =============================================
   BOOK PAGE FULL-WIDTH OVERRIDE
   Applied via body.book-page class on all
   single-book-*.php templates
============================================= */
body.book-page .site-main,
body.book-page .entry-content,
body.book-page #content,
body.book-page #primary,
body.book-page .wp-block-post-content,
body.book-page .content-area {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 768px) {
  .site-nav { padding: 0 1rem; }
  .site-nav__ext { display: none; }
  .about-grid, .contact-grid, .featured { grid-template-columns: 1fr; }
  .featured__cover { width: 100%; max-width: 180px; }
  .books-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .section { padding: 2.5rem 1.2rem; }
}
@media (max-width: 480px) {
  .site-nav__links { gap: 1rem; }
  .hero { padding: 3.5rem 1.2rem 3rem; }
}
