/* ===========================================
   Chinese Wellness Self-Care
   Modern editorial wellness guide — v2
   =========================================== */

:root {
  /* Paper & ink */
  --paper: #fbf7ed;
  --paper-warm: #faf3e3;
  --porcelain: #fffdf8;
  --ink: #1e2a23;
  --ink-soft: #4a564e;
  --ink-muted: #7c827d;

  /* Botanicals */
  --moss: #5a7a5c;
  --moss-deep: #2f4938;
  --moss-pale: #e4ede2;
  --jade-wash: #dce8d8;

  /* Earth & clay */
  --clay: #a05a3c;
  --clay-deep: #6e3824;
  --clay-pale: #f5e8df;
  --cinnamon: #c47a50;
  --tea-gold: #c3a35f;
  --tea-pale: #efe5d0;

  /* Lines */
  --line: #e0d7c6;
  --line-strong: #cbb996;
  --line-faint: #ede5d5;

  /* Warnings */
  --warn-bg: #fff2ea;
  --warn: #8b3c28;

  /* Shadows — paper-like, not SaaS */
  --shadow-paper: 0 1px 3px rgba(54, 45, 31, 0.06), 0 4px 16px rgba(54, 45, 31, 0.05);
  --shadow-card: 0 1px 2px rgba(54, 45, 31, 0.04), 0 3px 8px rgba(54, 45, 31, 0.04);

  /* Typography */
  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;

  /* Layout */
  --max-reading: 720px;
  --max-site: 1100px;
  --radius: 3px;
}

/* ===========================================
   Reset & Base
   =========================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 40px,
      rgba(160, 90, 60, 0.018) 40px,
      rgba(160, 90, 60, 0.018) 41px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 56px,
      rgba(90, 122, 92, 0.015) 56px,
      rgba(90, 122, 92, 0.015) 57px
    );
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--moss-deep);
  text-decoration-color: rgba(90, 122, 92, 0.4);
  text-underline-offset: 0.18em;
  transition: color 0.15s;
}

a:hover {
  color: var(--clay-deep);
  text-decoration-color: var(--clay);
}

/* ===========================================
   Typography
   =========================================== */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.16;
  font-weight: 700;
}

h1 {
  max-width: 860px;
  margin-bottom: var(--space-lg);
  font-size: clamp(2rem, 4.5vw, 3.6rem);
}

h2 {
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-md);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 700;
}

h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  margin-bottom: var(--space-md);
}

ul, ol {
  margin-bottom: var(--space-lg);
  padding-left: 1.35rem;
}

li {
  margin-bottom: var(--space-xs);
}

blockquote {
  margin: var(--space-xl) 0;
  padding: var(--space-lg) var(--space-xl);
  border-left: 4px solid var(--tea-gold);
  background: rgba(240, 229, 208, 0.35);
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 1.08rem;
}

/* ===========================================
   Header — handbook-like, fine lines
   =========================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-top: 3px solid var(--clay);
  border-bottom: 1px solid rgba(203, 185, 150, 0.7);
  background: rgba(251, 247, 237, 0.94);
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: var(--max-site);
  margin: 0 auto;
  padding: 0.7rem var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

/* Logo — stamp-like mark */
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.site-logo::before {
  content: "";
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border: 1.5px solid var(--moss-deep);
  border-radius: 2px;
  background:
    linear-gradient(135deg, transparent 44%, var(--moss) 45%, var(--moss) 55%, transparent 56%),
    linear-gradient(45deg, transparent 44%, var(--clay) 45%, var(--clay) 55%, transparent 56%);
  box-shadow: 2px 2px 0 var(--moss-pale);
}

