@font-face {
  font-family: 'Cinzel Decorative';
  src: url('/fonts/CinzelDecorative-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cinzel Decorative';
  src: url('/fonts/CinzelDecorative-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cinzel Decorative';
  src: url('/fonts/CinzelDecorative-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f2ec;
  --panel: #fffdf9;
  --ink: #1f1a17;
  --muted: #5a4a3d;
  --accent: #7a5c48;
  --accent-strong: #513b2e;
  --line: rgba(31, 26, 23, 0.12);
  --font-body: Georgia, 'Times New Roman', serif;
  --font-display: 'Cinzel Decorative', Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  background:
    linear-gradient(rgba(249, 245, 241, 0.58), rgba(243, 236, 228, 0.64)),
    url('/images/site/Background.png') center center / cover no-repeat fixed;
  color: var(--ink);
  line-height: 1.7;
}

main {
  flex: 1;
}

a {
  color: var(--ink);
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1440px, calc(100% - 1.4rem));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0;
  min-height: 4.5rem;
}

.brand {
  font-family: 'Cinzel Decorative', Georgia, serif !important;
  font-size: clamp(2.6rem, 3.5vw, 5rem);
  line-height: 0.8;
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: none;
  margin: 0;
  transform: translateY(0.05em);
}

.site-header .nav .brand {
  font-family: 'Cinzel Decorative', Georgia, serif !important;
  font-size: 36px !important;
  line-height: 0.8 !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  text-transform: none !important;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.12rem 0.2rem;
  border: 1px solid rgba(31, 26, 23, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  width: fit-content;
}

.language-switcher a {
  opacity: 0.7;
  font-family: 'Cinzel Decorative', Georgia, serif;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 0.28rem 0.42rem;
  border-radius: 999px;
  color: var(--muted);
}

.language-switcher a.active {
  opacity: 1;
  font-weight: 700;
  background: rgba(31, 26, 23, 0.9);
  color: #fff;
}

.footer-language-switcher {
  flex-shrink: 0;
  margin-left: 0;
}

.nav-links a,
.site-header .nav a {
  font-family: 'Cinzel Decorative', Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.hero {
  padding: 3.5rem 0 2rem;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  text-align: left;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-with-image {
  min-height: 440px;
}

.hero-content {
  flex: 1;
  text-align: center;
}

.hero-title-image {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.hero-title-image h1 {
  margin: 0;
  min-width: 0;
}

.hero-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  width: 100%;
  max-width: 260px;
  justify-self: center;
}

.hero-image {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(31, 26, 23, 0.08);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 1rem;
  font-family: 'Cinzel Decorative', Georgia, serif !important;
}

h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.7rem);
  font-family: 'Cinzel Decorative', Georgia, serif !important;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  font-family: 'Cinzel Decorative', Georgia, serif !important;
}

.tagline {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  font-size: 1.2rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-links {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
}

.social-links-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid rgba(31, 26, 23, 0.6);
  background: rgba(255, 255, 255, 0.2);
  color: var(--ink);
  font-family: 'Cinzel Decorative', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  transition: 0.2s ease;
}

.social-link.instagram {
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 40%, #8134af 70%, #515bd4 100%);
  border-color: transparent;
  color: #fff;
}

.social-link.facebook {
  background: #1877f2;
  border-color: transparent;
  color: #fff;
}

.social-link.x {
  background: #000;
  border-color: transparent;
  color: #fff;
}

.social-link.goodreads {
  background: #f5f1ea;
  border-color: rgba(122, 91, 45, 0.4);
  color: #7a5b2d;
}

.social-link.copy {
  background: #6a7a8a;
  border-color: transparent;
  color: #fff;
  cursor: pointer;
  font-family: 'Cinzel Decorative', Georgia, serif;
  font-size: 1.1rem;
}

.social-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.button {
  display: inline-block;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  transition: 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--accent-strong);
  color: #fff;
  border-color: var(--accent-strong);
}

.button.secondary {
  background: transparent;
}

.section {
  padding: 2rem 0 4rem;
}

.post-detail {
  max-width: 980px;
}

.post-body {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin: 2rem 0;
}

.post-detail-image {
  flex: 0 0 38%;
  max-width: 38%;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 32px rgba(31, 26, 23, 0.08);
}

.post-content {
  flex: 1;
}

.post-content p {
  margin-top: 0;
}

.section-heading {
  margin-bottom: 2rem;
}

@media (max-width: 760px) {
  .post-body {
    flex-direction: column;
  }

  .post-detail-image {
    max-width: 100%;
    flex-basis: 100%;
  }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-card-image {
  display: block;
  width: 100%;
  height: 180px;
  margin: -0.5rem 0 1rem;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(232, 225, 215, 0.6);
}

.meta {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.empty-state {
  color: var(--muted);
}

.page {
  max-width: 1440px;
}

.page-header {
  margin-bottom: 1.25rem;
}

.contact-page .eyebrow {
  margin-bottom: 0.75rem;
}

.contact-page h1 {
  margin-bottom: 0;
}

.contact-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem;
  margin-top: 0.5rem;
}

.about-card {
  margin-top: 0.5rem;
}

.about-layout {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.about-copy {
  flex: 1;
}

.about-copy p {
  margin-top: 0;
}

.about-portrait-wrap {
  flex: 0 0 300px;
  margin: 0;
}

.about-portrait {
  display: block;
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  object-position: center;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(31, 26, 23, 0.08);
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 1rem, 1440px);
  }

  .nav {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.8rem 0;
  }

  .brand {
    font-size: clamp(1.8rem, 8vw, 2.6rem) !important;
    text-align: center;
  }

  .nav-links {
    justify-content: center;
    gap: 0.7rem 1rem;
  }

  .nav-links a,
  .site-header .nav a {
    font-size: 0.72rem;
  }

  .hero {
    padding-top: 1.25rem;
  }

  .hero-inner {
    padding: 1.25rem 0.8rem;
    min-height: 0;
  }

  .hero-with-image {
    min-height: 0;
  }

  .hero-title-image {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 0.75rem;
  }

  .hero-title-image h1 {
    order: 1;
  }

  .hero-image-wrap {
    order: 2;
    width: min(220px, 72%);
    max-width: 220px;
    flex-basis: auto;
  }

  .tagline {
    order: 3;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
    text-align: center;
  }

  .books-grid {
    grid-template-columns: 1fr;
  }

  .book-detail {
    grid-template-columns: 1fr;
  }

  .about-layout {
    flex-direction: column;
  }

  .about-portrait-wrap {
    width: 100%;
    flex-basis: auto;
  }

  .language-fields-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    margin-top: 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0.15rem;
    padding: 0.45rem 0;
  }

  .footer-language-switcher {
    width: fit-content;
    max-width: 100%;
    justify-content: center;
    margin-top: 0.1rem;
  }
}

.about-preview {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.82);
  margin-top: 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
}

