/*
Theme Name: Quiet Pages
Theme URI: https://cover-books-paywall.germanywestcentral.cloudapp.azure.com
Author: Covernet
Description: A refined editorial WordPress theme for a small independent bookshop.
Version: 1.0.0
Text Domain: quiet-pages
*/

:root {
  --ink: #10243a;
  --paper: #f7f2e8;
  --cream: #fffaf0;
  --gold: #c6963f;
  --sage: #93a18c;
  --line: rgba(16, 36, 58, .14);
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 242, 232, .92);
  backdrop-filter: blur(16px);
}
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--serif); font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { width: 30px; height: 36px; border: 1.5px solid var(--ink); border-radius: 2px 7px 7px 2px; position: relative; transform: rotate(-3deg); }
.brand-mark::after { content: ""; position: absolute; inset: 5px 6px; border-left: 1px solid var(--gold); border-right: 1px solid var(--gold); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 650; letter-spacing: .04em; text-decoration: none; }
.nav-links a:hover { color: #8b6423; }
.nav-cta { padding: 10px 17px; border-radius: 999px; background: var(--ink); color: white !important; }

.hero { min-height: 690px; display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 70px; padding: 72px 0 90px; overflow: hidden; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; color: #8b6423; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; }
h1 { max-width: 760px; margin: 0; font-size: clamp(56px, 7.2vw, 100px); }
.hero-copy { max-width: 580px; margin: 28px 0 34px; color: #536273; font-size: 18px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 0 24px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 750; text-decoration: none; transition: .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(16, 36, 58, .18); }
.button.secondary { background: transparent; color: var(--ink); }
.button.gold { border-color: var(--gold); background: var(--gold); color: #0b1c2d; }

.hero-art { position: relative; min-height: 540px; display: grid; place-items: center; }
.hero-art::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: #dce1d5; }
.hero-art::after { content: ""; position: absolute; width: 420px; height: 420px; border: 1px solid rgba(16,36,58,.22); border-radius: 50%; }
.hero-cover { position: relative; z-index: 2; width: 300px; border-radius: 3px 13px 13px 3px; box-shadow: -18px 24px 45px rgba(10, 27, 44, .28), inset 7px 0 rgba(255,255,255,.08); transform: rotate(4deg); }
.seal { position: absolute; z-index: 3; right: 4%; bottom: 8%; display: grid; place-items: center; width: 112px; height: 112px; padding: 16px; border-radius: 50%; background: var(--gold); text-align: center; font-family: var(--serif); font-size: 16px; line-height: 1.05; transform: rotate(-8deg); }

.strip { background: var(--ink); color: white; }
.strip-inner { min-height: 112px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; gap: 28px; }
.strip-item { display: flex; align-items: center; gap: 16px; color: rgba(255,255,255,.72); font-size: 13px; }
.strip-item strong { display: block; color: #fff; font-family: var(--serif); font-size: 20px; font-weight: 500; }
.strip-number { color: var(--gold); font-family: var(--serif); font-size: 34px; }

.section { padding: 110px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 46px; }
.section-head h2 { max-width: 650px; margin: 0; font-size: clamp(44px, 5vw, 68px); }
.section-head p { max-width: 430px; margin: 0; color: #647181; }
.books-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.book-card { position: relative; min-height: 500px; padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,250,240,.72); overflow: hidden; }
.book-card.featured { background: #e8e6d8; }
.book-cover-small { width: 190px; margin: 0 auto 28px; border-radius: 2px 8px 8px 2px; box-shadow: -10px 14px 26px rgba(16,36,58,.23); }
.abstract-cover { width: 190px; aspect-ratio: 2/3; margin: 0 auto 28px; border-radius: 2px 8px 8px 2px; box-shadow: -10px 14px 26px rgba(16,36,58,.22); display: grid; place-items: center; padding: 24px; color: white; text-align: center; font-family: var(--serif); font-size: 28px; line-height: 1.05; }
.abstract-cover.rust { background: linear-gradient(145deg,#6f2d2d,#b76e43); }
.abstract-cover.sage { background: linear-gradient(145deg,#52675a,#9aa88f); }
.book-card h3 { margin: 0 0 6px; font-size: 28px; }
.book-card p { margin: 0; color: #677281; font-size: 14px; }
.book-meta { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 750; }

.quote-section { background: #dfe4d9; }
.quote { max-width: 900px; margin: 0 auto; text-align: center; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(38px, 5vw, 66px); line-height: 1.13; letter-spacing: -.03em; }
.quote cite { display: block; margin-top: 28px; color: #69756a; font-style: normal; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.page-hero { padding: 100px 0 62px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(54px, 7vw, 90px); }
.page-hero p { max-width: 620px; color: #5e6c7b; font-size: 18px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 760px) 280px; gap: 80px; padding: 72px 0 130px; }
.prose { font-family: var(--serif); font-size: 21px; line-height: 1.8; }
.prose p:first-of-type::first-letter { float: left; margin: 10px 12px 0 0; color: var(--gold); font-size: 76px; line-height: .7; }
.chapter-label { color: #8b6423; font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.sidebar-card { position: sticky; top: 112px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--cream); }
.sidebar-card img { width: 126px; margin: 0 auto 20px; border-radius: 2px 7px 7px 2px; box-shadow: -7px 9px 17px rgba(16,36,58,.18); }
.sidebar-card h3 { margin: 0 0 8px; font-size: 25px; }
.sidebar-card p { color: #66717c; font-size: 14px; }
.price { display: block; margin: 15px 0; font-family: var(--serif); font-size: 28px; }

.buy-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 76px; align-items: center; padding: 90px 0 130px; }
.buy-cover { width: min(360px, 90%); margin: auto; border-radius: 3px 14px 14px 3px; box-shadow: -18px 24px 44px rgba(16,36,58,.25); }
.buy-panel { padding: 46px; border: 1px solid var(--line); border-radius: 26px; background: var(--cream); }
.buy-panel h1 { font-size: clamp(44px, 5vw, 68px); }
.feature-list { display: grid; gap: 13px; margin: 26px 0 32px; padding: 0; list-style: none; }
.feature-list li::before { content: "✓"; margin-right: 12px; color: #798d6f; font-weight: 900; }

.site-footer { padding: 60px 0 36px; background: #0c1d30; color: rgba(255,255,255,.7); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; }
.site-footer .brand { color: white; }
.site-footer h3 { color: #fff; font-family: var(--sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.site-footer a { text-decoration: none; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; }

@media (max-width: 900px) {
  .hero, .buy-layout { grid-template-columns: 1fr; }
  .hero { gap: 30px; }
  .hero-art { min-height: 480px; }
  .books-grid { grid-template-columns: 1fr 1fr; }
  .book-card:last-child { grid-column: 1 / -1; }
  .content-grid { grid-template-columns: 1fr; gap: 40px; }
  .sidebar-card { position: static; }
}
@media (max-width: 640px) {
  .shell { width: min(100% - 28px, 1180px); }
  .nav { min-height: 66px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { min-height: 0; padding: 56px 0 64px; }
  h1 { font-size: 54px; }
  .hero-art { min-height: 410px; }
  .hero-art::before { width: 390px; height: 390px; }
  .hero-art::after { width: 320px; height: 320px; }
  .hero-cover { width: 230px; }
  .seal { right: 0; width: 90px; height: 90px; font-size: 13px; }
  .strip-inner { grid-template-columns: 1fr; padding: 26px 0; }
  .section { padding: 76px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .books-grid { grid-template-columns: 1fr; }
  .book-card:last-child { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .buy-panel { padding: 28px; }
}
