/* ===========================================================
   Morgan Reed Studio — shared styles
   Token system:
   Color   — Ink Navy #12213A · Parchment #F6F1E7 · Signal Gold #B8912F
             Clinic Teal #2B6C60 · Muted Rose #8B3A46 · Fog #DCD5C4
   Type    — Fraunces (display) · Inter (body) · IBM Plex Mono (utility/eyebrow)
   Motif   — "The Turning Point Dial": a 270° arc with a marker dot,
             signature graphic used large once in the hero, then small
             as section dividers and per-series accent (gold/rose/teal).
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,500&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --ink: #12213A;
  --ink-soft: #1D3355;
  --parchment: #F6F1E7;
  --parchment-dim: #EFE8D9;
  --gold: #B8912F;
  --gold-soft: #E4CE8F;
  --teal: #2B6C60;
  --teal-soft: #BFDAD3;
  --steel: #35586F;
  --steel-soft: #B9CAD8;
  --rose: #8B3A46;
  --rose-soft: #E7C4CA;
  --fog: #DCD5C4;
  --ink-70: rgba(18, 33, 58, 0.7);
  --ink-45: rgba(18, 33, 58, 0.45);
  --parchment-70: rgba(246, 241, 231, 0.7);

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --max: 1180px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; margin: 0; line-height: 1.15; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow.teal { color: var(--teal); }
.eyebrow.rose { color: var(--rose); }
.eyebrow.on-dark { color: var(--gold-soft); }

p { margin: 0 0 1em; color: var(--ink-70); }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--parchment); }
.btn-primary:hover { background: var(--ink-soft); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #a37f28; }
.btn-outline { background: transparent; border-color: var(--ink-45); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-outline-light { background: transparent; border-color: rgba(246,241,231,0.4); color: var(--parchment); }
.btn-outline-light:hover { border-color: var(--parchment); }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ---------- nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--parchment);
  border-bottom: 1px solid var(--fog);
}
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 19px; letter-spacing: 0.02em; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.brand-mark svg { width: 24px; height: 24px; }
.nav-links { display: flex; align-items: center; gap: 34px; font-size: 14.5px; font-weight: 500; }
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.5px;
  background: var(--gold); transition: right 0.2s ease;
}
.nav-links a:hover::after { right: 0; }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 76px 0 0 0; background: var(--parchment); flex-direction: column; justify-content: flex-start; padding: 32px; gap: 24px; font-size: 18px; transform: translateX(100%); transition: transform 0.25s ease; }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; }
  .nav-cta .btn span.long { display: none; }
}

/* ---------- dial motif (signature element) ---------- */
.dial { display: block; }
.dial-mark { display: inline-flex; align-items: center; justify-content: center; }

/* ---------- hero ---------- */
.hero {
  background: var(--ink);
  color: var(--parchment);
  position: relative;
  overflow: hidden;
  padding: 96px 0 110px;
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.hero-dial { justify-self: center; }
.hero h1 { font-size: clamp(38px, 5vw, 58px); color: var(--parchment); margin: 18px 0 22px; }
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero-lede { font-size: 18px; color: rgba(246,241,231,0.78); max-width: 46ch; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 28px; font-family: var(--mono); font-size: 12.5px; color: rgba(246,241,231,0.55); letter-spacing: 0.04em; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: left; }
  .hero-dial { justify-self: start; width: 160px; }
}

/* ---------- section rhythm ---------- */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); margin-top: 12px; }
.section-head p { margin-top: 16px; font-size: 16.5px; }
.section-alt { background: var(--parchment-dim); }
.section-ink { background: var(--ink); color: var(--parchment); }
.section-ink p { color: rgba(246,241,231,0.72); }
.section-ink .section-head h2 { color: var(--parchment); }

.divider-dial { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; }
.divider-dial .line { flex: 1; height: 1px; background: var(--fog); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: start; }
.about-quote { font-family: var(--serif); font-size: 25px; line-height: 1.4; color: var(--ink); font-style: italic; }
.about-quote cite { display: block; margin-top: 18px; font-family: var(--mono); font-style: normal; font-size: 12px; letter-spacing: 0.08em; color: var(--ink-45); text-transform: uppercase; }
.about-body p { font-size: 16.5px; }
.about-promises { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.about-promises li { display: flex; gap: 12px; font-size: 15px; color: var(--ink-70); align-items: flex-start; }
.about-promises .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-top: 8px; flex-shrink: 0; }

