/* site.css — shared stylesheet for subpages and 404. The home page keeps its
   own inline CSS on purpose (spec §2.1): zero regression risk there. Tokens
   mirror site/index.html :root. */
:root {
  --parchment: #f5ede0; --cream: #faf6f0; --terra: #b85c38; --terra-dk: #8a3e22;
  --umber: #3b2a1a; --sage: #7a8c6e; --sand: #c9b49a; --mist: #e8dfd4;
  --serif: 'Cormorant Garamond', Georgia, serif; --sans: 'Instrument Sans', sans-serif;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: #f2e5d0; color: var(--umber); min-height: 100vh; }
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center; padding: 24px 48px;
  background: rgba(248,244,237,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(59,42,26,0.08);
}
.nav-logo { font-family: var(--serif); font-size: 18px; font-weight: 300; letter-spacing: 0.12em; text-transform: uppercase; color: var(--umber); text-decoration: none; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-family: var(--sans); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--umber); text-decoration: none; opacity: 0.65; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }
.page { max-width: 760px; margin: 0 auto; padding: 140px 24px 80px; }
.breadcrumbs { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; margin-bottom: 28px; }
.breadcrumbs a { color: var(--umber); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.label { display: block; font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--terra); margin-bottom: 18px; }
h1 { font-family: var(--serif); font-size: clamp(40px, 6vw, 72px); font-weight: 300; line-height: 1.05; margin-bottom: 24px; }
h2 { font-family: var(--serif); font-size: 32px; font-weight: 300; line-height: 1.15; margin: 48px 0 16px; }
h3 { font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.2; margin: 32px 0 12px; }
p, li { font-family: var(--serif); font-size: 19px; font-weight: 300; line-height: 1.85; }
p { margin-bottom: 18px; }
ul, ol { margin: 0 0 18px 24px; }
li { margin-bottom: 6px; }
a { color: var(--terra-dk); }
em { font-style: italic; }
.lead { font-size: 23px; line-height: 1.7; opacity: 0.85; margin-bottom: 32px; }
.book-hero { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: start; margin: 8px 0 40px; }
.book-hero img { width: 100%; height: auto; box-shadow: 8px 12px 30px rgba(59,42,26,0.25); }
.book-meta { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--terra); font-family: var(--sans); line-height: 2; }
.facts { width: 100%; border-collapse: collapse; margin: 16px 0 32px; font-family: var(--serif); font-size: 18px; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid rgba(59,42,26,0.12); }
.facts th { font-family: var(--sans); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; width: 34%; opacity: 0.7; }
.btn-primary { display: inline-block; background: var(--terra); color: #fff; padding: 14px 36px; font-family: var(--sans); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; transition: background 0.2s; }
.btn-primary:hover { background: var(--terra-dk); }
.cta { margin: 40px 0; padding: 28px; background: var(--parchment); border: 1px solid rgba(59,42,26,0.1); }
.cta p { margin-bottom: 14px; }
.quote { font-family: var(--serif); font-size: 24px; font-style: italic; line-height: 1.6; padding: 12px 0 12px 24px; border-left: 2px solid var(--terra); margin: 32px 0; }
.quote cite { display: block; font-style: normal; font-family: var(--sans); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; margin-top: 10px; }
.issue-list { list-style: none; margin-left: 0; }
.issue-list li { padding: 14px 0; border-bottom: 1px solid rgba(59,42,26,0.12); }
.issue-list .issue-no { font-family: var(--sans); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--terra); display: block; }
.issue-list a { font-size: 22px; text-decoration: none; color: var(--umber); }
.issue-list a:hover { text-decoration: underline; }
.page-footer { max-width: 760px; margin: 0 auto; padding: 0 24px 60px; border-top: 1px solid rgba(59,42,26,0.1); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 20px 0 10px; }
.footer-links a { font-family: var(--sans); font-size: 11px; color: var(--umber); opacity: 0.7; text-decoration: none; letter-spacing: 0.05em; }
.footer-links a:hover { opacity: 1; }
.footer-copy { font-family: var(--sans); font-size: 11px; opacity: 0.35; letter-spacing: 0.05em; }
@media (max-width: 900px) {
  nav { padding: 20px 24px; } .nav-links { display: none; }
  .page { padding-top: 110px; }
  .book-hero { grid-template-columns: 1fr; } .book-hero img { max-width: 240px; }
}
