/*
Theme Name: Yangmingism Library
Theme URI: https://yangmingism.com
Author: Yangmingism
Description: A calm, text-first reading library for Wang Yangming's writings and philosophy.
Version: 1.10.17
Text Domain: yangmingism
*/

:root {
  --ink: #1f1f1f;
  --muted: #70736f;
  --paper: #fff9ed;
  --paper-deep: #f4eadb;
  --card: #fffdfa;
  --line: #e4d9c8;
  --green: #244d3b;
  --green-soft: #dfe8df;
  --red: #9b3f32;
  --gold: #ffc124;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --content: 1180px;
}

/* Cute illustrated direction — v1.2 */
:root { --display: "Hannotate SC", "Kaiti SC", "STKaiti", var(--serif); }
body { background: #fffdf8; }
.site-header { background: rgba(255,253,248,.96); border-bottom-color: #f0e5d4; }
.brand-mark { color: #34291d; background: #ffd55c; border: 2px solid #44362a; font-family: var(--display); font-weight: 800; }
.brand-text { font-family: var(--display); font-size: 23px; font-weight: 900; }
.site-nav .current-menu-item a { position: relative; color: #211d18; }
.site-nav .current-menu-item a::after { content: ""; position: absolute; left: 15%; right: 15%; bottom: -10px; height: 3px; border-radius: 99px; background: #ffc62f; }
.header-cta { background: #ffd052; box-shadow: 0 7px 18px rgba(211,156,0,.15); }

.home-hero { min-height: 650px; background: #fffdf8 url("assets/images/chibi-hero-male-thinking-v6.webp") center / cover no-repeat; }
.home-hero-inner { min-height: 650px; }
.home-hero-copy { width: min(52%, 650px); }
.home-kicker { color: #92897c; font-weight: 800; }
.home-hero h1 { font-family: var(--display); font-size: clamp(52px, 5.6vw, 80px); font-weight: 900; letter-spacing: -.02em; line-height: 1.08; }
.home-hero h1 span::after { bottom: -.01em; height: .13em; background: #ffd13f; }
.home-hero-subtitle { font-family: var(--display); font-size: clamp(21px, 2vw, 28px); font-weight: 900; }
.home-button { border: 2px solid transparent; }
.home-button-primary { background: #ffcc3f; box-shadow: 0 9px 20px rgba(226,164,0,.18); }
.home-button-primary:hover { background: #ffc022; }
.home-link { text-decoration-color: #ffc62f; }
.home-section-heading h2, .featured-reading-copy h2, .public-learning-section h2, .home-biography-section h2, .home-final-cta h2 { font-family: var(--display); font-weight: 900; letter-spacing: -.01em; }
.home-section-heading.centered h2 { display: inline-block; position: relative; z-index: 1; }
.home-section-heading.centered h2::after { content: ""; position: absolute; z-index: -1; left: 32%; right: 32%; bottom: -.12em; height: 8px; border-radius: 99px; background: #ffd13f; transform: rotate(-1deg); }

.problem-section { background: #fffefa; }
.problem-grid { gap: 14px; }
.problem-card { border-color: #eee5d7; border-radius: 18px; box-shadow: 0 8px 26px rgba(90,64,26,.05); }
.problem-art { height: 230px; background: #f8f2e8; }
.problem-art::after, .problem-art i, .problem-art span { display: none; }
.problem-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.problem-card-body { padding: 22px; text-align: center; }
.problem-card h3 { font-family: var(--display); font-size: 22px; font-weight: 900; }
.problem-card p { min-height: 54px; }

.mechanism-section { background: #fffaf1; }
.mechanism-grid { gap: 14px; }
.mechanism-card { overflow: hidden; min-height: 470px; padding: 0 22px 26px; border-color: #eadfce; border-radius: 18px; background: #fff; text-align: center; box-shadow: 0 9px 28px rgba(78,57,24,.05); }
.mechanism-number { z-index: 2; top: 16px; right: 16px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #3d3428; background: #ffd052; font-weight: 900; }
.mechanism-art { height: 245px; margin: 0 -22px 20px; overflow: hidden; background: #f3f5e9; }
.mechanism-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mechanism-card h3 { margin: 0 0 6px; font-family: var(--display); font-size: 25px; font-weight: 900; }
.mechanism-card p { min-height: auto; margin-bottom: 9px; }
.mechanism-card strong { margin: 0 0 18px; font-family: var(--sans); font-size: 14px; }
.mechanism-card a { position: static; display: inline-block; color: #6f5200; }

.featured-reading-section { background: linear-gradient(135deg, #f1f6e7, #fff9e9); }
.featured-reading-copy h2 { line-height: 1.16; }
.featured-book-card { border-radius: 22px; background: rgba(255,255,255,.9); }
.featured-book-card::before { border-radius: 0 0 10px 10px; background: #ee9a5f; }
.book-label { color: #ba6d33; }
.featured-book-card h3, .featured-book-card blockquote { font-family: var(--display); font-weight: 800; }

.reading-demo-section { background: #fffefa; }
.reading-demo { border-radius: 24px; background: #fff; box-shadow: 0 12px 36px rgba(79,59,27,.07); }
.demo-tabs .active { background: #ffd95f; }
.demo-content blockquote { font-family: var(--display); font-weight: 800; }

.journey-section { background: #fffaf0; }
.journey-list li > div { border: 5px solid #fff; border-radius: 50%; background: linear-gradient(145deg, #ffdd6d, #f1f5d7); box-shadow: 0 8px 22px rgba(111,82,23,.09); font-family: var(--display); font-weight: 900; }
.journey-list h3 { font-family: var(--display); font-size: 23px; font-weight: 900; }

.public-learning-section { position: relative; overflow: hidden; color: #34291d; background: linear-gradient(120deg, #fff4bf, #ffe291); }
.public-learning-section::after { content: ""; position: absolute; right: -40px; bottom: -90px; width: 330px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.28); }
.public-learning-grid { position: relative; z-index: 1; }
.public-learning-section .home-kicker { color: #7b6545; }
.public-learning-section h2 { color: #2d261e; }
.public-learning-section p { color: #695d4a; }
.learning-benefits li { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.68); }
.learning-benefits li span { color: #fff; background: #6e9c59; }
.public-learning-section .home-link { color: #2d261e; }

.faq-section { background: #fffefa; }
.faq-list details { border-color: #e9ddcb; }
.faq-list summary { font-family: var(--display); font-size: 21px; }
.home-biography-section { background: linear-gradient(135deg, #f0f6e5, #fff7df); }
.home-bio-seal { border: 5px solid #fff; color: #493e31; background: #ffd45a; box-shadow: 0 12px 32px rgba(101,76,24,.12); font-family: var(--display); font-weight: 900; }
.home-final-cta { background: #fffefa; }

.site-footer { color: #77736b; background: #fffaf0; border-top: 1px solid #eee2d1; }
.footer-main h2 { color: #25211d; font-family: var(--display); font-weight: 900; }
.footer-nav a { color: #4c4943; }
.footer-bottom { border-top-color: #e8dccb; }

@media (max-width: 900px) {
  .home-hero { background-position: 58% center; }
  .home-hero::before { background: linear-gradient(90deg, rgba(255,253,248,.99) 0%, rgba(255,253,248,.91) 56%, rgba(255,253,248,.05) 100%); }
  .home-hero-copy { width: 62%; }
  .problem-art { height: 260px; }
  .mechanism-card { min-height: 500px; }
  .mechanism-art { height: 290px; }
}

@media (max-width: 620px) {
  .site-nav .current-menu-item a::after { display: none; }
  .home-hero { background-image: linear-gradient(180deg, rgba(255,253,248,.03), rgba(255,253,248,.98) 69%), url("assets/images/chibi-hero-male-thinking-v6.webp"); background-position: 62% top; background-size: auto 300px; }
  .home-hero-inner { padding-top: 245px; }
  .home-hero h1 { font-size: clamp(42px, 12.5vw, 58px); }
  .problem-card { display: block; }
  .problem-art { height: auto; aspect-ratio: 1 / .82; min-height: 0; }
  .problem-card-body { padding: 22px; }
  .mechanism-card { min-height: auto; padding-bottom: 28px; }
  .mechanism-art { height: auto; aspect-ratio: 1 / 1.05; }
  .mechanism-card strong { min-height: 0; }
  .public-learning-section { text-align: center; }
  .learning-benefits li { text-align: left; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; }
button, input { font: inherit; }
:where(a, button, input, summary):focus-visible { outline: 3px solid #1d66b1; outline-offset: 3px; }
.wrap { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link:focus { clip: auto; width: auto; height: auto; top: 8px; left: 8px; z-index: 999; padding: 8px 14px; background: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 241, 232, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  aspect-ratio: 1;
  color: #fff;
  background: var(--red);
  border-radius: 50% 48% 46% 52%;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1;
}
.brand-text { font-family: var(--serif); font-weight: 700; font-size: 21px; letter-spacing: .08em; }
.site-nav { display: block; }
.site-menu { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; font-size: 15px; font-weight: 600; }
.site-nav .current-menu-item a, .site-nav a:hover { color: var(--red); }
.header-search { position: relative; }
.header-search input {
  width: 180px;
  padding: 9px 38px 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255,255,255,.6);
}
.header-search button { position: absolute; inset: 0 5px 0 auto; border: 0; background: transparent; cursor: pointer; color: var(--green); }
.menu-toggle { display: none; border: 0; padding: 8px; background: none; cursor: pointer; }
.header-cta { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; padding: 10px 18px; border-radius: 999px; color: var(--ink); background: var(--gold); font-size: 14px; font-weight: 700; text-decoration: none; }
.header-cta:hover { color: var(--ink); background: #f2b300; }

.hero { position: relative; overflow: hidden; padding: clamp(78px, 12vw, 150px) 0 90px; border-bottom: 1px solid var(--line); }
.hero::after {
  content: "知行";
  position: absolute;
  top: -55px;
  right: max(2vw, calc((100vw - var(--content))/2 - 40px));
  color: rgba(36,77,59,.055);
  font-family: var(--serif);
  font-size: clamp(180px, 28vw, 420px);
  font-weight: 700;
  line-height: 1;
  writing-mode: vertical-rl;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.eyebrow { margin: 0 0 18px; color: var(--red); font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.hero h1 { max-width: 720px; margin: 0 0 26px; font-family: var(--serif); font-size: clamp(48px, 7vw, 88px); line-height: 1.08; letter-spacing: .04em; }
.hero-lead { max-width: 630px; margin: 0 0 36px; color: #4e564e; font-family: var(--serif); font-size: clamp(20px, 2.1vw, 27px); line-height: 1.75; }
.button { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border: 1px solid var(--green); border-radius: 2px; color: #fff; background: var(--green); font-size: 15px; font-weight: 700; text-decoration: none; }
.button:hover { color: #fff; background: #183a2b; }
.button.ghost { color: var(--green); background: transparent; }
.button.ghost:hover { color: #fff; background: var(--green); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.section { padding: clamp(64px, 8vw, 105px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.section-head h2, .page-header h1 { margin: 0; font-family: var(--serif); font-size: clamp(34px, 4vw, 54px); line-height: 1.25; letter-spacing: .04em; }
.section-head p { max-width: 520px; margin: 0; color: var(--muted); }
.text-link { color: var(--green); font-weight: 700; white-space: nowrap; }

.path-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.path-card { min-height: 260px; padding: 30px; border: 1px solid var(--line); background: rgba(255,253,248,.72); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.path-card:hover { transform: translateY(-4px); color: var(--ink); box-shadow: 0 14px 30px rgba(43,38,30,.08); }
.path-no { color: var(--red); font-family: var(--serif); font-size: 14px; }
.path-card h3 { margin: 52px 0 10px; font-family: var(--serif); font-size: 25px; }
.path-card p { margin: 0; color: var(--muted); font-size: 15px; }

.classic-feature { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 430px; color: #f9f6ed; background: var(--green); }
.classic-quote { display: flex; flex-direction: column; justify-content: center; padding: clamp(38px, 6vw, 72px); }
.classic-quote blockquote { margin: 0 0 30px; font-family: var(--serif); font-size: clamp(28px, 3.7vw, 48px); line-height: 1.55; }
.classic-quote p { margin: 0; color: #cbd8ce; }
.classic-list { padding: 30px 42px; background: #1d3f31; }
.classic-row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.14); text-decoration: none; }
.classic-row:last-child { border-bottom: 0; }
.classic-row:hover { color: #eed4a7; }
.classic-row small { color: #9fb3a5; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { display: flex; flex-direction: column; min-height: 280px; padding: 28px; border: 1px solid var(--line); background: var(--card); }
.post-card .meta, .entry-meta { color: var(--muted); font-size: 13px; letter-spacing: .04em; }
.post-card h2, .post-card h3 { margin: 20px 0 12px; font-family: var(--serif); font-size: 25px; line-height: 1.45; }
.post-card h2 a, .post-card h3 a { text-decoration: none; }
.post-card p { color: var(--muted); font-size: 15px; }
.post-card .read-more { margin-top: auto; color: var(--green); font-size: 14px; font-weight: 700; }

.search-panel { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: center; padding: clamp(42px, 6vw, 74px); color: #fff; background: var(--red); }
.search-panel h2 { margin: 0; font-family: var(--serif); font-size: clamp(34px, 4vw, 52px); }
.big-search { display: flex; border-bottom: 2px solid rgba(255,255,255,.8); }
.big-search input { width: 100%; padding: 18px 0; border: 0; outline: none; color: #fff; background: transparent; font-family: var(--serif); font-size: 22px; }
.big-search input::placeholder { color: rgba(255,255,255,.68); }
.big-search button { border: 0; color: #fff; background: transparent; cursor: pointer; font-size: 20px; }

/* Homepage landing page */
.home-hero { min-height: 690px; background: #f9edda url("assets/images/yangming-hero.webp") center / cover no-repeat; border-bottom: 1px solid #f0e3cf; }
.home-hero-inner { min-height: 690px; display: flex; align-items: center; }
.home-hero-copy { width: min(58%, 680px); padding: 70px 0 52px; }
.home-kicker { margin: 0 0 14px; color: #817d72; font-size: 14px; font-weight: 700; letter-spacing: .14em; }
.home-hero h1 { margin: 0; color: #151719; font-family: var(--serif); font-size: clamp(48px, 5.4vw, 78px); line-height: 1.19; letter-spacing: .01em; }
.home-hero h1 span { position: relative; z-index: 1; white-space: nowrap; }
.home-hero h1 span::after { content: ""; position: absolute; z-index: -1; left: -2%; right: -2%; bottom: .06em; height: .18em; border-radius: 99px; background: var(--gold); transform: rotate(-1.5deg); }
.home-hero-subtitle { margin: 22px 0 6px; color: #242626; font-family: var(--serif); font-size: clamp(20px, 2vw, 26px); font-weight: 700; }
.home-hero-description { max-width: 570px; margin: 0; color: #6f736f; font-size: 16px; line-height: 1.9; }
.home-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 28px; }
.home-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 52px; padding: 12px 26px; border-radius: 999px; color: var(--ink); font-weight: 700; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.home-button:hover { color: var(--ink); transform: translateY(-2px); }
.home-button-primary { background: var(--gold); box-shadow: 0 10px 24px rgba(199,144,0,.16); }
.home-button-primary:hover { background: #f4b700; box-shadow: 0 13px 28px rgba(199,144,0,.24); }
.home-link { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.home-link:hover { color: #695000; }
.home-section { padding: clamp(72px, 8vw, 112px) 0; }
.home-section-heading { margin-bottom: 42px; }
.home-section-heading.centered { text-align: center; }
.home-section-heading.compact { margin-bottom: 28px; }
.home-section-heading h2, .featured-reading-copy h2, .public-learning-section h2, .home-biography-section h2, .home-final-cta h2 { margin: 0; color: var(--ink); font-family: var(--serif); font-size: clamp(34px, 4vw, 52px); line-height: 1.3; }
.home-section-heading > p:last-child { max-width: 650px; margin: 12px auto 0; color: #85877f; }
.home-section-heading:not(.centered) > p:last-child { margin-left: 0; }

.problem-section { background: #fff; }
.problem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.problem-card { overflow: hidden; border: 1px solid #eee4d6; border-radius: 16px; background: var(--card); box-shadow: 0 10px 34px rgba(71,53,25,.05); transition: transform .2s ease, box-shadow .2s ease; }
.problem-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(71,53,25,.1); }
.problem-art { position: relative; height: 170px; overflow: hidden; background: linear-gradient(145deg, #ffefd9, #f4efe3); }
.problem-art::after { content: ""; position: absolute; inset: auto -25px -45px 20%; height: 125px; border-radius: 50% 50% 0 0; background: linear-gradient(135deg, #a7c08f, #dbe4ca); transform: rotate(-8deg); }
.problem-card:nth-child(2) .problem-art { background: linear-gradient(145deg, #eaf2f5, #faeadc); }
.problem-card:nth-child(3) .problem-art { background: linear-gradient(145deg, #ffe9df, #f5e7cd); }
.problem-card:nth-child(4) .problem-art { background: linear-gradient(145deg, #e8f0dc, #f5eadc); }
.problem-art span { position: absolute; z-index: 2; top: 28px; left: 50%; display: grid; place-items: center; width: 78px; height: 78px; border: 3px solid rgba(54,50,43,.7); border-radius: 50%; color: #39372f; background: rgba(255,255,255,.58); font-family: var(--serif); font-size: 34px; transform: translateX(-50%); }
.problem-art i { position: absolute; z-index: 1; width: 16px; height: 52px; border-radius: 99px; background: #83a36c; transform: rotate(30deg); }
.problem-art i:nth-of-type(1) { left: 20px; bottom: -8px; }
.problem-art i:nth-of-type(2) { right: 28px; bottom: -5px; transform: rotate(-28deg); }
.problem-art i:nth-of-type(3) { right: 54px; bottom: -14px; height: 68px; transform: rotate(12deg); }
.problem-card-body { padding: 24px; }
.problem-card h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 21px; line-height: 1.45; }
.problem-card p { min-height: 58px; margin: 0; color: #71746f; font-size: 14px; }

.mechanism-section { background: #fff9ed; }
.mechanism-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mechanism-card { position: relative; min-height: 360px; padding: 32px 26px; border: 1px solid #eadfce; border-radius: 14px; background: rgba(255,255,255,.62); }
.mechanism-number { position: absolute; top: 22px; right: 22px; color: #d0b98d; font-family: var(--serif); font-size: 14px; }
.mechanism-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 28px; border-radius: 50%; color: #32342f; background: #ffedb4; font-family: var(--serif); font-size: 22px; }
.mechanism-card h3 { margin: 0 0 12px; font-family: var(--serif); font-size: 25px; }
.mechanism-card p { min-height: 62px; margin: 0 0 18px; color: #777a74; font-size: 14px; }
.mechanism-card strong { display: block; margin-bottom: 28px; font-family: var(--serif); font-size: 15px; }
.mechanism-card a { position: absolute; left: 26px; bottom: 28px; color: #664e0d; font-size: 13px; font-weight: 700; }

.featured-reading-section { background: #f3e5d1; }
.featured-reading-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(45px, 8vw, 110px); align-items: center; }
.featured-reading-copy > p:not(.home-kicker) { max-width: 500px; color: #686b66; }
.featured-book-card { position: relative; padding: clamp(38px, 5vw, 62px); border: 1px solid #e0d1bb; border-radius: 18px; background: rgba(255,253,248,.9); box-shadow: 0 20px 55px rgba(73,47,15,.09); }
.featured-book-card::before { content: "传\A习\A录"; white-space: pre; position: absolute; top: -22px; right: 30px; padding: 12px 10px; color: #fff; background: #a44938; font-family: var(--serif); line-height: 1.2; }
.book-label { color: #9b4338; font-size: 12px; font-weight: 700; letter-spacing: .13em; }
.featured-book-card h3 { margin: 14px 0 3px; font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); line-height: 1.35; }
.book-topics { color: #8a7c68; font-size: 14px; }
.featured-book-card blockquote { margin: 30px 0 22px; padding: 24px 0; border-block: 1px solid #e5dbcc; font-family: var(--serif); font-size: clamp(22px, 2.5vw, 30px); }
.featured-book-card > p:last-of-type { color: #6d706b; }
.featured-book-card > a { color: #664e0d; font-weight: 700; }

.reading-demo-section { background: #fff; }
.reading-demo { max-width: 900px; margin: 0 auto; padding: clamp(28px, 5vw, 52px); border: 1px solid #e5dacb; border-radius: 18px; background: #fffcf6; box-shadow: 0 18px 50px rgba(64,47,22,.07); text-align: center; }
.demo-tabs { display: inline-grid; grid-template-columns: 1fr 1fr; overflow: hidden; margin-bottom: 34px; border-radius: 8px; background: #f7f1e7; }
.demo-tabs span { min-width: 100px; padding: 9px 18px; color: #88847a; font-size: 14px; }
.demo-tabs .active { color: #332e25; background: #ffe9a6; font-weight: 700; }
.demo-content { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 38px; text-align: left; }
.demo-content blockquote { margin: 0; font-family: var(--serif); font-size: clamp(25px, 3vw, 36px); line-height: 1.65; }
.demo-content p { margin: 0; color: #696c67; font-size: 16px; }
.demo-divider { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: #8d6a00; background: #fff1c6; font-size: 20px; transform: rotate(-90deg); }
.reading-demo > .home-link { margin-top: 38px; }

.journey-section { background: #fff9ed; }
.journey-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; counter-reset: journey; }
.journey-list li { position: relative; text-align: center; }
.journey-list li:not(:last-child)::after { content: "→"; position: absolute; top: 58px; right: -20px; color: #d59c00; font-size: 26px; }
.journey-list li > span { position: absolute; top: 0; left: 12px; color: #d4a20a; font-family: var(--serif); font-size: 20px; }
.journey-list li > div { display: grid; place-items: center; width: 116px; height: 116px; margin: 0 auto 20px; border-radius: 40% 60% 55% 45%; color: #2d312d; background: linear-gradient(145deg, #ffe7a2, #f5ead5); font-family: var(--serif); font-size: 32px; }
.journey-list h3 { margin: 0 0 5px; font-family: var(--serif); font-size: 21px; }
.journey-list p { margin: 0; color: #7f827c; font-size: 14px; }

.public-learning-section { color: #fbfaf4; background: #28352d; }
.public-learning-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px, 10vw, 140px); align-items: center; }
.public-learning-section .home-kicker { color: #e9c55b; }
.public-learning-section h2 { color: #fff; }
.public-learning-section p { max-width: 570px; color: #cad0ca; }
.learning-benefits ul { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; list-style: none; margin: 0; padding: 0; }
.learning-benefits li { display: flex; align-items: center; gap: 10px; }
.learning-benefits li span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: #28352d; background: var(--gold); font-weight: 900; }
.home-actions.vertical { align-items: flex-start; }
.public-learning-section .home-link { color: #fff; }

.faq-section { background: #fff; }
.faq-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(50px, 9vw, 120px); align-items: start; }
.faq-list { border-top: 1px solid #ded6ca; }
.faq-list details { border-bottom: 1px solid #ded6ca; }
.faq-list summary { position: relative; padding: 23px 44px 23px 0; cursor: pointer; font-family: var(--serif); font-size: 19px; font-weight: 700; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; top: 20px; right: 10px; font-family: var(--sans); font-size: 24px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: -5px 0 22px; padding-right: 45px; color: #6f726d; }

.home-biography-section { background: #f4eadb; }
.home-biography-grid { display: grid; grid-template-columns: 260px 1fr; gap: clamp(48px, 8vw, 100px); align-items: center; max-width: 930px; }
.home-bio-seal { display: grid; grid-template-columns: 1fr 1fr; place-items: center; width: 220px; height: 220px; padding: 28px; border: 1px solid #ccb999; border-radius: 50%; color: #81382f; background: rgba(255,255,255,.45); font-family: var(--serif); font-size: 48px; }
.home-bio-seal span + span { border-left: 1px solid #d9c8ac; padding-left: 20px; }
.home-biography-section p:not(.home-kicker) { max-width: 620px; color: #676a65; font-family: var(--serif); font-size: 18px; }

.home-final-cta { padding: clamp(80px, 8vw, 112px) 0; text-align: center; background: #fffdfa; }
.home-final-cta > .wrap > p { margin: 0 0 12px; color: #777a75; font-family: var(--serif); font-size: 20px; }
.centered-actions { justify-content: center; }

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

.page-header { padding: 82px 0 52px; border-bottom: 1px solid var(--line); }
.page-header p { max-width: 680px; margin: 20px 0 0; color: var(--muted); font-family: var(--serif); font-size: 20px; }
.library-layout { display: grid; grid-template-columns: 230px 1fr; gap: 56px; }
.library-filter { position: sticky; top: 105px; align-self: start; }
.library-filter h2 { font-size: 13px; letter-spacing: .15em; }
.library-filter ul { list-style: none; margin: 18px 0 0; padding: 0; }
.library-filter a { display: block; padding: 9px 0; color: var(--muted); text-decoration: none; }
.library-filter a:hover { color: var(--red); }
.library-group { margin-bottom: 58px; }
.library-group h2 { margin: 0 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 30px; }
.library-items { display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; }
.library-item { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.library-item span { color: var(--muted); font-size: 13px; white-space: nowrap; }

.concepts { display: grid; gap: 24px; }
.concept { display: grid; grid-template-columns: 170px 1fr; gap: 52px; padding: 44px 0; border-bottom: 1px solid var(--line); }
.concept h2 { margin: 0; color: var(--green); font-family: var(--serif); font-size: 32px; }
.concept h3 { margin: 0 0 12px; font-family: var(--serif); font-size: 24px; }
.concept p { margin: 0; color: var(--muted); }
.concept .example { margin-top: 18px; padding: 18px 22px; border-left: 3px solid var(--gold); background: var(--card); color: var(--ink); }

.bio-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 72px; }
.portrait-card { position: sticky; top: 110px; align-self: start; padding: 44px; color: #fff; background: var(--green); }
.portrait-seal { display: grid; place-items: center; width: 120px; height: 120px; margin-bottom: 64px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; font-family: var(--serif); font-size: 38px; }
.portrait-card h2 { margin: 0; font-family: var(--serif); font-size: 34px; }
.portrait-card p { margin: 8px 0 0; color: #cbd8ce; }
.bio-copy { font-family: var(--serif); font-size: 19px; }
.timeline { margin-top: 56px; border-left: 1px solid var(--line); }
.timeline-item { position: relative; display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 0 0 36px 34px; }
.timeline-item::before { content: ""; position: absolute; left: -5px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.timeline-year { color: var(--red); font-weight: 700; }
.timeline-item h3 { margin: 0 0 6px; font-family: var(--serif); }
.timeline-item p { margin: 0; color: var(--muted); font-family: var(--sans); font-size: 15px; }

.entry-shell { width: min(calc(100% - 40px), 820px); margin: 0 auto; padding: 82px 0 100px; }
.entry-header { margin-bottom: 52px; text-align: center; }
.entry-header h1 { margin: 12px 0 18px; font-family: var(--serif); font-size: clamp(38px, 6vw, 62px); line-height: 1.3; }
.entry-content { font-family: var(--serif); font-size: 19px; line-height: 2; }
.entry-content > * { margin-top: 0; margin-bottom: 1.5em; }
.entry-content h2, .entry-content h3 { margin-top: 2em; line-height: 1.5; }
.entry-content blockquote { margin-inline: 0; padding: 24px 30px; border-left: 3px solid var(--red); background: var(--card); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 60px; padding-top: 30px; border-top: 1px solid var(--line); }
.post-nav a { text-decoration: none; }

.pagination { margin-top: 42px; }
.nav-links { display: flex; gap: 8px; }
.page-numbers { min-width: 42px; padding: 7px 12px; border: 1px solid var(--line); text-align: center; text-decoration: none; }
.page-numbers.current { color: #fff; background: var(--green); }
.empty-state { padding: 60px 0; text-align: center; }

.site-footer { padding: 54px 0 34px; color: #cad4cc; background: #172f25; }
.footer-main { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 40px; padding-bottom: 46px; }
.footer-main h2 { margin: 0 0 8px; color: #fff; font-family: var(--serif); }
.footer-main p { margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { color: #e7ece8; text-decoration: none; font-size: 14px; }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,.13); font-size: 13px; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 14px 20px 24px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .site-nav.open { display: flex; }
  .site-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { padding: 12px 0; }
  .header-search { margin-top: 8px; }
  .header-search input { width: 100%; }
  .header-cta { display: none; }
  .home-hero { position: relative; min-height: auto; background-position: 62% center; }
  .home-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,249,237,.98) 0%, rgba(255,249,237,.92) 50%, rgba(255,249,237,.22) 100%); }
  .home-hero-inner { position: relative; min-height: 650px; }
  .home-hero-copy { width: 70%; }
  .problem-grid, .mechanism-grid { grid-template-columns: 1fr 1fr; }
  .featured-reading-grid, .public-learning-grid, .faq-layout { grid-template-columns: 1fr; }
  .journey-list { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .journey-list li:nth-child(2)::after { display: none; }
  .path-grid { grid-template-columns: 1fr 1fr; }
  .classic-feature, .search-panel, .bio-layout { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .library-layout { grid-template-columns: 1fr; }
  .library-filter { position: static; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { width: min(calc(100% - 28px), var(--content)); }
  .header-inner { gap: 12px; }
  .brand-text { font-size: 18px; }
  .header-inner > .header-search { margin: 0; }
  .header-inner > .header-search input { width: 42px; border: 0; color: transparent; background: transparent; }
  .header-inner > .header-search input::placeholder { color: transparent; }
  .hero { padding-top: 64px; }
  .hero::after { opacity: .5; }
  .home-hero { background-image: linear-gradient(180deg, rgba(255,249,237,.12), rgba(255,249,237,.96) 58%), url("assets/images/yangming-hero.webp"); background-position: 67% top; background-size: auto 310px; background-repeat: no-repeat; }
  .home-hero::before { display: none; }
  .home-hero-inner { min-height: auto; align-items: flex-start; padding-top: 245px; }
  .home-hero-copy { width: 100%; padding: 34px 0 46px; }
  .home-hero h1 { font-size: clamp(41px, 13vw, 57px); }
  .home-hero-subtitle { font-size: 19px; }
  .home-hero-description br { display: none; }
  .home-actions { align-items: stretch; flex-direction: column; gap: 18px; }
  .home-actions .home-button { width: 100%; }
  .home-section { padding: 66px 0; }
  .home-section-heading { margin-bottom: 30px; }
  .home-section-heading h2, .featured-reading-copy h2, .public-learning-section h2, .home-biography-section h2, .home-final-cta h2 { font-size: 34px; }
  .problem-grid, .mechanism-grid { grid-template-columns: 1fr; }
  .problem-card { display: grid; grid-template-columns: 118px 1fr; }
  .problem-art { height: 100%; min-height: 190px; }
  .problem-art span { width: 62px; height: 62px; font-size: 28px; }
  .problem-card-body { padding: 22px 18px; }
  .problem-card p { min-height: 0; }
  .mechanism-card { min-height: 330px; }
  .featured-reading-copy .home-button { width: 100%; margin-bottom: 10px; }
  .featured-book-card::before { right: 18px; }
  .demo-content { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .demo-divider { margin: 0 auto; transform: none; }
  .journey-list { grid-template-columns: 1fr; gap: 44px; }
  .journey-list li:not(:last-child)::after { top: auto; right: 50%; bottom: -38px; transform: translateX(50%) rotate(90deg); }
  .learning-benefits ul { grid-template-columns: 1fr; }
  .home-biography-grid { grid-template-columns: 1fr; text-align: center; }
  .home-bio-seal { width: 170px; height: 170px; margin: 0 auto; font-size: 38px; }
  .home-biography-section .home-link { justify-content: center; }
  .section-head { display: block; }
  .section-head p, .section-head .text-link { display: block; margin-top: 14px; }
  .path-grid, .post-grid, .library-items { grid-template-columns: 1fr; }
  .path-card { min-height: 220px; }
  .classic-list { padding: 20px 26px; }
  .search-panel { gap: 30px; }
  .concept { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
  .bio-layout { gap: 38px; }
  .portrait-card { position: static; }
  .timeline-item { grid-template-columns: 65px 1fr; padding-left: 22px; gap: 12px; }
  .footer-main { grid-template-columns: 1fr; }
}

/* Final homepage skin overrides: intentionally last in the cascade. */
body.home { background: #fffdf8; }
body.home .home-hero { min-height: 650px; background: #fffdf8 url("assets/images/chibi-hero-male-thinking-v6.webp") center / cover no-repeat; }
body.home .home-hero-inner { min-height: 650px; }
body.home .home-hero-copy { width: min(52%, 650px); }
body.home .home-hero h1 { font-family: var(--display); font-size: clamp(52px, 5.6vw, 80px); font-weight: 900; letter-spacing: -.02em; line-height: 1.08; }
body.home .home-hero h1 span::after { bottom: -.01em; height: .13em; background: #ffd13f; }
body.home .home-hero-subtitle { font-family: var(--display); font-weight: 900; }
body.home .home-button { border: 2px solid transparent; border-radius: 999px; }
body.home .home-button-primary { color: #211d18; background: #ffcc3f; }
body.home .home-section-heading h2, body.home .featured-reading-copy h2, body.home .public-learning-section h2, body.home .home-biography-section h2, body.home .home-final-cta h2 { font-family: var(--display); font-weight: 900; letter-spacing: -.01em; }
body.home .problem-grid, body.home .mechanism-grid { gap: 14px; }
body.home .problem-card { overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 8px 26px rgba(90,64,26,.06); }
body.home .problem-art { height: 230px; background: #f8f2e8; }
body.home .problem-art::after, body.home .problem-art i, body.home .problem-art span { display: none; }
body.home .problem-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.home .problem-section .problem-art img { clip-path: inset(2px); transform: scale(1.035); }
body.home .problem-card-body { padding: 22px; text-align: center; }
body.home .problem-card h3 { margin-top: 0; font-family: var(--display); font-size: 22px; font-weight: 900; }
body.home .mechanism-card { overflow: hidden; min-height: 470px; padding: 0 22px 26px; border-radius: 18px; background: #fff; text-align: center; box-shadow: 0 9px 28px rgba(78,57,24,.06); }
body.home .mechanism-number { z-index: 2; top: 16px; right: 16px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #3d3428; background: #ffd052; font-weight: 900; }
body.home .mechanism-art { height: 245px; margin: 0 -22px 20px; overflow: hidden; }
body.home .mechanism-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.home .mechanism-card h3 { margin: 0 0 6px; font-family: var(--display); font-size: 25px; font-weight: 900; }
body.home .mechanism-card p { min-height: auto; margin-bottom: 9px; }
body.home .mechanism-card strong { margin-bottom: 18px; }
body.home .mechanism-card a { position: static; display: inline-block; }
body.home .featured-reading-section { background: linear-gradient(135deg, #f1f6e7, #fff9e9); }
body.home .featured-book-card, body.home .reading-demo { border-radius: 22px; background: rgba(255,255,255,.94); }
body.home .featured-book-card h3, body.home .featured-book-card blockquote, body.home .demo-content blockquote { font-family: var(--display); font-weight: 800; }
body.home .journey-list li > div { border: 5px solid #fff; border-radius: 50%; background: linear-gradient(145deg, #ffdd6d, #f1f5d7); font-family: var(--display); font-weight: 900; }
body.home .journey-list h3 { font-family: var(--display); font-weight: 900; }
body.home .public-learning-section { color: #34291d; background: linear-gradient(120deg, #fff4bf, #ffe291); }
body.home .public-learning-section h2 { color: #2d261e; }
body.home .public-learning-section p { color: #695d4a; }
body.home .public-learning-section .home-link { color: #2d261e; }
body.home .learning-benefits li { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.7); }
body.home .faq-list summary { font-family: var(--display); }
body.home .home-biography-section { background: linear-gradient(135deg, #f0f6e5, #fff7df); }
body.home .home-bio-seal { border: 5px solid #fff; color: #493e31; background: #ffd45a; font-family: var(--display); font-weight: 900; }

@media (max-width: 900px) {
  body.home .home-hero { background-position: 58% center; }
  body.home .home-hero-copy { width: 62%; }
  body.home .problem-art { height: 260px; }
  body.home .mechanism-art { height: 290px; }
}

@media (max-width: 620px) {
  body.home .home-hero { background-image: linear-gradient(180deg, rgba(255,253,248,.03), rgba(255,253,248,.98) 69%), url("assets/images/chibi-hero-male-thinking-v6.webp"); background-position: 62% top; background-size: auto 300px; background-repeat: no-repeat; }
  body.home .home-hero-inner { min-height: auto; padding-top: 245px; }
  body.home .home-hero-copy { width: 100%; }
  body.home .home-hero h1 { font-size: clamp(42px, 12.5vw, 58px); }
  body.home .problem-card { display: block; }
  body.home .problem-art { height: auto; min-height: 0; aspect-ratio: 1 / .82; }
  body.home .mechanism-card { min-height: auto; }
  body.home .mechanism-art { height: auto; aspect-ratio: 1 / 1.05; }
}

/* Adult editorial balance — v1.3 */
body.home .home-section-heading h2,
body.home .featured-reading-copy h2,
body.home .public-learning-section h2,
body.home .home-biography-section h2,
body.home .home-final-cta h2 { font-family: var(--serif); font-weight: 700; letter-spacing: .015em; }
body.home .home-hero h1 { font-family: var(--serif); font-size: clamp(48px, 5vw, 72px); font-weight: 800; letter-spacing: .015em; line-height: 1.18; }
body.home .home-hero-subtitle { font-family: var(--serif); font-weight: 700; }
body.home .home-section-heading.centered h2::after { left: 40%; right: 40%; height: 5px; }
body.home .problem-card { border-radius: 14px; }
body.home .problem-card h3 { font-family: var(--serif); font-weight: 700; letter-spacing: .01em; }
body.home .mechanism-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
body.home .mechanism-card { display: grid; grid-template-columns: 76px 1fr; grid-template-rows: auto auto auto auto; column-gap: 24px; min-height: 0; padding: 32px 34px; border-radius: 12px; text-align: left; }
body.home .mechanism-symbol { grid-column: 1; grid-row: 1 / 5; align-self: start; display: grid; place-items: center; width: 72px; height: 72px; border: 1px solid #dfd2bc; border-radius: 50%; background: #fff9e8; }
body.home .mechanism-symbol span { font-family: var(--serif); font-size: 28px; font-weight: 700; }
body.home .mechanism-card h3 { grid-column: 2; margin: 0 0 8px; font-family: var(--serif); font-size: 27px; font-weight: 700; }
body.home .mechanism-card p { grid-column: 2; margin: 0 0 8px; color: #656963; font-size: 15px; }
body.home .mechanism-card strong { grid-column: 2; margin: 0 0 16px; font-family: var(--sans); font-size: 14px; font-weight: 600; }
body.home .mechanism-card a { grid-column: 2; justify-self: start; color: #755900; }
body.home .mechanism-number { top: 20px; right: 24px; width: auto; height: auto; color: #b19561; background: transparent; font-family: var(--serif); }
body.home .featured-reading-section,
body.home .reading-demo-section { --display: var(--serif); }
body.home .featured-book-card h3,
body.home .featured-book-card blockquote,
body.home .demo-content blockquote { font-family: var(--serif); font-weight: 600; }
body.home .journey-list h3 { font-family: var(--serif); font-weight: 700; }
body.home .learning-benefits { display: grid; grid-template-columns: 220px 1fr; gap: 22px 26px; align-items: center; }
body.home .learning-character-stage { position: relative; grid-column: 1; grid-row: 1 / 3; align-self: center; width: 220px; height: 248px; }
body.home .learning-character { position: absolute; bottom: 0; left: -10px; display: block; width: 220px; height: 174px; object-fit: contain; object-position: left bottom; }
body.home .learning-speech { position: absolute; z-index: 2; top: 0; right: -8px; width: 170px; margin: 0; padding: 15px 17px; border: 1px solid rgba(122,94,53,.3); border-radius: 52% 48% 48% 52%; color: #3f3529; background: rgba(255,255,255,.94); box-shadow: 0 8px 22px rgba(104,75,20,.08); font-family: var(--serif); font-size: 15px; font-weight: 700; line-height: 1.55; text-align: center; }
body.home .learning-speech::after { content: ""; position: absolute; bottom: -1px; left: 42px; width: 20px; height: 20px; border-right: 1px solid rgba(122,94,53,.3); border-bottom: 1px solid rgba(122,94,53,.3); background: #fff; transform: rotate(45deg); }
body.home .learning-speech span { display: inline; color: #9d6e2f; background: transparent; }
body.home .learning-benefits ul { grid-column: 2; grid-template-columns: 1fr 1fr; }
body.home .learning-benefits .home-actions { grid-column: 2; margin-top: 0; }
body.home .public-learning-section .home-actions.vertical { width: min(100%, 290px); gap: 12px; }
body.home .public-learning-section .home-actions.vertical .home-button { width: 100%; min-height: 50px; }
body.home .public-learning-section .home-button-secondary { border-color: rgba(67,54,37,.3); color: #352d24; background: rgba(255,255,255,.82); box-shadow: none; }
body.home .public-learning-section .home-button-secondary:hover { border-color: rgba(67,54,37,.5); background: #fff; box-shadow: 0 9px 20px rgba(100,72,24,.08); }
body.home .faq-list summary { font-family: var(--serif); font-weight: 700; }
body.home .home-bio-seal { font-family: var(--serif); }

@media (max-width: 900px) {
  body.home .mechanism-card { padding: 28px; }
  body.home .learning-benefits { grid-template-columns: 210px 1fr; }
  body.home .learning-character-stage { width: 210px; }
  body.home .learning-character { width: 210px; }
}

@media (max-width: 620px) {
  body.home .home-hero h1 { font-size: clamp(40px, 11vw, 52px); }
  body.home .mechanism-grid { grid-template-columns: 1fr; }
  body.home .mechanism-card { grid-template-columns: 62px 1fr; column-gap: 18px; padding: 26px 22px; }
  body.home .mechanism-symbol { width: 60px; height: 60px; }
  body.home .mechanism-number { top: 17px; right: 18px; }
  body.home .mechanism-card h3 { font-size: 24px; }
  body.home .learning-benefits { grid-template-columns: 1fr; }
  body.home .learning-character-stage { grid-column: 1; grid-row: auto; width: min(100%, 340px); height: 238px; margin: 0 auto; }
  body.home .learning-character { left: 0; width: 220px; height: 170px; }
  body.home .learning-speech { right: 0; width: 166px; }
  body.home .learning-benefits ul,
  body.home .learning-benefits .home-actions { grid-column: 1; }
  body.home .public-learning-section .home-actions.vertical { width: 100%; }
}

/* Homepage readability and target-size audit — v1.5 */
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 2px; font-size: 16px; line-height: 1.5; }
.header-cta { min-height: 44px; font-size: 16px; }
body.home .home-kicker { color: #6f685e; font-size: 15px; line-height: 1.6; }
body.home .home-hero-description { font-size: 17px; line-height: 1.85; }
body.home .home-section-heading > p:last-child { font-size: 17px; line-height: 1.75; }
body.home .home-section-heading > h2 + p { margin-top: 18px; }
body.home .home-link { min-height: 44px; font-size: 16px; line-height: 1.5; }
body.home .problem-card p { min-height: 66px; font-size: 16px; line-height: 1.7; }
body.home .mechanism-card p { font-size: 16px; line-height: 1.7; }
body.home .mechanism-card strong { font-size: 15px; line-height: 1.6; }
body.home .mechanism-card a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; line-height: 1.5; }
body.home .featured-reading-copy > p:not(.home-kicker),
body.home .featured-book-card > p:last-of-type { font-size: 17px; line-height: 1.8; }
body.home .book-label { font-size: 14px; line-height: 1.5; }
body.home .book-topics { font-size: 16px; line-height: 1.6; }
body.home .demo-tabs span { font-size: 16px; line-height: 1.5; }
body.home .journey-list p { font-size: 16px; line-height: 1.6; }
body.home .learning-benefits li { min-height: 52px; font-size: 16px; line-height: 1.5; }
body.home .learning-benefits li > div { min-width: 0; }
body.home .learning-benefits li strong { display: block; color: #3a3024; font-family: var(--serif); font-size: 17px; font-weight: 700; line-height: 1.45; }
body.home .learning-benefits li small { display: block; margin-top: 4px; color: #766b5c; font-size: 16px; line-height: 1.55; }
body.home .faq-list details p { font-size: 17px; line-height: 1.75; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.footer-bottom { font-size: 14px; line-height: 1.6; }

@media (max-width: 620px) {
  .site-nav a { width: 100%; padding-block: 11px; }
  body.home .problem-card p { min-height: 0; }
}

/* Simplified philosophy and action path — v1.6 */
body.home .mechanism-section { background: #fffdf8; }
body.home .mechanism-section > .wrap > .home-section-heading { margin-bottom: 34px; }

body.home .simple-journey { margin-top: clamp(68px, 7vw, 96px); padding: clamp(30px, 3.2vw, 46px) 0; border-top: 1px solid #efe5d5; border-bottom: 1px solid #efe5d5; }
body.home .simple-journey > .simple-journey-heading { display: flex; align-items: baseline; gap: 22px; margin-bottom: 26px; text-align: left; }
body.home .simple-journey > .simple-journey-heading h2 { flex: 0 0 auto; margin: 0; font-size: clamp(31px, 3vw, 42px); }
body.home .simple-journey > .simple-journey-heading h2::after { left: 28%; right: 28%; }
body.home .simple-journey > .simple-journey-heading p { margin: 0; color: #74756f; font-size: 16px; line-height: 1.7; }
body.home .simple-journey-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.2vw, 32px); margin: 0; padding: 0; list-style: none; }
body.home .simple-journey-list li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 112px; align-items: center; min-width: 0; min-height: 150px; }
body.home .simple-journey-list li:not(:last-child)::after { display: none; }
body.home .simple-step-copy { display: flex; align-items: flex-start; gap: 12px; }
body.home .simple-step-copy > span { flex: 0 0 38px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #2d291f; background: #ffdf79; font-family: var(--serif); font-size: 20px; font-weight: 700; }
body.home .simple-step-copy h3 { margin: 1px 0 3px; font-family: var(--serif); font-size: 19px; line-height: 1.4; white-space: nowrap; }
body.home .simple-step-copy .simple-step-tag { display: block; margin: 1px 0 8px; color: #9a7317; font-size: 15px; font-weight: 650; line-height: 1.55; }
body.home .simple-step-copy p { margin: 0; color: #676b65; font-size: 16px; line-height: 1.7; }
body.home .simple-journey-list img { display: block; align-self: end; width: 112px; max-width: 100%; height: 138px; margin: 0; object-fit: contain; object-position: center bottom; }
body.home .simple-journey-list li:nth-child(3) img { width: 106px; height: 144px; justify-self: end; }

@media (max-width: 900px) {
  body.home .simple-journey > .simple-journey-heading { display: block; }
  body.home .simple-journey > .simple-journey-heading p { margin-top: 14px; }
  body.home .simple-journey-list { grid-template-columns: 1fr; gap: 22px; }
  body.home .simple-journey-list li { grid-template-columns: minmax(0, 1fr) 180px; min-height: 164px; padding: 8px 0; border-bottom: 1px solid #eee4d5; }
  body.home .simple-journey-list li:last-child { border-bottom: 0; }
  body.home .simple-journey-list img { width: 180px; height: 156px; justify-self: end; }
  body.home .simple-journey-list li:nth-child(3) img { width: 152px; height: 164px; }
}

/* Homepage usability refinement — v1.10.3 */
#start-here,
#public-learning { scroll-margin-top: 96px; }

.brand { min-height: 44px; }
.header-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  inset: 0 0 0 auto;
}
.header-search button svg { display: block; }

body.home .problem-card {
  transition: box-shadow .2s ease;
}
body.home .problem-card:hover {
  transform: none;
  box-shadow: 0 8px 26px rgba(90,64,26,.06);
}

body.home .home-section-heading > p:last-child { color: #666a64; }
body.home .simple-step-copy .simple-step-tag { color: #765800; }
body.home .book-topics { color: #6d6252; }
body.home .demo-tabs span { color: #65635c; }
body.home .demo-divider { color: #765800; }
body.home .home-final-cta > .wrap > p { color: #656963; }
body.home .featured-book-card > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
body.home .mechanism-section .idea-outcome {
  min-height: 0;
  margin: 2px 0 11px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}
body.home .mechanism-section .idea-outcome mark {
  display: inline-block;
  padding: 3px 12px 4px;
  color: #604900;
  background: #fff0b0;
  border-radius: 999px;
}

@media (max-width: 620px) {
  .header-inner > .header-search {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
  }
  .header-inner > .header-search label { display: none; }
  .header-inner > .header-search button {
    position: static;
    width: 44px;
    height: 44px;
  }
  body.home .home-section { padding-block: 60px; }
  body.home .home-section-heading { margin-bottom: 28px; }
}

@media (max-width: 620px) {
  body.home .simple-journey { padding: 32px 0; }
  body.home .simple-journey-list li { grid-template-columns: minmax(0, 1fr) 112px; min-height: 148px; }
  body.home .simple-step-copy { gap: 10px; }
  body.home .simple-step-copy > span { flex-basis: 36px; width: 36px; height: 36px; font-size: 18px; }
  body.home .simple-step-copy h3 { font-size: 18px; }
  body.home .simple-step-copy p { font-size: 16px; }
  body.home .simple-journey-list img { width: 112px; height: 132px; }
  body.home .simple-journey-list li:nth-child(3) img { width: 104px; height: 140px; }
}

/* Guided-learning invitation — v1.10.16 */
body.home .public-learning-section {
  padding-block: clamp(76px, 7vw, 108px);
  background:
    radial-gradient(circle at 8% 16%, rgba(255, 207, 67, .16) 0 92px, transparent 93px),
    radial-gradient(circle at 56% 8%, rgba(255,255,255,.48), transparent 32%),
    linear-gradient(120deg, #fff9dc 0%, #ffedaa 58%, #ffe38a 100%);
}
body.home .public-learning-section::before {
  content: "";
  position: absolute;
  left: -7%;
  bottom: -150px;
  width: 520px;
  height: 280px;
  border-radius: 50% 50% 0 0;
  background: rgba(255,255,255,.26);
  transform: rotate(8deg);
  pointer-events: none;
}
body.home .public-learning-grid {
  width: min(calc(100% - 48px), 1360px);
  max-width: none;
  grid-template-columns: minmax(0, 1fr) minmax(330px, .46fr);
  gap: clamp(38px, 5vw, 82px);
  align-items: end;
}
body.home .public-learning-copy { position: relative; z-index: 2; align-self: center; }
body.home .public-learning-copy .home-kicker {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  font-size: 17px;
  letter-spacing: .04em;
}
body.home .public-learning-copy .home-kicker::before {
  content: "";
  flex: 0 0 36px;
  width: 36px;
  height: 2px;
  background: currentColor;
}
body.home .public-learning-copy h2 {
  max-width: 940px;
  font-size: clamp(44px, 4.4vw, 66px);
  line-height: 1.34;
  letter-spacing: .01em;
}
body.home .public-learning-copy h2 span {
  position: relative;
  display: inline-block;
  z-index: 0;
}
body.home .public-learning-copy h2 span::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: .08em;
  height: .2em;
  border-radius: 999px;
  background: rgba(255, 199, 40, .45);
}
body.home .public-learning-copy .public-learning-lead {
  max-width: 850px;
  margin: 18px 0 34px;
  color: #665c4d;
  font-size: 18px;
  line-height: 1.8;
}
body.home .learning-intro-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 930px);
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}
body.home .learning-intro-points li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 0 28px;
  border-left: 1px solid rgba(111, 83, 34, .2);
}
body.home .learning-intro-points li:first-child {
  padding-left: 0;
  border-left: 0;
}
body.home .learning-intro-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  color: #a86f0d;
  background: rgba(255,255,255,.62);
}
body.home .learning-intro-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.home .learning-intro-points strong {
  display: block;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.4;
}
body.home .learning-intro-points small {
  display: block;
  margin-top: 5px;
  color: #6d6253;
  font-size: 16px;
  line-height: 1.65;
}
body.home .learning-intro-actions {
  align-items: center;
  gap: 34px;
  margin-top: 0;
}
body.home .learning-intro-actions .home-button {
  min-width: 286px;
  min-height: 58px;
  font-size: 18px;
}
body.home .learning-companion-stage {
  position: relative;
  z-index: 1;
  min-height: 420px;
}
body.home .learning-companion {
  position: absolute;
  right: -6px;
  bottom: -14px;
  display: block;
  width: min(410px, 108%);
  height: auto;
}
body.home .learning-companion-note {
  position: absolute;
  z-index: 2;
  top: 36px;
  right: 38px;
  margin: 0;
  color: #7b684a;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
  transform: rotate(-7deg);
}
body.home .learning-companion-note::after {
  content: "";
  display: block;
  width: 88px;
  height: 22px;
  margin: 2px auto 0;
  border-top: 2px solid rgba(183, 127, 27, .42);
  border-radius: 50%;
}

@media (max-width: 1100px) {
  body.home .public-learning-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  body.home .public-learning-copy { max-width: 900px; }
  body.home .learning-companion-stage { min-height: 310px; }
  body.home .learning-companion { width: 360px; }
  body.home .learning-companion-note { top: 24px; right: 330px; }
}

@media (max-width: 820px) {
  body.home .learning-intro-points li {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 14px;
    padding-inline: 18px;
  }
  body.home .learning-intro-icon { width: 60px; height: 60px; }
  body.home .learning-intro-icon svg { width: 29px; height: 29px; }
  body.home .learning-intro-points strong { font-size: 19px; }
  body.home .learning-companion-note { right: 300px; }
  body.home .learning-intro-actions .home-button { min-width: 260px; }
}

@media (max-width: 700px) {
  body.home .public-learning-section { padding-block: 64px; }
  body.home .public-learning-grid { width: min(calc(100% - 28px), 1360px); }
  body.home .public-learning-copy .home-kicker { gap: 12px; margin-bottom: 14px; font-size: 15px; }
  body.home .public-learning-copy .home-kicker::before { flex-basis: 28px; width: 28px; }
  body.home .public-learning-copy h2 { font-size: 36px; line-height: 1.4; }
  body.home .public-learning-copy .public-learning-lead { margin: 16px 0 26px; font-size: 17px; line-height: 1.75; }
  body.home .learning-intro-points {
    grid-template-columns: 1fr;
    margin-bottom: 28px;
  }
  body.home .learning-intro-points li,
  body.home .learning-intro-points li:first-child {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
    padding: 17px 0;
    border-top: 1px solid rgba(111, 83, 34, .18);
    border-left: 0;
  }
  body.home .learning-intro-points li:first-child { padding-top: 0; border-top: 0; }
  body.home .learning-intro-icon { width: 58px; height: 58px; }
  body.home .learning-intro-points strong { font-size: 19px; }
  body.home .learning-intro-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  body.home .learning-intro-actions .home-button { width: 100%; min-width: 0; min-height: 56px; font-size: 17px; }
  body.home .learning-intro-actions .home-link { justify-content: center; width: 100%; }
  body.home .learning-companion-stage { min-height: 280px; }
  body.home .learning-companion {
    right: 50%;
    bottom: -8px;
    width: min(310px, 92vw);
    transform: translateX(50%);
  }
  body.home .learning-companion-note { top: 12px; right: 4px; font-size: 18px; }
}

/* Keep the ambassador recognizable at navigation size without a decorative badge. */
.brand-mark {
  display: block;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  aspect-ratio: auto;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 620px) {
  .brand-mark {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }
}

/* Beginner classic recommendation — v1.10.17 */
body.home .featured-reading-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 15%, rgba(255, 211, 93, .2) 0 92px, transparent 93px),
    radial-gradient(circle at 8% 88%, rgba(255, 221, 122, .18) 0 170px, transparent 171px),
    linear-gradient(120deg, #fffdf7 0%, #fffaf0 56%, #fffdf8 100%);
}
body.home .featured-reading-grid {
  grid-template-columns: minmax(0, .88fr) minmax(520px, 1.12fr);
  gap: clamp(56px, 7vw, 108px);
  align-items: center;
}
body.home .featured-reading-copy { position: relative; z-index: 1; }
body.home .featured-reading-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 22px;
  color: #766b5d;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .08em;
}
body.home .featured-reading-kicker > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #d8a82b;
}
body.home .featured-reading-kicker svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.home .featured-reading-copy h2 {
  max-width: 620px;
  font-size: clamp(46px, 4.6vw, 66px);
  line-height: 1.25;
  letter-spacing: .01em;
}
body.home .featured-reading-copy > p:not(.featured-reading-kicker) {
  max-width: 560px;
  margin: 24px 0 34px;
  color: #676a65;
  font-size: 18px;
  line-height: 1.9;
}
body.home .featured-reading-copy .home-button {
  min-height: 60px;
  padding-inline: 34px;
  font-size: 18px;
}
body.home .featured-book-card {
  min-height: 540px;
  padding: 54px 56px 46px;
  overflow: hidden;
  border-color: #e3d3b9;
  border-radius: 22px;
  background: rgba(255,255,255,.8);
  box-shadow: 0 24px 64px rgba(96, 67, 24, .08);
}
body.home .featured-book-card::before { content: none; }
body.home .featured-book-card .book-label {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 22px;
  border-radius: 999px;
  color: #77560e;
  background: #fff3cf;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: .08em;
}
body.home .featured-book-card h3 {
  margin: 22px 0 8px;
  font-size: clamp(34px, 3.5vw, 46px);
  line-height: 1.38;
}
body.home .featured-book-card .book-topics {
  color: #7c776e;
  font-size: 17px;
  line-height: 1.6;
}
body.home .featured-book-card blockquote {
  margin: 34px 0 26px;
  padding: 28px 0;
  border-block-color: #e8dcc8;
  color: #78520a;
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 700;
  line-height: 1.55;
}
body.home .featured-book-card > p:last-of-type {
  position: relative;
  z-index: 1;
  max-width: 76%;
  margin-bottom: 26px;
  font-size: 17px;
  line-height: 1.8;
}
body.home .featured-book-card > a {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 17px;
  text-underline-offset: 7px;
}
body.home .featured-book-cat {
  position: absolute;
  z-index: 1;
  right: 28px;
  bottom: 14px;
  display: block;
  width: 170px;
  height: auto;
  pointer-events: none;
}

@media (max-width: 1000px) {
  body.home .featured-reading-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }
  body.home .featured-reading-copy { max-width: 700px; }
  body.home .featured-reading-copy > p:not(.featured-reading-kicker) { max-width: 650px; }
  body.home .featured-book-card { min-height: 500px; }
}

@media (max-width: 620px) {
  body.home .featured-reading-section { padding-block: 64px; }
  body.home .featured-reading-grid { gap: 34px; }
  body.home .featured-reading-kicker { gap: 10px; margin-bottom: 16px; font-size: 16px; }
  body.home .featured-reading-kicker > span { width: 40px; height: 40px; }
  body.home .featured-reading-kicker svg { width: 38px; height: 38px; }
  body.home .featured-reading-copy h2 { font-size: 40px; line-height: 1.3; }
  body.home .featured-reading-copy > p:not(.featured-reading-kicker) { margin: 18px 0 28px; font-size: 17px; line-height: 1.8; }
  body.home .featured-reading-copy .home-button { width: 100%; min-height: 56px; padding-inline: 18px; font-size: 16px; }
  body.home .featured-book-card { min-height: 0; padding: 30px 24px 138px; border-radius: 18px; }
  body.home .featured-book-card .book-label { min-height: 38px; padding: 6px 16px; font-size: 15px; }
  body.home .featured-book-card h3 { margin-top: 18px; font-size: 30px; line-height: 1.45; }
  body.home .featured-book-card .book-topics { font-size: 16px; }
  body.home .featured-book-card blockquote { margin: 26px 0 22px; padding: 22px 0; font-size: 24px; line-height: 1.65; }
  body.home .featured-book-card > p:last-of-type { max-width: 100%; margin-bottom: 20px; font-size: 16px; line-height: 1.8; }
  body.home .featured-book-card > a { font-size: 16px; }
  body.home .featured-book-cat { right: 18px; bottom: 8px; width: 148px; }
}
