/* doannguyenhiep.com — editorial personal site */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f4f0;
  --bg-card: #ffffff;
  --ink: #1b1b1b;
  --ink-2: #4a4a48;
  --ink-3: #6f6d68;
  --line: #e6e2da;
  --accent: #b4532a;
  --accent-ink: #ffffff;
  --accent-soft: #f7ebe4;
  --focus: #1d5fd1;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 16, 10, .05), 0 6px 24px rgba(20, 16, 10, .06);
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
  --read: 680px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141412;
    --bg-soft: #1c1b19;
    --bg-card: #201f1c;
    --ink: #f1eee8;
    --ink-2: #c9c5bd;
    --ink-3: #a19d95;
    --line: #34322e;
    --accent: #e0835a;
    --accent-ink: #1a0f0a;
    --accent-soft: #2c211b;
    --focus: #7aa7ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 24px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; font-weight: 600; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1.1em; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; display: block; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 21px; text-decoration: none; letter-spacing: -.01em; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 10px 12px; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--bg-soft); }
.nav .btn-sm { background: var(--ink); color: var(--bg); margin-left: 6px; }
.nav .btn-sm:hover { background: var(--accent); color: var(--accent-ink); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin-left: 8px; }
.lang a { min-height: 34px; padding: 4px 11px; font-size: 13px; font-weight: 600; border-radius: 999px; color: var(--ink-3); }
.lang a[aria-current="true"] { background: var(--ink); color: var(--bg); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 44px; height: 44px; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 20px 18px; display: none; }
  .nav.open { display: flex; }
  .nav .btn-sm { margin: 6px 0 0; justify-content: center; }
  .lang { margin: 10px 0 0; align-self: flex-start; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 8px; border: 1px solid transparent; font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Cover band (home) */
.cover-band { background: radial-gradient(80% 70% at 50% 35%, var(--accent-soft) 0%, transparent 70%), linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%); padding: 44px 0 4px; overflow: hidden; }
.cover-band figure { margin: 0 auto; max-width: 1240px; padding: 0 20px; }
.cover-band img { width: 100%; height: auto; filter: drop-shadow(0 16px 28px rgba(60, 30, 12, .22)); animation: cover-in .9s cubic-bezier(.2, .7, .2, 1) both; }
.cover-band figcaption { text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(17px, 2vw, 21px); color: var(--ink-2); margin-top: 14px; }
@keyframes cover-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.cover-band + .hero { padding-top: 56px; }
@media (max-width: 640px) { .cover-band { padding-top: 24px; } .cover-band figure { padding: 0 8px; } .cover-band + .hero { padding-top: 36px; } }

/* Hero */
.hero { padding: 84px 0 72px; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead { font-size: 19px; color: var(--ink-2); max-width: 600px; }
.portrait { aspect-ratio: 1; width: 100%; max-width: 400px; justify-self: center; border-radius: 50%; position: relative; }
.portrait::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid var(--line); }
.portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; box-shadow: 0 18px 50px rgba(20, 16, 10, .18); }
@media (max-width: 860px) { .hero { padding: 48px 0; } .hero .wrap { grid-template-columns: 1fr; gap: 36px; } .portrait { max-width: 240px; justify-self: start; } }

/* Newsletter form */
.subscribe { display: flex; gap: 10px; margin-top: 28px; max-width: 520px; flex-wrap: wrap; }
.subscribe label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.subscribe input { flex: 1 1 240px; min-height: 52px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-card); color: var(--ink); font: 400 16px var(--sans); }
.subscribe input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 35%, transparent); }
.subscribe .btn { min-height: 52px; }
.form-note { font-size: 14px; color: var(--ink-3); margin-top: 12px; }
.form-msg { font-size: 14px; margin-top: 10px; color: var(--accent); min-height: 1.4em; }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0; }
.section-head a { font-weight: 600; font-size: 15px; }

