/* ============================================================
   Dana Enache — Horror Author · Design System & Styles
   ============================================================ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --bg:           #0d0d0d;
  --surface:      #161616;
  --border:       #2a2a2a;
  --text:         #f0ede8;
  --muted:        #888888;
  --accent:       #8b1a1a;
  --accent-hover: #cc2222;
  --radius:       6px;
  --nav-h:        60px;
  --transition:   0.25s ease;
}

[data-theme="light"] {
  --bg:      #f5f2ee;
  --surface: #ffffff;
  --border:  #ddd8d0;
  --text:    #1a1a1a;
  --muted:   #555555;
}
/* Dark theme hero: gradient is dark → force light text so it's always readable */
.hero,
.page-hero {
  color:   #f0ede8;
  --text:  #f0ede8;
  --muted: #b0a89a;
}
/* Light theme hero: warm cream gradient → natural dark text, truly light */
[data-theme="light"] .hero,
[data-theme="light"] .page-hero {
  background: radial-gradient(ellipse at 30% 50%, #fff0e8 0%, var(--bg) 70%);
  color:   #1a1a1a;
  --text:  #1a1a1a;
  --muted: #555555;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

/* ── Body ───────────────────────────────────────────────────── */
body {
  background:  var(--bg);
  color:       var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size:   1rem;
  line-height: 1.65;
  overflow-x:  hidden;
  transition:  background var(--transition), color var(--transition);
}

/* ── Utility ────────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ── Navigation ─────────────────────────────────────────────── */
.site-nav {
  position:        sticky;
  top:             0;
  z-index:         100;
  height:          var(--nav-h);
  background:      color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom:   1px solid var(--border);
  transition:      background var(--transition);
}
.nav-inner {
  max-width:   1100px;
  margin:      0 auto;
  padding:     0 1.5rem;
  height:      100%;
  display:     flex;
  align-items: center;
  gap:         2rem;
}
.nav-logo {
  font-family:  'Playfair Display', Georgia, serif;
  font-size:    1.2rem;
  font-weight:  600;
  color:        var(--text);
  white-space:  nowrap;
  margin-right: auto;
  transition:   color var(--transition);
}
.nav-logo:hover { color: var(--accent-hover); }
.nav-links {
  display: flex;
  gap:     0.25rem;
}
.nav-link {
  padding:       0.4rem 0.9rem;
  border-radius: var(--radius);
  font-size:     0.9rem;
  color:         var(--muted);
  transition:    color var(--transition), background var(--transition);
}
.nav-link:hover         { color: var(--text);         background: var(--surface); }
.nav-link.active        { color: var(--accent-hover); background: var(--surface); }

/* ── Theme Toggle ───────────────────────────────────────────── */
.theme-toggle {
  width:           36px;
  height:          36px;
  border-radius:   50%;
  border:          1px solid var(--border);
  background:      var(--surface);
  color:           var(--text);
  cursor:          pointer;
  display:         flex;
  align-items:     center;
  justify-content: center;
  flex-shrink:     0;
  transition:      background var(--transition), border-color var(--transition), color var(--transition);
}
.theme-toggle:hover {
  border-color: var(--accent-hover);
  background:   var(--accent);
  color:        #fff;
}

/* ── Hero (homepage) ────────────────────────────────────────── */
.hero {
  min-height:      68vh;
  display:         flex;
  align-items:     center;
  justify-content: center;
  padding:         3rem 2rem;
  background:      radial-gradient(ellipse at 30% 50%, #1a0a0a 0%, var(--bg) 65%);
  position:        relative;
}
.hero-inner {
  display:     flex;
  align-items: center;
  gap:         4rem;
  max-width:   860px;
  width:       100%;
}
.hero-portrait {
  width:       210px;
  height:      270px;
  border-radius: 3px;
  overflow:    hidden;
  flex-shrink: 0;
  border:      1px solid rgba(139,26,26,0.45);
  box-shadow:  -6px 6px 0 rgba(139,26,26,0.25), 0 20px 60px rgba(0,0,0,0.7), 0 0 40px rgba(139,26,26,0.18);
  animation:   portrait-pulse 5s ease-in-out infinite;
}
.hero-portrait img {
  width:           100%;
  height:          100%;
  object-fit:      cover;
  object-position: center top;
  filter:          grayscale(50%) brightness(0.68) contrast(1.2) sepia(15%);
  transition:      filter 0.4s ease;
  display:         block;
}
.hero-portrait:hover img {
  filter: grayscale(25%) brightness(0.82) contrast(1.1) sepia(8%);
}
@keyframes portrait-pulse {
  0%, 100% { box-shadow: -6px 6px 0 rgba(139,26,26,0.20), 0 20px 60px rgba(0,0,0,0.7), 0 0 30px rgba(139,26,26,0.15); }
  50%       { box-shadow: -6px 6px 0 rgba(139,26,26,0.35), 0 20px 60px rgba(0,0,0,0.7), 0 0 55px rgba(139,26,26,0.40); }
}
.hero-text {
  flex:       1;
  text-align: left;
}
.hero-title {
  font-family:    'Playfair Display', Georgia, serif;
  font-size:      clamp(2.2rem, 5vw, 3.6rem);
  font-weight:    600;
  line-height:    1.05;
  margin-bottom:  0.7rem;
  letter-spacing: -0.01em;
}
.hero-tagline {
  font-size:      clamp(0.75rem, 1.8vw, 0.95rem);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color:          var(--accent-hover);
  margin-bottom:  1rem;
  font-weight:    500;
}
.hero-sub {
  font-size:     1rem;
  color:         var(--muted);
  margin-bottom: 2rem;
  max-width:     38ch;
  line-height:   1.6;
}
.hero-cta {
  display:        inline-block;
  padding:        0.9rem 2.2rem;
  background:     var(--accent);
  color:          #fff;
  border-radius:  var(--radius);
  font-size:      1rem;
  font-weight:    500;
  letter-spacing: 0.03em;
  transition:     background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.hero-cta:hover {
  background:  var(--accent-hover);
  box-shadow:  0 0 28px rgba(204, 34, 34, 0.55);
  transform:   translateY(-2px);
}
.hero-scroll-hint {
  position:    absolute;
  bottom:      2rem;
  left:        50%;
  transform:   translateX(-50%);
  color:       var(--muted);
  font-size:   1.4rem;
  animation:   bounce 2s ease-in-out infinite;
  cursor:      pointer;
  user-select: none;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0);    opacity: 0.5; }
  50%       { transform: translateX(-50%) translateY(8px); opacity: 1;   }
}

/* Hero — mobile: stack portrait above text */
@media (max-width: 640px) {
  .hero { min-height: 0; padding: 3rem 1.5rem 4rem; }
  .hero-inner { flex-direction: column; align-items: center; gap: 1.8rem; text-align: center; }
  .hero-portrait { width: 130px; height: 168px; }
  .hero-text { text-align: center; }
  .hero-sub { max-width: 100%; margin-left: auto; margin-right: auto; }
}

/* ── Page Hero (sub-pages) ──────────────────────────────────── */
.page-hero {
  height:          160px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  text-align:      center;
  padding:         0 1.5rem;
  background:      radial-gradient(ellipse at center, #1a0a0a 0%, var(--bg) 70%);
  border-bottom:   1px solid var(--border);
}
.page-hero h1 {
  font-family:    'Playfair Display', Georgia, serif;
  font-size:      clamp(1.5rem, 3vw, 2.2rem);
  font-weight:    600;
  letter-spacing: -0.01em;
}
.page-hero p {
  color:      var(--muted);
  margin-top: 0.5rem;
  font-size:  1rem;
}

/* ── Section Wrapper ────────────────────────────────────────── */
.section { padding: 3rem 1.5rem; }
.section-inner {
  max-width: 1100px;
  margin:    0 auto;
}
.section-title {
  font-family:   'Playfair Display', Georgia, serif;
  font-size:     clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 2.5rem;
  text-align:    center;
}
.section-more { text-align: center; margin-top: 3rem; }

/* ── Ghost Button ───────────────────────────────────────────── */
.ghost-btn {
  display:        inline-block;
  padding:        0.65rem 1.6rem;
  border:         1px solid var(--accent);
  color:          var(--accent-hover);
  border-radius:  var(--radius);
  font-size:      0.88rem;
  letter-spacing: 0.03em;
  transition:     background var(--transition), color var(--transition), box-shadow var(--transition);
}
.ghost-btn:hover {
  background:  var(--accent);
  color:       #fff;
  box-shadow:  0 0 14px rgba(139, 26, 26, 0.35);
}

/* ── Books Grid ─────────────────────────────────────────────── */
.books-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap:                   2rem;
}
.book-card {
  background:    var(--surface);
  border:        1px solid var(--border);
  border-radius: var(--radius);
  overflow:      hidden;
  transition:    transform var(--transition), box-shadow var(--transition);
}
.book-card:hover {
  transform:  translateY(-4px);
  box-shadow: 0 8px 32px rgba(139, 26, 26, 0.25);
}
.book-card img {
  width:      100%;
  height:     300px;
  object-fit: contain;
  padding:    1rem;
  box-sizing: border-box;
  background: var(--surface);
}
.book-info    { padding: 1.5rem; }
.book-title {
  font-family:   'Playfair Display', Georgia, serif;
  font-size:     1.3rem;
  margin-bottom: 0.75rem;
}
.book-title a { color: var(--text); text-decoration: none; }
.book-title a:hover { color: var(--accent-hover); }
.book-synopsis {
  color:         var(--muted);
  font-size:     0.9rem;
  line-height:   1.7;
  margin-bottom: 0.75rem;
}

/* ── Goodreads Rating Badge ─────────────────────────────────── */
.gr-rating-wrap { margin-bottom: 1rem; }
.gr-badge {
  display:         inline-flex;
  align-items:     center;
  gap:             0.4rem;
  text-decoration: none;
  font-size:       0.82rem;
  color:           var(--muted);
  transition:      color var(--transition);
}
.gr-badge:hover { color: var(--text); }
.gr-stars {
  position:    relative;
  display:     inline-block;
  line-height: 1;
  font-size:   0.95rem;
}
.gr-stars-empty { color: #555; }
.gr-stars-fill {
  position:    absolute;
  top:         0;
  left:        0;
  overflow:    hidden;
  white-space: nowrap;
  color:       #c0392b;
}
.gr-score {
  font-weight: 600;
  color:       var(--text);
  font-size:   0.85rem;
}
.gr-logo {
  font-size:   0.72rem;
  color:       var(--muted);
  opacity:     0.7;
  border-left: 1px solid var(--border);
  padding-left: 0.4rem;
}

/* Amazon / standard buy — neutral, unobtrusive */
.buy-btn {
  display:        inline-flex;
  align-items:    center;
  gap:            0.35rem;
  padding:        0.65rem 1.6rem;
  background:     var(--surface);
  color:          var(--muted);
  border:         1px solid var(--border);
  border-radius:  var(--radius);
  font-size:      0.82rem;
  font-weight:    500;
  letter-spacing: 0.04em;
  transition:     border-color var(--transition), color var(--transition);
}
.buy-btn:hover {
  border-color: var(--accent);
  color:        var(--text);
}
/* Signed copy — primary CTA, most important action */
.book-actions .ghost-btn {
  background:     var(--accent);
  border:         1px solid transparent;
  color:          #fff;
  font-size:      0.82rem;
  font-weight:    600;
  padding:        0.65rem 1.6rem;
  font-style:     italic;
  letter-spacing: 0.04em;
  transition:     background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.book-actions .ghost-btn::before {
  content:    '✒\FE0E\00A0';
  font-style: normal;
  font-size:  0.85em;
}
.book-actions .ghost-btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 22px rgba(204, 34, 34, 0.45);
  transform:  translateY(-1px);
}
  box-shadow:   none;
}

/* ── Book Catalog (books listing page) ─────────────────────── */
.books-catalog {
  display:        flex;
  flex-direction: column;
  gap:            1.5rem;
  margin-top:     1rem;
}
.catalog-card {
  display:       flex;
  flex-direction: row;
  background:    var(--surface);
  border:        1px solid var(--border);
  border-radius: var(--radius);
  overflow:      hidden;
  transition:    box-shadow var(--transition);
}
.catalog-card:hover {
  box-shadow: 0 6px 32px rgba(139, 26, 26, 0.2);
}
.catalog-cover-link {
  flex-shrink: 0;
  width:       200px;
  position:    relative;
  overflow:    hidden;
  background:  var(--surface);
  border-right: 1px solid var(--border);
}
.catalog-cover-link img {
  width:      100%;
  height:     100%;
  object-fit: contain;
  padding:    1.25rem;
  box-sizing: border-box;
  display:    block;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.catalog-cover-link:hover img {
  transform: scale(1.04);
  opacity:   0.85;
}
.catalog-overlay {
  position:        absolute;
  inset:           0;
  display:         flex;
  align-items:     center;
  justify-content: center;
  background:      rgba(0, 0, 0, 0.45);
  color:           #fff;
  font-size:       0.88rem;
  letter-spacing:  0.08em;
  opacity:         0;
  transition:      opacity 0.3s ease;
}
.catalog-cover-link:hover .catalog-overlay { opacity: 1; }
.catalog-info {
  padding:         1.75rem 2rem;
  display:         flex;
  flex-direction:  column;
  justify-content: center;
  flex:            1;
  gap:             0.5rem;
}
.catalog-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size:   1.7rem;
  font-weight: 600;
  line-height: 1.15;
}
.catalog-title a { color: inherit; }
.catalog-title a:hover { color: var(--accent-hover); }
.catalog-hook {
  font-size:   0.95rem;
  color:       var(--muted);
  line-height: 1.7;
  max-width:   55ch;
}
.catalog-info .book-actions {
  flex-direction: row;
  flex-wrap:      wrap;
  margin-top:     0.75rem;
  gap:            0.75rem;
}
/* Mobile: stack cover above info */
@media (max-width: 600px) {
  .catalog-card        { flex-direction: column; }
  .catalog-cover-link  { width: 100%; height: 220px; border-right: none; border-bottom: 1px solid var(--border); }
  .catalog-info        { padding: 1.25rem; }
  .catalog-info .book-actions { flex-direction: column; }
  .catalog-info .book-actions .buy-btn,
  .catalog-info .book-actions .ghost-btn { width: 100%; justify-content: center; text-align: center; }
}

/* ── Book Detail (individual book pages) ───────────────────── */
.book-detail {
  display:               grid;
  grid-template-columns: 1fr 1.6fr;
  gap:                   3rem;
  align-items:           start;
  padding:               4rem 0;
  border-bottom:         1px solid var(--border);
}
.book-detail:last-child  { border-bottom: none; }
.book-detail.reverse     { direction: rtl; }
.book-detail.reverse > * { direction: ltr; }
.book-detail-img {
  border-radius: var(--radius);
  overflow:      hidden;
  box-shadow:    0 8px 40px rgba(0, 0, 0, 0.5);
  max-width:     300px;
  margin:        0 auto;
}
.book-detail-img img { width: 100%; height: auto; display: block; }
.book-detail-info .book-title {
  font-size:     clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 1rem;
}
.book-detail-info .book-synopsis {
  font-size:   1rem;
  line-height: 1.8;
}
.book-detail-info .book-synopsis p {
  color:         var(--muted);
  margin-bottom: 1em;
}
.book-detail-info .book-synopsis p:last-child { margin-bottom: 1.5rem; }
.book-detail-info .book-synopsis em { font-style: italic; }
.book-label {
  display:        inline-block;
  font-size:      0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color:          var(--muted);
  margin-bottom:  0.5rem;
}
.book-coming-soon {
  display:       inline-block;
  padding:       0.55rem 1.4rem;
  border:        1px solid var(--border);
  color:         var(--muted);
  border-radius: var(--radius);
  font-size:     0.88rem;
  cursor:        default;
}
.book-actions {
  display:     flex;
  flex-wrap:   wrap;
  gap:         0.75rem;
  align-items: center;
  margin-top:  1.5rem;
}
.book-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}
.book-card-link img {
  width:      100%;
  height:     300px;
  object-fit: contain;
  padding:    1rem;
  box-sizing: border-box;
  background: var(--surface);
  transition: opacity var(--transition);
}
.book-card-link:hover img { opacity: 0.85; }

/* ── Stories Grid ───────────────────────────────────────────── */
.stories-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap:                   1.5rem;
}
.story-card {
  display:       block;
  color:         inherit;
  text-decoration: none;
  background:    var(--surface);
  border:        1px solid var(--border);
  border-radius: var(--radius);
  overflow:      hidden;
  cursor:        pointer;
  transition:    transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.story-card:hover {
  transform:    translateY(-4px);
  box-shadow:   0 8px 32px rgba(139, 26, 26, 0.3);
  border-color: var(--accent);
}
.story-card-body { padding: 1.25rem 1.5rem 1.5rem; }
.story-card-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface);
}
.story-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.story-card:hover .story-card-cover img { transform: scale(1.04); }
.story-title {
  font-family:   'Playfair Display', Georgia, serif;
  font-size:     1.1rem;
  margin-bottom: 0.5rem;
  line-height:   1.3;
}
.story-excerpt {
  font-size:          0.87rem;
  color:              var(--muted);
  line-height:        1.65;
  display:            -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow:           hidden;
  margin-bottom:      1rem;
}
.story-meta {
  display:     flex;
  gap:         0.5rem;
  flex-wrap:   wrap;
  align-items: center;
  margin-bottom: 0.75rem;
}
.story-date { font-size: 0.78rem; color: var(--muted); }
.badge {
  display:        inline-block;
  padding:        0.15rem 0.55rem;
  border-radius:  99px;
  font-size:      0.72rem;
  font-weight:    600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-en { background: #1a3a1a; color: #7ecf7e; }
.badge-ro { background: #1a1a3a; color: #7e9ecf; }
.story-read-link {
  font-size:   0.83rem;
  color:       var(--accent-hover);
  font-weight: 500;
}
.story-card:hover .story-read-link { text-decoration: underline; }

/* ── Story Page (individual story) ─────────────────────────── */
.story-page { padding: 3rem 1.5rem 5rem; }
.story-page-inner {
  max-width: 720px;
  margin:    0 auto;
}
.story-cover {
  margin: 0 0 2.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
}
.story-cover img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}
.back-link {
  display:       inline-block;
  font-size:     0.88rem;
  color:         var(--muted);
  margin-bottom: 2rem;
  transition:    color var(--transition);
}
.back-link:hover { color: var(--accent-hover); }
/* Breadcrumb nav */
.breadcrumb { margin-bottom: 1.5rem; }
.breadcrumb ol {
  display:     flex;
  flex-wrap:   wrap;
  gap:         0.25rem 0.5rem;
  list-style:  none;
  padding:     0;
  margin:      0;
  font-size:   0.82rem;
  color:       var(--muted);
}
.breadcrumb ol li + li::before { content: '›'; margin-right: 0.5rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent-hover); }
.breadcrumb [aria-current="page"] { color: var(--text); }
.story-page-header  { margin-bottom: 3rem; border-bottom: 1px solid var(--border); padding-bottom: 2rem; }
.story-page-title {
  font-family:   'Playfair Display', Georgia, serif;
  font-size:     clamp(2rem, 5vw, 3rem);
  font-weight:   600;
  line-height:   1.2;
  margin-bottom: 1rem;
}
.story-page-meta { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.story-page-date { font-size: 0.85rem; color: var(--muted); }
.story-page-body {
  font-size:   1.05rem;
  line-height: 1.85;
  color:       var(--text);
}
.story-page-body p  { margin-bottom: 1.4em; }
.story-page-body em { color: var(--muted); font-style: italic; }

/* ── Story Next ─────────────────────────────────────────────── */
.story-next { border-top: 1px solid var(--border); }
.story-next .story-page-inner { padding-top: 0; padding-bottom: 0; }
.story-next-card {
  display:         flex;
  align-items:     center;
  gap:             1.5rem;
  padding:         1.5rem 0;
  text-decoration: none;
  color:           var(--text);
  transition:      background var(--transition);
}
.story-next-card:hover { color: var(--text); }
.story-next-card:hover .story-next-title { color: var(--accent-hover); }
.story-next-cover {
  width:       80px;
  height:      80px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow:    hidden;
  border:      1px solid var(--border);
}
.story-next-cover img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  filter:     grayscale(30%) brightness(0.8);
  transition: filter var(--transition);
}
.story-next-card:hover .story-next-cover img { filter: grayscale(0%) brightness(0.95); }
.story-next-info {
  flex:    1;
  display: flex;
  flex-direction: column;
  gap:     0.25rem;
}
.story-next-label {
  font-size:      0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color:          var(--accent-hover);
  font-weight:    500;
}
.story-next-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size:   1.1rem;
  font-weight: 600;
  transition:  color var(--transition);
}
.story-next-excerpt {
  font-size:   0.85rem;
  color:       var(--muted);
  line-height: 1.5;
  display:     -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:    hidden;
}
.story-next-arrow {
  font-size:  1.4rem;
  color:      var(--accent);
  flex-shrink: 0;
  transition: transform var(--transition), color var(--transition);
}
.story-next-card:hover .story-next-arrow {
  transform: translateX(6px);
  color:     var(--accent-hover);
}