.site-logo:hover {
  color: var(--clay-deep);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 0.4rem 0.6rem;
  border: 1px solid transparent;
  border-radius: 2px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.site-nav a:hover {
  border-color: rgba(203, 185, 150, 0.65);
  background: rgba(255, 253, 248, 0.65);
  color: var(--ink);
}

/* ===========================================
   Layout
   =========================================== */

.main-content {
  width: min(var(--max-reading), calc(100% - 2rem));
  margin: 0 auto;
  padding: var(--space-2xl) 0 var(--space-3xl);
}

.main-content-wide {
  width: min(var(--max-site), calc(100% - 2rem));
}

/* ===========================================
   Footer — book colophon
   =========================================== */

.site-footer {
  margin-top: var(--space-2xl);
  border-top: 1px solid var(--line-strong);
  background: var(--ink);
  color: rgba(251, 247, 237, 0.75);
  font-size: 0.88rem;
}

.footer-inner {
  max-width: var(--max-site);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-xl);
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: var(--space-xl);
}

.footer-col h4 {
  margin-bottom: var(--space-sm);
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 700;
}

.footer-col a {
  display: block;
  margin-bottom: var(--space-xs);
  color: rgba(251, 247, 237, 0.72);
  text-decoration-color: rgba(251, 247, 237, 0.18);
}

.footer-col a:hover {
  color: var(--paper);
}

.footer-bottom {
  max-width: var(--max-site);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid rgba(251, 247, 237, 0.12);
  color: rgba(251, 247, 237, 0.5);
  font-size: 0.76rem;
}

/* ===========================================
   Hero — editorial, left-aligned, book-like
   =========================================== */

.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 var(--space-2xl);
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: var(--space-2xl);
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: var(--space-md);
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(160, 90, 60, 0.3);
  background: rgba(255, 253, 248, 0.5);
  color: var(--clay-deep);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin-bottom: var(--space-md);
}

.hero .tagline {
  max-width: 640px;
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: clamp(1.04rem, 1.8vw, 1.28rem);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: 0;
}

/* CTA — paper label / clay stamp */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.65rem 1.05rem;
  border: 1.5px solid var(--clay-deep);
  border-radius: var(--radius);
  background: var(--clay-deep);
  color: var(--porcelain);
  font-weight: 750;
  font-size: 0.88rem;
  font-family: var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(110, 56, 36, 0.22);
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}

.cta-button:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--porcelain);
  box-shadow: 2px 2px 0 rgba(30, 42, 35, 0.25);
  transform: translate(1px, 1px);
}

.cta-button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.65rem 1.05rem;
  border: 1.5px solid var(--moss-deep);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.45);
  color: var(--moss-deep);
  font-weight: 750;
  font-size: 0.88rem;
  font-family: var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(47, 73, 56, 0.12);
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}

.cta-button-outline:hover {
  background: var(--moss-deep);
  border-color: var(--moss-deep);
  color: var(--porcelain);
  transform: translate(1px, 1px);
}

/* ===========================================
   Routine strip — three-part daily rhythm
   =========================================== */

.routine-strip {
  margin: var(--space-2xl) 0;
  padding: var(--space-xl) var(--space-lg);
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.7);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.routine-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.routine-number {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--clay);
  line-height: 1;
}

.routine-item h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.routine-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.routine-item a {
  display: inline-block;
  margin-top: var(--space-xs);
  font-size: 0.82rem;
  font-weight: 700;
}

/* ===========================================
   Breadcrumb
   =========================================== */

