/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: #0f0e0d;
  color: #e8e0d0;
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: #c9a84c;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #e0c06e;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: #f0e8d8;
}

p {
  margin-bottom: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  list-style: none;
}

code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.875rem;
  background: #2a2723;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  color: #c9a84c;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.centered {
  text-align: center;
}

.section-heading {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
}

.section-heading.centered {
  display: block;
}

.section-heading::after {
  content: '';
  display: block;
  width: 3rem;
  height: 2px;
  background: #c9a84c;
  margin-top: 0.6rem;
}

.section-heading.centered::after {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-block;
  padding: 0.7rem 1.75rem;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  text-decoration: none;
  line-height: 1.4;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background-color: #c9a84c;
  color: #0f0e0d;
  border-color: #c9a84c;
}

.btn-primary:hover {
  background-color: #e0c06e;
  border-color: #e0c06e;
  color: #0f0e0d;
}

.btn-ghost {
  background-color: transparent;
  color: #c9a84c;
  border-color: #c9a84c;
}

.btn-ghost:hover {
  background-color: #c9a84c;
  color: #0f0e0d;
}

.btn-danger {
  background-color: transparent;
  color: #d9534f;
  border-color: #d9534f;
}

.btn-danger:hover {
  background-color: #d9534f;
  color: #fff;
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
}

.btn-xs {
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
}

.btn-full {
  width: 100%;
}

/* ============================================================
   FLASH MESSAGES
   ============================================================ */

.flash {
  padding: 0.9rem 1.5rem;
  font-size: 0.95rem;
  font-family: 'Lora', Georgia, serif;
  border-left: 4px solid transparent;
}

.flash-success {
  background-color: #1a2e1a;
  border-color: #4caf50;
  color: #a8d5a8;
}

.flash-error {
  background-color: #2e1a1a;
  border-color: #d9534f;
  color: #d5a8a8;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #0f0e0d;
  border-bottom: 1px solid #2a2723;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  position: relative;
}

.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
  color: #f0e8d8;
  letter-spacing: 0.02em;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo:hover {
  color: #c9a84c;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  color: #c8bfaf;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  border-radius: 2px;
  transition: color 0.2s ease;
  text-decoration: none;
}

.nav-link:hover {
  color: #c9a84c;
}

.nav-admin {
  color: #c9a84c;
  border: 1px solid #c9a84c33;
}

.nav-admin:hover {
  background-color: #c9a84c1a;
  color: #c9a84c;
}


