/*
Theme Name: Inkwell — Author Theme
Theme URI: https://example.com/inkwell
Author: Claude
Author URI: https://example.com
Description: A refined, editorial WordPress theme designed for authors, writers, and literary professionals. Features a sophisticated typographic system, book showcase, events calendar, and newsletter integration.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: inkwell
Tags: blog, one-column, custom-background, custom-logo, custom-menu, featured-images, theme-options, translation-ready
*/

/* =========================================
   CSS CUSTOM PROPERTIES
   ========================================= */
:root {
  /* Color Palette — warm literary tones */
  --ink: #1a1410;
  --ink-light: #2e2720;
  --parchment: #f5f0e8;
  --parchment-dark: #e8e0d2;
  --cream: #faf8f4;
  --gold: #b8860b;
  --gold-light: #d4a843;
  --gold-muted: rgba(184, 134, 11, 0.12);
  --rust: #8b4513;
  --sage: #6b7c5e;
  --muted: #8a7e72;
  --border: rgba(26, 20, 16, 0.1);
  --border-strong: rgba(26, 20, 16, 0.2);
  --shadow-sm: 0 1px 3px rgba(26, 20, 16, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 20, 16, 0.08);
  --shadow-lg: 0 8px 32px rgba(26, 20, 16, 0.12);
  --shadow-book: 4px 4px 0 rgba(26, 20, 16, 0.15), 8px 8px 0 rgba(26, 20, 16, 0.08);

  /* Typography */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Source Serif 4', 'Palatino Linotype', 'Book Antiqua', serif;
  --font-sans: 'DM Sans', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
  --space-3xl: 8rem;

  /* Layout */
  --container: 1200px;
  --container-narrow: 740px;
  --container-wide: 1400px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 200ms var(--ease-out);
  --transition-base: 400ms var(--ease-out);
  --transition-slow: 600ms var(--ease-out);
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

::selection {
  background: var(--gold-muted);
  color: var(--ink);
}

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

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

a:hover {
  color: var(--rust);
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.25rem; }

p + p { margin-top: 1.25em; }

blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--ink-light);
  border-left: 3px solid var(--gold);
  padding-left: var(--space-lg);
  margin: var(--space-xl) 0;
}

.label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* =========================================
   LAYOUT
   ========================================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding: var(--space-3xl) 0;
}

.section--parchment {
  background-color: var(--parchment);
}

.section--dark {
  background-color: var(--ink);
  color: var(--parchment);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--parchment);
}

.section--dark .label {
  color: var(--gold-light);
}

/* Decorative divider */
.divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-strong);
}

.divider__ornament {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold);
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  max-width: var(--container-wide);
  margin: 0 auto;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.site-logo span {
  color: var(--gold);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.main-nav a {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: var(--space-xs) 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width var(--transition-base);
}

.main-nav a:hover::after,
.main-nav a.current-menu-item::after {
  width: 100%;
}

.main-nav a:hover {
  color: var(--ink);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: var(--transition-fast);
}

/* =========================================
   HERO SECTION (Front Page)
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, var(--gold-muted) 0%, transparent 70%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-md);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.hero__label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1.5px;
  background: var(--gold);
}

.hero__title {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}

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

.hero__subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: var(--space-xl);
}

.hero__image {
  position: relative;
  z-index: 1;
}

.hero__image-frame {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: var(--shadow-lg);
}

.hero__image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(184, 134, 11, 0.2);
  border-radius: 2px;
  pointer-events: none;
}

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

/* Floating accent elements */
.hero__accent {
  position: absolute;
  font-family: var(--font-display);
  font-size: 12rem;
  font-weight: 900;
  color: rgba(26, 20, 16, 0.03);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn--primary {
  background: var(--ink);
  color: var(--parchment);
}

.btn--primary:hover {
  background: var(--ink-light);
  color: var(--parchment);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn--outline:hover {
  background: var(--ink);
  color: var(--parchment);
}

.btn--gold {
  background: var(--gold);
  color: white;
}

.btn--gold:hover {
  background: var(--rust);
  color: white;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--gold);
  padding-left: 0;
  padding-right: 0;
}

.btn--ghost:hover {
  color: var(--rust);
}

.btn--ghost svg {
  transition: transform var(--transition-fast);
}

.btn--ghost:hover svg {
  transform: translateX(4px);
}

/* =========================================
   BOOKS SECTION
   ========================================= */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.book-card {
  position: relative;
  transition: transform var(--transition-base);
}

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

.book-card__cover {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: var(--shadow-book);
  margin-bottom: var(--space-lg);
  background: var(--parchment-dark);
}

.book-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.book-card:hover .book-card__cover img {
  transform: scale(1.03);
}

/* Book spine effect */
.book-card__cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.05) 40%,
    rgba(255,255,255,0.05) 60%,
    transparent 100%
  );
  z-index: 1;
}

