/* =========================================================
   Samhan Adiwarna — Public Theme
   Konsep: rumah cetak & penerbitan — tinta, kertas, punggung buku
   Token warna: parchment + bata (oxblood) + ochre + tinta hijau/biru
   ========================================================= */

:root {
  --bg: #F1E9D8;
  --surface: #FBF7EC;
  --ink: #241A12;
  --ink-muted: #6B5D4B;
  --ink-faint: #A8977E;
  --border: #DFCFB0;

  --maroon: #9A3324;
  --maroon-dark: #7A2419;
  --maroon-tint: #F3E1DB;

  --gold: #B9862A;
  --gold-tint: #F6ECD6;

  --sage: #2F5D50;
  --sage-tint: #E1EFEA;

  --indigo: #2C3E52;
  --indigo-tint: #E3E8ED;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --shadow-card: 0 1px 2px rgba(36, 26, 18, 0.07), 0 6px 18px rgba(36, 26, 18, 0.08);
  --shadow-card-hover: 0 14px 32px rgba(36, 26, 18, 0.18);
  --shadow-soft: 0 1px 3px rgba(36, 26, 18, 0.07);

  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body: 'Public Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3, .font-serif {
  font-family: var(--font-display);
}

a {
  color: inherit;
}

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navbar ---------- */

.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.navbar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.navbar .brand-mark {
  height: 40px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.navbar h1 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2px;
  padding: 4px 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--maroon);
  transition: right 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  right: 0;
}

/* ---------- Hero (asymmetric, framed photo + spine stack) ---------- */

.hero {
  position: relative;
  background: var(--bg);
  padding: 64px 20px 0;
  overflow: hidden;
}

.hero-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 56px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--maroon);
  border: 1.5px solid var(--maroon);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
  transform: rotate(-1.5deg);
}

.hero h1 {
  font-size: 46px;
  font-weight: 600;
  margin-bottom: 22px;
  line-height: 1.18;
  color: var(--ink);
}

.hero h1 em {
  font-style: italic;
  color: var(--maroon);
}

.hero p {
  font-size: 17px;
  margin-bottom: 34px;
  color: var(--ink-muted);
  max-width: 480px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary,
.btn-secondary {
  padding: 13px 28px;
  text-decoration: none;
  border-radius: 3px;
  font-weight: 700;
  font-size: 14.5px;
  display: inline-block;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 3px 3px 0 var(--maroon);
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--maroon);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
  padding: 11.5px 26px;
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--bg);
}

/* Hero visual: tilted framed photo + spine stack behind it */

.hero-visual {
  position: relative;
  height: 420px;
  z-index: 1;
}

.spine-stack {
  position: absolute;
  right: 6%;
  bottom: 6%;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 78%;
  z-index: 1;
}

.spine-stack i {
  display: block;
  width: 20px;
  border-radius: 2px 2px 0 0;
  box-shadow: inset -3px 0 0 rgba(0,0,0,0.12);
}

.spine-stack i:nth-child(1) { height: 62%; background: var(--maroon); }
.spine-stack i:nth-child(2) { height: 88%; background: var(--gold); }
.spine-stack i:nth-child(3) { height: 72%; background: var(--indigo); }
.spine-stack i:nth-child(4) { height: 95%; background: var(--sage); }
.spine-stack i:nth-child(5) { height: 55%; background: var(--maroon-dark); }
.spine-stack i:nth-child(6) { height: 80%; background: var(--gold); }
.spine-stack i:nth-child(7) { height: 68%; background: var(--indigo); }

.hero-frame {
  position: absolute;
  left: 4%;
  top: 4%;
  width: 68%;
  height: 82%;
  background: var(--surface);
  padding: 14px 14px 40px;
  border-radius: 2px;
  box-shadow: 0 20px 44px rgba(36, 26, 18, 0.28);
  transform: rotate(-4deg);
  z-index: 2;
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-frame::after {
  content: "Rumah cetak — Tasikmalaya";
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.3px;
}

/* Torn paper divider between hero and content */

.torn-divider {
  display: block;
  width: 100%;
  height: 28px;
  margin-top: -1px;
}

.torn-divider path {
  fill: var(--surface);
}

/* ---------- Sections ---------- */

.section {
  padding: 64px 20px;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 44px;
}

.section-header .eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
}

.section h2 {
  font-size: 30px;
  color: var(--ink);
  font-weight: 600;
}

.section-header p {
  color: var(--ink-muted);
  margin-top: 10px;
  font-size: 15px;
}

/* ---------- Book grid & cards ---------- */

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 24px;
  margin-bottom: 20px;
}

.book-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--maroon);
}

.book-cover {
  width: 100%;
  height: 250px;
  background: linear-gradient(160deg, #EEE2CC, #E3D3B4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 46px;
  overflow: hidden;
  position: relative;
}

/* Colored "spine" stripe on top of each cover, cycling like books on a shelf */
.book-cover::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 5px;
  z-index: 1;
  background: var(--maroon);
}