.nav-hamburger {
  display: none;
  position: absolute;
  top: 50%;
  right: 1.5rem;
  transform: translateY(-50%);
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 101;
  background: none;
  border: none;
  padding: 0;
  outline: none;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #e8e0d0;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger animation when open */
.nav-hamburger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  background-color: #0f0e0d;
  background-image:
    radial-gradient(ellipse at 50% 100%, #1e1a14 0%, transparent 70%),
    radial-gradient(ellipse at 50% 0%, #1a1612 0%, transparent 60%);
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(201, 168, 76, 0.015) 2px,
    rgba(201, 168, 76, 0.015) 4px
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 700px;
}

.hero-eyebrow {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 1.25rem;
}

.hero-name {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  color: #f5eedf;
  margin-bottom: 1.25rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.hero-tagline {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: #b8af9f;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */

.page-header {
  background-color: #1a1917;
  border-bottom: 1px solid #2a2723;
  padding: 3.5rem 0 3rem;
}

.page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: #f0e8d8;
  margin-bottom: 0.75rem;
}

.page-subtitle {
  font-style: italic;
  color: #a8a098;
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* ============================================================
   BIO SECTION
   ============================================================ */

.bio-section {
  background-color: #1a1917;
  border-top: 1px solid #2a2723;
  border-bottom: 1px solid #2a2723;
}

.bio-container {
  max-width: 800px;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.bio-container:not(:has(.bio-photo-wrap)) {
  max-width: 680px;
  justify-content: center;
  text-align: center;
}

.bio-photo-wrap {
  flex-shrink: 0;
}

.bio-photo {
  width: 180px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid #2a2723;
  display: block;
}

.bio-text h2 {
  margin-bottom: 1.25rem;
}

.bio-text p {
  color: #c8bfaf;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.bio-text .btn {
  margin-top: 1.5rem;
}

/* ============================================================
   BOOK GRID & CARDS
   ============================================================ */

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

.book-card {
  display: flex;
  flex-direction: column;
  background-color: #1a1917;
  border: 1px solid #2a2723;
  border-radius: 3px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.book-card:hover {
  transform: translateY(-6px);
  border-color: #c9a84c;
  box-shadow: 0 12px 40px rgba(201, 168, 76, 0.12);
  color: inherit;
}

.book-cover-wrap {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background-color: #111009;
}

.book-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.book-card:hover .book-cover {
  transform: scale(1.04);
}

.book-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e1b16, #2a2520);
  border-bottom: 1px solid #2a2723;
  padding: 1.5rem;
}

.book-cover-placeholder span {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
  color: #8a8070;
  text-align: center;
  line-height: 1.4;
}

.book-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.book-card-title {
  font-size: 1.15rem;
  color: #f0e8d8;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.book-card-quote {
  font-style: italic;
  color: #9a9080;
  font-size: 0.875rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   BOOK DETAIL PAGE
   ============================================================ */

.book-detail {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  margin-top: 2rem;
}

.book-detail-img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.book-detail-placeholder {
  aspect-ratio: 2 / 3;
}

.book-detail-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: #f0e8d8;
  margin-bottom: 0.4rem;
}

.book-detail-author {
  color: #c9a84c;
  font-style: italic;
  margin-bottom: 1.75rem;
  font-size: 1rem;
}

.book-detail-quote {
  border-left: 3px solid #c9a84c;
  padding-left: 1.25rem;
  font-style: italic;
  color: #b8af9f;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.book-detail-description {
  color: #c8bfaf;
  line-height: 1.85;
  margin-bottom: 2.5rem;
}

.book-detail-description p {
  margin-bottom: 1.25rem;
}

.buy-heading {
  font-size: 1rem;
  color: #9a9080;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'Lora', Georgia, serif;
  font-weight: 500;
  margin-bottom: 1rem;
}

/* ============================================================
   UPDATES / POSTS
   ============================================================ */

.updates-container {
  max-width: 760px;
}

.updates-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.update-item {
  padding: 2.5rem 0;
  border-bottom: 1px solid #2a2723;
}

.update-item:first-child {
  padding-top: 0;
}

.update-item-full {
  padding: 2.5rem 0;
}

.update-meta {
  margin-bottom: 0.5rem;
}

.update-meta time {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c9a84c;
}

.update-title {
  font-size: 1.5rem;
  color: #f0e8d8;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.update-title a {
  color: #f0e8d8;
  text-decoration: none;
}

.update-title a:hover {
  color: #c9a84c;
}

.update-excerpt {
  color: #a8a098;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.read-more {
  font-size: 0.875rem;
  color: #c9a84c;
  letter-spacing: 0.03em;
}

.read-more:hover {
  color: #e0c06e;
}

/* Single post */
.post-article {
  max-width: 720px;
  margin-top: 2rem;
}

.post-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #2a2723;
}

.post-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: #f0e8d8;
  margin-top: 0.5rem;
}

.post-body {
  color: #c8bfaf;
  line-height: 1.9;
}

.post-body p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.post-body em {
  font-style: italic;
  color: #d8cfbf;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 4rem;
  max-width: 960px;
}

.about-photo-placeholder {
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #1e1b16, #2a2520);
  border: 1px solid #2a2723;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo-placeholder span {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
  color: #6a6050;
  text-align: center;
  line-height: 1.4;
  word-break: break-word;
  padding: 0 0.5rem;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid #2a2723;
  display: block;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.about-text h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #c9a84c;
}

.about-text p {
  color: #c8bfaf;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.about-text em {
  font-style: italic;
  color: #d8cfbf;
}

.about-divider {
  height: 1px;
  background: #2a2723;
  margin: 2.5rem 0;
}

.text-link {
  color: #c9a84c;
  text-decoration: underline;
  text-decoration-color: #c9a84c55;
}

.text-link:hover {
  text-decoration-color: #c9a84c;
  color: #e0c06e;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-container {
  max-width: 640px;
}

.contact-intro {
  margin-bottom: 2.5rem;
}

.contact-intro p {
  color: #a8a098;
  line-height: 1.8;
}

/* ============================================================
   FORMS
   ============================================================ */

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a9080;
  margin-bottom: 0.5rem;
}

.required {
  color: #c9a84c;
}

.form-input {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #1a1917;
  border: 1px solid #3a3630;
  border-radius: 2px;
  color: #e8e0d0;
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: #c9a84c;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

.form-input::placeholder {
  color: #5a5548;
}

.form-textarea {
  resize: vertical;
  min-height: 8rem;
}

.form-textarea-tall {
  min-height: 20rem;
}

.form-file {
  padding: 0.6rem 1rem;
  cursor: pointer;
}

.form-input-sm {
  max-width: 120px;
}

.form-hint {
  font-size: 0.8rem;
  color: #6a6050;
  margin-top: 0.4rem;
  margin-bottom: 0;
  line-height: 1.5;
}

.form-row {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.form-group-inline {
  flex-shrink: 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
  color: #c8bfaf;
}

.form-checkbox {
  width: 1rem;
  height: 1rem;
  accent-color: #c9a84c;
  cursor: pointer;
}

.form-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #2a2723;
}

.contact-form .form-input {
  background-color: #161513;
}

/* ============================================================
   BACK LINK
   ============================================================ */

.back-link {
  display: inline-block;
  font-size: 0.875rem;
  color: #6a6050;
  margin-bottom: 1.75rem;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #c9a84c;
}

/* ============================================================
   FEATURED / UPDATES SECTIONS (HOME)
   ============================================================ */

.featured-section {
  background-color: #0f0e0d;
}

.updates-section {
  background-color: #1a1917;
  border-top: 1px solid #2a2723;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */

.empty-state {
  color: #6a6050;
  font-style: italic;
  text-align: center;
  padding: 3rem 0;
}

/* ============================================================
   ERROR PAGE
   ============================================================ */

.error-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.error-code {
  font-size: 6rem;
  color: #3a3530;
  line-height: 1;
  margin-bottom: 1rem;
}

.error-message {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  color: #f0e8d8;
  margin-bottom: 0.5rem;
}

.error-sub {
  color: #6a6050;
  font-style: italic;
  margin-bottom: 0;
}

/* ============================================================
   ADMIN STYLES
   ============================================================ */

/* Admin login page */
.admin-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background-color: #0f0e0d;
}

.admin-login-box {
  width: 100%;
  max-width: 420px;
  background-color: #1a1917;
  border: 1px solid #2a2723;
  border-radius: 4px;
  padding: 2.5rem;
}

.admin-login-title {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.admin-login-sub {
  color: #6a6050;
  font-size: 0.875rem;
  font-style: italic;
  margin-bottom: 1.75rem;
}

.admin-login-form {
  margin-top: 1.5rem;
}

/* Admin header */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #2a2723;
}

.admin-title {
  font-size: 1.75rem;
}

/* Stat cards */
.admin-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background-color: #1a1917;
  border: 1px solid #2a2723;
  border-radius: 3px;
  padding: 1.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
}

.stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: #c9a84c;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6a6050;
}

/* Admin sections */
.admin-section {
  margin-bottom: 3.5rem;
}

.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.admin-section-title {
  font-size: 1.25rem;
  color: #c9a84c;
  font-family: 'Lora', Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* Admin tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid #2a2723;
  border-radius: 3px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th {
  background-color: #1a1917;
  color: #6a6050;
  font-family: 'Lora', Georgia, serif;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #2a2723;
  white-space: nowrap;
}

.admin-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #1f1d1a;
  color: #c8bfaf;
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background-color: #1e1c19;
}

.table-cover-cell {
  width: 60px;
}

.table-thumb {
  width: 44px;
  height: 60px;
  object-fit: cover;
  border-radius: 1px;
  border: 1px solid #2a2723;
}

.table-thumb-placeholder {
  width: 44px;
  height: 60px;
  background-color: #111009;
  border: 1px solid #2a2723;
  border-radius: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3a3530;
  font-size: 1.2rem;
}

.table-title {
  max-width: 260px;
}

.table-slug {
  color: #6a6050;
  font-size: 0.8rem;
}

.table-actions {
  white-space: nowrap;
}

.table-actions > * + * {
  margin-left: 0.5rem;
}

/* Admin form */
.admin-form-container {
  max-width: 760px;
}

.admin-form-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #2a2723;
}

