/* Secondhand Bookshops NZ — preview shell */
:root {
  --ink: #1c1410;
  --paper: #f7f1e6;
  --cream: #fffaf2;
  --card: #ffffff;
  --accent: #8b4513;
  --accent-dark: #5c2e0b;
  --muted: #6b5a4a;
  --line: #e4d5c3;
  --banner: #3d2914;
  --banner-text: #f7e8c8;
  --ok: #2f6b3a;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(28, 20, 16, 0.08);
  --max: 960px;
  --font: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  min-height: 100vh;
}

a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

.preview-banner {
  background: var(--banner);
  color: var(--banner-text);
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.preview-banner span { opacity: 0.85; font-weight: 400; }

.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.25rem;
}
.site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}
.logo {
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.logo span { color: var(--accent); }
.nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}
.nav a:hover { color: var(--accent-dark); }

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}

.hero {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.75rem;
}
.hero h1 {
  font-family: var(--font);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
.hero p { margin: 0 0 0.75rem; color: var(--muted); max-width: 42rem; }
.hero p:last-child { margin-bottom: 0; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  margin-top: 0.5rem;
}
.btn:hover { background: var(--accent-dark); }

.section-title {
  font-family: var(--font);
  font-size: 1.35rem;
  margin: 2rem 0 0.85rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--line);
}

.meta-line {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}

.shop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 640px) {
  .shop-grid { grid-template-columns: 1fr 1fr; }
}

.shop-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.shop-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.shop-card h3 {
  font-family: var(--font);
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
}
.shop-card .loc { color: var(--muted); font-size: 0.92rem; margin: 0; }

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
}
.badge-dedicated { background: #efe0cf; color: var(--accent-dark); }
.badge-opshop { background: #dceadb; color: var(--ok); }

.shop-detail {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.35rem;
}
.shop-detail h1 {
  font-family: var(--font);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin: 0.35rem 0 1rem;
}
.dl {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.55rem 0.75rem;
  margin: 0 0 1.25rem;
}
.dl dt { color: var(--muted); font-size: 0.88rem; margin: 0; }
.dl dd { margin: 0; }
@media (max-width: 480px) {
  .dl { grid-template-columns: 1fr; gap: 0.15rem; }
  .dl dt { margin-top: 0.55rem; }
}

.actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin: 1rem 0; }
.btn-secondary {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent-dark) !important;
  background: transparent;
  text-decoration: none;
  padding: 0.65rem 1.05rem;
  border-radius: 999px;
  font-weight: 600;
}
.btn-secondary:hover { background: #efe0cf; }

.back-link { display: inline-block; margin-bottom: 1rem; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--accent-dark); }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--cream);
  padding: 1.25rem 1.25rem 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer-inner { max-width: var(--max); margin: 0 auto; }
.site-footer a { color: var(--muted); }

.note {
  font-size: 0.9rem;
  color: var(--muted);
  background: #efe8dc;
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  margin-top: 1rem;
}

/* Enrichment: photos, reviews, price guide, prose */
.lede { color: var(--muted); font-size: 1.05rem; max-width: 42rem; }
.section { margin: 1.5rem 0; }
.section h2 { font-family: var(--font); font-size: 1.25rem; margin: 0 0 0.65rem; }
.photo-gallery { display: grid; gap: 0.75rem; margin: 1rem 0 1.25rem; }
@media (min-width: 700px) {
  .photo-gallery { grid-template-columns: 1fr 1fr; }
}
.photo { margin: 0; background: #efe8dc; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.photo img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: cover; }
.photo figcaption { font-size: 0.78rem; color: var(--muted); padding: 0.45rem 0.65rem 0.6rem; }
.photo-placeholder {
  background: #efe8dc; border: 1px dashed var(--line); border-radius: 10px;
  padding: 1.25rem; color: var(--muted); margin: 1rem 0;
}
.card-thumb {
  width: 100%; height: 140px; object-fit: cover; border-radius: 8px;
  margin-bottom: 0.55rem; background: #efe8dc;
}
.review {
  margin: 0 0 0.85rem; padding: 0.85rem 1rem; background: #fffaf2;
  border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0;
}
.review p { margin: 0 0 0.4rem; }
.review cite { font-size: 0.85rem; color: var(--muted); font-style: normal; }
.rating-summary { font-weight: 600; margin: 0 0 0.75rem; }
.price-tip {
  background: #e8f0e4; border-radius: 8px; padding: 0.75rem 0.9rem;
  font-size: 0.95rem; margin: 0.75rem 0 0;
}
.related { padding-left: 1.2rem; }
.related li { margin: 0.35rem 0; }
.sources ul { padding-left: 1.2rem; word-break: break-all; }
.prose h2 { font-family: var(--font); margin-top: 1.75rem; }
.prose h3 { font-size: 1.05rem; margin: 1.1rem 0 0.35rem; }
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }
.price-table { width: 100%; border-collapse: collapse; background: var(--card); font-size: 0.95rem; }
.price-table th, .price-table td { border: 1px solid var(--line); padding: 0.55rem 0.7rem; text-align: left; vertical-align: top; }
.price-table thead th { background: #efe0cf; }
.price-table td.price { font-weight: 700; white-space: nowrap; color: var(--accent-dark); }
.site-footer a { margin: 0 0.15rem; }

/* Launch / SEO extras */
.breadcrumbs {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1rem;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-dark); }

.jump-links {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

.map-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.25rem;
  margin-bottom: 1.75rem;
}
.map-section h2 {
  font-family: var(--font);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}
.map-embed-wrap {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #efe8dc;
  aspect-ratio: 16 / 10;
  min-height: 260px;
}
.map-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0 0;
}
.map-actions .btn,
.map-actions .btn-secondary { margin-top: 0; }

.prose h3 { font-family: var(--sans); }

/* Donate form */
.donate-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.15rem;
  display: grid;
  gap: 0.85rem;
  max-width: 36rem;
  margin: 1rem 0 1.5rem;
}
.donate-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}
.donate-form input[type="text"],
.donate-form input[type="email"],
.donate-form input[type="tel"],
.donate-form select,
.donate-form textarea {
  font: inherit;
  font-weight: 400;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  width: 100%;
}
.donate-form label.checkbox {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.55rem;
  font-weight: 400;
}
.donate-form .privacy { font-size: 0.88rem; color: var(--muted); margin: 0; }
.donate-form .hp {
  position: absolute; left: -9999px; height: 0; width: 0; opacity: 0;
}
.donate-form button.btn { border: 0; cursor: pointer; justify-self: start; }
