/* Habit, Not Hobby — shared stylesheet
   Brand: Pen of Tales / Fatt Wallet Projects
   Palette + voice per Design Bible (2026-08-26) */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@600;800;900&family=Inter:wght@400;500;600;700&family=Caveat:wght@600;700&display=swap');

:root {
  --navy: #1B2A4A;
  --navy-ink: #12203a;
  --red: #C0392B;
  --gold: #B8860B;
  --green: #2E7D32;
  --parchment: #F4F1EA;
  --paper: #fffdf8;
  --ink: #222222;
  --muted: #5b5b58;
  --line: #ddd6c7;
  --white: #ffffff;

  --font-head: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-hand: 'Caveat', cursive;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 28px; --space-7: 36px; --space-8: 48px; --space-9: 72px;

  --radius: 10px;
  --shadow-sm: 0 2px 8px rgba(27,42,74,0.08);
  --shadow-md: 0 6px 24px rgba(27,42,74,0.14);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--space-5); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 900; letter-spacing: -0.01em; color: var(--navy); margin: 0; }
h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.04; }
h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.1; }
h3 { font-size: 20px; line-height: 1.2; }
p { margin: 0 0 var(--space-4); max-width: 62ch; }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.62; color: #3a3a37; }

section { padding: clamp(40px, 6vw, 88px) 0; }
section + section { border-top: 1px solid var(--line); }
.section-tight { padding-top: clamp(28px, 4vw, 48px); }

/* ---- marker / sketchnote accents ---- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-weight: 700; font-size: 11px;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; margin-bottom: var(--space-4);
}
.tag-gold { background: rgba(184,134,11,0.14); color: #8a6608; }
.tag-red { background: rgba(192,57,43,0.12); color: var(--red); }
.tag-green { background: rgba(46,125,50,0.12); color: var(--green); }
.tag-outline { background: transparent; border: 1.5px solid var(--line); color: var(--muted); }

.mark { position: relative; white-space: nowrap; font-style: normal; }
.mark::after {
  content: ""; position: absolute; left: -3px; right: -3px; bottom: 2px; height: 0.42em;
  background: var(--gold); opacity: 0.35; z-index: -1;
  transform: rotate(-1deg);
  border-radius: 3px 6px 3px 6px;
}

.badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex: none;
  font-family: var(--font-hand); font-size: 22px; font-weight: 700; color: var(--white);
  background: var(--navy);
  border-radius: 48% 52% 51% 49% / 53% 47% 53% 47%;
}
.badge-gold { background: var(--gold); }
.badge-red { background: var(--red); }
.badge-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }

.underline-squiggle {
  height: 10px; width: 74px; margin: 0 0 var(--space-4);
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  padding: 12px 22px; border-radius: 8px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; line-height: 1;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: var(--navy-ink); }
.btn-primary:hover { background: #a5790a; color: var(--white); }
.btn-secondary { background: var(--navy); color: var(--white); }
.btn-secondary:hover { background: var(--navy-ink); color: var(--white); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-link { background: none; border: none; padding: 0; font-weight: 700; color: var(--red); }
.btn-link:hover { color: var(--navy); }

/* ---- cards ---- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-5); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: var(--space-2);
}
.card-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); margin: 0; }
.card-title { font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--navy); margin: 0; }

.placeholder-art {
  background: repeating-linear-gradient(135deg, #e9e3d4, #e9e3d4 10px, #f1ebdc 10px, #f1ebdc 20px);
  border: 2px dashed var(--line); border-radius: var(--radius);
  display: grid; place-items: center; text-align: center; color: var(--muted);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.6;
}

/* ---- nav ---- */
.site-nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--parchment); border-bottom: 1px solid var(--line);
}
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: var(--space-3); padding-bottom: var(--space-3); gap: var(--space-4); }
.brand { display: flex; flex-direction: column; text-decoration: none; }
.brand-name { font-family: var(--font-head); font-weight: 900; font-size: 20px; color: var(--navy); }
.brand-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--ink);
  text-decoration: none; padding: 8px 12px; border-radius: 6px;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--navy); color: var(--white); }
.nav-toggle { display: none; background: none; border: 2px solid var(--navy); border-radius: 6px; padding: 6px 10px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--navy); margin: 4px 0; position: relative;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--parchment); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: var(--space-3) var(--space-5) var(--space-4);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
}