.book-card__badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--gold);
  color: white;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
  z-index: 2;
}

.book-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: var(--space-xs);
}

.book-card__meta {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--muted);
}

.book-card__excerpt {
  margin-top: var(--space-sm);
  font-size: 0.95rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Featured book (large layout) */
.book-featured {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-3xl);
  align-items: center;
}

.book-featured__cover {
  aspect-ratio: 2/3;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: var(--shadow-book);
  position: relative;
}

.book-featured__cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.05) 40%,
    transparent 100%
  );
  z-index: 1;
}

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

.book-featured__info {
  padding: var(--space-lg) 0;
}

.book-featured__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--ink-light);
  margin: var(--space-xl) 0;
  padding-left: var(--space-lg);
  border-left: 2px solid var(--gold);
}

.book-featured__quote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: var(--space-sm);
}

.book-featured__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}

/* =========================================
   ABOUT / BIO SECTION
   ========================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-3xl);
  align-items: start;
}

.about__portrait {
  position: relative;
}

.about__portrait-frame {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: var(--shadow-lg);
}

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

.about__portrait-accent {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 60%;
  height: 60%;
  border: 2px solid var(--gold);
  border-radius: 2px;
  z-index: -1;
}

.about__text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink-light);
}

.about__text .lead {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--ink);
  font-family: var(--font-display);
  font-style: italic;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

.stat__number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat__label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: var(--space-xs);
}

/* =========================================
   PRAISE / TESTIMONIALS
   ========================================= */
.praise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-xl);
}

.praise-card {
  padding: var(--space-xl);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 2px;
  position: relative;
}

.praise-card::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  top: var(--space-md);
  left: var(--space-lg);
}

.praise-card__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-light);
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.praise-card__source {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

/* =========================================
   EVENTS SECTION
   ========================================= */
.events-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.event-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-xl);
  align-items: center;
  padding: var(--space-lg);
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--cream);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.event-item:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}

.event-date {
  text-align: center;
  min-width: 70px;
}

.event-date__month {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.event-date__day {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}

.event-info__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: var(--space-xs);
}

.event-info__details {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--muted);
}

/* =========================================
   BLOG / POSTS
   ========================================= */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-xl);
}

.post-card {
  transition: transform var(--transition-base);
}

.post-card:hover {
  transform: translateY(-3px);
}

.post-card__image {
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: var(--space-md);
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.post-card:hover .post-card__image img {
  transform: scale(1.04);
}

.post-card__category {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.post-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
}

.post-card__title a {
  color: var(--ink);
}

.post-card__title a:hover {
  color: var(--gold);
}

.post-card__date {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--muted);
}

/* =========================================
   NEWSLETTER SECTION
   ========================================= */
