:root {
  --ink: #25332d;
  --ink-soft: #4f5f57;
  --muted: #718078;
  --paper: #f7f4ed;
  --surface: #fffdf8;
  --surface-soft: #f1eee5;
  --sage: #cbd8c9;
  --sage-deep: #476756;
  --sage-dark: #2f5040;
  --peach: #eed6c8;
  --sun: #efd695;
  --line: rgba(37, 51, 45, 0.13);
  --shadow: 0 22px 60px rgba(54, 69, 60, 0.11);
  --shadow-soft: 0 12px 32px rgba(54, 69, 60, 0.08);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --content: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(238, 214, 200, 0.45), transparent 26rem),
    radial-gradient(circle at 92% 18%, rgba(203, 216, 201, 0.6), transparent 30rem),
    var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(71, 103, 86, 0.38);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.narrow {
  width: min(calc(100% - 40px), 760px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(247, 244, 237, 0.86);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.nav-shell {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: url("favicon.svg") center / contain no-repeat;
}

.brand-mark::before {
  content: none;
}

.brand-mark::after {
  content: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(255, 253, 248, 0.75);
  color: var(--sage-dark);
}

.nav-cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 8px 17px !important;
  background: var(--sage-dark) !important;
  color: white !important;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  content: "";
  transition: transform 180ms ease;
}

.menu-toggle span::before {
  transform: translateY(-6px);
}

.menu-toggle span::after {
  transform: translateY(4.5px);
}

.menu-open .menu-toggle span {
  background: transparent;
}

.menu-open .menu-toggle span::before {
  transform: translateY(0) rotate(45deg);
}

.menu-open .menu-toggle span::after {
  transform: translateY(-1.5px) rotate(-45deg);
}

main {
  min-height: 68vh;
}

.hero {
  padding: 84px 0 72px;
}

.hero-grid {
  display: grid;
  align-items: center;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(44px, 7vw, 92px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--sage-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.eyebrow::before {
  width: 30px;
  height: 1px;
  background: currentColor;
  content: "";
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  font-weight: 600;
  line-height: 1.25;
}

h1 {
  max-width: 10em;
  margin-bottom: 24px;
  font-size: clamp(44px, 6vw, 76px);
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.lead {
  max-width: 620px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 20px);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--sage-dark);
  box-shadow: 0 12px 26px rgba(47, 80, 64, 0.2);
  color: white;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 253, 248, 0.65);
  color: var(--ink);
}

.button-small {
  min-height: 42px;
  padding: 8px 16px;
  font-size: 14px;
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin: 28px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  list-style: none;
}

.trust-line li::before {
  margin-right: 7px;
  color: var(--sage-deep);
  content: "·";
  font-weight: 900;
}

.hero-art {
  position: relative;
  display: grid;
  min-height: 500px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 46% 46% 40% 40% / 38% 38% 45% 45%;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.68), rgba(203, 216, 201, 0.8)),
    var(--sage);
  box-shadow: var(--shadow);
}

.hero-art::before,
.hero-art::after {
  position: absolute;
  border: 1px solid rgba(47, 80, 64, 0.12);
  border-radius: 50%;
  content: "";
}

.hero-art::before {
  width: 360px;
  height: 360px;
}

.hero-art::after {
  width: 450px;
  height: 450px;
}

.breathing-orb {
  position: relative;
  z-index: 1;
  display: grid;
  width: 220px;
  height: 220px;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fffdf8, var(--peach) 52%, #dfbca9);
  box-shadow: 0 30px 80px rgba(72, 80, 68, 0.16);
  animation: breathe 8s ease-in-out infinite;
}

.breathing-orb span {
  color: var(--sage-dark);
  font-family: "Songti SC", "STSong", serif;
  font-size: 18px;
  letter-spacing: 0.22em;
}

.art-note {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 28px;
  max-width: 210px;
  margin: 0;
  padding: 17px 19px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.74);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
  backdrop-filter: blur(10px);
}

@keyframes breathe {
  0%,
  100% { transform: scale(0.9); }
  50% { transform: scale(1.06); }
}

.section {
  padding: 88px 0;
}

.section-tight {
  padding: 60px 0;
}

.section-alt {
  border-block: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.58);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 36px;
}