.footer-inner p {
  margin: 0;
}

.db-status {
  margin-top: 1.5rem;
  color: var(--muted);
}

.books-shell {
  width: min(1440px, calc(100% - 1.4rem));
  margin: 2rem auto 0;
}

.books-page-header {
  margin-bottom: 1rem;
}

.books-panel {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem 2rem 2.5rem;
}

.books-inner {
  width: min(1060px, 100%);
  margin: 0 auto;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

.book-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(31, 26, 23, 0.05);
}

.book-cover {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid var(--line);
}

.series-filter-wrap {
  margin: 1.5rem 0 2rem;
}

.series-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.series-filter .button {
  min-width: 90px;
  text-align: center;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(31, 26, 23, 0.08);
}

.series-filter .button.primary {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
  box-shadow: 0 0 0 2px rgba(81, 59, 46, 0.14), 0 8px 18px rgba(81, 59, 46, 0.12);
}

.series-filter .button.secondary {
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
}

.book-content {
  padding: 1.5rem;
}

.release-date {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.book-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}

.book-language-tags {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

.book-language-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  padding: 0.22rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  font-family: 'Cinzel Decorative', Georgia, serif;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  transition: all 0.2s ease;
}

.book-language-tag.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.book-language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.8rem;
  padding: 0.25rem 0.5rem 0.25rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  width: fit-content;
}

.book-language-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 0.2rem;
}

.book-language-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  font-family: 'Cinzel Decorative', Georgia, serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.book-language-switch a.active {
  background: var(--ink);
  color: #fff;
}

.book-subtitle {
  color: var(--muted);
  font-style: italic;
  margin-top: -0.25rem;
  white-space: pre-line;
}

.book-description,
.book-detail-description {
  white-space: pre-line;
  line-height: 1.7;
}

.book-description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.book-detail-description {
  margin-bottom: 0.5rem;
}

.book-detail-description + .book-detail-description {
  margin-top: 12px;
}

.book-availability {
  margin-top: 1.5rem;
}

.availability-title {
  margin: 0 0 0.7rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.availability-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.availability-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(31, 26, 23, 0.05);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
}

