/* learn.lizontheweb.com — Liz on the Web
   Palette + chrome deliberately mirror the Substack cover renderer
   (content-system/render-cover.mjs) so the site and the article covers read as
   one brand: gold/olive top bar, olive rail, Georgia display, olive dot bullets.
   Single committed light theme — this is a brand surface, not a system-themed app. */

:root {
  --cream: #f7f7ef;
  --cream-deep: #f0efe2;
  --gold: #c9a24d;
  --gold-soft: rgba(201, 162, 77, 0.12);
  --olive: #72781c;
  --olive-soft: rgba(114, 120, 28, 0.09);
  --ink: #111111;
  --ink-60: #4f4f4f;
  --ink-40: #767464;
  --line: rgba(17, 17, 17, 0.1);
  --card: #ffffff;
  --display: Georgia, 'Times New Roman', serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --shadow: 0 1px 2px rgba(17, 17, 17, 0.04), 0 8px 24px rgba(17, 17, 17, 0.06);
  --shadow-lift: 0 2px 4px rgba(17, 17, 17, 0.05), 0 18px 40px rgba(114, 120, 28, 0.14);
  --wrap: 1180px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* The signature gold→olive→gold band, straight off the covers. */
.topbar { height: 8px; background: linear-gradient(90deg, var(--gold), var(--olive), var(--gold)); }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: min(100% - 32px, var(--wrap)); } }

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(247, 247, 239, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .inner { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.brand em { font-style: normal; color: var(--olive); }
.nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink-60); padding: 6px 0; border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current='page'] { color: var(--ink); border-bottom-color: var(--gold); }
/* The CTA is a filled dark pill, so the aria-current ink colour above would paint
   its label black-on-black on its own page. Keep the pill's own colours. */
.nav .btn-sm, .nav .btn-sm[aria-current='page'] { border: 0; color: var(--cream); }
.nav .btn-sm[aria-current='page'] { background: var(--olive); }
.btn-sm { background: var(--ink); color: var(--cream); padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; transition: background 0.15s, transform 0.15s; }
.btn-sm:hover { background: var(--olive); transform: translateY(-1px); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; font-size: 17px; cursor: pointer; color: var(--ink); }
@media (max-width: 860px) {
  .nav { position: fixed; inset: 78px 16px auto 16px; flex-direction: column; align-items: stretch; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow-lift); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 11px 12px; border-bottom: 0; border-radius: 9px; }
  .nav a[aria-current='page'] { background: var(--olive-soft); color: var(--olive); }
  .nav .btn-sm { text-align: center; margin-top: 6px; }
  .nav-toggle { display: block; }
}

/* ── Type ───────────────────────────────────────────────────────────── */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--olive); font-size: 12.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 18px; }
.eyebrow::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.02; }
h2 { font-size: clamp(27px, 3.4vw, 39px); line-height: 1.1; }
h3 { font-size: 20px; line-height: 1.25; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--ink-60); line-height: 1.58; max-width: 62ch; }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: var(--ink); color: var(--cream); padding: 15px 30px; border-radius: 999px; font-size: 16px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; transition: background 0.15s, transform 0.15s, box-shadow 0.15s; }
.btn:hover { background: var(--olive); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #b8913f; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid rgba(17, 17, 17, 0.2); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero { padding: clamp(52px, 8vw, 96px) 0 clamp(36px, 5vw, 60px); background: radial-gradient(circle at 12% 20%, var(--gold-soft), transparent 42%), var(--cream); }
.hero .lede { margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 38px; margin-top: 48px; padding-top: 30px; border-top: 1px solid var(--line); }
.hero-stats div strong { display: block; font-family: var(--display); font-size: 34px; line-height: 1; }
.hero-stats div span { font-size: 13px; font-weight: 600; color: var(--ink-40); text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Controls (filters / sort / search) ─────────────────────────────── */
.controls { position: sticky; top: 70px; z-index: 40; background: rgba(247, 247, 239, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 18px 0 16px; }
.control-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.search { position: relative; flex: 1 1 280px; }
.search input { width: 100%; padding: 12px 16px 12px 42px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); font-family: var(--body); font-size: 15px; color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s; }
.search input:focus { outline: 0; border-color: var(--olive); box-shadow: 0 0 0 3px var(--olive-soft); }
.search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; stroke: var(--ink-40); pointer-events: none; }
.select { padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); font-family: var(--body); font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; }
.select:focus { outline: 0; border-color: var(--olive); }