.breadcrumb {
  margin-bottom: var(--space-lg);
  color: var(--ink-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.breadcrumb a {
  color: var(--ink-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--clay-deep);
}

/* ===========================================
   Article meta
   =========================================== */

.article-meta {
  max-width: 680px;
  margin-bottom: var(--space-xl);
  padding-left: var(--space-md);
  border-left: 3px solid var(--tea-gold);
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.55;
}

/* ===========================================
   Chapter cards — not SaaS cards
   =========================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
  margin: var(--space-2xl) 0;
}

.card {
  position: relative;
  padding: var(--space-lg) var(--space-lg) var(--space-lg) var(--space-lg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--moss);
  background: rgba(255, 253, 248, 0.68);
  box-shadow: var(--shadow-card);
}

.card:nth-child(2) {
  border-left-color: var(--clay);
}

.card:nth-child(3) {
  border-left-color: var(--tea-gold);
}

.card h3 {
  margin: 0 0 var(--space-sm);
  font-size: 1.2rem;
}

.card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--clay-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-color: var(--clay);
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ===========================================
   Notes & callouts
   =========================================== */

.note {
  margin: var(--space-xl) 0;
  padding: var(--space-lg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--tea-gold);
  background: rgba(255, 253, 248, 0.72);
}

.note-title {
  margin-bottom: var(--space-xs);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.95rem;
}

.note-green {
  border-left-color: var(--moss);
  background: rgba(228, 237, 226, 0.55);
}

.note-green .note-title {
  color: var(--moss-deep);
}

.note-safety {
  border-left-color: var(--warn);
  background: var(--warn-bg);
}

.note-safety .note-title {
  color: var(--warn);
}

.disclaimer-banner {
  margin: var(--space-2xl) 0;
  padding: var(--space-md) var(--space-lg);
  border: 1px solid rgba(139, 60, 40, 0.22);
  border-left: 3px solid var(--warn);
  background: rgba(255, 242, 234, 0.72);
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.author-block {
  margin: var(--space-2xl) 0;
  padding: var(--space-lg);
  border: 1px solid var(--line);
  background: rgba(228, 237, 226, 0.55);
}

.author-info {
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.author-info strong {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--ink);
}

/* ===========================================
   Step list
   =========================================== */

.step-list {
  counter-reset: step;
  padding-left: 0;
  list-style: none;
}

.step-list li {
  position: relative;
  margin-bottom: var(--space-lg);
  padding: 0 0 0 var(--space-2xl);
}

.step-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--clay);
  background: var(--porcelain);
  color: var(--clay-deep);
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 0.9rem;
}

/* ===========================================
   TOC list
   =========================================== */

.toc-list {
  padding-left: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.toc-list li {
  margin: 0;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ===========================================
   Book cover — CSS-only preview
   =========================================== */

.book-cover-preview {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin: var(--space-xl) 0;
  padding: var(--space-xl);
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.65);
  box-shadow: var(--shadow-paper);
}

.book-cover-css {
  flex-shrink: 0;
  width: 180px;
  height: 260px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: linear-gradient(170deg, #f9f3e5 0%, #efe3cc 35%, #e8d9bb 100%);
  box-shadow:
    3px 6px 18px rgba(54, 45, 31, 0.12),
    inset 0 0 0 1px rgba(255, 253, 248, 0.5);
  position: relative;
  overflow: hidden;
}

.book-cover-css::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 12%;
  bottom: 12%;
  border: 1.5px solid rgba(160, 90, 60, 0.2);
  border-radius: 2px;
}

.book-cover-css::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 18%;
  height: 1px;
  background: rgba(160, 90, 60, 0.15);
  box-shadow: 0 8px 0 rgba(160, 90, 60, 0.08), 0 16px 0 rgba(160, 90, 60, 0.06), 0 24px 0 rgba(160, 90, 60, 0.05);
}

.book-cover-spine {
  display: none;
}

.book-cover-info {
  flex: 1;
}

.book-cover-info h3 {
  margin: 0 0 var(--space-xs);
  font-size: 1.4rem;
}

.book-cover-info .book-subtitle {
  margin-bottom: var(--space-sm);
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.5;
}

.book-cover-info .book-meta {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* ===========================================
   Book hero section
   =========================================== */

.book-hero {
  padding: var(--space-lg) 0;
  margin-bottom: var(--space-xl);
}

/* ===========================================
   Waitlist form
   =========================================== */

.waitlist-form {
  max-width: 500px;
  margin: var(--space-xl) 0;
  padding: var(--space-lg);
  border: 1px solid var(--line-strong);
  background: rgba(255, 253, 248, 0.7);
  box-shadow: var(--shadow-paper);
}

.waitlist-form label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 700;
  font-size: 0.92rem;
}

.waitlist-form input[type="email"] {
  width: 100%;
  margin-bottom: var(--space-md);
  padding: 0.72rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
}

.waitlist-form input[type="email"]:focus {
  outline: none;
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(90, 122, 92, 0.12);
}

.waitlist-success {
  display: none;
  padding: var(--space-lg);
  border: 1px solid rgba(90, 122, 92, 0.25);
  background: rgba(228, 237, 226, 0.65);
  color: var(--moss-deep);
  font-weight: 750;
  text-align: center;
}

.email-copy-box {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
}

.email-copy-label {
  margin-bottom: var(--space-xs);
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.email-copy-row {
  display: flex;
  gap: var(--space-xs);
  align-items: stretch;
}

.email-copy-row code {
  flex: 1;
  min-width: 0;
  padding: 0.62rem 0.7rem;
  border: 1px solid var(--line);
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.copy-email-button {
  flex: 0 0 auto;
  padding: 0.62rem 0.8rem;
  border: 1px solid var(--clay);
  border-radius: var(--radius);
  background: var(--porcelain);
  color: var(--clay-deep);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.copy-email-button:hover {
  background: var(--clay-pale);
}

.copy-email-status {
  min-height: 1.25rem;
  margin-top: var(--space-xs);
  margin-bottom: 0;
  color: var(--moss-deep);
  font-size: 0.78rem;
  font-weight: 700;
}

/* ===========================================
   Section accent divider
   =========================================== */

.section-divider {
  height: 1px;
  margin: var(--space-3xl) 0;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

/* ===========================================
   Section heading accent
   =========================================== */

main > section:not(.hero):not(.book-hero) > h2:first-child::before {
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  margin-bottom: var(--space-md);
  background: var(--clay);
}

/* ===========================================
   Safety checklist
   =========================================== */

.safety-checklist {
  padding-left: 0;
  list-style: none;
}

.safety-checklist li {
  position: relative;
  margin-bottom: var(--space-sm);
  padding: 0.65rem 0 0.65rem 2rem;
  border-bottom: 1px solid rgba(203, 185, 150, 0.35);
}

.safety-checklist li::before {
  content: "!";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 1.25rem;
  height: 1.25rem;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--warn);
  border-radius: 2px;
  color: var(--warn);
  font-size: 0.72rem;
  font-weight: 900;
}

/* ===========================================
   Mobile
   =========================================== */

@media (max-width: 780px) {
  html {
    font-size: 16px;
  }

  .header-inner {
    align-items: flex-start;
    padding: var(--space-md);
    flex-direction: column;
    gap: var(--space-sm);
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 0.1rem;
  }

  .site-nav a {
    padding: 0.35rem 0.5rem;
    font-size: 0.76rem;
  }

  .main-content {
    width: min(100% - 1.5rem, var(--max-reading));
    padding-top: var(--space-xl);
  }

  .hero {
    padding: var(--space-2xl) 0 var(--space-xl);
  }

  .hero-eyebrow {
    font-size: 0.64rem;
  }

  .cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-button,
  .cta-button-outline {
    width: 100%;
  }

  /* Routine strip -> stack */
  .routine-strip {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

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

  .book-cover-preview {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
  }

  .book-cover-css {
    width: 140px;
    height: 200px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding: var(--space-xl) var(--space-md);
    gap: var(--space-lg);
  }

  .footer-bottom {
    padding: var(--space-md);
  }

  h2 {
    margin-top: var(--space-2xl);
  }
}

/* ===========================================
   Print
   =========================================== */

@media print {
  .site-header,
  .site-footer,
  .cta-group,
  .cta-button,
  .cta-button-outline,
  .disclaimer-banner,
  .routine-strip,
  .book-cover-preview {
    display: none;
  }

  body {
    background: #ffffff;
    color: #000000;
    font-size: 12pt;
  }
}

/* ===========================================
   V4: light wood screen Chinese wellness frame
   =========================================== */

:root {
  --rosewood: #7b4a32;
  --rosewood-mid: #9b6a45;
  --rosewood-light: #c79c68;
  --lacquer: #8f4c32;
  --screen-wood: #b98756;
  --screen-wood-light: #dec18f;
  --bamboo-ink: #8c6b45;
  --warm-silk: #fff8e8;
}

body {
  background-color: #f5ead2;
  background-image:
    radial-gradient(circle at 16% 12%, rgba(123, 74, 50, 0.09), transparent 24rem),
    radial-gradient(circle at 84% 20%, rgba(90, 122, 92, 0.12), transparent 22rem),
    linear-gradient(90deg, rgba(185, 135, 86, 0.14), transparent 13%, transparent 87%, rgba(185, 135, 86, 0.14)),
    linear-gradient(180deg, #f9efd8 0%, #eddbb9 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: clamp(42px, 7vw, 112px);
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.2), transparent 32%, rgba(91, 53, 31, 0.08)),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(92, 62, 35, 0.18) 18px 20px),
    repeating-linear-gradient(0deg, transparent 0 78px, rgba(92, 62, 35, 0.16) 78px 80px),
    linear-gradient(180deg, #edd2a1, #c8935f, #e4c28b);
  box-shadow: inset 0 0 0 1px rgba(255, 248, 232, 0.38), inset 0 0 18px rgba(104, 66, 37, 0.12);
}

body::before {
  left: 0;
}

body::after {
  right: 0;
  transform: scaleX(-1);
}

.site-header,
.main-content,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  border-top: 4px solid #8f5b35;
  border-bottom: 2px solid #d6b47e;
  background:
    linear-gradient(180deg, rgba(255, 248, 232, 0.95), rgba(235, 211, 169, 0.95));
  box-shadow: 0 6px 18px rgba(104, 66, 37, 0.08);
}

.site-logo,
.site-nav a {
  color: #513223;
}

.site-logo::before {
  border-color: #e0c17a;
  background:
    radial-gradient(circle at 50% 42%, #e0c17a 0 10%, transparent 11%),
    linear-gradient(135deg, transparent 44%, #7fb069 45%, #7fb069 55%, transparent 56%),
    linear-gradient(45deg, transparent 44%, #d38a5e 45%, #d38a5e 55%, transparent 56%),
    #fff4d9;
  box-shadow: 2px 2px 0 rgba(224, 193, 122, 0.35);
}

.site-logo:hover,
.site-nav a:hover {
  color: var(--lacquer);
}

.site-nav a:hover {
  border-color: rgba(143, 76, 50, 0.28);
  background: rgba(255, 253, 248, 0.55);
}

.main-content {
  width: min(1180px, calc(100% - clamp(2rem, 12vw, 9rem)));
  margin: clamp(1rem, 2vw, 2rem) auto;
  padding: clamp(1rem, 2.6vw, 2.25rem);
  border: 8px solid #b98756;
  border-radius: 2px;
  background:
    linear-gradient(90deg, rgba(185, 135, 86, 0.08) 0 8px, transparent 8px calc(100% - 8px), rgba(185, 135, 86, 0.08) calc(100% - 8px)),
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(251, 247, 237, 0.96));
  box-shadow:
    0 18px 54px rgba(104, 66, 37, 0.16),
    inset 0 0 0 2px rgba(255, 248, 232, 0.75),
    inset 0 0 0 6px rgba(214, 180, 126, 0.2);
}

.main-content::before,
.main-content::after {
  content: "";
  position: absolute;
  width: 76px;
  height: 76px;
  border-color: var(--tea-gold);
  opacity: 0.92;
  pointer-events: none;
}

.main-content::before {
  top: 18px;
  left: 18px;
  border-top: 3px solid;
  border-left: 3px solid;
}

.main-content::after {
  right: 18px;
  bottom: 18px;
  border-right: 3px solid;
  border-bottom: 3px solid;
}

.home-page .hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  min-height: 470px;
  margin: 0 0 var(--space-2xl);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  border: 1px solid rgba(143, 93, 54, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 250, 238, 0.95), rgba(242, 224, 190, 0.9)),
    radial-gradient(circle at 78% 20%, rgba(90, 122, 92, 0.14), transparent 16rem);
}

.home-page .hero::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(138, 70, 50, 0.24);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 700px;
  font-size: clamp(2.15rem, 4.4vw, 3.95rem);
}

.hero .tagline {
  max-width: 650px;
  color: #3f4a42;
}

.hero-visual {
  position: relative;
  z-index: 1;
  padding: 0.85rem;
  border: 7px solid var(--screen-wood);
  background: #f2ddaf;
  box-shadow: 0 16px 36px rgba(104, 66, 37, 0.16);
  max-width: 430px;
  justify-self: center;
}

.hero-visual img {
  display: block;
  width: 100%;
  background: var(--warm-silk);
}

.hero-visual p {
  margin: 0;
  padding: 0.85rem 0.75rem 0.1rem;
  color: #5d412d;
  font-size: 0.86rem;
  line-height: 1.55;
}

.hero-eyebrow {
  border-color: rgba(111, 36, 24, 0.46);
  background: rgba(111, 36, 24, 0.08);
  color: var(--lacquer);
}

.routine-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: var(--space-2xl) 0;
  padding: 0;
  border: 6px solid var(--screen-wood);
  background: var(--screen-wood);
  box-shadow: 0 14px 30px rgba(104, 66, 37, 0.13);
}

.routine-item {
  padding: var(--space-xl);
  background:
    linear-gradient(180deg, rgba(255, 248, 232, 0.96), rgba(245, 230, 202, 0.96));
}

.routine-item a::after,
.card h3 a::after {
  content: " >";
  color: var(--clay-deep);
}

.routine-number {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--rosewood-light);
  background: #8f5b35;
  color: #fff3d5;
  font-size: 1.35rem;
}

