/* ===========================================================
   Antiquaria — Rare & Reprinted Museum Guides
   Shared stylesheet
   =========================================================== */

:root {
  --parchment: #f6f1e7;
  --parchment-deep: #efe7d6;
  --ink: #1f1b16;
  --ink-soft: #4a4239;
  --burgundy: #6e2233;
  --burgundy-dark: #561a28;
  --gold: #b08d4c;
  --line: #d9cdb6;
  --card: #fffdf8;
  --shadow: 0 18px 40px -22px rgba(31, 27, 22, 0.55);
  --radius: 4px;
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Georgia", "Iowan Old Style", "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% -10%, rgba(176,141,76,0.08), transparent 40%),
    var(--parchment);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(246,241,231,0.92);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  font-weight: 700;
}
.brand span { color: var(--burgundy); }
.brand small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
  margin-top: 2px;
}
.nav a {
  color: var(--ink-soft);
  margin-left: 26px;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}
.nav a:hover { color: var(--burgundy); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 70px 0 40px;
}
.hero .kicker {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.15;
  margin: 0 auto 18px;
  max-width: 760px;
  font-weight: 700;
}
.hero p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.rule {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 28px auto 0;
}

/* ---------- Product grid ---------- */
.section-title {
  text-align: center;
  margin: 50px 0 6px;
  font-size: 1.7rem;
}
.section-sub {
  text-align: center;
  color: var(--ink-soft);
  margin: 0 0 38px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-bottom: 70px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -22px rgba(31,27,22,0.6);
}
.card-cover {
  background: var(--parchment-deep);
  padding: 26px 26px 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 280px;
}
.card-cover img {
  max-height: 280px;
  width: auto;
  box-shadow: 0 14px 30px -14px rgba(31,27,22,0.7);
  border-radius: 2px;
}
.card-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-tag {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.card-body h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  line-height: 1.3;
}
.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--burgundy); text-decoration: none; }
.card-meta {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.card-actions { margin-top: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  font-family: inherit;
}
.btn-primary {
  background: var(--burgundy);
  color: #fff;
}
.btn-primary:hover { background: var(--burgundy-dark); text-decoration: none; color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--burgundy);
  border-color: var(--burgundy);
}
.btn-outline:hover { background: var(--burgundy); color: #fff; text-decoration: none; }
.btn-amazon {
  background: #ffd814;
  color: #0f1111;
  border-color: #fcd200;
  font-weight: 700;
}
.btn-amazon:hover { background: #f7ca00; color: #0f1111; text-decoration: none; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Product detail page ---------- */
.crumbs {
  padding: 26px 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.crumbs a { color: var(--ink-soft); }

.detail {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  padding: 34px 0 70px;
  align-items: start;
}
.detail-cover {
  background: var(--parchment-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  justify-content: center;
  box-shadow: var(--shadow);
  position: sticky;
  top: 96px;
}
.detail-cover img {
  width: auto;
  max-height: 460px;
  box-shadow: 0 22px 44px -18px rgba(31,27,22,0.7);
  border-radius: 2px;
}
.detail-tag {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.detail h1 {
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.2;
  margin: 10px 0 6px;
}
.detail .byline {
  color: var(--ink-soft);
  font-style: italic;
  margin: 0 0 22px;
}
.detail .lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0 0 26px;
}
.price {
  font-size: 1.5rem;
  color: var(--burgundy);
  font-weight: 700;
  margin: 0 0 4px;
}
.price small { font-size: 0.8rem; color: var(--ink-soft); font-weight: 400; }

.buybox {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin: 26px 0 30px;
  box-shadow: var(--shadow);
}
.buybox .note {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: 14px 0 0;
  text-align: center;
}

/* Specs table */
.specs {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}
.specs th, .specs td {
  text-align: left;
  padding: 11px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  vertical-align: top;
}
.specs th {
  width: 42%;
  color: var(--ink-soft);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.specs-title {
  font-size: 1.15rem;
  margin: 36px 0 6px;
}

/* ---------- Static / policy pages ---------- */
.page {
  max-width: 800px;
  margin: 0 auto;
  padding: 50px 24px 80px;
}
.page h1 { font-size: 2.2rem; margin-bottom: 6px; }
.page .updated { color: var(--ink-soft); font-size: 0.85rem; margin-bottom: 30px; }
.page h2 { font-size: 1.3rem; margin: 34px 0 10px; color: var(--burgundy); }
.page p, .page li { color: var(--ink-soft); }
.page ul { padding-left: 22px; }
.page table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.page table th, .page table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  font-size: 0.9rem;
}
.page table th { background: var(--parchment-deep); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--parchment-deep);
  margin-top: 40px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 40px 24px;
}
.site-footer .brand { font-size: 1.15rem; }
.foot-links a {
  color: var(--ink-soft);
  margin-left: 22px;
  font-size: 0.9rem;
}
.foot-links a:first-child { margin-left: 0; }
.foot-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
  padding: 18px 0 26px;
}
.disclosure {
  background: var(--parchment-deep);
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
  padding: 14px 24px;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: calc(100% - 36px);
  max-width: 920px;
  background: var(--ink);
  color: #f3ece0;
  border-radius: 8px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.7);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
  z-index: 100;
}
.cookie-banner.hidden { display: none; }
.cookie-banner p { margin: 0; font-size: 0.9rem; line-height: 1.55; }
.cookie-banner a { color: var(--gold); }
.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.cookie-actions .btn { padding: 10px 18px; font-size: 0.85rem; }
.cookie-actions .btn-ghost {
  background: transparent;
  color: #f3ece0;
  border-color: rgba(243,236,224,0.45);
}
.cookie-actions .btn-ghost:hover { background: rgba(243,236,224,0.12); }
.cookie-actions .btn-accept { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.cookie-actions .btn-accept:hover { background: #c39c57; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .detail { grid-template-columns: 1fr; gap: 30px; }
  .detail-cover { position: static; }
}
@media (max-width: 640px) {
  .site-header .wrap { flex-direction: column; gap: 10px; }
  .nav a { margin: 0 12px; }
  .grid { grid-template-columns: 1fr; }
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-actions { justify-content: center; }
}