/* Featured card */
.featured { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.featured:hover { color: inherit; transform: translateY(-2px); }
.featured .cover { min-height: 300px; }
.featured .body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.featured h3 { font-size: clamp(26px, 3vw, 34px); }
.featured p { color: var(--ink-2); }
.meta { font-size: 14px; color: var(--ink-3); display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.meta .dot::before { content: "•"; margin-right: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; font-size: 12px; font-weight: 600; border-radius: 999px; background: var(--accent-soft); color: var(--accent); letter-spacing: .02em; }
@media (max-width: 760px) { .featured { grid-template-columns: 1fr; } .featured .cover { min-height: 200px; } .featured .body { padding: 26px; } }

.cover { background: radial-gradient(120% 90% at 20% 15%, #e9b08e 0%, transparent 55%), radial-gradient(100% 100% at 85% 90%, #6d2f17 0%, transparent 60%), #b4532a; position: relative; display: grid; place-items: center; padding: 30px; }
.cover .cover-title { font-family: var(--serif); color: #fff8f2; font-size: clamp(24px, 3vw, 34px); font-style: italic; text-align: center; line-height: 1.15; text-shadow: 0 2px 20px rgba(0,0,0,.2); }
.cover .cover-title small { display: block; font-style: normal; font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin-top: 14px; opacity: .85; }

/* Topics grid */
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.topic { display: block; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-card); text-decoration: none; transition: border-color .18s ease, transform .18s ease; }
.topic:hover { border-color: var(--accent); color: inherit; transform: translateY(-2px); }
.topic svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 14px; }
.topic h3 { font-size: 19px; margin-bottom: 6px; }
.topic p { font-size: 15px; color: var(--ink-3); margin: 0; }

/* Article list */
.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; padding: 26px 4px; text-decoration: none; }
.post-list a:hover h3 { color: var(--accent); }
.post-list h3 { font-size: 23px; margin: 0; transition: color .18s ease; }
.post-list p { grid-column: 1; margin: 0; color: var(--ink-2); font-size: 16px; }
.post-list .meta { grid-column: 2; grid-row: 1 / span 2; align-self: center; white-space: nowrap; }
@media (max-width: 640px) { .post-list a { grid-template-columns: 1fr; } .post-list .meta { grid-column: 1; grid-row: auto; } }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filters button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-card); color: var(--ink-2); font: 500 14px var(--sans); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.empty { color: var(--ink-3); padding: 30px 0; display: none; }

/* CTA band */
.cta { text-align: center; }
.cta h2 { font-size: clamp(28px, 4vw, 40px); }
.cta p { color: var(--ink-2); max-width: 560px; margin: 0 auto; }
.cta .subscribe { margin: 28px auto 0; justify-content: center; }

/* Page header */
.page-head { padding: 72px 0 40px; }
.page-head h1 { font-size: clamp(34px, 5vw, 50px); }
.page-head p { font-size: 19px; color: var(--ink-2); max-width: 640px; }

/* Article */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 60; }
.article-head { max-width: var(--read); margin: 0 auto; padding: 64px 20px 28px; text-align: center; }
.article-head h1 { font-size: clamp(36px, 6vw, 56px); margin-bottom: 18px; }
.article-head .subtitle { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink-2); }
.article-head .meta { justify-content: center; margin-top: 18px; }
.byline { display: inline-flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--accent-soft); flex: none; }

