/* ============================================================
   CLEARWOOD & CO. — Shared Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

/* ── Variables ── */
:root {
  --bg:           #F9F7F4;
  --bg-dark:      #1A2820;
  --bg-mid:       #F0EBE3;
  --accent:       #C4923E;
  --accent-light: #D4A855;
  --text:         #2C2C2C;
  --text-muted:   #6B7280;
  --border:       #E3D9CE;
  --white:        #FFFFFF;
  --max-w:        1160px;
  --serif:        'Playfair Display', Georgia, serif;
  --sans:         'Inter', system-ui, -apple-system, sans-serif;
  --radius:       6px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(249, 247, 244, 0.98);
  border-bottom: 1px solid var(--border);
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 2.5rem;
}

.nav-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}

.nav-logo span { color: var(--text); }
.nav-logo .logo-wordmark > span { color: var(--accent); }
.footer-logo .logo-wordmark > span { color: var(--accent); }

.compass-star {
  width: 1.05em;
  height: 1.05em;
  flex-shrink: 0;
  display: inline-block;
  color: var(--accent);
}
.compass-star svg { width: 100%; height: 100%; display: block; }

/* Reversed compass for dark backgrounds (footer) */
.footer-logo .compass-star { color: var(--accent); }
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); border-bottom-color: var(--accent); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.15s;
}

.btn:hover { transform: translateY(-1px); }

.btn-dark {
  background: var(--bg-dark);
  color: var(--white);
}
.btn-dark:hover { background: #28382E; box-shadow: 0 6px 20px rgba(26,40,32,0.25); }

.btn-gold {
  background: var(--accent);
  color: var(--white);
}
.btn-gold:hover { background: var(--accent-light); box-shadow: 0 6px 20px rgba(196,146,62,0.3); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-outline-light {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-outline-light:hover { border-color: var(--accent-light); color: var(--accent-light); }

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 5rem 2.5rem 3.5rem;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}

.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.page-header p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 6rem 2.5rem; }
.section-sm { padding: 4rem 2.5rem; }
.section-dark { background: var(--bg-dark); }
.section-mid { background: var(--bg-mid); }

.section-inner { max-width: var(--max-w); margin: 0 auto; }

.section-header { margin-bottom: 3.5rem; }
.section-header .eyebrow { display: block; margin-bottom: 0.625rem; }

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-dark .section-title { color: var(--white); }

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.75;
}

.section-dark .section-subtitle { color: rgba(255,255,255,0.55); }

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 2rem 0;
}

.divider-center { margin: 2rem auto; }

/* ============================================================
   CARDS
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}

.card-num {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: 0.875rem;
  line-height: 1.2;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.card-cta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

/* ============================================================
   QUOTE BLOCK
   ============================================================ */
.quote-section {
  background: var(--bg-dark);
  padding: 7rem 2.5rem;
  text-align: center;
}

.quote-inner {
  max-width: 740px;
  margin: 0 auto;
}

.quote-mark {
  font-family: var(--serif);
  font-size: 5rem;
  line-height: 0.6;
  color: var(--accent);
  display: block;
  margin-bottom: 2.5rem;
  opacity: 0.8;
}

.quote-text {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-style: italic;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 2rem;
}

.quote-attr {
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-light);
  font-weight: 500;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  max-width: 520px;
}

.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 0.875rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-family: var(--sans);
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-form input::placeholder { color: #aaa; }
.newsletter-form input:focus { border-color: var(--accent); }

/* ============================================================
   BOOK CARDS
   ============================================================ */
.book-entry {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 5rem;
  align-items: start;
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

.book-entry:last-child { border-bottom: none; }

.book-spine {
  position: relative;
}

.book-cover-art {
  aspect-ratio: 2/3;
  background: var(--bg-dark);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: -10px 10px 40px rgba(0,0,0,0.22), 4px 0 0 rgba(255,255,255,0.06) inset;
}

.book-cover-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(196,146,62,0.18) 0%, transparent 55%, rgba(0,0,0,0.3) 100%);
}

.book-cover-content {
  position: absolute;
  inset: 0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.book-cover-top {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-light);
  font-weight: 600;
}

.book-cover-mid {
  text-align: center;
}

.book-cover-mid h3 {
  font-family: var(--serif);
  font-size: 1.375rem;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.book-cover-mid p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  font-style: italic;
  line-height: 1.5;
}

.book-cover-bottom {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
}

.book-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.875rem;
  background: rgba(196,146,62,0.12);
  border: 1px solid rgba(196,146,62,0.35);
  border-radius: 2px;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.375rem;
}

.book-info h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.5vw, 2.625rem);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.book-info .subtitle-text {
  font-size: 1.0625rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.625rem;
}

.book-info p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.75rem;
  max-width: 520px;
}

.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.topic {
  padding: 0.3rem 0.875rem;
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.notify-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  max-width: 460px;
}