.filter-group { margin-top: 14px; display: flex; gap: 10px; align-items: baseline; }
.filter-label { font-size: 11.5px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-40); flex: none; min-width: 74px; padding-top: 4px; }
/* flex:1 + min-width:0 keeps the label inline and wraps chips INSIDE this box.
   Without it a long chip row wraps as a whole and drops below its own label. */
.chips { display: flex; gap: 7px; flex-wrap: wrap; flex: 1; min-width: 0; }
@media (max-width: 560px) { .filter-group { flex-direction: column; gap: 7px; } }
.chip { background: transparent; border: 1.5px solid var(--line); color: var(--ink-60); padding: 6px 14px; border-radius: 999px; font-family: var(--body); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all 0.15s; white-space: nowrap; }
.chip:hover { border-color: var(--olive); color: var(--olive); }
.chip[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.chip.chip-gold[aria-pressed='true'] { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 26px 0 20px; }
.result-count { font-size: 14px; font-weight: 600; color: var(--ink-40); }
.result-count b { color: var(--ink); }
.clear-btn { background: none; border: 0; font-family: var(--body); font-size: 14px; font-weight: 700; color: var(--olive); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.clear-btn[hidden] { display: none; }

/* ── Guide cards ────────────────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(316px, 1fr)); gap: 22px; padding-bottom: 20px; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; gap: 16px; } }

.card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: rgba(114, 120, 28, 0.3); }
.card:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; }
.card-cover { aspect-ratio: 16 / 9; background: var(--cream-deep) center/cover no-repeat; border-bottom: 1px solid var(--line); }
.card-body { padding: 20px 21px 22px; display: flex; flex-direction: column; flex: 1; }
/* Clickable topic chips. They must out-rank the stretched title link, hence the
   z-index — without it the link overlay swallows every chip click. */
.card-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; position: relative; z-index: 2; }
.card-topic { background: var(--olive-soft); border: 0; color: var(--olive); padding: 4px 10px; border-radius: 999px; font-family: var(--body); font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; transition: background 0.15s, color 0.15s; }
.card-topic:hover { background: var(--olive); color: var(--cream); }
.card-topic:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }

.card h3 { font-size: 19.5px; line-height: 1.24; margin-bottom: 10px; }
.card-link { text-decoration: none; color: inherit; }
/* Stretch the title link over the whole card so the card stays one big target,
   without nesting interactive elements inside an anchor. */
.card-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card p { margin: 0; font-size: 14.5px; line-height: 1.52; color: var(--ink-60); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-40); }
.card-arrow { color: var(--olive); font-weight: 800; transition: transform 0.18s; }
.card:hover .card-arrow { transform: translateX(4px); }

.empty { text-align: center; padding: 76px 20px; color: var(--ink-40); }
.empty h3 { font-size: 23px; color: var(--ink); margin-bottom: 8px; }

/* ── Sections ───────────────────────────────────────────────────────── */
.section { padding: clamp(52px, 7vw, 88px) 0; }
.section-alt { background: var(--cream-deep); }
.section-ink { background: var(--ink); color: var(--cream); }
.section-ink h2, .section-ink h3 { color: var(--cream); }
.section-ink .lede { color: rgba(247, 247, 239, 0.72); }
.section-ink .eyebrow { color: var(--gold); }
.section-head { max-width: 66ch; margin-bottom: 42px; }
.section-head .lede { margin-top: 15px; }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 24px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 27px 25px; box-shadow: var(--shadow); }
.section-ink .tile { background: rgba(255, 255, 255, 0.05); border-color: rgba(247, 247, 239, 0.14); box-shadow: none; }
.tile h3 { margin-bottom: 9px; }
.tile p { margin: 0; font-size: 15px; color: var(--ink-60); line-height: 1.55; }
.section-ink .tile p { color: rgba(247, 247, 239, 0.68); }
.tile-num { font-family: var(--display); font-size: 30px; color: var(--gold); line-height: 1; margin-bottom: 12px; }