.resources { max-width: 760px; margin: 0 auto 48px; padding: 0 20px; }
.resources-box { border: 1px solid var(--line); border-radius: 16px; background: var(--bg-soft); padding: 22px; }
.resources-box > h2 { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 16px; }
.res { background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.res + .res { margin-top: 12px; }
.res-top { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.res-icon { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); }
.res-icon svg { width: 22px; height: 22px; }
.res-info { flex: 1 1 200px; min-width: 0; }
.res-info strong { display: block; font-size: 16px; line-height: 1.35; }
.res-info span { font-size: 13px; color: var(--ink-3); }
.res-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.res-actions .btn { min-height: 44px; padding: 0 16px; font-size: 14px; }
.res.pending { background: transparent; border-style: dashed; }
.res.pending .res-icon { background: var(--bg-soft); color: var(--ink-3); }
.soon { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-3); font-size: 13px; font-weight: 600; }
.pdf-frame { margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #525659; }
.pdf-frame iframe { display: block; width: 100%; height: min(80vh, 900px); border: 0; }
.pdf-frame[hidden] { display: none; }
@media (max-width: 560px) { .res-actions { width: 100%; } .res-actions .btn { flex: 1; padding: 0 10px; gap: 6px; white-space: nowrap; } }

/* Audio player */
.player { margin-top: 16px; display: flex; align-items: center; gap: 14px; }
.play-btn { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; flex: none; transition: transform .12s ease, background .18s ease; }
.play-btn:hover { background: var(--ink); color: var(--bg); }
.play-btn:active { transform: scale(.96); }
.play-btn svg { width: 22px; height: 22px; }
.track { flex: 1; min-width: 0; }
.track input[type="range"] { width: 100%; accent-color: var(--accent); height: 28px; cursor: pointer; margin: 0; }
.times { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.speed { min-height: 40px; min-width: 52px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-card); color: var(--ink-2); font: 600 13px var(--sans); cursor: pointer; }

.prose { max-width: var(--read); margin: 0 auto; padding: 0 20px 40px; font-size: 19px; line-height: 1.75; }
.prose p { margin-bottom: 1.25em; }
.prose h2 { font-size: 28px; margin: 2em 0 .7em; }
.prose h2 .num { color: var(--accent); margin-right: .25em; }
.prose blockquote { margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--ink); }
.prose .dropcap { display: flow-root; }
.prose .dropcap::first-letter { font-family: var(--serif); float: left; font-size: 3.4em; line-height: .9; padding: 6px 10px 0 0; color: var(--accent); font-weight: 700; }
.prose .litany p { margin: 0 0 .35em; font-family: var(--serif); font-size: 22px; }
.prose .closing { font-family: var(--serif); font-size: 22px; }
.toc { max-width: var(--read); margin: 0 auto 36px; padding: 0 20px; }
.toc details { border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; }
.toc summary { cursor: pointer; font-weight: 600; min-height: 48px; display: flex; align-items: center; }
.toc ol { margin: 0 0 14px; padding-left: 22px; font-size: 16px; }
.toc li { margin: 6px 0; }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--accent); }

.article-foot { max-width: var(--read); margin: 0 auto; padding: 0 20px 64px; }
.author-box { display: flex; gap: 18px; padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); align-items: flex-start; }
.author-box .avatar { width: 64px; height: 64px; }
.author-box h3 { font-size: 19px; margin-bottom: 4px; }
.author-box p { font-size: 15px; color: var(--ink-2); margin: 0; }
.share { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 32px; font-size: 14px; color: var(--ink-3); }
.share a, .share button { min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink-2); background: var(--bg-card); font: 500 14px var(--sans); cursor: pointer; }
.read-next { display: block; text-decoration: none; padding: 22px 24px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-card); transition: border-color .18s ease, transform .18s ease; }
.read-next:hover { color: inherit; border-color: var(--accent); transform: translateY(-2px); }
.read-next .eyebrow { margin-bottom: 6px; }
.read-next strong { display: block; font-family: var(--serif); font-size: 22px; line-height: 1.25; margin-bottom: 6px; }
.read-next span:last-child { font-size: 15px; color: var(--ink-2); }
.lang-note { max-width: var(--read); margin: 0 auto 28px; padding: 0 20px; }
.lang-note p { font-size: 15px; color: var(--ink-3); margin: 0; padding: 12px 16px; border-radius: 10px; background: var(--bg-soft); border: 1px dashed var(--line); }

/* About */
.about { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: start; }
.about .portrait { justify-self: start; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; gap: 28px; } .about .portrait { max-width: 200px; } }
.about .prose { padding: 0; margin: 0; }