.content-section,
.note,
.disclaimer-banner,
.author-block,
.breadcrumb {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.wide-section {
  max-width: 100%;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  min-height: 13rem;
  border: 1px solid rgba(92, 33, 24, 0.26);
  border-top: 5px solid var(--screen-wood);
  border-left: 1px solid rgba(92, 33, 24, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(246, 235, 213, 0.94));
}

.card:nth-child(2) {
  border-top-color: var(--clay);
}

.card:nth-child(3) {
  border-top-color: var(--moss-deep);
}

.card::before {
  content: "";
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 54px;
  height: 54px;
  border-right: 2px solid rgba(138, 70, 50, 0.2);
  border-bottom: 2px solid rgba(138, 70, 50, 0.2);
}

.note,
.disclaimer-banner,
.author-block,
.waitlist-form {
  border-radius: 2px;
  box-shadow: 0 10px 26px rgba(55, 20, 15, 0.08);
}

.book-page .book-cover-preview {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 7px solid var(--screen-wood);
  background:
    linear-gradient(135deg, rgba(255, 250, 238, 0.96), rgba(242, 224, 190, 0.92));
}

.book-page .book-cover-css {
  width: 240px;
  height: 340px;
  border: 7px solid var(--screen-wood);
  background:
    url("../assets/wellness-still-life-redwood.jpg") center center / cover no-repeat,
    linear-gradient(170deg, #fff4dc 0%, #ead4b4 100%);
}

.book-page .book-cover-css::before {
  inset: 16px;
  border: 2px solid rgba(224, 193, 122, 0.64);
}

.book-page .book-cover-css::after {
  content: "Chinese Wellness Self-Care";
  left: 24px;
  right: 24px;
  top: auto;
  bottom: 32px;
  height: auto;
  background: rgba(111, 76, 45, 0.84);
  box-shadow: none;
  color: #fff8e8;
  padding: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.25;
  text-align: center;
}

.site-footer {
  border-top: 5px solid var(--screen-wood-light);
  background:
    linear-gradient(180deg, #6d432b, #3c2418);
}

@media (min-width: 1300px) {
  .main-content {
    width: min(1240px, calc(100% - 12rem));
  }
}

@media (max-width: 900px) {
  body::before,
  body::after {
    display: none;
  }

  .main-content {
    width: min(100% - 1rem, 1000px);
    border-width: 7px;
    padding: var(--space-md);
  }

  .home-page .hero,
  .book-page .book-cover-preview {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-visual {
    max-width: 460px;
  }

  .routine-strip,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .book-page .book-cover-css {
    width: min(230px, 100%);
    height: 318px;
  }
}

@media (max-width: 560px) {
  .home-page .hero {
    padding: var(--space-lg);
  }

  .hero h1 {
    font-size: clamp(2rem, 12vw, 2.85rem);
  }

  .hero-visual {
    border-width: 6px;
  }

  .main-content::before,
  .main-content::after {
    width: 46px;
    height: 46px;
  }
}

/* ===========================================
   V5: rice-paper folding screen, no faux tile
   =========================================== */

:root {
  --screen-frame: #b98a53;
  --screen-line: #d9c18f;
  --screen-paper: #fff6df;
  --screen-shadow: rgba(116, 75, 36, 0.12);
}

body {
  background-color: #f7ecd2;
  background-image:
    radial-gradient(circle at 18% 12%, rgba(143, 111, 69, 0.08), transparent 22rem),
    radial-gradient(circle at 82% 16%, rgba(96, 128, 83, 0.1), transparent 22rem),
    linear-gradient(180deg, #fbf1dc 0%, #efe0bd 100%);
}

body::before,
body::after {
  width: clamp(38px, 6.6vw, 104px);
  background:
    radial-gradient(ellipse at 50% 16%, rgba(94, 126, 77, 0.16), transparent 0 16%, transparent 38%),
    radial-gradient(ellipse at 52% 72%, rgba(169, 103, 77, 0.12), transparent 0 14%, transparent 36%),
    linear-gradient(90deg, transparent 0 14%, rgba(136, 94, 47, 0.35) 14% 16%, transparent 16% 48%, rgba(136, 94, 47, 0.25) 48% 50%, transparent 50% 84%, rgba(136, 94, 47, 0.35) 84% 86%, transparent 86%),
    linear-gradient(180deg, rgba(255, 250, 235, 0.94), rgba(243, 226, 187, 0.94));
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.6),
    inset -1px 0 0 rgba(136, 94, 47, 0.28),
    0 0 24px rgba(116, 75, 36, 0.08);
}

.site-header {
  border-top: 3px solid var(--screen-frame);
  border-bottom: 1px solid var(--screen-line);
  background: rgba(255, 246, 223, 0.94);
}

.main-content {
  border: 1px solid var(--screen-line);
  border-top: 6px solid var(--screen-frame);
  background:
    linear-gradient(90deg, rgba(217, 193, 143, 0.16) 0 1px, transparent 1px calc(100% - 1px), rgba(217, 193, 143, 0.16) calc(100% - 1px)),
    linear-gradient(180deg, rgba(255, 253, 248, 0.97), rgba(252, 246, 232, 0.97));
  box-shadow:
    0 16px 45px var(--screen-shadow),
    inset 0 0 0 6px rgba(255, 246, 223, 0.74);
}

.main-content::before,
.main-content::after {
  border-color: rgba(143, 111, 69, 0.58);
}

.home-page .hero {
  border: 1px solid rgba(191, 151, 87, 0.38);
  background:
    radial-gradient(circle at 85% 14%, rgba(95, 127, 75, 0.08), transparent 13rem),
    linear-gradient(135deg, rgba(255, 251, 241, 0.98), rgba(247, 234, 207, 0.9));
}

.home-page .hero::before {
  border-color: rgba(191, 151, 87, 0.3);
}

.hero-visual {
  border: 1px solid var(--screen-frame);
  background: #fff3d8;
  box-shadow: 0 14px 32px rgba(116, 75, 36, 0.12);
}

.hero-visual img {
  border: 10px solid #fff8e8;
  box-shadow: inset 0 0 0 1px rgba(185, 138, 83, 0.28);
}

.routine-strip {
  border: 1px solid var(--screen-frame);
  background: var(--screen-frame);
  box-shadow: 0 12px 26px rgba(116, 75, 36, 0.1);
}

.routine-item {
  background:
    linear-gradient(90deg, rgba(217, 193, 143, 0.16) 0 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 250, 238, 0.98), rgba(248, 235, 209, 0.95));
}

.routine-number {
  border-color: var(--screen-frame);
  background: #a96a45;
}

.card {
  border-color: rgba(185, 138, 83, 0.32);
  border-top-color: var(--screen-frame);
}

.book-page .book-cover-preview,
.book-page .book-cover-css {
  border-color: var(--screen-frame);
}

.site-footer {
  border-top: 3px solid var(--screen-frame);
  background: linear-gradient(180deg, #6b4b32, #3f2b1d);
}

/* ===========================================
   V6: warmer hongmu tone, still light screen
   =========================================== */

:root {
  --screen-frame: #9e5f3d;
  --screen-line: #c99f68;
  --screen-paper: #fff1d1;
  --hongmu: #7d3e2a;
  --hongmu-deep: #5b281d;
  --hongmu-soft: #b7774c;
}

body {
  background-color: #f0d9b7;
  background-image:
    radial-gradient(circle at 18% 12%, rgba(125, 62, 42, 0.12), transparent 22rem),
    radial-gradient(circle at 82% 16%, rgba(96, 128, 83, 0.1), transparent 22rem),
    linear-gradient(180deg, #f6e4c5 0%, #e7c79f 100%);
}

body::before,
body::after {
  background:
    radial-gradient(ellipse at 50% 16%, rgba(94, 126, 77, 0.13), transparent 0 16%, transparent 38%),
    radial-gradient(ellipse at 52% 72%, rgba(157, 78, 52, 0.16), transparent 0 14%, transparent 36%),
    linear-gradient(90deg, transparent 0 14%, rgba(125, 62, 42, 0.46) 14% 16%, transparent 16% 48%, rgba(125, 62, 42, 0.32) 48% 50%, transparent 50% 84%, rgba(125, 62, 42, 0.46) 84% 86%, transparent 86%),
    linear-gradient(180deg, #f1d6a6, #cf9a66);
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.48),
    inset -1px 0 0 rgba(125, 62, 42, 0.36),
    0 0 26px rgba(125, 62, 42, 0.12);
}

.site-header {
  border-top-color: var(--hongmu);
  border-bottom-color: var(--hongmu-soft);
  background: rgba(246, 224, 190, 0.95);
}

.site-logo,
.site-nav a {
  color: #4f2419;
}

.site-logo:hover,
.site-nav a:hover {
  color: var(--hongmu-deep);
}

.main-content {
  border-color: var(--hongmu-soft);
  border-top-color: var(--hongmu);
  box-shadow:
    0 18px 48px rgba(125, 62, 42, 0.16),
    inset 0 0 0 6px rgba(255, 241, 209, 0.68);
}

.home-page .hero,
.book-page .book-cover-preview {
  border-color: rgba(158, 95, 61, 0.46);
  background:
    radial-gradient(circle at 84% 12%, rgba(95, 127, 75, 0.08), transparent 13rem),
    linear-gradient(135deg, rgba(255, 247, 230, 0.98), rgba(239, 211, 173, 0.92));
}

.hero-visual,
.routine-strip,
.book-page .book-cover-css {
  border-color: var(--hongmu-soft);
}

.routine-strip {
  background: var(--hongmu-soft);
}

.routine-number,
.cta-button {
  background: var(--hongmu);
  border-color: var(--hongmu);
}

.cta-button:hover {
  background: var(--hongmu-deep);
  border-color: var(--hongmu-deep);
}

.card {
  border-top-color: var(--hongmu-soft);
}

.book-page .book-cover-css::after {
  background: rgba(91, 40, 29, 0.84);
}

.site-footer {
  border-top-color: var(--hongmu-soft);
  background: linear-gradient(180deg, #70402c, #452219);
}