/* ---- footer ---- */
.site-footer { background: var(--navy); color: #cfd6e4; padding: var(--space-8) 0 var(--space-6); }
.site-footer a { color: #e7ecf6; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--space-6); margin-bottom: var(--space-7); }
.footer-grid h4 { font-family: var(--font-head); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin: 0 0 var(--space-3); }
.footer-links { display: flex; flex-direction: column; gap: var(--space-2); font-size: 14px; }
.footer-fine { font-size: 11px; letter-spacing: 0.06em; color: #8b96b3; border-top: 1px solid rgba(255,255,255,0.12); padding-top: var(--space-5); }

/* ---- grids ---- */
.grid { display: grid; gap: clamp(22px, 3vw, var(--space-7)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* ---- hero ---- */
.hero { padding-top: clamp(48px, 7vw, 96px); }
.hero h1 { max-width: 17ch; text-wrap: balance; }
.hero .lede { max-width: 54ch; }
.player-card { display: flex; align-items: center; gap: var(--space-4); max-width: 620px; margin-top: var(--space-6); }
.player-art { width: 74px; height: 74px; flex: none; border-radius: var(--radius); }
.play-btn { width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: var(--white); display: grid; place-items: center; flex: none; border: none; }
.progress { height: 5px; flex: 1; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress > span { display: block; height: 100%; width: 28%; background: var(--gold); }

/* ---- quote ---- */
.pull-quote p:first-child {
  font-family: var(--font-hand); font-weight: 700; color: var(--navy);
  font-size: clamp(30px, 4.2vw, 50px); line-height: 1.2; max-width: 20ch;
}

/* ---- episode rows ---- */
.ep-row { display: grid; grid-template-columns: auto 1fr; gap: clamp(14px, 2.4vw, var(--space-7)); padding: clamp(26px,3vw,var(--space-7)) 0; }
.ep-row + .ep-row { border-top: 1px solid var(--line); }
.ep-num { font-family: var(--font-head); font-weight: 900; font-size: clamp(24px,2.6vw,34px); color: var(--line); line-height: 1; }
.ep-meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: var(--space-4); max-width: 760px; margin: var(--space-4) 0; }

/* ---- filter chips ---- */
.chip-row { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.chip {
  font-family: var(--font-body); font-weight: 700; font-size: 12.5px;
  letter-spacing: 0.04em; padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--muted);
  cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ---- newsletter ---- */
.field-row { display: flex; gap: var(--space-2); max-width: 520px; flex-wrap: wrap; }
.input {
  flex: 1; min-width: 200px; font-family: var(--font-body); font-size: 15px;
  padding: 12px 14px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--paper);
}
.input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: var(--space-2); }

/* ---- stat grid (case study) ---- */
.stat { }
.stat .num { font-family: var(--font-head); font-weight: 900; font-size: clamp(26px,3vw,36px); color: var(--navy); margin: 0 0 4px; }
.stat .num.accent { color: var(--red); }
.stat .cap { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---- checklist ---- */
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.check-list li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: start; }
.check-list .mark-icon { color: var(--green); font-size: 18px; line-height: 1.5; }

.later-row { display: grid; grid-template-columns: 1fr auto; gap: var(--space-4); align-items: baseline; padding: var(--space-3) 0; }
.later-row + .later-row { border-top: 1px dashed var(--line); }
.later-row .month { font-size: 10.5px; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }

/* ---- book ---- */
.book-cover { border-radius: 6px; box-shadow: var(--shadow-md); }
.shelf-item img { border-radius: 6px; box-shadow: var(--shadow-sm); margin-bottom: var(--space-3); }
.chapter-row { display: grid; grid-template-columns: auto 1fr 1fr; gap: clamp(12px,2vw,var(--space-6)); align-items: baseline; padding: var(--space-2) 0; }
.chapter-row + .chapter-row { border-top: 1px solid var(--line); }

/* ---- host bios ---- */
.host-portrait {
  width: 140px; aspect-ratio: 1/1; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: var(--space-4);
  font-family: var(--font-head); font-weight: 900; font-size: 34px; color: var(--white);
}

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--white);
  padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

@media (max-width: 620px) {
  .field-row { flex-direction: column; }
  .field-row .btn { width: 100%; justify-content: center; }
}