/* ---------- Membership ---------- */
/* Gate: non-members see only the intro (everything before the first h2) */
html:not(.is-member):not(.open-access) article[data-gated] .prose h2:first-of-type,
html:not(.is-member):not(.open-access) article[data-gated] .prose h2:first-of-type ~ *,
html:not(.is-member):not(.open-access) article[data-gated] .resources,
html:not(.is-member):not(.open-access) article[data-gated] .toc,
html:not(.is-member):not(.open-access) article[data-gated] .lang-note { display: none; }
html.is-member .paywall, html.open-access .paywall { display: none; }
html:not(.is-member):not(.open-access) article[data-gated] .prose { padding-bottom: 0; }

/* Trial period (html.open-access): podcast is free, paid sign-up shown as "opening soon" */
.trial-only { display: none; }
html.open-access .trial-only { display: block; }
html.open-access .btn.trial-only { display: inline-flex; }
html.open-access .guest-only,
html.open-access .paid-only,
html.open-access .lock-badge { display: none; }
html.open-access .pod-hero .member-only { display: flex; }
.trial-note { max-width: 760px; margin: 0 auto 24px; padding: 14px 18px; border-radius: 12px; background: #e5f2ea; color: #1f4d33; border: 1px solid #c4e2cf; font-size: 15px; line-height: 1.55; text-align: left; }
.trial-note strong { color: #17603a; }
.trial-note a { color: #17603a; font-weight: 600; }
@media (prefers-color-scheme: dark) { .trial-note { background: #16291f; color: #bfe3cc; border-color: #24452f; } .trial-note strong, .trial-note a { color: #8fd4a9; } }
.article-head + .trial-note { margin: 0 auto 24px; width: calc(100% - 40px); }
.trial-inline { display: none; }
html.open-access .trial-inline { display: inline; }
.btn[disabled] { opacity: .65; cursor: not-allowed; }

.paywall { max-width: var(--read); margin: 0 auto 56px; padding: 0 20px; position: relative; }
.paywall::before { content: ""; position: absolute; left: 0; right: 0; top: -120px; height: 120px; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
.paywall-card { border: 1px solid var(--line); border-radius: 18px; background: var(--bg-soft); padding: 32px 28px; text-align: center; box-shadow: var(--shadow); }
.paywall-card .lock { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 14px; }
.paywall-card .lock svg { width: 22px; height: 22px; }
.paywall-card h2 { font-size: clamp(24px, 3.4vw, 30px); margin-bottom: 10px; }
.paywall-card > p { color: var(--ink-2); max-width: 500px; margin: 0 auto 18px; }
.pw-perks { list-style: none; padding: 0; margin: 0 auto 22px; display: inline-grid; gap: 8px; text-align: left; font-size: 15px; }
.pw-perks li { display: flex; gap: 10px; align-items: flex-start; }
.pw-perks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }
.pw-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pw-price { font-size: 14px; color: var(--ink-3); margin: 14px 0 0; }
.lock-badge { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; margin-left: 10px; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: 600 12px/1.6 var(--sans); letter-spacing: .02em; }
.lock-badge svg { width: 11px; height: 11px; }
html.is-member .lock-badge { display: none; }

/* Membership page */
.m-hero { padding: 80px 0 64px; text-align: center; border-bottom: 1px solid var(--line); background: radial-gradient(70% 80% at 50% 0%, var(--accent-soft), transparent 70%); }
.m-hero h1 { font-size: clamp(36px, 6vw, 60px); max-width: 820px; margin: 0 auto 18px; }
.m-hero h1 em { color: var(--accent); }
.m-hero .lead { font-size: 19px; color: var(--ink-2); max-width: 620px; margin: 0 auto 28px; }
.m-hero .pw-actions .btn { min-width: 180px; }
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.perk { padding: 26px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-card); }
.perk svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 14px; }
.perk h3 { font-size: 20px; margin-bottom: 6px; }
.perk p { font-size: 15px; color: var(--ink-2); margin: 0; }
.m-quote { display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: center; max-width: 820px; margin: 0 auto; }
.m-quote img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.m-quote blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.45; }
.m-quote cite { display: block; margin-top: 12px; font: 600 14px var(--sans); font-style: normal; color: var(--ink-3); }
@media (max-width: 600px) { .m-quote { grid-template-columns: 1fr; text-align: center; } .m-quote img { margin: 0 auto; width: 96px; height: 96px; } }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 780px; margin: 0 auto; }
.plan { position: relative; padding: 32px 28px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-card); display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan .tag { position: absolute; top: -13px; left: 28px; background: var(--accent); color: var(--accent-ink); font: 700 12px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; }
.plan h3 { font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.plan .price { font-family: var(--serif); font-size: 52px; font-weight: 700; line-height: 1; }
.plan .price small { font: 500 16px var(--sans); color: var(--ink-3); margin-left: 4px; }
.plan .note { font-size: 14px; color: var(--ink-3); margin: 8px 0 20px; min-height: 1.5em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; font-size: 15px; flex: 1; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.plan .btn { width: 100%; }
.faq { max-width: var(--read); margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; color: var(--accent); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 0 0 18px; }
.account-card { max-width: 560px; margin: 0 auto; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-card); }
.account-card dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0 0 20px; }
.account-card dt { color: var(--ink-3); font-size: 14px; }
.account-card dd { margin: 0; font-weight: 600; word-break: break-all; }
.account-card[hidden], #account[hidden] { display: none; }
.member-only { display: none; }
html.is-member .member-only { display: block; }
html.is-member .guest-only { display: none; }

/* Join / sign-in dialog */
.m-dialog { border: 0; border-radius: 18px; padding: 30px 26px 24px; width: min(440px, calc(100vw - 32px)); background: var(--bg); color: var(--ink); box-shadow: 0 24px 80px rgba(0,0,0,.3); }
.m-dialog::backdrop { background: rgba(20, 16, 10, .55); backdrop-filter: blur(2px); }
.m-dialog h2 { font-size: 26px; margin: 0 0 18px; padding-right: 36px; }
.m-close-form { position: absolute; top: 12px; right: 12px; margin: 0; }
.m-x { width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink-3); font-size: 28px; line-height: 1; cursor: pointer; border-radius: 8px; }
.m-x:hover { background: var(--bg-soft); color: var(--ink); }
.m-plans { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.m-plans[hidden] { display: none; }
.m-plans legend { font-size: 14px; color: var(--ink-3); margin-bottom: 8px; padding: 0; }
.m-plan { display: block; cursor: pointer; }
.m-plan input { position: absolute; opacity: 0; pointer-events: none; }
.m-plan span { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; }
.m-plan em { font-style: normal; color: var(--ink-2); }
.m-plan input:checked + span { border: 2px solid var(--accent); background: var(--accent-soft); }
.m-plan input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.m-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.m-form input[type=email] { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-card); color: var(--ink); font: 400 16px var(--sans); }
.m-form input[type=email]:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 35%, transparent); }
.m-error { color: #c0392b; font-size: 14px; min-height: 1.4em; margin: 6px 0 8px; }
.m-submit { width: 100%; }
.m-demo { font-size: 13px; color: var(--ink-3); background: var(--bg-soft); border-radius: 8px; padding: 10px 12px; margin: 14px 0 0; }
.m-demo[hidden] { display: none; }
.m-switch { font-size: 14px; color: var(--ink-3); text-align: center; margin: 14px 0 0; }
.m-link { background: none; border: 0; padding: 0; font: 600 14px var(--sans); color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.m-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 10px; font-size: 15px; z-index: 100; box-shadow: var(--shadow); transition: opacity .4s ease, transform .4s ease; max-width: calc(100vw - 32px); }
.m-toast.out { opacity: 0; transform: translate(-50%, 10px); }

/* ---------- Podcast ---------- */
.pod-hero { padding: 64px 0 56px; border-bottom: 1px solid var(--line); background: radial-gradient(60% 90% at 15% 0%, var(--accent-soft), transparent 70%); }
.pod-hero .wrap { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: center; }
.pod-art { width: 240px; height: 240px; border-radius: 22px; object-fit: cover; box-shadow: 0 18px 44px rgba(40, 20, 8, .25); background: #111; }
.pod-hero h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 14px; }
.pod-hero .lead { font-size: 18px; color: var(--ink-2); max-width: 620px; }
.pod-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--ink-3); margin: 0 0 22px; }
.pod-stats span + span::before { content: "•"; margin-right: 18px; }
@media (max-width: 720px) { .pod-hero { padding: 40px 0; } .pod-hero .wrap { grid-template-columns: 1fr; gap: 24px; } .pod-art { width: 140px; height: 140px; border-radius: 16px; } }

