:root {
  color-scheme: light;
  --paper: #f8f8f2;
  --surface: #eef0e8;
  --white: #fffefa;
  --ink: #1e2a22;
  --subtle: #56665b;
  --pine: #284333;
  --line: #dce1d8;
  --accent: #d7eaae;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; color: var(--ink); background: var(--paper); font: 1rem/1.65 var(--sans); }
a { color: inherit; }
button { font: inherit; }
figure, h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #557849; outline-offset: 4px; }
::selection { color: #0f2819; background: #d5eeb8; }
.wrap { width: min(72rem, calc(100% - 6rem)); margin-inline: auto; }
.skip, .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { z-index: 2; width: auto; height: auto; clip-path: none; padding: .6rem 1rem; background: var(--white); }
.header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 5.05rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.3rem; }
.wordmark { display: inline-flex; justify-self: start; align-items: center; gap: .72rem; text-decoration: none; }
.wordmark b { display: block; font-size: 1rem; line-height: 1.25; letter-spacing: .035em; }
.wordmark-en { display: block; margin-top: .21rem; font-size: .76rem; letter-spacing: .105em; color: var(--subtle); line-height: 1; }
.mark { display: grid; align-content: center; justify-items: center; gap: 3px; width: 2.28rem; height: 2.28rem; border-radius: .65rem; background: var(--pine); }
.mark i { display: block; width: 15px; height: 8px; background: var(--accent); clip-path: polygon(50% 0,100% 100%,0 100%); }
.mark i:first-child { width: 10px; height: 5px; }
.nav { display: flex; gap: clamp(.8rem, 3vw, 2rem); align-items: center; }
.nav a { font-size: .93rem; font-weight: 660; text-decoration: none; padding: .55rem .2rem; }
.nav a:hover, .footer a:hover, .text-link:hover { color: #436a3e; }
.domain { justify-self: end; color: var(--subtle); font-size: .82rem; letter-spacing: .105em; font-weight: 650; }
.hero { display: grid; grid-template-columns: .94fr 1.32fr; gap: clamp(2.6rem, 5.8vw, 5.3rem); align-items: center; padding-top: 4.05rem; padding-bottom: 4.3rem; }
.hero-copy { padding-bottom: .35rem; }
.eyebrow { font-size: .94rem; font-weight: 720; letter-spacing: .08em; color: #33513e; display: flex; align-items: center; gap: .62rem; }
.eyebrow span { display: inline-block; width: 1.4rem; height: 2px; background: #729b55; }
h1 { font: 800 clamp(3rem, 5.15vw, 4.75rem)/1.09 var(--serif); letter-spacing: -.054em; margin-block: 1.08rem 1.22rem; }
h1 em { color: #426749; font-style: normal; }
.hero-copy > p { color: var(--subtle); font-size: 1.08rem; max-width: 22rem; line-height: 1.82; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.34rem; margin-top: 1.65rem; }
.primary { display: inline-flex; min-height: 2.95rem; align-items: center; justify-content: center; border-radius: .6rem; background: var(--pine); color: var(--white); text-decoration: none; font-weight: 700; padding: .6rem 1.14rem; }
.primary:hover { background: #395b44; }
.text-link { display: inline-flex; align-items: center; min-height: 2.75rem; text-underline-offset: .27rem; font-weight: 660; }
.hero-image { position: relative; overflow: hidden; border-radius: 1.07rem; background: #bfc9b6; min-width: 0; box-shadow: 0 10px 30px #293b2813; }
.hero-image img { width: 100%; height: auto; aspect-ratio: 1.48; object-fit: cover; object-position: center 56%; }
.hero-image::after { content: ""; position: absolute; pointer-events: none; inset: 57% 0 0; background: linear-gradient(transparent, #132c23a8); }
.hero-image figcaption { position: absolute; z-index: 1; inset: auto 1.25rem 1.1rem; display: flex; align-items: center; gap: .52rem; color: #fffefa; font-size: .94rem; font-weight: 700; text-shadow: 0 1px 5px #0009; }
.caption-dot { width: .42rem; height: .42rem; border-radius: 50%; background: var(--accent); }
.caption-en { margin-left: auto; font-size: .76rem; letter-spacing: .115em; }
.notes { background: var(--surface); border-block: 1px solid var(--line); padding: 3.15rem 0 3.95rem; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: .7rem 2rem; margin-bottom: 1.6rem; }
.section-kicker { color: #486353; font-size: .82rem; font-weight: 800; letter-spacing: .14em; }
h2 { font: 800 clamp(2rem, 3.6vw, 3rem)/1.15 var(--serif); letter-spacing: -.045em; }
.section-head h2 { margin-top: .48rem; }
.filters { display: flex; flex-wrap: wrap; gap: .45rem; }
.filters button, .close { color: var(--pine); background: transparent; border: 1px solid #c9d2c7; border-radius: 999px; padding: .46rem .86rem; min-height: 2.75rem; font-weight: 680; cursor: pointer; font-size: .94rem; }
.filters button:hover, .close:hover { background: #dfe7d5; }
.filters button[aria-pressed="true"] { color: var(--white); background: var(--pine); border-color: var(--pine); }
.note-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .95rem; }
.note-card { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; background: var(--white); border: 1px solid var(--line); padding: 1.35rem 1.4rem 1.18rem; border-radius: .9rem; }
.note-card:hover { border-color: #98ad99; }
.note-meta { display: flex; gap: .65rem; align-items: center; flex-wrap: wrap; font-size: .85rem; color: var(--subtle); }
.note-tag { border-radius: .32rem; padding: .13rem .44rem; color: #33523c; background: #e3eddb; font-size: .86rem; font-weight: 750; }
.note-card[data-topic="practice"] .note-tag { color: #404b65; background: #e6eaf2; }
.note-card[data-topic="life"] .note-tag { color: #68502c; background: #f2ede0; }
.note-card h3 { font-size: clamp(1.22rem, 2vw, 1.42rem); line-height: 1.4; letter-spacing: -.02em; }
.note-excerpt { color: var(--subtle); line-height: 1.65; margin-bottom: .16rem; }
.note-read { color: var(--pine); font-weight: 720; text-underline-offset: .24rem; margin-top: auto; min-height: 2.75rem; display: inline-flex; align-items: center; }
.note-read:hover { color: #537741; }
.about { padding-block: 3.6rem; }
.about-panel { background: var(--pine); color: var(--white); border-radius: 1rem; padding: clamp(1.8rem, 5vw, 3.3rem); }
.about-panel .section-kicker { color: var(--accent); }
.about-layout { display: grid; grid-template-columns: 1fr 1.1fr; align-items: end; gap: 1.4rem 3.6rem; margin-top: 1rem; }
.about-copy { color: #e6eddf; max-width: 36rem; }
.about-copy p + p { margin-top: .75rem; }
.footer { border-top: 1px solid var(--line); color: var(--subtle); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 4.6rem; font-size: .93rem; }
.footer b { color: var(--pine); }
.footer-separator { margin: 0 .21rem; }
.footer a { white-space: nowrap; text-underline-offset: .26rem; }
.reader { width: min(42rem, calc(100% - 2rem)); border: 1px solid var(--line); border-radius: 1rem; color: var(--ink); background: var(--white); padding: 0; max-height: calc(100dvh - 2rem); }
.reader::backdrop { background: #162b21a0; }
.reader-inner { padding: clamp(1.2rem, 4.5vw, 2.5rem); }
.reader-top { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-bottom: .85rem; }
.reader-title { margin: 0; }
.reader h2:focus { outline: none; }
.reader-lede { margin: 1rem 0 1.15rem; border-left: 3px solid #aeca89; padding: .1rem 0 .16rem .8rem; color: var(--subtle); }
.reader-body p + p { margin-top: .92rem; }
.reader-end { border-top: 1px solid var(--line); padding-top: .65rem; margin-top: 1.55rem; color: var(--subtle); font-size: .81rem; font-weight: 700; letter-spacing: .13em; }
.reading { overflow: hidden; }
@media (max-width: 960px) {
  .wrap { width: calc(100% - 4rem); }
  .hero { gap: 2.5rem; padding-block: 3.2rem; }
  .hero-image img { aspect-ratio: 1.18; }
  .note-card { padding-inline: 1.1rem; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 2.4rem); }
  .header-inner { min-height: 4.35rem; display: flex; justify-content: space-between; gap: .65rem; }
  .domain { display: none; }
  .nav { gap: .8rem; }
  .hero { display: grid; grid-template-columns: 1fr; gap: 1.6rem; align-items: start; padding-block: 2.15rem 2.45rem; }
  h1 { font-size: clamp(2.6rem, 11.8vw, 4.2rem); }
  .hero-copy > p { max-width: 30rem; font-size: 1rem; }
  .hero-actions { gap: .8rem 1.12rem; margin-top: 1.16rem; }
  .hero-image img { aspect-ratio: 1.5; }
  .hero-image figcaption { inset: auto .83rem .75rem; }
  .notes { padding-block: 2.1rem 2.5rem; }
  .section-head { align-items: start; flex-direction: column; margin-bottom: 1.05rem; }
  .filters { margin-top: .35rem; }
  .note-grid { grid-template-columns: 1fr; gap: .68rem; }
  .about { padding-block: 2.1rem; }
  .about-layout { grid-template-columns: 1fr; }
  .footer-inner { min-height: 4.4rem; }
}
@media (max-width: 350px) {
  .wrap { width: calc(100% - 1.6rem); }
  .nav { gap: .55rem; }
  .wordmark { gap: .4rem; }
  .wordmark-en, .caption-en { display: none; }
  .filters { gap: .34rem; }
  .filters button { padding-inline: .7rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
