/*
Theme Name: Rewilding
Theme URI: https://rewilding.mx
Description: Combined theme for Wild Words and Wild Books. Two sites, one database.
Version: 3.1
Author: Adventure Journal
Author URI: https://adventure-journal.com
Text Domain: rewilding
*/

/* ════════════════════════════════════
   RESET & VARIABLES
   ════════════════════════════════════ */
:root {
  /* Shared */
  --bg: #F5F0E6;
  --bg-warm: #EFEAD9;
  --text: #2C2C2C;
  --text-light: #5A5A52;
  --text-faint: #8A8A7E;
  --text-lighter: #9B9B8E;
  --dark: #1F1F1F;
  --rule: #C4B99A;
  --cream: #F5F0E8;
  /* Words palette */
  --yellow: #B89B2F;
  --yellow-soft: rgba(184,155,47,0.15);
  /* Books palette */
  --green: #6B8C2A;
  --green-light: #7DA032;
  --green-dark: #567022;
  --green-hover: rgba(107,140,42,0.12);
  --green-faint: rgba(107,140,42,0.07);
  --green-soft: rgba(107,140,42,0.12);
}

/* Section accent overrides */
.section-words { --accent: var(--yellow); --accent-soft: var(--yellow-soft); }
.section-books { --accent: var(--green); --accent-soft: var(--green-soft); }

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

body {
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  font-family: 'Literata', Georgia, serif;
}

a { color: inherit; text-decoration: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════
   NAV
   ════════════════════════════════════ */
.site-nav {
  background: var(--dark);
  padding: 0 40px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-bug {
  color: var(--accent);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2.5px;
}
.nav-wordmark {
  font-family: 'DM Serif Display', serif;
  color: var(--cream);
  font-size: 18px;
}
.nav-accent { color: var(--accent); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-link {
  font-family: 'DM Sans', sans-serif;
  color: var(--cream);
  opacity: 0.5;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: opacity 0.2s;
}
.nav-link:hover { opacity: 1; }
.nav-search-btn {
  background: none;
  border: 1px solid rgba(245,240,230,0.15);
  color: var(--cream);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
  text-decoration: none;
}
.nav-search-btn:hover { border-color: rgba(245,240,230,0.5); }
.nav-search-btn svg { width: 14px; height: 14px; }

/* ════════════════════════════════════
   FOOTER
   ════════════════════════════════════ */
.site-footer {
  background: var(--dark);
  padding: 48px 24px;
  text-align: center;
}
.footer-bug {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-words .footer-bug { font-size: 48px; line-height: 1; }
.footer-links {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(245,240,230,0.3);
}
.footer-links a {
  color: rgba(245,240,230,0.5);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--bg); }

/* ════════════════════════════════════
   SHARED COMPONENTS
   ════════════════════════════════════ */
.random-btn {
  display: block;
  margin: 0 auto 64px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  border: 1.5px solid var(--rule);
  border-radius: 6px;
  padding: 12px 28px;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  text-align: center;
}
.random-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ════════════════════════════════════
   WILD WORDS: HOMEPAGE
   ════════════════════════════════════ */
.manifesto {
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 24px 0;
  text-align: center;
}
.manifesto-line {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 26px;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 0;
  font-weight: normal;
}
.manifesto-line span { color: var(--yellow); }
@media (min-width: 480px) { .manifesto-line { font-size: 30px; } }

.featured-word {
  max-width: 640px;
  margin: 0 auto;
  padding: 120px 24px 120px;
  text-align: center;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.featured-word-link { text-decoration: none; display: block; transition: opacity 0.2s; }
.featured-word-link:hover { opacity: 0.8; }
.featured-headword {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 72px;
  line-height: 1.0;
  color: var(--text);
  margin-bottom: 12px;
}
@media (min-width: 480px) { .featured-headword { font-size: 96px; } }
.featured-pronunciation {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}
.featured-definition {
  font-family: 'Literata', Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-light);
  max-width: 480px;
  margin: 0 auto 20px;
}
.featured-readmore {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--yellow);
}
.featured-loading {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  color: var(--text-faint);
  padding: 40px 0;
}

.home-buttons { text-align: center; padding: 56px 24px 0; }
.home-buttons .random-btn { display: inline-block; margin: 0 6px; }

.home-search { max-width: 480px; margin: 0 auto; padding: 28px 24px 80px; }
.home-search input[type="text"] {
  width: 100%;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 15px;
  padding: 14px 18px;
  background: var(--bg-warm);
  border: 1.5px solid var(--rule);
  border-radius: 6px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  text-align: center;
}
.home-search input[type="text"]:focus { border-color: var(--yellow); }
.home-search input[type="text"]::placeholder { color: var(--text-faint); }

/* ════════════════════════════════════
   WILD WORDS: SINGLE ENTRY
   ════════════════════════════════════ */
.post {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}
.headword-block { padding: 90px 0 0; }
.headword {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 56px;
  line-height: 1.0;
  color: var(--text);
  margin-bottom: 0;
}
@media (min-width: 480px) { .headword { font-size: 72px; } }
.pronunciation {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 15px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  margin-top: 32px;
  margin-bottom: 0;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 0;
  margin-bottom: 48px;
}
.tags span, .tags a {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 3px;
  background: var(--yellow-soft);
  color: var(--text-light);
  text-decoration: none;
  transition: background 0.2s;
}
.tags a:hover { background: rgba(184,155,47,0.28); }

.accent-rule {
  width: 48px;
  height: 3px;
  background: var(--yellow);
  border: none;
  border-radius: 2px;
  margin: 36px 0 48px;
}

.definition {
  font-family: 'Literata', Georgia, serif;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 56px;
}
@media (min-width: 480px) { .definition { font-size: 19px; } }
.definition em { font-style: italic; }

.etym-label, .notes-label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}
.etym-label { color: var(--yellow); }
.notes-label { color: var(--text-faint); }

.etymology {
  font-family: 'Literata', Georgia, serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-light);
  padding-left: 18px;
  border-left: 2.5px solid var(--yellow);
  margin-bottom: 56px;
}
.etymology em { font-style: italic; }

