@layer reset, theme, base, layout, components, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 90px; }
  body, h1, h2, h3, p, blockquote, ol { margin: 0; }
  button, input { font: inherit; }
  button, a { -webkit-tap-highlight-color: transparent; }
  img { max-width: 100%; display: block; }
}

@layer theme {
  :root {
    color-scheme: light;
    --bg: #f5efe4;
    --surface: #fffcf5;
    --surface-2: #efe6d7;
    --ink: #2c241b;
    --muted: #786d60;
    --faint: #a99b89;
    --line: #d9cbb7;
    --line-strong: #c9b696;
    --green: #315e59;
    --green-strong: #244943;
    --green-soft: #e9efe7;
    --amber: #a45a3f;
    --amber-soft: #f2e7d9;
    --shadow: 0 20px 54px rgb(73 56 34 / 11%);
    --serif: "Noto Serif SC", "Noto Serif TC", "Songti SC", serif;
    --sans: "DM Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
    --ease: cubic-bezier(.22,.7,.25,1);
  }
  html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #151210;
    --surface: #1f1b17;
    --surface-2: #28231e;
    --ink: #f2ebdd;
    --muted: #b0a695;
    --faint: #887d6e;
    --line: #40372f;
    --line-strong: #65513c;
    --green: #76c5b5;
    --green-strong: #a8d8c7;
    --green-soft: #25332e;
    --amber: #e0a06e;
    --amber-soft: #38271e;
    --shadow: 0 24px 64px rgb(0 0 0 / 28%);
  }
  @media (prefers-color-scheme: dark) {
    html[data-theme="system"] {
      color-scheme: dark;
      --bg: #151210; --surface: #1f1b17; --surface-2: #28231e; --ink: #f2ebdd;
      --muted: #b0a695; --faint: #887d6e; --line: #40372f; --line-strong: #65513c;
      --green: #76c5b5; --green-strong: #a8d8c7; --green-soft: #25332e;
      --amber: #e0a06e; --amber-soft: #38271e; --shadow: 0 24px 64px rgb(0 0 0 / 28%);
    }
  }
}

@layer base {
  body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.75; letter-spacing: .005em; transition: background .35s ease, color .35s ease; }
  body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .22; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.11'/%3E%3C/svg%3E"); mix-blend-mode: multiply; }
  a { color: inherit; text-decoration: none; }
  button { color: inherit; }
  ::selection { background: var(--green); color: var(--surface); }
  :focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
  h1, h2, h3, blockquote { font-family: var(--serif); font-weight: 500; }
  h1, h2 { letter-spacing: -.04em; }
  h1 em, h2 em { color: var(--green); font-style: normal; }
  .skip-link { position: fixed; z-index: 20; top: 8px; left: 8px; padding: 8px 14px; background: var(--ink); color: var(--bg); transform: translateY(-150%); }
  .skip-link:focus { transform: translateY(0); }
  .section-shell { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
  .section-padding { padding-block: 116px; }
  .mobile-only { display: none; }
  .eyebrow { display: flex; align-items: center; gap: 10px; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
  .eyebrow-mark { width: 7px; height: 7px; border: 1px solid var(--amber); transform: rotate(45deg); }
  .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 54px; }
  .section-heading h2 { margin-top: 18px; font-size: clamp(36px, 4.5vw, 58px); line-height: 1.28; }
  .section-lede { max-width: 390px; color: var(--muted); line-height: 1.95; font-size: 14px; }
}