/* Program cards */
.program { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; text-decoration: none; color: inherit; transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s; }
.program + .program { margin-top: 15px; }
.program:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: rgba(114, 120, 28, 0.3); }
.program-mark { width: 54px; height: 54px; border-radius: 13px; display: grid; place-items: center; background: var(--olive-soft); color: var(--olive); font-family: var(--display); font-size: 23px; font-weight: 700; }
.program h3 { margin-bottom: 5px; }
.program p { margin: 0; font-size: 14.5px; color: var(--ink-60); }
.program-count { font-size: 13px; font-weight: 700; color: var(--ink-40); white-space: nowrap; text-align: right; }
@media (max-width: 620px) { .program { grid-template-columns: auto 1fr; } .program-count { grid-column: 2; text-align: left; } }

/* ── Curriculum ─────────────────────────────────────────────────────── */
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 15px; overflow: hidden; }
.step > summary { display: flex; align-items: center; gap: 16px; padding: 22px 26px; cursor: pointer; list-style: none; transition: background 0.15s; }
.step > summary::-webkit-details-marker { display: none; }
.step > summary:hover { background: var(--olive-soft); }
.step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--olive); color: var(--cream); display: grid; place-items: center; font-size: 14px; font-weight: 800; flex: none; }
.step-title { flex: 1; }
.step-title strong { display: block; font-family: var(--display); font-size: 20px; font-weight: 700; }
.step-title span { font-size: 14px; color: var(--ink-60); }
.step-meta { font-size: 12.5px; font-weight: 700; color: var(--ink-40); white-space: nowrap; }
.step[open] .step-chev { transform: rotate(180deg); }
.step-chev { color: var(--ink-40); transition: transform 0.2s; flex: none; }
.lessons { list-style: none; margin: 0; padding: 4px 26px 24px; }
.lesson { display: flex; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; }
.lesson-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; transform: translateY(-2px); }
.lesson-dot.planned { background: rgba(17, 17, 17, 0.16); }
.lesson-name { flex: 1; }
.lesson a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold); }
.lesson a:hover { color: var(--olive); border-bottom-color: var(--olive); }
.lesson-tag { font-size: 10.5px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-40); padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.lesson-topic { font-size: 12px; color: var(--ink-40); white-space: nowrap; }

/* ── Sales page pieces ──────────────────────────────────────────────── */
.price-card { background: var(--card); border: 2px solid var(--ink); border-radius: 20px; padding: 38px 36px; max-width: 470px; box-shadow: var(--shadow-lift); }
.price-card.free { border-color: var(--line); border-width: 1px; box-shadow: var(--shadow); }
.price { font-family: var(--display); font-size: 47px; line-height: 1; margin: 14px 0 6px; }
.price span { font-family: var(--body); font-size: 16px; font-weight: 600; color: var(--ink-40); }
.check-list { list-style: none; margin: 24px 0 30px; padding: 0; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; font-size: 15.5px; line-height: 1.5; }
.check-list li::before { content: '✓'; color: var(--olive); font-weight: 800; flex: none; margin-top: 1px; }
.check-list.muted li::before { content: '·'; color: var(--ink-40); font-size: 21px; line-height: 1; }
.price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 26px; align-items: start; }

.faq { border-top: 1px solid var(--line); }
.faq summary { padding: 20px 0; cursor: pointer; font-family: var(--display); font-size: 19px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--olive); }
.faq p { margin: 0 0 22px; color: var(--ink-60); max-width: 68ch; }
.faq[open] summary .faq-sign { transform: rotate(45deg); }
.faq-sign { color: var(--gold); font-size: 23px; font-weight: 400; transition: transform 0.2s; flex: none; }