.notes {
  font-family: 'Literata', Georgia, serif;
  font-size: 16px;
  font-style: italic;
  line-height: 1.75;
  color: var(--text-light);
  margin-bottom: 56px;
}

.reading-label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green);
  margin-bottom: 12px;
}
.reading {
  font-family: 'Literata', Georgia, serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-light);
  margin-bottom: 56px;
}

.definition a, .etymology a, .notes a, .reading a {
  color: var(--yellow);
  text-decoration: underline;
  text-decoration-color: rgba(184,155,47,0.4);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s;
}
.definition a:hover, .etymology a:hover, .notes a:hover, .reading a:hover {
  text-decoration-color: var(--yellow);
}

/* Words end bug */
.section-words .end-bug {
  font-size: 94px;
  color: var(--yellow);
  letter-spacing: 0;
  line-height: 1;
}
.section-words .bottom-rule { margin: 0 0 40px; }

/* Word nav */
.word-nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 56px;
}
.word-nav a { text-decoration: none; transition: opacity 0.2s; }
.word-nav a:hover { opacity: 0.7; }
.word-nav .label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  display: block;
  margin-bottom: 4px;
}
.word-nav .adjacent-word {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 22px;
  color: var(--text);
  display: block;
}
.word-nav .next { text-align: right; }

/* Letter navigation */
.letter-nav {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.letter-nav a {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 2px 4px;
}
.letter-nav a:hover { color: var(--yellow); }

.letter-group { margin-bottom: 16px; }
.letter-heading {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 28px;
  color: var(--text);
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 4px;
  margin-bottom: 8px;
  display: inline-block;
}

/* Related books on word page */
.word-books-section { padding: 32px 0; border-top: 1px solid var(--rule); }
.word-books-label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.word-books-grid { display: flex; gap: 16px; flex-wrap: wrap; }
.word-book-item { text-decoration: none; width: 100px; text-align: center; }
.word-book-item img { width: 100px; height: auto; border-radius: 2px; box-shadow: 2px 3px 10px rgba(0,0,0,0.12); margin-bottom: 8px; }
.word-book-title { font-family: 'DM Serif Display', serif; font-size: 12px; color: var(--text); line-height: 1.2; margin-bottom: 2px; }
.word-book-author { font-family: 'DM Sans', sans-serif; font-size: 11px; color: var(--text-faint); }

/* ════════════════════════════════════
   WILD WORDS: ARCHIVES
   ════════════════════════════════════ */
.archive-header {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 24px 16px;
}
.archive-header h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 36px;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 8px;
}
.archive-header h1 span { color: var(--accent); }
.archive-header p {
  font-family: 'Literata', Georgia, serif;
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.5;
}