.section-heading p {
  max-width: 510px;
  margin: 0;
  color: var(--ink-soft);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  min-height: 275px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.78);
  box-shadow: var(--shadow-soft);
}

.card::after {
  position: absolute;
  right: -44px;
  bottom: -52px;
  width: 150px;
  height: 150px;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.card-number {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--sage-deep);
  font-size: 13px;
  font-weight: 800;
}

.card p {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 15px;
}

.text-link {
  position: relative;
  z-index: 1;
  color: var(--sage-dark);
  font-weight: 700;
  text-decoration: none;
}

.text-link::after {
  margin-left: 7px;
  content: "→";
}

.split {
  display: grid;
  align-items: center;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 8vw, 100px);
}

.paper-panel {
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.routine-list {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.routine-list li {
  display: grid;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  grid-template-columns: 54px 1fr;
  gap: 12px;
}

.routine-list strong {
  color: var(--sage-deep);
  font-size: 13px;
}

.routine-list span {
  color: var(--ink-soft);
}

.quote-block {
  position: relative;
  padding: 12px 0 12px 34px;
  border-left: 2px solid var(--peach);
}

.quote-block p {
  margin: 0 0 12px;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.5;
}

.quote-block small {
  color: var(--muted);
}

.page-hero {
  padding: 76px 0 50px;
  text-align: center;
}

.page-hero h1 {
  max-width: 12em;
  margin-inline: auto;
  font-size: clamp(40px, 6vw, 66px);
}

.page-hero .lead {
  margin-inline: auto;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
}

.tag {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.65);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.timer-panel {
  display: grid;
  align-items: center;
  padding: clamp(28px, 6vw, 60px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 253, 248, 0.9), rgba(203, 216, 201, 0.45));
  box-shadow: var(--shadow);
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(36px, 7vw, 80px);
}

.timer-ring {
  --progress: 0deg;
  display: grid;
  width: min(270px, 70vw);
  aspect-ratio: 1;
  margin-inline: auto;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--sage-deep) var(--progress), rgba(255, 255, 255, 0.58) 0);
  box-shadow: 0 22px 70px rgba(47, 80, 64, 0.14);
}

.timer-face {
  display: grid;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  text-align: center;
}

.timer-time {
  display: block;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(44px, 7vw, 64px);
  line-height: 1;
}

.timer-label {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.timer-copy p {
  color: var(--ink-soft);
}

.steps {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  grid-template-columns: 72px 1fr;
  gap: 15px;
  opacity: 0.58;
  transition: opacity 180ms ease;
}

.step.is-current,
.step:first-child {
  opacity: 1;
}

.step-time {
  color: var(--sage-deep);
  font-size: 12px;
  font-weight: 800;
}

.step strong {
  display: block;
  margin-bottom: 4px;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.notice {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(177, 132, 75, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(239, 214, 149, 0.2);
  color: var(--ink-soft);
  font-size: 14px;
}

.article-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 60px;
}

.article {
  font-size: 17px;
}

.article > *:first-child {
  margin-top: 0;
}

.article h2 {
  margin-top: 60px;
  font-size: 34px;
}

.article h3 {
  margin-top: 34px;
}

.article p,
.article li {
  color: var(--ink-soft);
}

.article ul,
.article ol {
  padding-left: 1.35em;
}

.article li + li {
  margin-top: 10px;
}

.article-note {
  margin: 34px 0;
  padding: 24px;
  border-left: 3px solid var(--sage-deep);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(203, 216, 201, 0.34);
}

.article-note p:last-child {
  margin-bottom: 0;
}

.toc {
  position: sticky;
  top: 108px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.7);
}

.toc strong {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
}

.toc a {
  display: block;
  padding: 6px 0;
  color: var(--ink-soft);
  font-size: 13px;
  text-decoration: none;
}

.toc a:hover {
  color: var(--sage-dark);
}

.prompt-box {
  margin: 36px 0;
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(238, 214, 200, 0.5), rgba(255, 253, 248, 0.9));
}