.admin-form-note {
  color: #6a6050;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.admin-form-note code {
  color: #a8a098;
}

.admin-form {
  background-color: #1a1917;
  border: 1px solid #2a2723;
  border-radius: 3px;
  padding: 2rem 2rem 1.5rem;
}

.current-image-wrap {
  margin-bottom: 1rem;
}

.current-image-preview {
  max-width: 120px;
  border-radius: 2px;
  border: 1px solid #2a2723;
  margin-bottom: 0.5rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background-color: #0a0908;
  border-top: 1px solid #1f1d1a;
  padding: 3rem 0;
  margin-top: auto;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.footer-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
  color: #c8bfaf;
  margin-bottom: 0.25rem;
}

.footer-tagline {
  font-style: italic;
  color: #4a4540;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-nav a {
  font-size: 0.825rem;
  color: #5a5548;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #c9a84c;
}

.footer-copy {
  font-size: 0.8rem;
  color: #3a3530;
  margin-bottom: 0;
}

/* ============================================================
   RESPONSIVE — TABLET (max 900px)
   ============================================================ */

@media (max-width: 900px) {
  .book-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .book-detail {
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
  }

  .about-container {
    grid-template-columns: 200px 1fr;
    gap: 2.5rem;
  }

  .admin-stats {
    flex-wrap: wrap;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 640px)
   ============================================================ */

@media (max-width: 640px) {
  /* Nav hamburger */
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    background-color: #0f0e0d;
    border-bottom: 1px solid #2a2723;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 99;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 0.85rem 1.5rem;
    border-radius: 0;
    border-bottom: 1px solid #1a1917;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  /* Layout */
  .section {
    padding: 3rem 0;
  }

  .hero {
    min-height: 80vh;
  }

  /* Book grid */
  .book-grid,
  .book-grid-full {
    grid-template-columns: 1fr;
  }

  .book-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .book-detail-cover {
    max-width: 240px;
    margin: 0 auto;
  }

  /* About */
  .about-container {
    grid-template-columns: 1fr;
  }

  .about-photo-wrap {
    max-width: 200px;
    margin: 0 auto;
  }

  /* Forms */
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  /* Admin */
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .admin-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .admin-form {
    padding: 1.25rem 1rem;
  }

  .admin-stats {
    gap: 1rem;
  }

  .stat-card {
    flex: 1;
    min-width: 80px;
    padding: 1rem;
  }
}
