:root {
  --rose: #b06a80;
  --rose-dark: #8d4f63;
  --ink: #1d1a1b;
  --paper: #fbf8f6;
  --muted: #6b6264;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Poppins", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(16px, 4vw, 48px);
}
.logo {
  font-family: var(--serif);
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.logo span { color: var(--rose); }
.site-header nav { display: flex; gap: clamp(14px, 3vw, 28px); font-size: 14px; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { color: var(--rose-dark); text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero {
  background: var(--rose);
  padding: clamp(56px, 10vw, 120px) 16px;
  text-align: center;
}
.hero h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(40px, 9vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}
.tag {
  display: inline-block;
  margin-top: 28px;
  padding: 6px 14px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

/* Content */
main { flex: 1; }
.section {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) 16px;
  text-align: center;
}
.section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.15;
  margin: 0 0 32px;
}
.imprints {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.imprints li {
  border: 1px solid #e4dadc;
  background: #fff;
  padding: 28px 16px;
  font-family: var(--serif);
  font-size: 24px;
}
.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.button {
  display: inline-block;
  padding: 12px 24px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.button:hover { background: var(--rose-dark); }
.button.outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.button.outline:hover { background: var(--ink); color: #fff; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #ddd;
  padding: 40px clamp(16px, 4vw, 48px) 28px;
  font-size: 14px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.site-footer .logo { color: #fff; font-size: 26px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 4px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.copyright { margin: 32px 0 0; color: #999; font-size: 12px; }

/* imprint tiles link to each imprint's page */
.imprints li a { display: block; margin: -28px -16px; padding: 28px 16px; text-decoration: none; }
.imprints li:hover { border-color: var(--rose); }

.lede { max-width: 620px; margin: -12px auto 32px; color: var(--muted); font-family: var(--serif); font-size: 22px; line-height: 1.5; }
.lede a { text-underline-offset: 3px; }

/* ---------- Homepage, fuller version (same palette and type) ---------- */
.section.wide { max-width: 1120px; }
.lede.left, .buttons.left { text-align: left; justify-content: flex-start; margin-left: 0; }

/* A thin band naming what each imprint publishes */
.strip { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px 22px; padding: 16px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.strip i { width: 6px; height: 6px; background: var(--rose); transform: rotate(45deg); }

.imprint-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; text-align: left; }
.imprint { position: relative; display: flex; flex-direction: column; padding: 28px 26px 24px; background: #fff; border: 1px solid #e4dadc; text-decoration: none; transition: border-color .2s, transform .2s; }
.imprint:hover { border-color: var(--rose); transform: translateY(-3px); }
.imprint .num { font-weight: 800; font-size: 13px; letter-spacing: .1em; color: var(--rose-dark); }
.imprint h3 { margin: 10px 0 8px; font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.1; }
.imprint p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.imprint ul { list-style: none; margin: 0 0 22px; padding: 14px 0 0; border-top: 1px solid #eee4e6; font-family: var(--serif); font-size: 19px; line-height: 1.3; }
.imprint li + li { margin-top: 8px; }
.imprint li::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 10px 3px 0; background: var(--rose); transform: rotate(45deg); }
.imprint .go { margin-top: auto; font-size: 13px; font-weight: 500; color: var(--rose-dark); }

.shelf { background: #f3ecee; }
.covers { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.covers a { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; }
.covers .pic { display: grid; place-items: center; width: 100%; height: 230px; padding: 18px; overflow: hidden; background: #fff; border: 1px solid #e4dadc; margin-bottom: 8px; transition: border-color .2s, transform .2s; }
.covers .pic img { max-width: 100%; max-height: 100%; height: auto; object-fit: contain; }
.covers .pic img.shot { transform: scale(1.45); }
.covers a:hover .pic { border-color: var(--rose); transform: translateY(-3px); }
.covers b { font-family: var(--serif); font-weight: 500; font-size: 18px; line-height: 1.2; }
.covers small { font-size: 12px; color: var(--muted); }

.split-contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; text-align: left; max-width: 1120px; }
.split-contact h2 { margin-bottom: 20px; }
.split-contact .lede { margin-top: 0; }
.contact-list { border-top: 1px solid var(--ink); }
.contact-list p { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0; padding: 16px 0; border-bottom: 1px solid #e4dadc; font-size: 15px; }
.contact-list span { font-weight: 500; }
.contact-list a { color: var(--rose-dark); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 900px) {
  .imprint-cards { grid-template-columns: 1fr; }
  .covers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split-contact { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header { flex-wrap: wrap; }
  .site-header nav { gap: 14px; flex-wrap: wrap; }
}

/* ---------- Bookshop: every title with a buy button (same palette and type) ---------- */
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
.site-header nav { align-items: center; }
.nav-shop { padding: 7px 14px; background: var(--ink); color: #fff; font-weight: 500; }
.site-header nav a.nav-shop:hover { background: var(--rose-dark); color: #fff; text-decoration: none; }
.hero-buttons { margin-top: 28px; }
.hero .button.outline { border-color: var(--ink); }

.eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--rose-dark); }
.badge { margin: 0 0 14px; font-size: 13px; font-weight: 500; color: var(--rose-dark); }
.more { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.more a { color: var(--rose-dark); text-underline-offset: 3px; }
.more a + a::before { content: "·"; display: inline-block; margin: 0 8px; color: var(--muted); }
.more.left { text-align: left; }

/* Featured title */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 5vw, 64px); align-items: center; text-align: left; }
.feature h2 { margin-bottom: 10px; }
.feature-pic img { display: block; width: 100%; height: auto; transition: transform .3s; }
.feature-pic:hover img { transform: scale(1.02); }
.feature .lede { margin-bottom: 24px; }

/* Find-a-book tiles */
.picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 36px; text-align: left; }
.picks a { display: flex; flex-direction: column; gap: 2px; padding: 18px 18px 16px; background: var(--ink); color: #fff; text-decoration: none; transition: background .2s; }
.picks a:hover { background: var(--rose-dark); }
.picks small { font-size: 12px; color: #e6cdd5; }
.picks b { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.2; }
.picks span { margin-top: auto; padding-top: 10px; font-size: 12px; font-weight: 500; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; scroll-margin-top: 16px; }
.chips button { padding: 8px 16px; font: 500 13px var(--sans); color: var(--ink); background: #fff; border: 1px solid #d9cbcf; cursor: pointer; }
.chips button:hover { border-color: var(--rose); }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; text-align: left; }
.book { display: flex; flex-direction: column; background: #fff; border: 1px solid #e4dadc; transition: border-color .2s, transform .2s; }
.book:hover { border-color: var(--rose); transform: translateY(-3px); }
.book .pic { display: grid; place-items: center; height: 250px; padding: 20px; overflow: hidden; border-bottom: 1px solid #f0e8ea; }
.book .pic img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 6px 16px rgba(29, 26, 27, .14); }
.book .pic img.shot { transform: scale(1.4); box-shadow: none; }
.book .info { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.book .imp { font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--rose-dark); text-decoration: none; }
.book .imp:hover { text-decoration: underline; }
.book h3 { margin: 6px 0 2px; font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.15; }
.book .kind { margin: 0 0 10px; font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--muted); }
.book .badge { margin-bottom: 8px; font-size: 12px; }
.book .blurb { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.buy { display: block; margin-top: auto; padding: 11px 14px; background: var(--ink); color: #fff; text-align: center; text-decoration: none; font-size: 14px; font-weight: 500; transition: background .2s; }
.buy:hover { background: var(--rose-dark); }
.book .more { margin-top: 10px; text-align: center; }
.disclosure { margin: 28px 0 0; font-size: 12px; color: var(--muted); }
.disclosure a { color: inherit; }

/* Praise */
.praise { background: var(--ink); color: #fff; }
.praise .eyebrow { color: #e6cdd5; }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); margin: 18px 0 36px; text-align: left; }
.quotes figure { margin: 0; padding-left: 22px; border-left: 2px solid var(--rose); }
.quotes blockquote { margin: 0 0 14px; font-family: var(--serif); font-size: clamp(21px, 2.4vw, 26px); line-height: 1.4; }
.quotes figcaption { font-size: 13px; color: #c9bfc2; }
.quotes figcaption b { color: #fff; font-weight: 500; }
.button.light { background: #fff; color: var(--ink); }
.button.light:hover { background: var(--rose); color: #fff; }
.button.outline.light { background: transparent; color: #fff; border-color: #fff; }
.button.outline.light:hover { background: #fff; color: var(--ink); }

/* Free templates */
.freebie { background: #f3ecee; }
.freebie-in { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; text-align: left; }
.freebie-in img { width: 100%; height: auto; box-shadow: 0 10px 28px rgba(29, 26, 27, .18); transform: rotate(-3deg); }
.freebie h2 { margin-bottom: 16px; }
.freebie .lede { margin-top: 0; }

.site-footer .copyright { line-height: 1.7; }

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature-pic { max-width: 420px; margin: 0 auto; }
  .picks { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .books { grid-template-columns: 1fr 1fr; gap: 10px; }
  .book .pic { height: 180px; padding: 12px; }
  .book .info { padding: 14px 12px 14px; }
  .book h3 { font-size: 19px; }
  .book .blurb { display: none; }
  .buy { padding: 10px 6px; font-size: 13px; }
  .freebie-in { grid-template-columns: 1fr; }
  .freebie-in img { max-width: 160px; }
  .nav-shop { order: -1; }
  .site-header nav a[href="#books"]:not(.nav-shop) { display: none; }
}