@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- series pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar-card {
  background: var(--parchment); border: 1px solid var(--fog); border-radius: var(--radius);
  padding: 36px 30px; display: flex; flex-direction: column; gap: 16px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.pillar-card:hover { box-shadow: 0 18px 34px rgba(18,33,58,0.1); transform: translateY(-3px); }
.pillar-card .dial-mark { margin-bottom: 4px; }
.pillar-card h3 { font-size: 22px; }
.pillar-card .count { font-family: var(--mono); font-size: 12px; color: var(--ink-45); letter-spacing: 0.05em; }
.pillar-card p { font-size: 14.5px; }
.pillar-card .pillar-link { margin-top: auto; font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; display: inline-flex; align-items: center; gap: 6px; }
.pillar-card.gold .pillar-link { color: var(--gold); }
.pillar-card.rose .pillar-link { color: var(--rose); }
.pillar-card.teal .pillar-link { color: var(--teal); }

@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- book grid (series pages) ---------- */
.series-hero { padding: 72px 0 56px; color: var(--parchment); position: relative; overflow: hidden; }
.series-hero .eyebrow { margin-bottom: 14px; }
.series-hero h1 { font-size: clamp(32px, 4.6vw, 46px); color: var(--parchment); max-width: 18ch; }
.series-hero p { max-width: 58ch; margin-top: 18px; font-size: 16.5px; color: rgba(246,241,231,0.8); }
.series-hero.gold { background: linear-gradient(135deg, var(--ink) 45%, #2a2110 130%); }
.series-hero.rose { background: linear-gradient(135deg, var(--ink) 45%, #331319 130%); }
.series-hero.teal { background: linear-gradient(135deg, var(--ink) 45%, #0f2420 130%); }

.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 34px; }
.book-card { display: flex; flex-direction: column; }
.book-cover {
  aspect-ratio: 5 / 7.4; border-radius: 3px; margin-bottom: 18px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 22px; position: relative; overflow: hidden;
  box-shadow: 0 14px 28px rgba(18,33,58,0.16);
}
.book-cover-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.book-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,15,30,.18) 0%, rgba(10,15,30,.72) 100%); z-index: 1; pointer-events: none; }
.book-cover > div { position: relative; z-index: 2; }
.book-cover .badge { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.09em; text-transform: uppercase; }
.book-cover .book-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; }
.book-cover h4 { font-size: 19px; line-height: 1.25; }
.book-cover .cov-dial { position: absolute; right: -30px; bottom: -30px; opacity: 0.5; }
.book-cover.cov-gold { background: linear-gradient(160deg, #16233b, #0d1626); color: var(--gold-soft); }
.book-cover.cov-rose { background: var(--parchment-dim); color: var(--rose); border: 1px solid var(--fog); }
.book-cover.cov-teal { background: linear-gradient(165deg, #163b34, #0f2723); color: var(--teal-soft); }
.book-cover.cov-rose h4 { color: var(--ink); }

.book-meta { font-family: var(--mono); font-size: 12px; color: var(--ink-45); margin-bottom: 8px; letter-spacing: 0.03em; }
.book-card h4.book-title { font-family: var(--sans); font-weight: 600; font-size: 16px; margin-bottom: 6px; line-height: 1.35; }
.book-card p.book-blurb { font-size: 14px; margin-bottom: 14px; }
.book-links { display: flex; align-items: center; gap: 16px; font-size: 13.5px; }
.book-links .price { font-weight: 600; }
.book-links a.buy { font-weight: 600; }
.book-card.gold .price, .book-card.gold a.buy { color: var(--gold); }
.book-card.rose .price, .book-card.rose a.buy { color: var(--rose); }
.book-card.teal .price, .book-card.teal a.buy { color: var(--teal); }

/* ---------- printables ---------- */
.printable-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; }
.printable-card {
  background: var(--parchment); border: 1px solid var(--fog); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.printable-thumb {
  aspect-ratio: 4/3; background: var(--teal); position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 16px;
}
.printable-thumb .sheet {
  position: absolute; inset: 14px 14px 14px 34px; background: #fff; border-radius: 2px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
  padding: 14px; font-family: var(--mono); font-size: 8px; color: var(--ink-45); line-height: 1.6; overflow: hidden;
}
.printable-thumb .sheet .bar { height: 5px; background: var(--fog); border-radius: 2px; margin-bottom: 6px; width: 80%; }
.printable-thumb .tag { position: relative; z-index: 2; font-family: var(--mono); font-size: 10px; color: #fff; background: rgba(18,33,58,0.55); padding: 4px 9px; border-radius: 20px; }
.printable-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.printable-body h4 { font-family: var(--sans); font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.printable-body p { font-size: 13.5px; }
.printable-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.printable-foot .price { font-family: var(--mono); font-weight: 600; font-size: 14px; color: var(--teal); }

.bundle-card { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.bundle-card .printable-thumb { background: var(--gold); }
.bundle-card .printable-foot .price { color: var(--gold); }

.teaser-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .teaser-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .teaser-grid { grid-template-columns: 1fr; } }

/* ---------- resources / lead magnets ---------- */
.resource-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.resource-card { background: var(--ink); color: var(--parchment); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.resource-card h4 { font-size: 20px; color: var(--parchment); }
.resource-card p { color: rgba(246,241,231,0.72); font-size: 14.5px; }
.resource-card .btn { align-self: flex-start; margin-top: 6px; }
@media (max-width: 700px) { .resource-list { grid-template-columns: 1fr; } }

/* ---------- email capture ---------- */
.capture { background: var(--gold); }
.capture-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.capture h2 { font-size: clamp(26px, 3.2vw, 34px); }
.capture p { color: rgba(18,33,58,0.72); margin-top: 14px; max-width: 44ch; }
.capture-form { display: flex; flex-direction: column; gap: 12px; }
.capture-form .row { display: flex; gap: 10px; }
.capture-form input[type=email] {
  flex: 1; padding: 14px 16px; border: 1px solid rgba(18,33,58,0.25); border-radius: var(--radius);
  font-family: var(--sans); font-size: 15px; background: var(--parchment);
}
.capture-form input[type=email]:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.capture-form .btn { white-space: nowrap; }
.capture-note { font-family: var(--mono); font-size: 11.5px; color: rgba(18,33,58,0.6); }
.capture-success { display: none; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.capture-success.show { display: block; }
.ml-embedded-wrap { background: var(--parchment); border-radius: var(--radius); padding: 4px; }
.ml-embedded-wrap .ml-embedded { max-width: 100%; }
@media (max-width: 900px) { .capture-inner { grid-template-columns: 1fr; gap: 26px; } .capture-form .row { flex-direction: column; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(246,241,231,0.6); padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr; gap: 44px; margin-bottom: 48px; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); color: var(--parchment); font-size: 18px; margin-bottom: 14px; }
.footer-col h5 { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.09em; text-transform: uppercase; color: rgba(246,241,231,0.45); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-disclaimer { border-top: 1px solid rgba(246,241,231,0.14); padding-top: 28px; font-size: 12.5px; line-height: 1.7; color: rgba(246,241,231,0.42); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; font-size: 12.5px; color: rgba(246,241,231,0.4); flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- misc ---------- */
.tag-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.tag-strip span { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.05em; padding: 6px 12px; border: 1px solid var(--ink-45); border-radius: 20px; color: var(--ink-70); }

/* Men's Health series accent (steel) */
.eyebrow.steel { color: var(--steel); }
.pillar-card.steel .pillar-link { color: var(--steel); }
.series-hero.steel { background: linear-gradient(135deg, var(--ink) 45%, #16283a 130%); }
.book-cover.cov-steel { background: linear-gradient(165deg, #22394d, #16283a); color: var(--steel-soft); }
.book-card.steel .price, .book-card.steel a.buy { color: var(--steel); }