.newsletter {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter__form {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.newsletter__input {
  flex: 1;
  padding: 0.9rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 2px;
  background: var(--cream);
  color: var(--ink);
  transition: border-color var(--transition-fast);
}

.newsletter__input:focus {
  outline: none;
  border-color: var(--gold);
}

.newsletter__input::placeholder {
  color: var(--muted);
}

.newsletter__note {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: var(--space-md);
}

/* =========================================
   SINGLE POST / PAGE
   ========================================= */
.entry-header {
  text-align: center;
  padding: calc(80px + var(--space-3xl)) 0 var(--space-xl);
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.entry-header .label {
  margin-bottom: var(--space-md);
}

.entry-header h1 {
  margin-bottom: var(--space-md);
}

.entry-meta {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.entry-meta span + span::before {
  content: '·';
  margin-right: var(--space-md);
}

.entry-featured-image {
  max-width: 960px;
  margin: var(--space-xl) auto;
  border-radius: 2px;
  overflow: hidden;
}

.entry-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

.entry-content p {
  font-size: 1.08rem;
  line-height: 1.85;
  margin-bottom: 1.5em;
}

.entry-content h2 {
  margin-top: 2.5em;
  margin-bottom: 0.8em;
}

.entry-content h3 {
  margin-top: 2em;
  margin-bottom: 0.6em;
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}

.entry-content li {
  margin-bottom: 0.5em;
}

.entry-content figure {
  margin: var(--space-xl) 0;
}

.entry-content figcaption {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  margin-top: var(--space-sm);
}

/* Drop cap */
.entry-content > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.8em;
  float: left;
  line-height: 0.8;
  margin-right: 0.08em;
  margin-top: 0.05em;
  color: var(--gold);
  font-weight: 700;
}

/* Post navigation */
.post-navigation {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  border-top: 1px solid var(--border);
}

.post-navigation__link {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.3;
}

.post-navigation__link--next {
  text-align: right;
}

.post-navigation__label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: var(--space-xs);
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: var(--ink);
  color: var(--parchment);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.footer-brand span {
  color: var(--gold);
}

.footer-tagline {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 300px;
  line-height: 1.7;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--space-lg);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--parchment);
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--parchment);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-copyright {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: var(--parchment);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: white;
}

/* =========================================
   SIDEBAR
   ========================================= */
.sidebar {
  padding-left: var(--space-xl);
}

.widget {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.widget:last-child {
  border-bottom: none;
}

.widget-title {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-lg);
}

/* =========================================
   PAGINATION
   ========================================= */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xl) 0;
}

.pagination a,
.pagination span {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  padding: 0.5rem 0.8rem;
  border-radius: 2px;
}

.pagination .current {
  background: var(--ink);
  color: var(--parchment);
}

.pagination a:hover {
  background: var(--parchment);
  color: var(--ink);
}

/* =========================================
   COMMENTS
   ========================================= */
.comments-area {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 2px;
  background: var(--cream);
  color: var(--ink);
  margin-bottom: var(--space-md);
  transition: border-color var(--transition-fast);
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.comment-list {
  list-style: none;
}

.comment {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
}

.comment-author {
  font-family: var(--font-display);
  font-weight: 700;
}

.comment-meta {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--muted);
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children .animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.stagger-children .animate-on-scroll:nth-child(2) { transition-delay: 100ms; }
.stagger-children .animate-on-scroll:nth-child(3) { transition-delay: 200ms; }
.stagger-children .animate-on-scroll:nth-child(4) { transition-delay: 300ms; }
.stagger-children .animate-on-scroll:nth-child(5) { transition-delay: 400ms; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-xl);
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__image {
    max-width: 400px;
    margin: 0 auto;
  }

  .book-featured {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .book-featured__cover {
    max-width: 300px;
    margin: 0 auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .about__portrait {
    max-width: 400px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    z-index: 1001;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    z-index: 1000;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav a {
    font-size: 1rem;
    padding: var(--space-sm) 0;
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .books-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .praise-grid {
    grid-template-columns: 1fr;
  }

  .event-item {
    grid-template-columns: auto 1fr;
  }

  .event-item .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .newsletter__form {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

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

  .post-navigation {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .books-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

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

/* =========================================
   WORDPRESS CORE CLASSES
   ========================================= */
.alignleft {
  float: left;
  margin-right: var(--space-lg);
  margin-bottom: var(--space-md);
}

.alignright {
  float: right;
  margin-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignwide {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.wp-block-image {
  margin-bottom: var(--space-lg);
}

.wp-block-quote {
  border-left: 3px solid var(--gold);
  padding-left: var(--space-lg);
  margin: var(--space-xl) 0;
}

.wp-block-separator {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-xl) 0;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.screen-reader-text:focus {
  clip: auto !important;
  display: block;
  height: auto;
  width: auto;
  z-index: 100000;
}