/* ── Story Comments (Cusdis) ────────────────────────────────── */
.story-comments {
  padding: 2rem 1.5rem 4rem;
  border-top: 1px solid var(--border);
}
.story-comments-title {
  font-family:   'Playfair Display', Georgia, serif;
  font-size:     1.4rem;
  margin-bottom: 1.5rem;
  color:         var(--text);
}
/* Cusdis iframe — no border, full width, auto height via postMessage */
#cusdis_thread iframe {
  width:       100% !important;
  min-height:  200px;
  border:      none !important;
  overflow:    hidden !important;
  display:     block;
  transition:  height 0.2s ease;
}

/* ── About Section ──────────────────────────────────────────── */
.about-section {
  max-width:  700px;
  margin:     0 auto;
  text-align: center;
  padding:    5rem 1.5rem;
}
.author-photo {
  width:         200px;
  height:        200px;
  border-radius: 50%;
  object-fit:    cover;
  margin:        0 auto 2rem;
  border:        3px solid var(--accent);
  box-shadow:    0 0 32px rgba(139, 26, 26, 0.3);
}
.about-name {
  font-family:   'Playfair Display', Georgia, serif;
  font-size:     2rem;
  margin-bottom: 1.5rem;
}
.about-bio {
  color:         var(--muted);
  font-size:     1.05rem;
  line-height:   1.8;
  margin-bottom: 2rem;
  text-align:    left;
}
.goodreads-btn {
  display:       inline-block;
  padding:       0.75rem 2rem;
  background:    #553b08;
  color:         #f4c518;
  border-radius: var(--radius);
  font-size:     0.95rem;
  font-weight:   500;
  transition:    background var(--transition), transform var(--transition);
  margin-bottom: 1rem;
}
.goodreads-btn:hover { background: #7a5510; transform: translateY(-2px); }
.about-order {
  margin-top:    3rem;
  padding:       2rem;
  background:    var(--surface);
  border:        1px solid var(--border);
  border-radius: var(--radius);
  text-align:    center;
}
.about-order h3 {
  font-family:   'Playfair Display', Georgia, serif;
  font-size:     1.4rem;
  margin-bottom: 0.75rem;
}
.about-order p {
  color:         var(--muted);
  font-size:     0.95rem;
  margin-bottom: 1.5rem;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  border-top:  1px solid var(--border);
  padding:     2rem 1.5rem;
  text-align:  center;
  font-size:   0.85rem;
  color:       var(--muted);
  background:  var(--bg);
}

/* ── Responsive ─────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 768px) {
  .book-detail         { grid-template-columns: 1fr; }
  .book-detail.reverse { direction: ltr; }
  .page-hero           { height: 140px; }
  .modal-inner         { padding: 1.75rem 1.25rem; }
}

/* Mobile — 2-row nav, no hamburger */
@media (max-width: 600px) {
  :root { --nav-h: 88px; }

  .nav-inner {
    flex-wrap:   wrap;
    height:      auto;
    padding:     0.55rem 1rem 0;
    gap:         0;
  }
  .nav-logo {
    flex:         1;
    font-size:    1rem;
    padding-bottom: 0.45rem;
  }
  .theme-toggle {
    flex-shrink:    0;
    margin-bottom:  0.45rem;
  }
  .nav-links {
    order:            3;
    width:            100%;
    justify-content:  center;
    padding:          0.35rem 0 0.5rem;
    border-top:       1px solid var(--border);
    gap:              0;
  }
  .nav-link {
    padding:   0.35rem 0.65rem;
    font-size: 0.82rem;
  }

  /* Hero: keep our 55vh — no 100vh override on mobile */
  .hero { min-height: 45vh; }

  /* Scroll hint overlaps CTA on small hero — hide it, content is immediately below */
  .hero-scroll-hint { display: none; }

  .books-grid,
  .stories-grid { grid-template-columns: 1fr; }

  .book-detail-img { max-width: 220px; }

  .section { padding: 2rem 1rem; }
}