.books-grid .book-card:nth-child(4n+2) .book-cover::before { background: var(--gold); }
.books-grid .book-card:nth-child(4n+3) .book-cover::before { background: var(--indigo); }
.books-grid .book-card:nth-child(4n+4) .book-cover::before { background: var(--sage); }

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

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

.book-info {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.book-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16.5px;
  line-height: 1.35;
  color: var(--ink);
}

.book-author {
  color: var(--ink-muted);
  font-size: 13px;
  font-style: italic;
}

.book-category {
  font-family: var(--font-mono);
  background: var(--gold-tint);
  color: var(--gold);
  padding: 3px 9px;
  border: 1px dashed var(--gold);
  border-radius: 3px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  display: inline-block;
  margin-top: auto;
  width: fit-content;
}

.book-status {
  font-family: var(--font-mono);
  background: var(--sage-tint);
  color: var(--sage);
  padding: 3px 9px;
  border: 1px dashed var(--sage);
  border-radius: 3px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  display: inline-block;
  margin-top: auto;
  width: fit-content;
}

.book-status.coming {
  background: var(--gold-tint);
  color: var(--gold);
  border-color: var(--gold);
}

/* ---------- Stats (ledger style) ---------- */

.stats {
  background: var(--surface);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-box {
  text-align: center;
  padding: 44px 20px;
  border-left: 1px solid var(--border);
}

.stat-box:first-child {
  border-left: none;
}

.stat-box h3 {
  font-family: var(--font-mono);
  font-size: 38px;
  color: var(--maroon);
  margin-bottom: 8px;
  font-weight: 700;
}

.stat-box p {
  color: var(--ink-muted);
  font-size: 12.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---------- CTA ---------- */

.cta-section {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  padding: 60px 20px;
}

.cta-section h2 {
  color: var(--bg);
  margin-bottom: 14px;
}

.cta-section p {
  opacity: 0.75;
  margin-bottom: 26px;
}

.cta-section .btn-primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--maroon);
}

/* ---------- Footer (colophon) ---------- */

footer {
  background: var(--ink);
  color: var(--ink-faint);
  text-align: center;
  padding: 30px 20px 34px;
  font-size: 13px;
  border-top: 1px solid rgba(241, 233, 216, 0.12);
}

footer .colophon-mark {
  display: block;
  font-size: 20px;
  color: var(--gold);
  margin-bottom: 10px;
}

.empty-section,
.empty-state {
  text-align: center;
  padding: 64px 20px;
  color: var(--ink-muted);
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border);
}

.empty-state a {
  color: var(--maroon);
  font-weight: 700;
  text-decoration: none;
}

/* ---------- Catalog page ---------- */

body.catalog-page {
  background: var(--bg);
}

.page-header {
  margin: 40px 0 30px;
}

.page-header h1 {
  color: var(--ink);
  font-size: 32px;
  margin-bottom: 8px;
  font-weight: 600;
}

.page-header p {
  color: var(--ink-muted);
}

.filters-wrapper {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

.filter-panel {
  background: var(--surface);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.filter-panel h3 {
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 15px;
  color: var(--ink);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 10px;
  font-weight: 700;
}

.filter-group {
  margin-bottom: 0;
}

.filter-group label {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-muted);
  transition: color 0.2s ease;
}

.filter-group label:hover {
  color: var(--ink);
}

.filter-group label:last-child {
  margin-bottom: 0;
}

.filter-group input {
  margin-right: 10px;
  accent-color: var(--maroon);
}

.search-form {
  display: grid;
  grid-template-columns: 1fr 76px;
  gap: 10px;
  width: 100%;
}

.search-form input {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  min-width: 0;
  font-family: inherit;
  background: var(--bg);
}

.search-form input:focus {
  outline: none;
  border-color: var(--maroon);
  background: var(--surface);
}

.search-form button {
  background: var(--maroon);
  color: white;
  border: none;
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  min-width: 76px;
  transition: background 0.2s ease;
}

.search-form button:hover {
  background: var(--maroon-dark);
}

.main-content {
  display: flex;
  flex-direction: column;
}

.toolbar {
  background: var(--surface);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 22px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.toolbar-left {
  color: var(--ink-muted);
  font-size: 14px;
  font-family: var(--font-mono);
}

.toolbar-left strong {
  color: var(--maroon);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-muted);
  font-size: 14px;
}

.toolbar-right select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  background: var(--bg);
  color: var(--ink);
}

/* ---------- Detail page ---------- */

.breadcrumb {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px 0;
  font-size: 13px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}

.breadcrumb a {
  color: var(--maroon);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 16px 0 20px;
  color: var(--maroon);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.back-button:hover {
  color: var(--maroon-dark);
}

.book-detail {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  padding: 44px;
  margin-bottom: 50px;
}

.book-detail-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 44px;
}

