:root {
  --ink: #2e2118;
  --paper: #f7f0e2;
  --paper-deep: #e8dac2;
  --red: #8c2e22;
  --gold: #b98949;
  --mist: #d5c5ad;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Noto Serif SC", serif; }
a { color: inherit; text-decoration: none; }

.site-header { position: absolute; z-index: 3; top: 0; left: 0; width: 100%; height: 82px; padding: 0 6vw; display: flex; align-items: center; justify-content: space-between; color: var(--ink); border-bottom: 1px solid rgba(46,33,24,.18); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: 1px; }
.brand-seal { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid currentColor; border-radius: 50%; font-family: "Ma Shan Zheng", cursive; font-size: 22px; }
nav { display: flex; gap: 32px; font-size: 14px; }
nav a { opacity: .88; }
nav a:hover, .text-link:hover { opacity: .65; }
.header-action, .button { display: inline-flex; align-items: center; gap: 9px; padding: 12px 17px; font-size: 13px; border-radius: 2px; }
.header-action { border: 1px solid rgba(46,33,24,.45); }
svg { width: 17px; height: 17px; stroke-width: 1.6; }

.hero { position: relative; min-height: 760px; height: 100vh; overflow: hidden; color: var(--ink); background-color: #f2e6d0; background-image: linear-gradient(rgba(105,88,71,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(105,88,71,.08) 1px, transparent 1px); background-size: 26px 26px; }
.hero::before { position: absolute; content: ""; width: 42vw; height: 42vw; min-width: 520px; min-height: 520px; right: -13vw; top: 14vh; border: 1px solid rgba(140,46,34,.25); border-radius: 50%; box-shadow: 0 0 0 28px rgba(140,46,34,.04), 0 0 0 56px rgba(140,46,34,.025); }
.hero-content { position: relative; z-index: 1; padding: clamp(150px, 23vh, 230px) 8vw 90px; max-width: 800px; }
.eyebrow, .section-kicker { margin: 0 0 18px; font-size: 12px; letter-spacing: 3px; font-weight: 600; color: var(--gold); }
.hero .eyebrow { color: var(--red); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 20px; font-family: "Ma Shan Zheng", cursive; font-size: clamp(78px, 12vw, 150px); font-weight: 400; letter-spacing: 6px; line-height: .9; }
.hero-copy { font-size: clamp(17px, 2vw, 21px); line-height: 2; letter-spacing: 1px; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 40px; }
.button-light { background: var(--ink); color: #fff7e9; }
.text-link { display: inline-flex; align-items: center; gap: 8px; border-bottom: 1px solid currentColor; padding-bottom: 4px; font-size: 14px; }
.hero-art { position: absolute; z-index: 1; right: 10vw; top: 21vh; width: min(33vw, 440px); height: min(33vw, 440px); border: 1px solid rgba(46,33,24,.3); border-radius: 50%; background: rgba(247,240,226,.75); transform: rotate(-9deg); }
.art-seal { position: absolute; display: grid; place-items: center; top: 16%; left: 17%; width: 88px; height: 88px; border: 2px solid var(--red); border-radius: 50%; color: var(--red); font-family: "Ma Shan Zheng", cursive; font-size: 61px; transform: rotate(9deg); }
.string-field { position: absolute; inset: 35% 9% auto; display: flex; flex-direction: column; gap: 12px; transform: rotate(9deg); }
.string-field span { display: block; height: 1px; background: linear-gradient(90deg, transparent, #8a7357, transparent); }
.art-note { position: absolute; display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid #a48a69; border-radius: 50%; background: var(--paper); color: var(--red); transform: rotate(9deg); }
.art-note svg { width: 23px; height: 23px; }
.note-one { right: 18%; top: 17%; }.note-two { left: 11%; bottom: 20%; }.note-three { right: 16%; bottom: 12%; }
.hero-art p { position: absolute; right: 11%; bottom: 24%; writing-mode: vertical-rl; color: #66513c; font-size: 14px; letter-spacing: 4px; line-height: 2; transform: rotate(9deg); }
.scroll-cue { position: absolute; z-index: 1; left: 8vw; bottom: 34px; display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 2px; }
.scroll-cue span { width: 42px; height: 1px; background: currentColor; }

.section-wrap { width: min(1180px, 88vw); margin-inline: auto; }
.intro { padding: 142px 0; }
.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 10vw, 160px); align-items: end; }
h2 { font-size: clamp(34px, 4.8vw, 64px); line-height: 1.25; letter-spacing: 1px; margin-bottom: 0; }
.intro-grid p { color: #695847; font-size: 17px; line-height: 2; margin-bottom: 20px; }

.features { padding: 25px 0 140px; }
.section-heading { max-width: 750px; margin-bottom: 54px; }
.feature-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.feature { min-height: 335px; padding: 28px; position: relative; border: 1px solid #cdbb9e; display: flex; flex-direction: column; justify-content: flex-end; background: #f1e5d1; overflow: hidden; }
.feature svg { position: absolute; right: 27px; top: 27px; width: 28px; height: 28px; }
.feature-number { position: absolute; top: 27px; left: 28px; color: #846f56; font-size: 12px; letter-spacing: 1px; }
.feature h3 { font-size: 26px; margin: 0 0 12px; }
.feature p { margin: 0; font-size: 14px; line-height: 1.9; color: #685744; }
.feature-large { grid-column: span 7; }
.feature-dark { grid-column: span 5; background: var(--ink); color: #fff4e2; border-color: var(--ink); }
.feature-dark p, .feature-dark .feature-number { color: #cdbb9e; }
.feature-sage { grid-column: span 5; min-height: 390px; background: #c8d2be; border-color: #a7b49b; }
.feature-sage::after { position: absolute; content: ""; width: 215px; height: 215px; right: -55px; bottom: -85px; border: 1px solid #788a69; border-radius: 50%; box-shadow: 0 0 0 18px rgba(96,119,80,.12); }
.feature-gold { grid-column: span 7; min-height: 390px; background: #cba66e; border-color: #b98d4d; }

.practice { color: #fff5e6; background: var(--ink); padding: 135px 0; position: relative; }
.practice-content { max-width: 1180px; }
.light { color: #dcbd87; }
.practice h2 { max-width: 600px; }
.practice-copy { max-width: 560px; margin: 29px 0 48px; color: #d7c2a5; line-height: 2; font-size: 16px; }
.practice-list { display: flex; border-top: 1px solid rgba(231,207,168,.36); max-width: 800px; }
.practice-list span { flex: 1; padding: 18px 10px 0 0; color: #e7cfaa; font-size: 14px; }
.practice-list b { display: block; margin-bottom: 8px; color: #b98949; font-size: 12px; }

.community { padding: 142px 0; }
.community-card { display: grid; grid-template-columns: 1.2fr .8fr; border: 1px solid #cdbb9e; }
.community-copy { padding: clamp(36px, 7vw, 95px); }
.community-copy p:not(.section-kicker) { max-width: 440px; margin: 28px 0; color: #695847; font-size: 16px; line-height: 2; }
.dark-link { margin-top: 8px; }
.community-stats { padding: clamp(30px, 5vw, 68px); background: #e9dbc5; display: flex; flex-direction: column; justify-content: center; gap: 32px; }
.community-stats div { display: flex; align-items: center; gap: 15px; padding-bottom: 20px; border-bottom: 1px solid #c5ad8d; font-size: 15px; }
.community-stats svg { color: var(--red); }

.download { padding: 0 0 145px; display: grid; grid-template-columns: 1fr .85fr; gap: 10vw; align-items: center; }
.download-panel { padding: 42px; background: var(--red); color: #fff3dc; }
.download-icon { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 38px; border: 1px solid rgba(255,243,220,.6); border-radius: 50%; }
.download-icon svg { width: 30px; height: 30px; }
.download-panel h3 { font-size: 25px; margin-bottom: 12px; }
.download-panel p { line-height: 1.9; font-size: 14px; color: #f0d6b1; }
.button-ink { background: var(--ink); margin-top: 20px; }
footer { padding: 36px 6vw; background: #1e1610; color: #d8c4a5; display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
footer .brand { color: #f5e3c7; }
footer p { margin: 0; }
footer .footer-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
footer .icp-link { color: inherit; text-decoration: none; transition: color 160ms ease; }
footer .icp-link:hover { color: #f5e3c7; }

.legal-page { min-height: 100vh; background: #f2e6d0; }
.legal-header { position: static; }
.legal-main { width: min(860px, 88vw); margin: 0 auto; padding: 72px 0 110px; }
.legal-main h1 { margin-bottom: 18px; font-family: "Noto Serif SC", serif; font-size: clamp(38px, 6vw, 64px); font-weight: 700; line-height: 1.2; letter-spacing: 2px; }
.legal-updated { margin-bottom: 44px; color: #806d59; font-size: 14px; }
.legal-main section { padding: 28px 0; border-top: 1px solid rgba(46,33,24,.18); }
.legal-main h2 { margin-bottom: 14px; font-size: 24px; }
.legal-main h3 { margin: 22px 0 10px; font-size: 17px; }
.legal-main p, .legal-main li { color: #5f4e3d; font-size: 15px; line-height: 2; }
.legal-main ul { padding-left: 1.4em; }
.legal-main a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.support-card { margin-top: 28px; padding: 26px; border: 1px solid #cdbb9e; background: rgba(247,240,226,.75); }

.reveal { animation: rise .8s ease-out both; }
.hero h1 { animation-delay: .08s; }
.hero-copy { animation-delay: .17s; }
.hero-actions { animation-delay: .26s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 720px) {
  .site-header { height: 66px; padding: 0 6vw; }
  nav, .header-action { display: none; }
  .hero { min-height: 690px; }
  .hero-content { padding: 155px 8vw 50px; }
  .hero-art { width: 250px; height: 250px; right: -50px; top: 120px; opacity: .6; }
  .art-seal { width: 58px; height: 58px; font-size: 40px; }
  .string-field { gap: 7px; }
  .art-note { width: 38px; height: 38px; }
  .art-note svg { width: 16px; height: 16px; }
  .hero-art p { display: none; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 22px; }
  .intro, .features, .community { padding-top: 88px; padding-bottom: 88px; }
  .intro-grid, .community-card, .download { grid-template-columns: 1fr; }
  .intro-grid { gap: 26px; }
  .feature-grid { display: block; }
  .feature { min-height: 290px; margin-bottom: 14px; }
  .feature-sage, .feature-gold { min-height: 310px; }
  .practice { padding: 88px 0; }
  .practice-list { display: block; }
  .practice-list span { display: block; border-bottom: 1px solid rgba(231,207,168,.22); padding-bottom: 15px; }
  .community-copy, .community-stats, .download-panel { padding: 35px 28px; }
  .download { gap: 42px; }
  footer { align-items: flex-start; flex-direction: column; gap: 16px; }
}