.notify-form input {
  flex: 1;
  min-width: 200px;
  padding: 0.8125rem 1.125rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-family: var(--sans);
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.notify-form input:focus { border-color: var(--accent); }

/* ============================================================
   SHOP / PRODUCTS
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}

.product-visual {
  aspect-ratio: 1 / 1;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 30%, rgba(196,146,62,0.15) 0%, transparent 65%);
}

.shirt-mock {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
}

.shirt-mock .shirt-icon {
  width: 80px;
  height: 72px;
  margin: 0 auto 1.5rem;
  opacity: 0.35;
}

.shirt-text {
  font-family: var(--serif);
  font-size: 1.125rem;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.shirt-sub {
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.product-info { padding: 1.625rem; }

.product-name {
  font-family: var(--serif);
  font-size: 1.1875rem;
  margin-bottom: 0.375rem;
}

.product-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.125rem;
  line-height: 1.65;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.btn-buy {
  padding: 0.625rem 1.25rem;
  background: var(--bg-dark);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--sans);
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.btn-buy:hover { background: var(--accent); }

.coming-soon-btn {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-mid);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 1rem;
  cursor: default;
}

/* ============================================================
   STORY PAGE
   ============================================================ */
.story-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 6rem;
  align-items: start;
  padding: 6rem 2.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.story-sidebar { position: sticky; top: 100px; }

.founder-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.founder-photo {
  aspect-ratio: 3/4;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 1.75rem;
}

.founder-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(20,35,28,0.88));
}

.founder-photo-text { position: relative; }

.founder-photo-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--white);
  font-weight: 600;
}

.founder-photo-title {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.25rem;
}

/* Initials placeholder (used until real photo added) */
.founder-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 5rem;
  font-weight: 700;
  color: rgba(196,146,62,0.2);
  pointer-events: none;
}

.founder-meta { padding: 1.5rem; }

.founder-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.founder-meta-row:last-child { border-bottom: none; }

.meta-label {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
  padding-top: 1px;
  min-width: 64px;
}

.meta-value { color: var(--text-muted); line-height: 1.55; }

.story-body {}

.story-body h2 {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--text);
  line-height: 1.2;
  margin: 3rem 0 1.125rem;
}

.story-body h2:first-child { margin-top: 0; }

.story-body p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.story-body p strong { color: var(--text); font-weight: 600; }

.timeline {
  list-style: none;
  border-left: 2px solid var(--border);
  padding-left: 1.75rem;
  margin: 2rem 0 2.5rem;
}

.timeline li {
  position: relative;
  padding-bottom: 1.625rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
  content: '';
  position: absolute;
  left: -1.875rem;
  top: 0.4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2.5px solid var(--bg);
}

.timeline li strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.product-highlight {
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  margin: 2.5rem 0;
}

.product-highlight h3 {
  font-family: var(--serif);
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
}

.product-highlight p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0;
}

/* ============================================================
   SETUP NOTICE (for Mike — internal use)
   ============================================================ */
.setup-notice {
  background: #FFFBEB;
  border: 1px solid #F0CC68;
  border-left: 4px solid #E6A817;
  border-radius: var(--radius);
  padding: 1.25rem 1.75rem;
  margin-bottom: 2.5rem;
}

.setup-notice strong {
  display: block;
  font-size: 0.9375rem;
  color: #7A5200;
  margin-bottom: 0.5rem;
}

.setup-notice p, .setup-notice li {
  font-size: 0.875rem;
  color: #7A5200;
  line-height: 1.7;
}

.setup-notice ol, .setup-notice ul {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  background: var(--bg-dark);
  padding: 3.5rem 2.5rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
  padding-bottom: 2.5rem;
  margin-bottom: 0;
}

.footer-brand {}

.footer-logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.625rem;
}

.footer-logo .logo-wordmark > span { color: var(--accent-light); }

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  font-style: italic;
}

.footer-nav {
  display: flex;
  gap: 4rem;
  background: var(--bg-dark);
  /* Override global nav styles that bleed in via the <nav> element */
  position: static;
  top: auto;
  z-index: auto;
  height: auto;
  border: none;
  padding: 0;
  align-items: flex-start;
}

.footer-nav-col h4 {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-light);
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-nav-col ul { list-style: none; }

.footer-nav-col ul li { margin-bottom: 0.625rem; }

.footer-nav-col ul a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
  padding: 2px 0;
  min-height: 32px;
  line-height: 32px;
}