.book-cover-section {
  text-align: center;
}

.book-cover-section img {
  width: 100%;
  max-width: 280px;
  border-radius: var(--radius-sm);
  box-shadow: 10px 10px 0 var(--gold-tint), 0 14px 34px rgba(36, 26, 18, 0.22);
}

.cover-placeholder {
  background: linear-gradient(160deg, #EEE2CC, #E3D3B4);
  padding: 90px 20px;
  border-radius: var(--radius-sm);
  font-size: 56px;
  color: var(--ink-faint);
}

.book-info-section h1 {
  font-size: 30px;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.28;
  font-weight: 600;
}

.book-info-section .book-author {
  font-size: 17px;
  color: var(--ink-muted);
  margin-bottom: 18px;
  font-style: italic;
}

.book-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 22px 0;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 5px;
  font-weight: 700;
}

.meta-value {
  font-size: 15px;
  color: var(--ink);
}

.book-info-section .book-status {
  font-size: 12px;
  padding: 7px 15px;
}

.book-description {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink);
  opacity: 0.9;
}

.book-description h3 {
  font-size: 17px;
  color: var(--ink);
  margin-top: 22px;
  margin-bottom: 10px;
  font-weight: 600;
}

.related-section {
  margin-top: 60px;
}

.related-section h2 {
  font-size: 25px;
  color: var(--ink);
  margin-bottom: 22px;
  font-weight: 600;
}

.card-info {
  padding: 14px 16px;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 6px;
  line-height: 1.3;
}

.card-author {
  color: var(--ink-muted);
  font-size: 12px;
  font-style: italic;
}

/* ---------- Contact page ---------- */

.contact-hero {
  padding: 56px 20px 20px;
  text-align: center;
}

.contact-hero .eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-hero h1 {
  font-size: 34px;
  color: var(--ink);
  margin-bottom: 12px;
  font-weight: 600;
}

.contact-hero p {
  color: var(--ink-muted);
  max-width: 520px;
  margin: 0 auto;
  font-size: 15.5px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 28px;
  padding: 20px 0 64px;
  align-items: start;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-card.is-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--maroon);
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 3px;
  background: var(--maroon-tint);
  color: var(--maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  flex-shrink: 0;
  transform: rotate(-3deg);
}

.contact-card-body h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--ink-faint);
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-card-body p {
  font-size: 15.5px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.5;
}

.contact-card-body span.hint {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 400;
  font-style: italic;
}

/* WhatsApp accent */
.contact-card.whatsapp .contact-icon {
  background: #e4f5e8;
  color: #25923f;
}

.contact-card.whatsapp:hover {
  border-color: #25923f;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  padding: 14px 26px;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 3px 3px 0 #1a8f49;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-whatsapp:hover {
  background: #1eb858;
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 #1a8f49;
}

.contact-cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 26px 22px;
  text-align: center;
}

.contact-cta p {
  color: var(--ink-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.map-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  height: 100%;
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.map-panel-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.map-panel-header h3 {
  font-size: 17px;
  color: var(--ink);
  font-weight: 600;
}

.map-panel-header p {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin-top: 4px;
}

.map-embed {
  flex-grow: 1;
  min-height: 360px;
  border: 0;
  filter: saturate(0.9);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    height: 300px;
    order: -1;
  }

  .hero p {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 48px 20px 0;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero p {
    font-size: 15.5px;
  }

  .section h2 {
    font-size: 24px;
  }

  .books-grid {
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 16px;
  }

  .filters-wrapper {
    grid-template-columns: 1fr;
  }

  .search-form {
    grid-template-columns: 1fr 70px;
  }

  .book-detail {
    padding: 24px;
  }

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

  .book-info-section h1 {
    font-size: 23px;
  }

  .book-meta {
    grid-template-columns: 1fr;
  }

  .navbar-content {
    padding: 14px 20px;
  }

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

  .contact-hero h1 {
    font-size: 26px;
  }

  .map-panel {
    min-height: 300px;
  }

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

  .stat-box {
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .stat-box:first-child {
    border-top: none;
  }
}

@media (max-width: 420px) {
  .navbar-content {
    padding: 12px 16px;
    gap: 10px;
  }

  .navbar .brand-mark {
    height: 32px;
  }

  .navbar h1 {
    font-size: 16px;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 13px;
  }

  .hero h1 {
    font-size: 25px;
  }

  .hero-stamp {
    font-size: 10px;
    padding: 5px 11px;
  }

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

  .hero-actions a {
    text-align: center;
  }

  .hero-visual {
    height: 230px;
  }

  .hero-frame {
    left: 2%;
    width: 72%;
  }

  .spine-stack i {
    width: 14px;
  }

  .book-detail {
    padding: 18px;
  }
}