.ep-list a { grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 22px; }
.ep-list .ep-num { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); font: 700 11px/1 var(--sans); letter-spacing: .12em; color: var(--ink-3); }
.ep-list .ep-num b { font: 700 24px/1.1 var(--serif); color: var(--accent); letter-spacing: 0; margin-top: 3px; }
.ep-list .ep-body { display: block; min-width: 0; }
.ep-list .ep-body h3 { margin-bottom: 6px; }
.ep-list .ep-body p { margin-bottom: 8px; }
.ep-list .ep-body .meta { display: block; white-space: normal; }
.ep-list .ep-play { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); transition: transform .15s ease, background .18s ease; }
.ep-list .ep-play svg { width: 20px; height: 20px; margin-left: 2px; }
.ep-list a:hover .ep-play { transform: scale(1.06); background: var(--ink); color: var(--bg); }
@media (max-width: 640px) { .ep-list a { grid-template-columns: auto 1fr; align-items: start; } .ep-list .ep-play { display: none; } .ep-list .ep-num { width: 52px; height: 52px; } .ep-list .ep-num b { font-size: 20px; } }

.ep-no { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: var(--bg); margin-right: 6px; vertical-align: middle; }
.transcript-head { max-width: var(--read); margin: 0 auto 14px; padding: 0 20px; }
.transcript-head .eyebrow { margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); display: block; }