@layer layout {
  .site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; height: 78px; padding-inline: max(48px, calc((100vw - 1340px) / 2)); border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(18px); }
  .brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
  .brand-seal { display: grid; place-content: center; width: 38px; height: 38px; border: 1px solid var(--amber); border-radius: 4px; color: var(--amber); font-family: var(--serif); font-size: 11px; line-height: 1.15; text-align: center; transform: rotate(-3deg); }
  .brand-copy { display: grid; line-height: 1.35; }
  .brand-copy strong { font-family: var(--serif); font-size: 14px; font-weight: 600; letter-spacing: .03em; }
  .brand-copy small { margin-top: 3px; color: var(--muted); font-size: 9px; letter-spacing: .16em; }
  .main-nav { display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); margin-left: auto; margin-right: clamp(28px, 4.3vw, 64px); }
  .main-nav a { position: relative; padding-block: 8px; color: var(--muted); font-size: 12px; transition: color .2s ease; }
  .main-nav a::after { content: ""; position: absolute; right: 0; bottom: 1px; left: 0; height: 1px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
  .main-nav a:hover { color: var(--ink); }
  .main-nav a:hover::after { transform: scaleX(1); }
  .header-actions { display: flex; align-items: center; gap: 12px; }
  .icon-button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; transition: border-color .2s, background .2s; }
  .icon-button:hover { border-color: var(--green); background: var(--green-soft); }
  .locale-button { display: flex; gap: 2px; border-radius: 20px; color: var(--muted); font-size: 10px; }
  .locale-button span:first-child { color: var(--green); }
  .locale-divider { color: var(--faint); }
  .theme-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.5; }
  html[data-theme="dark"] .theme-button svg { fill: currentColor; stroke-width: 0; }
  html[data-theme="dark"] .theme-button svg circle { fill: none; stroke: currentColor; stroke-width: 1.7; }
  .header-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; margin-left: 4px; padding: 0 18px; border: 1px solid var(--green); border-radius: 2px; background: var(--green); color: var(--surface); font-size: 11px; font-weight: 600; letter-spacing: .04em; transition: background .2s, color .2s; }
  .header-cta:hover { background: transparent; color: var(--green); }
  .menu-button { display: none; }
  .hero { position: relative; display: grid; grid-template-columns: .93fr 1.07fr; align-items: center; min-height: 680px; padding-top: 42px; padding-bottom: 64px; }
  .hero-copy { position: relative; z-index: 2; padding: 10px 0 24px 34px; }
  .hero h1 { margin-top: 25px; font-size: clamp(52px, 6.3vw, 82px); line-height: 1.24; }
  .hero-description { max-width: 465px; margin-top: 22px; color: var(--muted); font-size: 14px; line-height: 2; }
  .hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 34px; }
  .button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 48px; padding: 0 19px; font-size: 12px; font-weight: 600; transition: transform .2s var(--ease), color .2s, background .2s; }
  .button:hover { transform: translateY(-2px); }
  .button-primary { background: var(--green); color: var(--surface); }
  .button-primary:hover { background: var(--green-strong); }
  .button-primary > span:last-child { color: var(--amber-soft); font-size: 17px; }
  .text-link, .underlined-link { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; transition: color .2s; }
  .text-link:hover, .underlined-link:hover { color: var(--green); }
  .hero-note { display: flex; align-items: center; gap: 11px; margin-top: 48px; color: var(--faint); font-size: 10px; letter-spacing: .06em; }
  .note-line { width: 28px; height: 1px; background: var(--amber); }
  .hero-art { position: relative; min-height: 580px; overflow: hidden; }
  .hero-wash { position: absolute; inset: 6% 0 2% 8%; background: radial-gradient(ellipse at 60% 50%, color-mix(in srgb, var(--surface-2) 62%, transparent), transparent 68%); }
  .hero-mountain { position: absolute; width: 100%; height: 100%; max-width: none; right: 0; bottom: 0; object-fit: contain; object-position: right bottom; opacity: .7; mix-blend-mode: multiply; }
  html[data-theme="dark"] .hero-mountain, html[data-theme="dark"] .closing-mountain { opacity: .24; mix-blend-mode: screen; filter: sepia(.2) brightness(.75); }
  .book-stage { position: absolute; top: 6%; left: 28%; width: min(46%, 315px); height: 83%; display: grid; place-items: center; filter: drop-shadow(22px 28px 22px rgb(58 44 28 / 25%)); transform: rotate(3deg); animation: book-arrive 1s .08s both var(--ease); }
  .book-stage img { width: 100%; height: 100%; object-fit: contain; }
  .hero-stamp { position: absolute; right: 9%; top: 17%; padding: 8px 9px; border: 1px solid var(--amber); color: var(--amber); font-family: var(--serif); font-size: 12px; line-height: 1.35; text-align: center; transform: rotate(5deg); }
  .hero-caption { position: absolute; bottom: 7%; right: 4%; display: flex; align-items: center; gap: 10px; color: var(--muted); font-family: var(--serif); font-size: 12px; letter-spacing: .08em; }
  .caption-rule { width: 32px; height: 1px; background: var(--amber); }
  .hero-index { position: absolute; left: 7%; bottom: 7%; color: var(--faint); font: 9px var(--sans); letter-spacing: .14em; }
  .hero-index span { color: var(--amber); }
  .hero-scroll { position: absolute; bottom: 6px; left: 34px; display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 9px; letter-spacing: .12em; writing-mode: vertical-rl; }
  .hero-scroll span { width: 1px; height: 34px; background: var(--line-strong); }
  .intro-strip { border-block: 1px solid var(--line); background: var(--surface); }
  .intro-inner { display: flex; align-items: center; justify-content: center; max-width: 1200px; min-height: 128px; margin-inline: auto; padding: 22px 48px; }
  .intro-inner p { padding-inline: 20px; color: var(--muted); font-family: var(--serif); font-size: 17px; letter-spacing: .03em; text-align: center; }
  .intro-inner strong { color: var(--ink); font-weight: 500; }
  .intro-mark, .intro-end { color: var(--amber); font-family: var(--serif); font-size: 38px; line-height: 1; }
  .intro-end { align-self: flex-end; }
  .daily-layout { display: grid; grid-template-columns: .84fr 1.16fr; gap: 24px; }
  .daily-card { position: relative; display: flex; flex-direction: column; min-height: 390px; padding: 30px 32px 24px; overflow: hidden; background: var(--green); color: #f8f3e9; }
  .daily-top { position: relative; z-index: 1; display: flex; justify-content: space-between; }
  .card-kicker { color: var(--amber); font-size: 10px; font-weight: 600; letter-spacing: .12em; }
  .daily-card .card-kicker { color: #e6c391; }
  .daily-top h3 { margin-top: 16px; font-size: 31px; line-height: 1.4; }
  .sun-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgb(255 255 255 / 32%); border-radius: 50%; color: #e6c391; font-size: 25px; }
  .daily-card blockquote { position: relative; z-index: 1; max-width: 340px; margin-top: auto; padding-top: 50px; font-size: 19px; line-height: 1.8; }
  .daily-card blockquote small { display: block; margin-top: 11px; color: rgb(255 255 255 / 65%); font: 10px var(--sans); letter-spacing: .08em; }
  .daily-bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 15px; border-top: 1px solid rgb(255 255 255 / 26%); color: rgb(255 255 255 / 72%); font-size: 10px; }
  .round-arrow { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid rgb(255 255 255 / 50%); border-radius: 50%; color: white; }
  .daily-bamboo { position: absolute; top: -20px; right: -35px; width: 230px; opacity: .13; }
  .daily-ways { display: grid; grid-template-rows: repeat(3, 1fr); gap: 13px; }
  .way-card { position: relative; display: grid; grid-template-columns: 32px 48px 1fr 20px; align-items: center; gap: 17px; padding: 16px 20px; border: 1px solid var(--line); background: var(--surface); transition: border-color .22s, transform .22s var(--ease), box-shadow .22s; }
  .way-card:hover { border-color: var(--green); transform: translateX(4px); box-shadow: var(--shadow); }
  .way-number { align-self: start; padding-top: 5px; color: var(--faint); font: 10px var(--sans); }
  .way-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
  .way-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.4; }
  .way-card h3 { font-size: 16px; font-weight: 500; }
  .way-card p { max-width: 390px; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.7; }
  .way-arrow { color: var(--amber); font-size: 17px; }
  .library-section { position: relative; overflow: hidden; background: var(--surface); }
  .library-section::before { content: "傷寒"; position: absolute; right: -20px; bottom: -100px; color: var(--bg); font-family: var(--serif); font-size: 350px; line-height: 1; pointer-events: none; }
  .library-section .section-shell { position: relative; z-index: 1; }
  .book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .book-card { min-height: 410px; border: 1px solid var(--line); background: var(--bg); transition: transform .25s var(--ease), box-shadow .25s; }
  .book-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
  .book-image { position: relative; display: grid; place-items: center; height: 220px; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface-2); }
  .book-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 68%, rgb(35 30 22 / 10%)); pointer-events: none; }
  .book-image img { width: 100%; height: 100%; padding: 18px; object-fit: contain; transition: transform .6s var(--ease); }
  .book-image span { position: absolute; z-index: 1; top: 14px; left: 14px; padding: 3px 9px; border: 1px solid color-mix(in srgb, var(--line-strong) 80%, transparent); background: color-mix(in srgb, var(--surface) 82%, transparent); color: var(--muted); font-size: 9px; letter-spacing: .08em; }
  .book-card-copy { padding: 20px 22px 17px; }
  .book-card-copy h3 { margin-top: 8px; font-size: 23px; }
  .book-card-copy > p:not(.card-kicker) { min-height: 53px; margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.8; }
  .book-card-foot { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; letter-spacing: .07em; }
  .book-card-foot span:last-child { color: var(--amber); }
  .library-note { display: flex; align-items: center; gap: 13px; max-width: 740px; margin: 26px auto 0; padding: 13px 17px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); font-size: 10px; line-height: 1.8; }
  .library-note-icon { color: var(--amber); font-family: var(--serif); font-size: 18px; }
  .path-section { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: 90px; }
  .path-art { position: relative; display: grid; place-items: center; min-height: 530px; overflow: hidden; background: var(--surface-2); }
  .path-art::before, .path-art::after { content: ""; position: absolute; width: 64%; height: 1px; background: var(--line-strong); }
  .path-art::before { top: 16%; left: 12%; }.path-art::after { right: 12%; bottom: 16%; }
  .path-art > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; opacity: .72; mix-blend-mode: multiply; }
  html[data-theme="dark"] .path-art > img { opacity: .19; mix-blend-mode: screen; filter: sepia(.35) brightness(.7); }
  .path-seal { position: relative; z-index: 1; display: grid; place-content: center; width: 135px; height: 188px; border: 1px solid var(--amber); color: var(--amber); font-family: var(--serif); font-size: 20px; line-height: 1.42; text-align: center; letter-spacing: .15em; }
  .path-art-caption { position: absolute; z-index: 1; bottom: 10%; color: var(--muted); font-family: var(--serif); font-size: 13px; letter-spacing: .13em; }
  .path-copy h2 { margin-top: 17px; font-size: clamp(40px, 4.7vw, 62px); line-height: 1.34; }
  .path-intro { max-width: 475px; margin-top: 20px; color: var(--muted); font-size: 12px; line-height: 2; }
  .path-steps { display: grid; gap: 0; margin: 23px 0 25px; padding: 0; list-style: none; }
  .path-steps li { display: grid; grid-template-columns: 42px 1fr; gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--line); }
  .path-steps li > span { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--amber); font-family: var(--serif); font-size: 12px; }
  .path-steps h3 { font-size: 14px; font-weight: 500; }
  .path-steps p { margin-top: 2px; color: var(--muted); font-size: 10px; }
  .underlined-link { padding-bottom: 4px; border-bottom: 1px solid var(--line-strong); color: var(--green); font-size: 11px; }
  .excerpt-section { background: var(--green); color: #f8f3e9; }
  .excerpt-shell { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 80px; }
  .excerpt-section .eyebrow { color: #e6c391; }
  .excerpt-intro h2 { margin-top: 16px; color: #fffaf0; font-size: clamp(40px, 4.7vw, 59px); line-height: 1.35; }
  .excerpt-intro h2 em { color: #e6c391; }
  .excerpt-intro > p:not(.eyebrow) { max-width: 420px; margin-top: 17px; color: rgb(255 250 240 / 69%); font-size: 12px; line-height: 2; }
  .search-box { display: flex; align-items: center; gap: 12px; max-width: 430px; height: 52px; margin-top: 26px; padding-inline: 14px; border: 1px solid rgb(255 255 255 / 30%); background: rgb(255 255 255 / 8%); }
  .search-box svg { width: 19px; height: 19px; fill: none; stroke: #e6c391; stroke-linecap: round; stroke-width: 1.5; }
  .search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #fffaf0; font-size: 11px; }
  .search-box input::placeholder { color: rgb(255 250 240 / 57%); }
  .search-box kbd { flex: 0 0 auto; padding: 1px 5px; border: 1px solid rgb(255 255 255 / 23%); color: rgb(255 250 240 / 54%); font-size: 9px; }
  .search-hint { min-height: 22px; margin-top: 7px; color: rgb(255 250 240 / 55%); font-size: 9px; }
  .clause-panel { padding: 23px 27px 18px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 50px rgb(0 0 0 / 18%); }
  .clause-panel-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 10px; letter-spacing: .07em; }
  .source-chip { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
  .source-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
  .clause-tabs { display: flex; gap: 22px; margin-top: 22px; border-bottom: 1px solid var(--line); }
  .clause-tab { position: relative; padding: 0 0 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; }
  .clause-tab::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--green); transform: scaleX(0); transition: transform .22s; }
  .clause-tab.active { color: var(--green); }
  .clause-tab.active::after { transform: scaleX(1); }
  .clause-content { min-height: 267px; padding: 23px 2px 12px; }
  .clause-meta { color: var(--amber); font-size: 9px; letter-spacing: .1em; }
  .clause-content blockquote { margin-top: 10px; font-size: 18px; line-height: 1.9; }
  .clause-divider { display: flex; align-items: center; gap: 11px; margin-top: 17px; color: var(--faint); font-size: 9px; }
  .clause-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
  .clause-plain { margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.85; }
  .clause-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
  .clause-tags span { padding: 2px 8px; background: var(--green-soft); color: var(--green); font-size: 8px; }
  .clause-panel-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); color: var(--faint); font-size: 8px; }
  .tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--surface); }
  .tools-grid article { min-height: 213px; padding: 25px 22px; border-right: 1px solid var(--line); transition: background .2s; }
  .tools-grid article:last-child { border: 0; }
  .tools-grid article:hover { background: var(--green-soft); }
  .tool-symbol { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--green); font-family: var(--serif); font-size: 22px; }
  .tools-grid h3 { margin-top: 23px; font-size: 15px; }
  .tools-grid p { margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.85; }
  .about-section { position: relative; overflow: hidden; background: var(--surface-2); }
  .about-section::before { content: ""; position: absolute; top: -55%; right: -6%; width: 58vw; height: 145%; border: 1px solid color-mix(in srgb, var(--line-strong) 65%, transparent); border-radius: 50%; transform: rotate(-22deg); }
  .about-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
  .about-quote { position: relative; padding: 39px 35px 37px; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--surface) 74%, transparent); }
  .quote-mark { position: absolute; top: -30px; left: 24px; padding-inline: 8px; background: var(--surface-2); color: var(--amber); font-family: var(--serif); font-size: 50px; line-height: 1; }
  .about-quote blockquote { font-size: clamp(21px, 2.4vw, 30px); line-height: 1.8; }
  .about-quote p { margin-top: 23px; color: var(--muted); font-size: 9px; letter-spacing: .1em; }
  .about-copy h2 { margin-top: 16px; font-size: clamp(36px, 4vw, 52px); line-height: 1.4; }
  .about-copy > p:not(.eyebrow) { max-width: 440px; margin-top: 14px; color: var(--muted); font-size: 11px; line-height: 2; }
  .about-facts { display: grid; gap: 8px; margin-top: 22px; }
  .about-facts div { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 10px; }
  .fact-dot { width: 6px; height: 6px; border: 1px solid var(--amber); transform: rotate(45deg); }
  .closing-section { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 70px; }
  .closing-visual { position: relative; display: grid; place-items: center; min-height: 430px; overflow: hidden; background: var(--surface-2); }
  .closing-visual > img:first-child { position: relative; z-index: 1; width: 36%; max-height: 355px; object-fit: contain; filter: drop-shadow(14px 15px 13px rgb(40 33 26 / 20%)); transform: rotate(4deg); }
  .closing-mountain { position: absolute; width: 100%; height: 100%; max-width: none; right: 0; bottom: 0; object-fit: contain; object-position: right bottom; opacity: .7; mix-blend-mode: multiply; }
  .closing-copy h2 { margin-top: 17px; font-size: clamp(42px, 4.8vw, 62px); line-height: 1.38; }
  .closing-copy > p:not(.eyebrow) { max-width: 400px; margin-top: 14px; color: var(--muted); font-size: 12px; line-height: 2; }
  .closing-copy .button { margin-top: 25px; }
  .closing-copy .store-note { margin-top: 12px !important; color: var(--faint) !important; font-size: 9px !important; }
  .site-footer { padding-block: 45px 18px; border-top: 1px solid var(--line); background: var(--surface); }
  .footer-top { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; padding-bottom: 31px; }
  .footer-top > p { color: var(--muted); font-family: var(--serif); font-size: 12px; line-height: 1.8; }
  .footer-top nav { display: flex; justify-content: flex-end; gap: 22px; }
  .footer-top nav a, .footer-bottom { color: var(--muted); font-size: 9px; }
  .footer-top nav a:hover, .footer-bottom a:hover { color: var(--green); }
  .footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 8px; }
  .footer-bottom a { white-space: nowrap; }
}