.search-form {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px 24px;
}
.search-form input[type="text"] {
  width: 100%;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 15px;
  padding: 12px 16px;
  background: var(--bg-warm);
  border: 1.5px solid var(--rule);
  border-radius: 6px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.search-form input[type="text"]:focus { border-color: var(--accent); }
.search-form input[type="text"]::placeholder { color: var(--text-faint); }

.word-list {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px 48px;
}
.word-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.word-item:first-child { border-top: 1px solid var(--rule); }
.word-item a { text-decoration: none; display: block; }
.word-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 6px;
}
.word-preview {
  font-family: 'Literata', Georgia, serif;
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Single Word */
.word-entry {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 24px 0;
}
.word-entry h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 48px;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 8px;
}
.word-pronunciation {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 15px;
  color: var(--text-faint);
  margin-bottom: 28px;
}
.word-definition {
  font-family: 'Literata', Georgia, serif;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 32px;
}
.word-section-label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
  padding-top: 16px;
  border-top: 2px solid var(--yellow);
  display: inline-block;
}
.word-section-text {
  font-family: 'Literata', Georgia, serif;
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 24px;
}
.word-tags { padding: 20px 0 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.word-tag {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-light);
  border: 1px solid var(--rule);
  padding: 4px 10px;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.2s;
}
.word-tag:hover { border-color: var(--yellow); background: var(--yellow-soft); }
.word-nav {
  display: flex;
  justify-content: space-between;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}
.word-nav a { text-decoration: none; }
.word-nav .label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  display: block;
  margin-bottom: 2px;
}
.word-nav .adjacent-word {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 18px;
  color: var(--text);
}
.word-nav .next { text-align: right; }

/* Related books on word page */
.word-books-section { padding: 32px 0; border-top: 1px solid var(--rule); }
.word-books-label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.word-books-grid { display: flex; gap: 16px; flex-wrap: wrap; }
.word-book-item { text-decoration: none; width: 100px; text-align: center; }
.word-book-item img { width: 100px; height: auto; border-radius: 2px; box-shadow: 2px 3px 10px rgba(0,0,0,0.12); margin-bottom: 8px; }
.word-book-title { font-family: 'DM Serif Display', serif; font-size: 12px; color: var(--text); line-height: 1.2; margin-bottom: 2px; }
.word-book-author { font-family: 'DM Sans', sans-serif; font-size: 11px; color: var(--text-faint); }

/* ════════════════════════════════════
   WILD BOOKS: HOMEPAGE
   ════════════════════════════════════ */
.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 40px 40px;
  position: relative;
}
.hero-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-lighter);
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.2s forwards;
}
.hero-compact {
  min-height: 50vh;
  padding-top: 40px;
  padding-bottom: 24px;
}
.sentence {
  text-align: center;
  max-width: 820px;
  line-height: 1.6;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}
.s-text {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(22px, 2.8vw, 32px);
  color: var(--text);
}
.s-dd-wrap {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
}
.s-dd {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--green);
  background: none;
  border: none;
  border-bottom: 2px solid var(--green);
  padding: 0 28px 2px 4px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  line-height: 1.6;
  transition: border-color 0.2s;
  width: auto;
  max-width: 90vw;
  text-overflow: clip;
  overflow: visible;
}
.s-dd:hover { border-bottom-color: var(--green-dark); }
.s-dd option {
  font-family: 'Literata', Georgia, serif;
  font-size: 16px;
  color: var(--text);
  background: var(--cream);
}
.dd-arrow {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--green);
  font-size: clamp(9px, 1.2vw, 12px);
}
.hero-count {
  margin-top: 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text-light);
  opacity: 0;
  animation: fadeUp 0.6s ease 0.6s forwards;
}
.hero-count strong {
  color: var(--green);
  font-weight: 700;
}