/* ---------- Free articles ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 13px; color: var(--ink-3); margin-bottom: 16px; }
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.free-tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font: 700 12px/1.3 var(--sans); letter-spacing: .04em; background: #e5f2ea; color: #1f6b3d; vertical-align: middle; }
@media (prefers-color-scheme: dark) { .free-tag { background: #193326; color: #8fd4a9; } }
.post-list h3 .free-tag { margin-left: 10px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.4em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--accent); }
.prose h3 { font-size: 21px; margin: 1.6em 0 .5em; }
.promo { display: grid; grid-template-columns: 1fr auto; gap: 18px 24px; align-items: center; margin: 2.2em 0; padding: 24px; border-radius: 16px; background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--accent); font-size: 16px; line-height: 1.6; }
.promo .eyebrow { margin-bottom: 6px; }
.promo-title { font-family: var(--serif); font-size: 21px; font-weight: 600; margin: 0 0 6px !important; line-height: 1.3; }
.promo-body p:last-child { margin: 0; color: var(--ink-2); }
.promo-actions { display: flex; flex-direction: column; gap: 8px; }
.promo-actions .btn { min-height: 44px; font-size: 14px; white-space: nowrap; }
.promo-end { margin: 0 0 32px; }
@media (max-width: 640px) { .promo { grid-template-columns: 1fr; } .promo-actions { flex-direction: row; flex-wrap: wrap; } .promo-actions .btn { flex: 1; } }
.related { max-width: var(--read); margin: 8px auto 32px; padding: 0 20px; }
.related h2 { font-size: 24px; margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.related-grid a { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; background: var(--bg-card); transition: border-color .18s ease, transform .18s ease; }
.related-grid a:hover { color: inherit; border-color: var(--accent); transform: translateY(-2px); }
.related-grid .ep-no { align-self: flex-start; margin: 0; }
.related-grid strong { font-family: var(--serif); font-size: 18px; line-height: 1.3; }
.related-grid span:last-child { font-size: 14px; color: var(--ink-3); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 15px; color: var(--ink-3); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; color: var(--ink-2); }
.site-footer a:hover { color: var(--accent); }