.prompt-box small {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.prompt-text {
  min-height: 3.2em;
  margin: 18px 0 24px;
  color: var(--ink) !important;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.6;
}

.writing-sheet {
  margin: 36px 0;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background:
    repeating-linear-gradient(to bottom, transparent 0, transparent 38px, rgba(37, 51, 45, 0.1) 39px),
    var(--surface);
}

.writing-sheet h3 {
  margin-top: 0;
}

.writing-space {
  min-height: 280px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.resource-card {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.75);
}

.resource-card.wide {
  grid-column: 1 / -1;
}

.resource-card p {
  color: var(--ink-soft);
}

.resource-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--sage-deep);
  font-size: 12px;
  font-weight: 700;
}

.principles {
  display: grid;
  margin: 38px 0;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.principle {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.65);
}

.principle strong {
  display: block;
  margin-bottom: 7px;
}

.principle p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.legal {
  padding: 64px 0 90px;
}

.legal h1 {
  max-width: none;
  margin-bottom: 10px;
  font-size: clamp(38px, 5vw, 56px);
}

.legal .updated {
  margin-bottom: 46px;
  color: var(--muted);
  font-size: 13px;
}

.legal h2 {
  margin-top: 46px;
  font-size: 28px;
}

.legal p,
.legal li {
  color: var(--ink-soft);
}

.site-footer {
  padding: 58px 0 32px;
  border-top: 1px solid var(--line);
  background: rgba(237, 234, 225, 0.65);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 54px;
}

.footer-brand p {
  max-width: 430px;
  color: var(--ink-soft);
  font-size: 14px;
}

.footer-nav strong {
  display: block;
  margin-bottom: 13px;
  font-size: 13px;
}

.footer-nav a {
  display: block;
  padding: 4px 0;
  color: var(--ink-soft);
  font-size: 13px;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--sage-dark);
}

.footer-bottom {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.footer-bottom p {
  max-width: 700px;
  margin: 0;
}

.error-page {
  display: grid;
  min-height: 72vh;
  place-items: center;
  padding: 70px 20px;
  text-align: center;
}

.center-actions {
  justify-content: center;
}

.error-code {
  margin: 0;
  color: var(--sage);
  font-family: "Songti SC", serif;
  font-size: clamp(100px, 22vw, 220px);
  font-weight: 700;
  line-height: 0.9;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: grid;
  }

  .nav-links {
    position: fixed;
    z-index: 90;
    top: 78px;
    right: 20px;
    left: 20px;
    display: none;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 253, 248, 0.98);
    box-shadow: var(--shadow);
  }

  .menu-open .nav-links {
    display: grid;
  }

  .nav-links a {
    padding: 12px 14px;
  }

  .nav-cta {
    margin-top: 6px;
    justify-content: center;
  }

  .hero-grid,
  .split,
  .timer-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 58px;
  }

  .hero-art {
    min-height: 420px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 14px;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .container,
  .narrow {
    width: min(calc(100% - 28px), var(--content));
  }

  .nav-shell {
    min-height: 70px;
  }

  .nav-links {
    top: 70px;
    right: 14px;
    left: 14px;
  }

  .hero {
    padding: 46px 0 54px;
  }

  h1 {
    font-size: clamp(42px, 15vw, 58px);
  }

  .hero-art {
    min-height: 360px;
    border-radius: 42px;
  }

  .breathing-orb {
    width: 170px;
    height: 170px;
  }

  .art-note {
    right: 18px;
    bottom: 18px;
    left: 18px;
    max-width: none;
  }

  .section {
    padding: 64px 0;
  }

  .paper-panel,
  .timer-panel {
    padding: 24px;
    border-radius: 24px;
  }

  .resource-grid,
  .principles {
    grid-template-columns: 1fr;
  }

  .resource-card.wide {
    grid-column: auto;
  }

  .step {
    grid-template-columns: 60px 1fr;
  }

  .footer-grid {
    gap: 34px 20px;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom p + p {
    margin-top: 10px;
  }
}

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

@media print {
  .site-header,
  .site-footer,
  .page-hero,
  .toc,
  .no-print,
  .button-row {
    display: none !important;
  }

  body {
    background: white;
  }

  .section,
  .legal {
    padding: 0;
  }

  .article-layout {
    display: block;
  }

  .writing-sheet {
    min-height: 80vh;
    border: 1px solid #999;
    break-inside: avoid;
  }
}