/* Discover Shelf */
.discover {
  padding: 40px 0 40px;
  overflow: hidden;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.8s forwards;
}
.discover-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-lighter);
  text-align: center;
  margin-bottom: 28px;
}
.shelf {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 0 48px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}
.shelf-book {
  display: block;
  width: 140px;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.2s;
}
.shelf-book:hover { transform: translateY(-4px); }
.shelf-book img { width: 100%; height: auto; border-radius: 2px; box-shadow: 2px 3px 10px rgba(0,0,0,0.12); }
.shelf-book-info { display: none; }

.section-rule { max-width: 740px; margin: 48px auto 0; border: none; border-top: 1px solid var(--rule); }

/* Browse Themes & Places */
.themes, .places {
  max-width: 740px;
  margin: 0 auto;
  padding: 40px 40px 16px;
  text-align: center;
}
.themes-label, .places-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-lighter);
  margin-bottom: 20px;
}
.themes-list, .places-list { line-height: 2.4; }
.theme-link {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}
.theme-link:hover { color: var(--green); }
.place-link {
  font-family: 'Literata', serif;
  font-size: 20px;
  color: var(--text-lighter);
  text-decoration: none;
  transition: color 0.15s;
  font-style: italic;
}
.place-link:hover { color: var(--text); }
.theme-sep { padding: 0 10px; color: var(--rule); font-size: 14px; }

/* Results */
.results-section { max-width: 860px; margin: 0 auto; padding: 0 40px; }
.results-header { padding: 16px 0 8px; border-bottom: 1px solid var(--rule); margin-bottom: 16px; }
.results-title-bar { display: flex; justify-content: space-between; align-items: baseline; }
.results-title { font-family: 'DM Serif Display', serif; font-size: 24px; color: var(--text); }
.results-clear { font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--text-faint); text-decoration: none; }
.results-clear:hover { color: var(--text); }
.results-count-label { font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--text-faint); }

.no-results { padding: 48px 0; text-align: center; }
.no-results-text { font-family: 'DM Serif Display', serif; font-size: 22px; color: var(--text); margin-bottom: 8px; }
.no-results-sub { font-family: 'Literata', serif; font-size: 15px; color: var(--text-light); font-style: italic; }

/* Book List (results + taxonomy archives) */
.book-list {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 40px 48px;
}
.book-list-item { display: flex; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--rule); align-items: flex-start; }
.book-list-cover { flex-shrink: 0; width: 80px; }
.book-list-cover img { width: 80px; height: auto; border-radius: 2px; box-shadow: 1px 2px 6px rgba(0,0,0,0.1); }
.book-list-info { flex: 1; }
.book-list-title { font-family: 'DM Serif Display', serif; font-size: 20px; color: var(--text); text-decoration: none; display: block; margin-bottom: 4px; }
.book-list-author { font-family: 'Literata', serif; font-size: 15px; color: var(--text-light); font-style: italic; margin-bottom: 8px; }
.book-list-desc { font-family: 'Literata', serif; font-size: 14px; color: var(--text-light); line-height: 1.6; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.book-list-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.result-tag { font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 500; color: var(--text-light); border: 1px solid var(--rule); padding: 2px 8px; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.04em; }
.result-bookshop { font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 600; color: var(--green); text-decoration: none; }
.result-bookshop:hover { color: var(--green-hover); }

/* ════════════════════════════════════
   WILD BOOKS: SINGLE BOOK
   ════════════════════════════════════ */
.breadcrumb {
  max-width: 860px; margin: 0 auto; padding: 16px 40px;
  font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--text-faint);
}
.breadcrumb a { color: var(--green); text-decoration: none; }
.breadcrumb span { padding: 0 6px; color: var(--text-lighter); }

