:root {
  --paper: #f6f0e5;
  --paper-deep: #eee3d1;
  --surface: #fffdf9;
  --ink: #26211c;
  --muted: #746a60;
  --line: #ddd0bf;
  --burgundy: #7c2f2f;
  --burgundy-dark: #5d2021;
  --navy: #29475f;
  --gold: #c79638;
  --soft-red: #f1dfdc;
  --soft-blue: #e1e9ee;
  --shadow: 0 16px 36px rgba(55, 42, 29, .09);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
}

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

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 240, 229, .94);
  border-bottom: 1px solid rgba(124, 47, 47, .14);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

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

.nav a,
.text-link {
  text-decoration: none;
  font-weight: 720;
}

.nav a:hover,
.text-link:hover {
  color: var(--burgundy);
}

.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 20%, rgba(41, 71, 95, .11), transparent 27%),
    radial-gradient(circle at 70% 80%, rgba(199, 150, 56, .12), transparent 25%),
    var(--paper);
}

.hero-grid {
  min-height: 620px;
  padding-block: 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
  gap: 54px;
  align-items: center;
}

.hero-copy-block { max-width: 760px; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--burgundy);
  font-size: .79rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1, h2, .card-title {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(2.6rem, 5.7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.12;
}

.hero-copy {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-count {
  color: var(--muted);
  font-size: .93rem;
  font-weight: 650;
}

.hero-brand {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-halo {
  width: min(390px, 34vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 22px;
  border-radius: 50%;
  background: rgba(255, 253, 249, .72);
  border: 1px solid rgba(124, 47, 47, .16);
  box-shadow: 0 26px 70px rgba(77, 52, 35, .13);
}

.logo-halo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.button {
  display: inline-flex;
  min-height: 47px;
  padding: 11px 20px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 780;
  transition: transform .15s ease, background .15s ease;
}

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

.button.primary {
  color: #fff;
  background: var(--burgundy);
}

.button.primary:hover { background: var(--burgundy-dark); }

.button.secondary {
  background: var(--paper-deep);
  border: 1px solid var(--line);
}

.identity-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

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

.identity-grid > div {
  padding: 24px 28px;
  display: grid;
  gap: 3px;
  border-right: 1px solid var(--line);
}

.identity-grid > div:first-child { border-left: 1px solid var(--line); }

.identity-grid strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.identity-grid span {
  color: var(--muted);
  font-size: .9rem;
}

.section { padding: 66px 0; }

.section-heading {
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.book-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}

.book-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 19px 42px rgba(55, 42, 29, .13);
}

.cover-link {
  display: block;
  aspect-ratio: 3 / 4.25;
  overflow: hidden;
  background: #e8dfd3;
}

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

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

.card-body { padding: 17px; }

.badge {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: .71rem;
  font-weight: 850;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.badge.disponivel {
  color: var(--burgundy-dark);
  background: var(--soft-red);
}

.badge.vendido {
  color: #57514b;
  background: #e7e2db;
}

.card-title {
  margin: 10px 0 0;
  font-size: 1.12rem;
  line-height: 1.24;
}

.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--burgundy); }

.card-author {
  margin: 8px 0 0;
  color: var(--muted);
  min-height: 2.8em;
}

.card-price {
  margin: 15px 0 0;
  font-weight: 850;
}

.muted { color: var(--muted); }

.about-band {
  padding: 68px 0;
  color: #f9f4ec;
  background:
    linear-gradient(120deg, rgba(124, 47, 47, .98), rgba(93, 32, 33, .98));
}

.about-band .eyebrow { color: #f0c870; }

.about-grid {
  display: grid;
  grid-template-columns: .55fr 1.45fr;
  gap: 40px;
  align-items: start;
}

.about-grid h2 { max-width: 700px; }

.about-grid p:last-child {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.82);
}

.page-head {
  padding: 62px 0 30px;
  border-bottom: 1px solid rgba(124, 47, 47, .08);
}

.page-head h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
.page-head p:last-child { color: var(--muted); }

.catalog-section { padding-top: 28px; }

.filters {
  margin-bottom: 18px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(55, 42, 29, .05);
}

.filters label {
  display: grid;
  gap: 7px;
  font-size: .86rem;
  font-weight: 760;
}

input, select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

input:focus, select:focus {
  outline: 2px solid rgba(124, 47, 47, .18);
  border-color: var(--burgundy);
}

.result-count { color: var(--muted); }

.empty-state {
  padding: 38px 20px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.book-page { padding: 28px 0 70px; }

.breadcrumbs {
  padding: 12px 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: .9rem;
}

.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--burgundy); }

.book-detail {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 52px;
  align-items: start;
}

.book-image-wrap {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.book-image {
  width: 100%;
  height: auto;
}

.book-info { padding-top: 18px; }
.book-info h1 { font-size: clamp(2.25rem, 5vw, 4rem); }

.book-author {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.16rem;
}

.book-meta {
  margin: 30px 0;
  padding: 18px 0;
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.book-meta div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
}

.book-meta dt {
  color: var(--muted);
  font-weight: 720;
}

.book-meta dd { margin: 0; }

.buy-panel,
.notice-panel {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.buy-panel {
  border-top: 4px solid var(--burgundy);
}

.book-price {
  margin: 0 0 15px;
  font-size: 1.85rem;
  font-weight: 850;
}

.external-note {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: .85rem;
}

.related { border-top: 1px solid var(--line); }
.related h2 { margin-bottom: 24px; }

.site-footer {
  color: var(--muted);
  background: #efe5d7;
  border-top: 1px solid var(--line);
}

.footer-inner {
  min-height: 128px;
  padding-block: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  font-size: .88rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
}

.footer-brand div {
  display: grid;
  gap: 1px;
}

.footer-brand strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.footer-brand span { font-size: .82rem; }

@media (max-width: 900px) {
  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr .55fr;
    gap: 30px;
  }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book-detail { grid-template-columns: 1fr 1.1fr; gap: 30px; }
}

@media (max-width: 680px) {
  .wrap { width: min(100% - 24px, 1180px); }

  .header-inner { min-height: 64px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 1.28rem; }
  .nav { gap: 13px; }

  .hero-grid {
    padding-block: 52px;
    grid-template-columns: 1fr;
  }

  .hero-copy-block { order: 2; }
  .hero-brand { order: 1; }

  .logo-halo {
    width: min(230px, 60vw);
    padding: 13px;
  }

  .hero-copy-block { text-align: center; }
  .hero-copy { margin-inline: auto; }
  .hero-actions { justify-content: center; }

  .identity-grid { grid-template-columns: 1fr; }
  .identity-grid > div,
  .identity-grid > div:first-child {
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .section { padding: 46px 0; }
  .section-heading { align-items: start; }

  .book-grid { gap: 12px; }
  .card-body { padding: 12px; }
  .card-author { min-height: auto; }

  .about-grid { grid-template-columns: 1fr; gap: 14px; }

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

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

  .book-image-wrap {
    width: min(78vw, 390px);
    margin-inline: auto;
  }

  .book-info { padding-top: 0; }

  .footer-inner {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 420px) {
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-title { font-size: .98rem; }
  .nav a:first-child { display: none; }
}
