  @import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300..600;1,6..72,400..500&family=JetBrains+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

  :root {
    --bg: #fdfbf6;
    --bg-elev: #ffffff;
    --bg-deep: #f5efe1;
    --ink: #1c1816;
    --ink-soft: #3a342e;
    --muted: #8a8278;
    --muted-strong: #4a4239;
    --accent: #c4622d;
    --accent-deep: #8a4520;
    --accent-soft: #e8b890;
    --line: #e6dfd0;
    --line-soft: #efe9d9;
    --highlight: #f5ecd9;
  }

  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: 'IBM Plex Sans', -apple-system, sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
  .container { max-width: 1200px; margin: 0 auto; padding: 56px 40px 96px; }

  /* HEADER */
  .header { margin-bottom: 48px; }
  .eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }
  h1 { font-family: 'Newsreader', serif; font-weight: 500; font-size: 44px; line-height: 1.15; letter-spacing: -0.012em; margin: 0 0 22px 0; color: var(--ink); max-width: 860px; }
  h1 em { font-style: italic; font-weight: 400; color: var(--ink-soft); }
  .lede { font-family: 'Newsreader', serif; font-size: 19px; line-height: 1.55; color: var(--ink-soft); margin: 0 0 32px 0; max-width: 720px; font-style: normal; }
  .header-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
  .btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-family: 'IBM Plex Sans', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 0.01em; cursor: pointer; text-decoration: none; transition: all 160ms ease; border: 1px solid transparent; }
  .btn-primary { background: var(--ink); color: var(--bg); }
  .btn-primary:hover { background: #000; }
  .btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
  .btn-outline:hover { background: var(--ink); color: var(--bg); }
  .btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
  .btn-accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
  .divider { height: 1px; background: var(--line); margin: 0 0 32px 0; }

  /* LAYOUT */
  .layout { display: grid; grid-template-columns: 240px 1fr; gap: 64px; }
  .sidebar { position: sticky; top: 40px; align-self: start; max-height: calc(100vh - 80px); overflow-y: auto; padding-right: 8px; }
  .sidebar-title { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; padding-left: 14px; }
  .sidebar-item { display: block; padding: 9px 14px; font-family: 'IBM Plex Sans', sans-serif; font-size: 13px; line-height: 1.4; color: var(--muted-strong); text-decoration: none; border-left: 2px solid transparent; cursor: pointer; transition: all 140ms ease; }
  .sidebar-item:hover { color: var(--ink); background: var(--line-soft); }
  .sidebar-item.active { color: var(--accent-deep); border-left-color: var(--accent); background: var(--highlight); font-weight: 500; }
  .sidebar-meta { display: block; font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 3px; }
  .sidebar-item.active .sidebar-meta { color: var(--accent); }

  /* CONTENT */
  .content { min-width: 0; max-width: 760px; }
  .chapter { margin-bottom: 72px; scroll-margin-top: 32px; }
  .chapter-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
  .chapter-meta { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.08em; color: var(--accent); }
  .chapter-meta-dot { color: var(--muted); margin: 0 6px; }
  .chapter-meta-count { color: var(--muted-strong); }
  .expand-toggle { font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; color: var(--muted-strong); cursor: pointer; background: none; border: none; padding: 0; text-decoration: underline; text-underline-offset: 3px; transition: color 140ms ease; }
  .expand-toggle:hover { color: var(--accent-deep); }
  .chapter-title { font-family: 'Newsreader', serif; font-weight: 500; font-size: 30px; line-height: 1.15; letter-spacing: -0.012em; color: var(--ink); margin: 0 0 14px 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .chapter-intro { font-family: 'Newsreader', serif; font-size: 17px; line-height: 1.6; color: var(--ink-soft); margin-bottom: 28px; }

  /* CARDS */
  .card { border-bottom: 1px solid var(--line-soft); padding: 0; }
  .card:last-child { border-bottom: none; }
  .card-q { display: flex; align-items: flex-start; gap: 12px; padding: 22px 0; cursor: pointer; user-select: none; }
  .chevron { font-family: 'IBM Plex Sans', sans-serif; font-size: 18px; color: var(--muted-strong); transition: transform 200ms ease; padding-top: 1px; line-height: 1; min-width: 14px; }
  .card.open .chevron { transform: rotate(90deg); }
  .card-num { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); padding-top: 5px; min-width: 22px; }
  .card-q-text { font-family: 'Newsreader', serif; font-size: 19px; line-height: 1.4; font-weight: 400; color: var(--ink); flex: 1; }
  .card-a { max-height: 0; overflow: hidden; transition: max-height 340ms ease, padding 200ms ease, opacity 200ms ease; opacity: 0; }
  .card.open .card-a { max-height: 3000px; opacity: 1; padding: 0 0 28px 50px; }
  .card-a-inner { font-family: 'Newsreader', serif; font-size: 16.5px; line-height: 1.7; color: var(--ink-soft); }
  .card-a-inner p { margin: 0 0 14px 0; }
  .card-a-inner p:last-child { margin-bottom: 0; }
  .card-a-inner strong { color: var(--ink); font-weight: 600; }
  .card-a-inner em { font-style: italic; }

  /* TAKEAWAY */
  .takeaway { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
  .takeaway-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
  .takeaway-title { font-family: 'Newsreader', serif; font-size: 28px; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 22px 0; color: var(--ink); max-width: 640px; }
  .takeaway-body { font-family: 'Newsreader', serif; font-size: 17px; line-height: 1.65; color: var(--ink-soft); margin-bottom: 32px; }
  .takeaway-body p { margin: 0 0 14px 0; }
  .takeaway-body p:last-child { margin-bottom: 0; }
  .pillars { display: flex; flex-wrap: wrap; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
  .pillar { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.08em; color: var(--accent-deep); text-transform: lowercase; }

  /* EVENT CTA */
  .event-cta { margin-top: 48px; padding: 32px 34px 34px; border-radius: 16px; background: linear-gradient(180deg, #fbf1e0 0%, #f5e6d0 100%); border: 1px solid var(--accent-soft); }
  .event-cta-date { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 14px; }
  .event-cta-title { font-family: 'Newsreader', serif; font-size: 26px; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 14px 0; color: var(--ink); }
  .event-cta-body { font-family: 'Newsreader', serif; font-size: 16.5px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 22px 0; max-width: 560px; }

  /* SUBSCRIBE */
  .subscribe { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
  .subscribe-title { font-family: 'Newsreader', serif; font-size: 26px; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 12px 0; color: var(--ink); }
  .subscribe-desc { font-family: 'Newsreader', serif; font-size: 17px; line-height: 1.55; color: var(--ink-soft); margin: 0 0 22px 0; max-width: 540px; }
  .subscribe-form { display: flex; gap: 8px; max-width: 460px; }
  .subscribe-form input { flex: 1; padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; background: var(--bg-elev); color: var(--ink); outline: none; }
  .subscribe-form input:focus { border-color: var(--accent); }
  .subscribe-success { margin-top: 14px; font-family: 'Newsreader', serif; font-size: 15px; color: var(--accent-deep); display: none; }
  .subscribe-success.visible { display: block; }

  /* FOOTER */
  .footer { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); font-family: 'IBM Plex Sans', sans-serif; font-size: 13px; color: var(--muted); }
  .footer a { color: var(--accent-deep); text-decoration: none; }
  .footer a:hover { text-decoration: underline; }

  /* MOBILE */
  @media (max-width: 880px) {
    .container { padding: 36px 22px 72px; }
    h1 { font-size: 30px; }
    .lede { font-size: 17px; }
    .layout { grid-template-columns: 1fr; gap: 24px; }
    .sidebar { position: relative; top: 0; max-height: none; overflow-x: auto; overflow-y: hidden; white-space: nowrap; border-bottom: 1px solid var(--line); padding: 0 0 14px 0; margin-bottom: 16px; }
    .sidebar-title { padding-left: 0; margin-bottom: 10px; }
    .sidebar-item { display: inline-block; border-left: none; border-bottom: 2px solid transparent; padding: 8px 14px; vertical-align: top; }
    .sidebar-item.active { border-left-color: transparent; border-bottom-color: var(--accent); background: transparent; }
    .chapter-title { font-size: 24px; }
    .card-q-text { font-size: 17px; }
    .card-a-inner { font-size: 15.5px; }
    .card.open .card-a { padding: 0 0 24px 36px; }
    .takeaway-title { font-size: 22px; }
    .event-cta { padding: 26px 24px 28px; margin-top: 40px; }
    .event-cta-title { font-size: 22px; }
    .subscribe-title { font-size: 22px; }
  }

  /* GRATITUDE DECK ADDITIONS */
  .field-guide { margin: 0 0 40px 0; padding: 28px 30px; background: var(--bg-deep); border-radius: 12px; border-left: 3px solid var(--accent); }
  .field-guide h2 { font-family: 'Newsreader', serif; font-weight: 500; font-size: 24px; margin: 0 0 12px 0; }
  .field-guide ul { margin: 0; padding-left: 20px; font-family: 'Newsreader', serif; font-size: 16.5px; line-height: 1.6; color: var(--ink-soft); }
  .field-guide li { margin-bottom: 8px; }
  .eyebrow-sm { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
  .practice { margin: 0 0 48px 0; padding: 28px 30px; border-radius: 16px; background: linear-gradient(180deg, #fbf1e0 0%, #f5e6d0 100%); border: 1px solid var(--accent-soft); }
  .practice h2 { font-family: 'Newsreader', serif; font-weight: 500; font-size: 24px; margin: 0 0 14px 0; }
  .practice ol { margin: 0; padding-left: 20px; font-family: 'Newsreader', serif; font-size: 16.5px; line-height: 1.6; color: var(--ink-soft); }
  .practice li { margin-bottom: 10px; }
  .deck-bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 0; margin-bottom: 32px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .deck-bar .btn { padding: 7px 14px; font-size: 12px; }
  .deck-progress { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted-strong); margin-left: auto; letter-spacing: 0.04em; }
  .deck-hint { width: 100%; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--muted); }
  .card:focus { outline: none; }
  .card.focused { background: var(--highlight); }
  .card-tag { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 4px; }
  .known-btn { margin-top: 14px; font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--muted-strong); cursor: pointer; }
  .known-btn:hover { border-color: var(--accent); color: var(--accent-deep); }
  .card.known .card-q-text { color: var(--muted); }
  .card.known .card-num::after { content: ' ✓'; color: var(--accent); }
  .card.known .known-btn { background: var(--highlight); border-color: var(--accent-soft); color: var(--accent-deep); }
  body.hide-known .card.known { display: none; }
  @media (max-width: 880px) { .layout { grid-template-columns: 1fr; gap: 24px; } .sidebar { display: none; } .container { padding: 32px 20px 64px; } h1 { font-size: 30px; } .card.open .card-a { padding-left: 26px; } .field-guide, .practice { padding: 22px 20px; } }