/* ── Popup ──────────────────────────────────────────────────────────── */
.pop-backdrop { position: fixed; inset: 0; background: rgba(17, 17, 17, 0.55); backdrop-filter: blur(3px); z-index: 100; display: grid; place-items: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.pop-backdrop.show { opacity: 1; pointer-events: auto; }
/* max-height + scroll so the dialog never overflows a short phone once an error
   message pushes it taller. Small phones are the majority of this audience. */
.pop { position: relative; background: var(--cream); border-radius: 20px; max-width: 452px; width: 100%; max-height: 92vh; overflow: hidden auto; padding: 0; box-shadow: 0 30px 70px rgba(17, 17, 17, 0.32); transform: translateY(14px) scale(0.98); transition: transform 0.25s; }
.pop-backdrop.show .pop { transform: none; }
.pop-bar { height: 7px; background: linear-gradient(90deg, var(--gold), var(--olive), var(--gold)); }
.pop-inner { padding: 34px 34px 32px; }
.pop h2 { font-size: 29px; line-height: 1.12; margin-bottom: 11px; }
.pop p { margin: 0 0 22px; font-size: 15.5px; color: var(--ink-60); line-height: 1.5; }
.pop form { display: flex; flex-direction: column; gap: 11px; }
.pop input { padding: 14px 17px; border: 1.5px solid var(--line); border-radius: 11px; font-family: var(--body); font-size: 16px; background: var(--card); color: var(--ink); }
.pop input:focus { outline: 0; border-color: var(--olive); box-shadow: 0 0 0 3px var(--olive-soft); }
.pop .btn { width: 100%; }
.pop-close { position: absolute; top: 15px; right: 15px; width: 33px; height: 33px; border-radius: 50%; border: 0; background: rgba(17, 17, 17, 0.07); color: var(--ink); font-size: 17px; cursor: pointer; display: grid; place-items: center; transition: background 0.15s; }
.pop-close:hover { background: rgba(17, 17, 17, 0.14); }
.pop-fine { margin: 14px 0 0; font-size: 12.5px; color: var(--ink-40); text-align: center; }
.pop-note { margin: 0 0 20px; font-size: 14px; }
.pop-ok { text-align: center; padding: 12px 0 4px; }
.pop-ok .tick { width: 52px; height: 52px; border-radius: 50%; background: var(--olive-soft); color: var(--olive); display: grid; place-items: center; font-size: 26px; margin: 0 auto 16px; }
/* Flows as one paragraph, NOT a flex row — as a flex row the count and the text
   become separate items and wrap into a ragged two-column shape on narrow phones. */
.pop-proof { margin: -6px 0 20px; font-size: 14px; color: var(--ink-60); }
.pop-proof::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--olive); margin-right: 8px; vertical-align: middle; }
.pop-proof strong { color: var(--ink); font-weight: 800; }
.pop-error { margin: 12px 0 0; font-size: 14px; font-weight: 600; color: #9c2b1e; background: rgba(156, 43, 30, 0.07); border-radius: 9px; padding: 10px 13px; }
.pop-error[hidden] { display: none; }
[data-pop-done][hidden], [data-pop-form][hidden] { display: none; }

/* ── Email gate ─────────────────────────────────────────────────────
   The gate is not dismissible, so it gets a heavier scrim and no close
   affordance. The grid behind it is blurred and made inert rather than
   removed, so the page still has its real content for search engines. */
.pop-backdrop.is-gate { background: rgba(17, 17, 17, 0.7); opacity: 1; pointer-events: auto; }
.pop-backdrop.is-gate .pop { transform: none; }

[data-locked] { position: relative; user-select: none; }
[data-locked] .grid { filter: blur(6px); opacity: 0.5; pointer-events: none; }
[data-locked] .controls { pointer-events: none; opacity: 0.55; }
[data-locked]::after { content: ''; position: absolute; inset: 0; z-index: 5; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: rgba(247, 247, 239, 0.68); padding: 58px 0 34px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 34px; border-bottom: 1px solid rgba(247, 247, 239, 0.13); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer .brand { color: var(--cream); font-size: 20px; }
.site-footer h4 { color: var(--cream); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 15px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(247, 247, 239, 0.68); text-decoration: none; transition: color 0.15s; }
.site-footer a:hover { color: var(--gold); }
.footer-note { padding-top: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(247, 247, 239, 0.5); }
.footer-blurb { margin: 13px 0 0; max-width: 44ch; line-height: 1.55; }

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