.footer-nav-col ul a:hover { color: var(--accent-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  margin-top: 2.5rem;
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
}

.footer-legal { display: flex; gap: 1.5rem; }

.footer-legal a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover { color: rgba(255,255,255,0.6); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ============================================================
   HAMBURGER / MOBILE NAV
   ============================================================ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px 4px;
  background: none;
  border: none;
  z-index: 201;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav overlay — shown when hamburger is open */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: 72px;
  background: rgba(0,0,0,0.35);
  z-index: 198;
}
.nav-overlay.open { display: block; }

@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
  .book-entry { grid-template-columns: 1fr; gap: 2.5rem; }
  .book-cover-art { max-width: 220px; }
  .story-layout { grid-template-columns: 1fr; gap: 3rem; padding: 4rem 1.5rem; }
  .story-sidebar { position: static; }
  .footer-top { flex-direction: column; gap: 2.5rem; }
  .footer-nav { flex-direction: row; flex-wrap: wrap; gap: 2rem 2.5rem; }
  .footer-nav-col { min-width: 120px; }
}

@media (max-width: 640px) {
  nav { padding: 0 1.5rem; }
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    background: rgba(249, 247, 244, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0 1.5rem;
    z-index: 500;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  }

  .nav-links.open {
    display: flex;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; }

  .nav-links a {
    display: block;
    padding: 1rem 2rem;
    font-size: 0.9375rem;
    letter-spacing: 0.08em;
    border-bottom: none !important;
    width: 100%;
  }

  .nav-links a:hover { background: var(--bg-mid); color: var(--text); }

  .page-header { padding: 4rem 1.5rem 2.5rem; }
  .section { padding: 4rem 1.5rem; }
  .section-sm { padding: 3rem 1.5rem; }
  .newsletter-form, .notify-form { flex-direction: column; }
  .newsletter-form input, .notify-form input { min-width: unset; }
  .product-teaser-inner { grid-template-columns: 1fr !important; gap: 3rem !important; }
  .hero { padding: 4rem 1.5rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; max-width: 280px; justify-content: center; }
  .author-strip { flex-direction: column; gap: 1.25rem; padding: 1.75rem; }
  .footer-nav { flex-direction: column; gap: 2rem; }
  .beehiiv-embed { height: 420px !important; }
}

/* ============================================================
   CREAM BOOK COVER (Personal Finance Principles)
   Used on Books page — sized up from the calculator version
   ============================================================ */
.cw-book-cover{
  width:280px;height:410px;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(255,255,255,.5) 0%, rgba(255,255,255,0) 60%),
    repeating-linear-gradient(0deg, rgba(120,90,40,.025) 0px, rgba(120,90,40,.025) 1px, transparent 1px, transparent 2px),
    repeating-linear-gradient(90deg, rgba(120,90,40,.025) 0px, rgba(120,90,40,.025) 1px, transparent 1px, transparent 2px),
    linear-gradient(135deg,#F8F2E5 0%,#EFE6D2 100%);
  border-radius:3px 6px 6px 3px;
  padding:30px 32px 26px;
  display:flex;flex-direction:column;
  position:relative;flex-shrink:0;
  box-shadow:
    0 22px 44px -14px rgba(50,32,12,.32),
    0 8px 16px -6px rgba(50,32,12,.22),
    inset 1px 0 0 rgba(255,255,255,.5),
    inset -1px 0 0 rgba(0,0,0,.04);
  font-family: var(--serif);
}
.cw-book-cover::before{
  content:"";position:absolute;top:0;left:0;width:7px;height:100%;
  background:linear-gradient(90deg,rgba(0,0,0,.20),rgba(0,0,0,.06) 45%,rgba(0,0,0,0));
  border-radius:3px 0 0 3px;pointer-events:none;
}
.cw-book-imprint{
  font-family: var(--sans, 'Inter', sans-serif);
  font-size:9px;letter-spacing:.32em;text-transform:uppercase;
  color:#9A7E3E;text-align:center;font-weight:600;
  padding:6px 0 12px;
  border-bottom:1px solid rgba(201,169,110,.4);
  margin-bottom:auto;
}
.cw-book-title{
  font-family: var(--serif);
  font-size:30px;line-height:1.18;
  color:#7A5C1E;font-weight:500;letter-spacing:.005em;
  text-align:center;margin-top:24px;
}
.cw-book-rule{height:1px;background:#C9A96E;width:80px;margin:20px auto;opacity:.7}
.cw-book-subtitle{
  font-family: var(--serif);
  font-style:italic;font-size:15px;
  color:#9A7E3E;text-align:center;
  letter-spacing:.02em;line-height:1.45;
}
.cw-book-ornament{
  text-align:center;font-size:13px;color:#C9A96E;
  letter-spacing:.6em;margin:18px 0 10px;
  padding-right:.6em;opacity:.85;
}
.cw-book-author{
  font-family: var(--sans, 'Inter', sans-serif);
  font-size:12px;letter-spacing:.22em;text-transform:uppercase;
  color:#7A5C1E;text-align:center;font-weight:600;
  margin-top:auto;padding-top:10px;
}
@media(max-width:700px){
  .cw-book-cover{width:230px;height:340px;padding:22px 24px 20px}
  .cw-book-title{font-size:24px;margin-top:18px}
  .cw-book-subtitle{font-size:13px}
}