.series-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.book-detail {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 2rem;
  align-items: start;
}

.book-product-link {
  margin-top: 1.25rem;
}

.book-buy-cta {
  display: inline-block;
  font-family: 'Cinzel Decorative', Georgia, serif;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #000;
}

.detail-cover {
  width: 100%;
  max-width: 320px;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.book-actions {
  margin-top: 1.5rem;
}

.book-buy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
  align-items: center;
}

.book-buy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.65);
  padding: 0.4rem 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(31, 26, 23, 0.03);
}

.book-buy-link:hover,
.book-buy-link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(31, 26, 23, 0.08);
}

.book-buy-link img {
  display: block;
  height: 32px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.sample-box {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
}

.sample-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.sample-modal.hidden {
  display: none;
}

.sample-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 15, 13, 0.65);
}

.sample-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1000px, 92vw);
  height: min(86vh, 980px);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(31, 26, 23, 0.15);
}

.sample-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  z-index: 2;
  border: 0;
  background: rgba(31, 26, 23, 0.75);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  cursor: pointer;
}

.sample-iframe {
  width: 100%;
  height: 100%;
  min-height: 700px;
  border: 0;
  background: white;
}

.sample-fallback {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.86rem;
}

.book-form {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem;
}

.book-form label {
  display: grid;
  gap: 0.5rem;
  font-weight: 600;
}

.availability-fieldset {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem 1.1rem;
  background: rgba(255, 255, 255, 0.55);
}

.availability-fieldset legend {
  padding: 0 0.5rem;
  font-weight: 700;
}

.availability-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.availability-option {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  cursor: pointer;
}

.availability-option input {
  width: auto;
  margin: 0;
  accent-color: var(--accent-strong);
}

.language-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.book-form input,
.book-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.7);
}

.form-error {
  background: #f8e5e1;
  border: 1px solid #d6a89e;
  color: #5e302b;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  margin-top: 1rem;
}

.form-success {
  background: #e7f4e8;
  border: 1px solid #9ec59f;
  color: #234d2a;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  margin-top: 1rem;
}

.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  flex-direction: row;
}

.checkbox-row input {
  width: auto;
  margin: 0;
}

.checkbox-row span {
  line-height: 1.4;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.admin-dashboard-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
}

.admin-dashboard-card h3 {
  margin: 0;
}

.agenda-section {
  margin-top: 2.5rem;
}

.agenda-section:first-of-type {
  margin-top: 2rem;
}

.agenda-section-title {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-family: 'Cinzel Decorative', Georgia, serif;
  color: var(--heading);
}

.agenda-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 0;
}

.agenda-item {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.agenda-item-historic {
  background: rgba(255, 255, 255, 0.4);
  opacity: 0.9;
}

.agenda-date-box {
  background: var(--accent-strong);
  color: #fff;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  padding: 1rem 0.75rem;
  text-align: center;
}

.agenda-date-box-historic {
  background: rgba(86, 67, 52, 0.82);
}

.agenda-day {
  font-size: 2.2rem;
  line-height: 1;
  font-family: 'Cinzel Decorative', Georgia, serif;
}

.agenda-month {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  margin-top: 0.4rem;
}

.agenda-year {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  opacity: 0.9;
  margin-top: 0.2rem;
}

.agenda-content h3 {
  margin-bottom: 0.6rem;
}

.agenda-content p {
  margin: 0.4rem 0;
}

.agenda-location,
.agenda-time {
  color: var(--muted);
}

.admin-books-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.admin-book-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
}

.admin-book-row img {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.admin-book-details {
  min-width: 0;
}

.admin-book-details h3 {
  margin-bottom: 0.25rem;
}

.admin-book-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.admin-book-actions form {
  margin: 0;
}

.button.danger {
  background: #5a2a24;
  color: white;
  border: 1px solid #5a2a24;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
  background: rgba(255, 255, 255, 0.4);
}

.language-switcher a {
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.language-switcher a.active {
  background: var(--ink);
  color: white;
}

@media (max-width: 960px) {
  .books-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .books-grid {
    grid-template-columns: 1fr;
  }

  .agenda-item {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .agenda-date-box {
    width: fit-content;
    min-width: 110px;
    min-height: 0;
    padding: 0.75rem 1rem;
  }

  .admin-toolbar,
  .admin-book-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .admin-book-actions {
    justify-content: flex-start;
  }
  .book-detail {
    grid-template-columns: 1fr;
  }
  .nav, .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    gap: 0.8rem;
    flex-wrap: wrap;
  }
}