@layer components {
  [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .65s ease, transform .65s var(--ease); }
  [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
  .search-empty { display: grid; min-height: 250px; place-items: center; color: var(--muted); font-size: 12px; text-align: center; }
  .search-empty strong { display: block; margin-bottom: 4px; color: var(--ink); font-family: var(--serif); font-size: 18px; font-weight: 500; }
  .js-ready .clause-content { animation: clause-in .25s ease both; }
}

@layer responsive {
  @media (min-width: 1500px) { .hero { min-height: 745px; } }
  @media (max-width: 1050px) {
    .section-shell { width: min(100% - 64px, 850px); }
    .site-header { padding-inline: 32px; }
    .hero { min-height: 610px; }
    .hero-copy { padding-left: 10px; }
    .hero-art { min-height: 500px; }
    .path-section { gap: 50px; }
    .excerpt-shell { gap: 42px; }
    .about-inner { gap: 55px; }
    .closing-section { gap: 45px; }
  }
  @media (max-width: 760px) {
    html { scroll-padding-top: 72px; }
    .section-shell { width: calc(100% - 40px); }
    .section-padding { padding-block: 78px; }
    .site-header { height: 66px; padding-inline: 20px; }
    .brand-seal { width: 33px; height: 33px; font-size: 10px; }
    .brand-copy strong { font-size: 12px; }
    .brand-copy small { font-size: 8px; }
    .header-actions { gap: 8px; }
    .header-cta { display: none; }
    .menu-button { display: grid; place-content: center; gap: 5px; width: 34px; height: 34px; margin-left: 1px; padding: 0; border: 0; background: transparent; cursor: pointer; }
    .menu-button span { width: 17px; height: 1px; background: var(--ink); transition: transform .2s; }
    .menu-button[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
    .menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
    .main-nav { position: absolute; top: 65px; right: 0; left: 0; display: grid; gap: 0; margin: 0; padding: 5px 20px 13px; border-bottom: 1px solid var(--line); background: var(--bg); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
    .main-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
    .main-nav a { padding: 10px 1px; border-bottom: 1px solid var(--line); font-size: 12px; }
    .main-nav a:last-child { border: 0; }
    .main-nav a::after { content: none; }
    .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 55px; padding-bottom: 52px; }
    .hero-copy { padding: 0 2px; }
    .hero h1 { margin-top: 20px; font-size: clamp(47px, 12vw, 68px); }
    .hero-description { max-width: 490px; margin-top: 16px; font-size: 12px; }
    .hero-actions { gap: 20px; margin-top: 25px; }
    .button { min-height: 44px; padding-inline: 15px; font-size: 10px; }
    .hero-note { margin-top: 27px; font-size: 9px; }
    .hero-art { min-height: min(103vw, 470px); margin-top: 15px; }
    .book-stage { top: 2%; left: 30%; width: 43%; height: 87%; }
    .hero-stamp { top: 15%; right: 6%; font-size: 10px; }
    .hero-caption { right: 3%; bottom: 4%; font-size: 10px; }
    .hero-index { bottom: 4%; left: 1%; font-size: 7px; }
    .hero-scroll { display: none; }
    .intro-inner { min-height: 104px; padding-inline: 15px; }
    .intro-inner p { padding-inline: 10px; font-size: 13px; line-height: 1.85; }
    .intro-mark, .intro-end { font-size: 27px; }
    .section-heading { display: block; margin-bottom: 32px; }
    .section-heading h2 { margin-top: 13px; font-size: clamp(34px, 9vw, 46px); }
    .section-lede { margin-top: 13px; font-size: 11px; }
    .daily-layout { grid-template-columns: 1fr; gap: 12px; }
    .daily-card { min-height: 325px; padding: 24px 24px 19px; }
    .daily-top h3 { font-size: 27px; }
    .daily-card blockquote { padding-top: 33px; font-size: 16px; }
    .daily-ways { gap: 9px; }
    .way-card { grid-template-columns: 24px 40px 1fr 14px; gap: 10px; padding: 13px 12px; }
    .way-icon { width: 37px; height: 37px; }
    .way-icon svg { width: 23px; height: 23px; }
    .way-card h3 { font-size: 14px; }
    .way-card p { font-size: 9px; }
    .book-grid { grid-template-columns: 1fr; gap: 12px; }
    .book-card { display: grid; grid-template-columns: .78fr 1.22fr; min-height: 0; }
    .book-image { height: 100%; min-height: 205px; border-right: 1px solid var(--line); border-bottom: 0; }
    .book-image img { padding: 12px; }
    .book-image span { top: 8px; left: 8px; padding: 2px 5px; font-size: 7px; }
    .book-card-copy { align-self: center; padding: 16px 14px; }
    .book-card-copy h3 { font-size: 20px; }
    .book-card-copy > p:not(.card-kicker) { min-height: auto; font-size: 9px; }
    .book-card-foot { margin-top: 12px; font-size: 7px; }
    .library-section::before { right: -30px; bottom: -18px; font-size: 170px; }
    .library-note { align-items: flex-start; margin-top: 16px; font-size: 9px; }
    .path-section { grid-template-columns: 1fr; gap: 33px; }
    .path-art { order: 2; min-height: min(95vw, 365px); }
    .path-art::before { top: 13%; }.path-art::after { bottom: 13%; }
    .path-seal { width: 100px; height: 146px; font-size: 16px; }
    .path-art-caption { bottom: 8%; font-size: 10px; }
    .path-copy h2, .closing-copy h2 { font-size: clamp(38px, 10vw, 52px); }
    .path-intro { font-size: 11px; }
    .path-steps li { padding-block: 12px; }
    .path-steps h3 { font-size: 12px; }.path-steps p { font-size: 9px; }
    .excerpt-shell { grid-template-columns: 1fr; gap: 27px; }
    .excerpt-intro h2 { font-size: clamp(38px, 10vw, 53px); }
    .excerpt-intro > p:not(.eyebrow) { font-size: 11px; }
    .search-box { height: 47px; margin-top: 18px; }
    .clause-panel { padding: 18px 17px 14px; }
    .clause-panel-top { font-size: 9px; }.source-chip { font-size: 8px; }
    .clause-content { min-height: 280px; padding-top: 18px; }
    .clause-content blockquote { font-size: 15px; }
    .clause-plain { font-size: 10px; }
    .tools-grid { grid-template-columns: 1fr 1fr; }
    .tools-grid article { min-height: 190px; padding: 18px 15px; }
    .tools-grid article:nth-child(2) { border-right: 0; }
    .tools-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .tool-symbol { width: 34px; height: 34px; font-size: 19px; }
    .tools-grid h3 { margin-top: 17px; font-size: 13px; }
    .tools-grid p { font-size: 9px; }
    .about-inner { grid-template-columns: 1fr; gap: 40px; }
    .about-quote { padding: 31px 21px 26px; }
    .about-quote blockquote { font-size: 20px; }
    .about-copy h2 { font-size: 40px; }
    .about-copy > p:not(.eyebrow) { font-size: 10px; }
    .closing-section { grid-template-columns: 1fr; gap: 30px; }
    .closing-visual { order: 2; min-height: 310px; }
    .closing-visual > img:first-child { width: 33%; max-height: 260px; }
    .closing-copy > p:not(.eyebrow) { font-size: 11px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 24px 15px; padding-bottom: 23px; }
    .footer-top > p { grid-column: 2; grid-row: 1; font-size: 10px; }
    .footer-top nav { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; gap: 12px 20px; }
    .footer-bottom { flex-wrap: wrap; gap: 8px 16px; font-size: 7px; }
    .footer-bottom > span:nth-child(2) { order: 3; width: 100%; }
    .mobile-only { display: block; }
  }
  @media (max-width: 380px) {
    .section-shell { width: calc(100% - 32px); }
    .site-header { padding-inline: 16px; }
    .header-actions { gap: 5px; }
    .hero h1 { font-size: 44px; }
    .book-image { min-height: 185px; }
    .clause-panel { padding-inline: 13px; }
    .source-chip { gap: 4px; font-size: 7px; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    [data-reveal] { opacity: 1; transform: none; }
  }
}

@keyframes book-arrive { from { opacity: 0; transform: translateY(12px) rotate(1deg); } to { opacity: 1; transform: translateY(0) rotate(3deg); } }
@keyframes clause-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@layer layout { .brand-logo { width: 42px; height: 42px; object-fit: contain; border-radius: 9px; } .store-icon { width: 28px; height: 28px; object-fit: cover; border-radius: 6px; } }
@media (max-width: 620px) { .brand-logo { width: 34px; height: 34px; } }

/* Mobile reading comfort: give text and controls enough room instead of shrinking them. */
@media (max-width: 760px) {
  .icon-button { width: 40px; height: 40px; }
  .menu-button { width: 40px; height: 40px; }
  .section-padding { padding-block: 62px; }
  .hero { padding-top: 42px; padding-bottom: 38px; }
  .hero-description { font-size: 14px; line-height: 1.9; }
  .hero-note { font-size: 11px; line-height: 1.7; }
  .intro-inner { min-height: 0; padding-block: 27px; }
  .intro-inner p { font-size: 14px; }
  .section-heading { margin-bottom: 26px; }
  .section-lede { font-size: 13px; line-height: 1.8; }
  .way-card p { font-size: 12px; line-height: 1.75; }
  .book-card { grid-template-columns: 1fr; }
  .book-image { height: clamp(280px, 84vw, 340px); min-height: 0; aspect-ratio: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .book-image img { width: auto; height: min(100%, 300px); max-width: 70%; padding: 0; }
  .book-image span { top: 12px; left: 12px; padding: 4px 8px; font-size: 10px; }
  .book-card-copy { padding: 19px 20px; }
  .book-card-copy h3 { font-size: 22px; }
  .book-card-copy > p:not(.card-kicker) { font-size: 13px; line-height: 1.85; }
  .book-card-foot { margin-top: 15px; font-size: 10px; }
  .library-note { font-size: 12px; line-height: 1.8; }
  .path-intro { font-size: 13px; line-height: 1.9; }
  .path-steps h3 { font-size: 14px; }
  .path-steps p { font-size: 12px; line-height: 1.75; }
  .excerpt-intro > p:not(.eyebrow) { font-size: 13px; line-height: 1.85; }
  .search-box input { font-size: 14px; }
  .search-hint { font-size: 11px; line-height: 1.7; }
  .clause-panel-top { font-size: 11px; }
  .source-chip { font-size: 10px; }
  .clause-content blockquote { font-size: 17px; line-height: 1.9; }
  .clause-plain { font-size: 13px; line-height: 1.85; }
  .clause-panel-foot { font-size: 10px; line-height: 1.6; }
  .tools-grid h3 { font-size: 14px; }
  .tools-grid p { font-size: 12px; line-height: 1.8; }
  .about-copy h2 { font-size: clamp(34px, 9vw, 42px); }
  .about-copy > p:not(.eyebrow) { font-size: 13px; line-height: 1.9; }
  .about-facts div { font-size: 12px; }
  .closing-copy > p:not(.eyebrow) { font-size: 13px; line-height: 1.85; }
  .footer-top > p { font-size: 12px; }
  .footer-top nav a { font-size: 11px; }
  .footer-bottom { font-size: 10px; line-height: 1.7; }
}
@media (max-width: 380px) {
  .icon-button { width: 36px; height: 36px; }
  .menu-button { width: 36px; height: 36px; }
  .brand { gap: 8px; }
  .brand-copy strong { font-size: 11px; }
  .hero { padding-top: 34px; }
  .hero h1 { font-size: 42px; }
  .hero-actions { flex-wrap: wrap; gap: 12px 18px; }
  .intro-inner { padding-inline: 8px; }
  .tools-grid { grid-template-columns: 1fr; }
  .tools-grid article { min-height: 0; padding: 20px 18px; }
  .tools-grid article:nth-child(2) { border-right: 1px solid var(--line); }
  .tools-grid article:nth-child(3) { border-bottom: 1px solid var(--line); }
}