.book-header {
  max-width: 860px; margin: 0 auto; padding: 24px 40px 32px;
  display: flex; gap: 40px; align-items: flex-start;
  opacity: 0; animation: fadeUp 0.5s ease 0.15s forwards;
}
.book-cover { position: relative; flex-shrink: 0; }
.book-cover img {
  width: 240px; height: auto; display: block;
  box-shadow: 4px 6px 20px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.1);
  border-radius: 2px;
}
.book-info { flex: 1; padding-top: 8px; }
.book-title { font-family: 'DM Serif Display', serif; font-size: 38px; line-height: 1.15; color: var(--text); margin-bottom: 8px; }
.book-author { font-family: 'Literata', serif; font-size: 20px; font-style: italic; color: var(--text-light); margin-bottom: 28px; }
.book-author a { color: var(--text-light); text-decoration: none; }
.book-author a:hover { color: var(--green); }
.book-description { font-family: 'Literata', serif; font-size: 16px; line-height: 1.7; color: var(--text-light); margin-bottom: 24px; }
.book-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.book-tag {
  font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 500;
  color: var(--text-light); border: 1px solid var(--rule); padding: 4px 12px;
  border-radius: 3px; text-decoration: none; text-transform: uppercase;
  letter-spacing: 0.04em; transition: all 0.2s;
}
.book-tag:hover { border-color: var(--green); background: var(--green-soft); }
.book-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600;
  color: var(--cream); background: var(--green);
  padding: 14px 28px; border-radius: 6px; text-decoration: none;
  text-transform: uppercase; letter-spacing: 0.06em; transition: background 0.2s;
}
.book-cta:hover { background: var(--green-hover); }
.book-cta svg { width: 20px; height: 20px; }

/* Meta Bar */
.book-meta-section { max-width: 860px; margin: 0 auto; padding: 72px 40px 0; opacity: 0; animation: fadeUp 0.5s ease 0.35s forwards; }
.book-meta-bar { display: flex; justify-content: center; gap: 40px; padding: 24px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.book-meta-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.book-meta-label { font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-lighter); }
.book-meta-value { font-family: 'Literata', serif; font-size: 15px; color: var(--text); }
.book-meta-value a { color: var(--text); text-decoration: none; }
.book-meta-value a:hover { color: var(--green); }

/* Wild Words on book page */
.wild-words-section { max-width: 860px; margin: 0 auto; padding: 80px 40px 0; }
.section-label { font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--text-lighter); margin-bottom: 32px; text-align: center; }
.wild-words-list { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.wild-word-link {
  font-family: 'DM Serif Display', serif; font-size: 18px;
  color: var(--text); text-decoration: none; padding: 8px 20px;
  border: 1px solid var(--rule); border-radius: 4px; transition: all 0.2s;
}
.wild-word-link:hover { border-color: var(--yellow); background: var(--yellow-soft); }
.wild-word-pron { font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--text-faint); margin-left: 8px; }

/* Related Books */
.related-section { max-width: 860px; margin: 0 auto; padding: 80px 40px 0; }
.related-grid { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.related-book { width: 140px; text-align: center; text-decoration: none; transition: transform 0.2s; }
.related-book:hover { transform: translateY(-4px); }
.related-book img { width: 140px; height: auto; border-radius: 2px; box-shadow: 2px 3px 10px rgba(0,0,0,0.12); margin-bottom: 10px; }
.related-book-title { font-family: 'DM Serif Display', serif; font-size: 14px; color: var(--text); line-height: 1.2; margin-bottom: 4px; }
.related-book-author { font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--text-faint); }

.end-bug { text-align: center; font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 24px; letter-spacing: 5px; color: var(--green); padding: 80px 0 16px; }
.bottom-rule { border: none; border-top: 1px solid var(--rule); }

/* ════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════ */
@media (max-width: 700px) {
  .book-header { flex-direction: column; align-items: center; text-align: center; padding: 24px 24px 32px; }
  .book-cover img { width: 180px; }
  .book-tags { justify-content: center; }
  .book-meta-bar { flex-wrap: wrap; gap: 20px; }
  .hero { padding: 40px 24px 32px; }
  .s-text, .s-dd { font-size: 24px; }
  .shelf-book { width: 110px; }
  .themes, .places { padding: 32px 24px 16px; }
  .theme-link { font-size: 20px; }
  .place-link { font-size: 17px; }
  .results-section { padding: 0 24px; }
}
