/* ===========================================================
   CHUNG BOOKS — Eastern Wellness Library
   =========================================================== */

:root {
  --cream: #FAF6F0;
  --cream-alt: #F2ECE1;
  --ink: #2B2420;
  --ink-soft: #574B40;
  --terracotta: #B15A32;
  --terracotta-dark: #954a29;
  --sage: #6E7F5C;
  --gold: #B08D57;
  --line: #E4DACB;
  --white: #FFFFFF;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--cream);
  padding: .75rem 1.25rem; z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
}
.btn-primary {
  background: var(--terracotta);
  color: var(--white);
}
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-small { padding: .55rem 1.1rem; font-size: .72rem; }
.btn-amazon {
  background: var(--ink);
  color: var(--cream);
}
.btn-amazon:hover { background: var(--terracotta); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,246,240,.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex; align-items: center; gap: 2rem;
}
.brand { display: flex; align-items: center; gap: .5rem; margin-right: auto; }
.brand-mark {
  font-family: var(--font-serif);
  font-size: 1.4rem; color: var(--terracotta);
}
.brand-text {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: .12em;
  font-size: .9rem;
}
.main-nav { display: flex; gap: 1.75rem; }
.main-nav a {
  font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-soft);
}
.main-nav a:hover { color: var(--terracotta); }
.header-cta { white-space: nowrap; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.lang-btn {
  background: transparent; border: none; padding: .4rem .7rem; font-family: var(--font-sans);
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: var(--ink-soft); cursor: pointer;
}
.lang-btn.is-active { background: var(--ink); color: var(--cream); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .5rem;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); }

/* ---------- hero ---------- */
.hero {
  padding: 6rem 1.5rem 4rem;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: .78rem;
  color: var(--terracotta); font-weight: 700; margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); margin-bottom: .3em; }
.hero-sub {
  font-family: var(--font-serif); font-size: 1.5rem; color: var(--ink-soft);
  margin-bottom: 1.2em;
}
.hero-copy { font-size: 1.05rem; color: var(--ink-soft); max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* ---------- recommended path ---------- */
.section-label {
  text-transform: uppercase; letter-spacing: .16em; font-size: .78rem;
  font-weight: 700; color: var(--sage); margin-bottom: .6em;
}
.path-section { padding: 2rem 1.5rem 4rem; max-width: var(--max); margin: 0 auto; }
.path-track {
  display: flex; align-items: stretch; justify-content: center; gap: .75rem;
  flex-wrap: wrap; margin: 1.5rem 0;
}
.path-step {
  background: var(--white); border: 1px solid var(--line);
  padding: 1.2rem 1.4rem; border-radius: 4px; min-width: 190px; flex: 1 1 190px;
  transition: border-color .2s ease, transform .2s ease;
}
.path-step:hover { border-color: var(--terracotta); transform: translateY(-2px); }
.path-step--free { background: var(--cream-alt); border-color: var(--gold); }
.path-tag {
  display: block; font-size: .7rem; letter-spacing: .1em; font-weight: 700;
  color: var(--terracotta); text-transform: uppercase; margin-bottom: .4em;
}
.path-title { display: block; font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; margin-bottom: .2em; }
.path-desc { display: block; font-size: .85rem; color: var(--ink-soft); }
.path-arrow { align-self: center; font-size: 1.3rem; color: var(--line); }
.path-help { text-align: center; color: var(--ink-soft); font-size: .92rem; max-width: 640px; margin: 0 auto; }
.path-help a { color: var(--terracotta); font-weight: 700; }

/* ---------- collections ---------- */
.collection { padding: 4.5rem 1.5rem; max-width: var(--max); margin: 0 auto; }
.collection.alt { background: var(--cream-alt); max-width: none; }
.collection.alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.collection-head { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; }
.collection-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.collection-copy { color: var(--ink-soft); font-size: 1.05rem; }

.book-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem;
}
.book-grid--single { grid-template-columns: minmax(280px, 480px); justify-content: center; }

.book-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  padding: 1.6rem; position: relative; display: flex; flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.book-card:hover { box-shadow: 0 12px 28px rgba(43,36,32,.08); transform: translateY(-3px); }
.book-badge {
  position: absolute; top: -10px; right: 1.2rem;
  background: var(--terracotta); color: var(--white);
  font-size: .65rem; font-weight: 700; letter-spacing: .08em;
  padding: .3rem .7rem; border-radius: 20px; text-transform: uppercase;
}
.book-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.book-tags span {
  font-size: .65rem; font-weight: 700; letter-spacing: .06em;
  color: var(--sage); background: rgba(110,127,92,.1);
  padding: .25rem .55rem; border-radius: 20px; text-transform: uppercase;
}
.book-card h3 { font-size: 1.4rem; margin-bottom: .2em; }
.book-tagline { font-style: italic; color: var(--terracotta); font-size: .92rem; margin-bottom: .7em; }
.book-desc { color: var(--ink-soft); font-size: .92rem; flex-grow: 1; margin-bottom: 1.2em; }

/* ---------- pull quote ---------- */
.pull-quote {
  background: var(--ink); color: var(--cream);
  padding: 5rem 1.5rem; text-align: center;
}
.pull-quote blockquote {
  max-width: 760px; margin: 0 auto; font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem); font-style: italic; font-weight: 500;
}
.pull-quote cite {
  display: block; margin-top: 1.2rem; font-family: var(--font-sans);
  font-style: normal; font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold);
}

/* ---------- testimonials ---------- */
.testimonials { padding: 5rem 1.5rem; max-width: var(--max); margin: 0 auto; }
.testimonials h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); max-width: 620px; margin: 0 auto .4em; }
.section-sub { color: var(--ink-soft); max-width: 620px; margin: 0 auto 2.5rem; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.testimonial-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 1.8rem;
}
.testimonial-glyph {
  font-family: var(--font-serif); font-size: 2rem; color: var(--terracotta);
  margin-bottom: .5rem; opacity: .8;
}
.testimonial-glyph.small { font-size: 1.4rem; margin-bottom: 0; }
.testimonial-before { font-size: .82rem; color: var(--ink-soft); font-style: italic; margin-bottom: .8em; }
.testimonial-quote { font-size: .95rem; margin-bottom: 1em; }
.testimonial-attr { font-weight: 700; margin-bottom: 0; }
.testimonial-attr span { font-weight: 400; color: var(--ink-soft); }
.testimonial-book { font-size: .7rem; letter-spacing: .08em; color: var(--sage); font-weight: 700; text-transform: uppercase; }

/* ---------- science ---------- */
.science { background: var(--cream-alt); padding: 5rem 1.5rem; }
.science-copy { max-width: 720px; margin: 0 auto; font-size: 1.02rem; color: var(--ink-soft); }
.science-emphasis { font-family: var(--font-serif); font-size: 1.3rem; font-style: italic; color: var(--ink); text-align: center; margin-top: 1.5em; }
.disclaimer { max-width: 720px; margin: 2rem auto 0; font-size: .82rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 1.5rem; text-align: center; }

/* ---------- about ---------- */
.about { padding: 5rem 1.5rem; }
.about-inner { max-width: 720px; margin: 0 auto; }
.about-glyph { font-family: var(--font-serif); font-size: 2.5rem; color: var(--terracotta); margin-bottom: .3rem; }
.about h2 { font-size: clamp(1.7rem, 3.4vw, 2.2rem); }
.about p { color: var(--ink-soft); }
.about-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1.5rem;
  margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line);
}
.about-stats div { text-align: center; }
.stat-num { display: block; font-family: var(--font-serif); font-size: 2.2rem; color: var(--terracotta); font-weight: 700; }
.stat-label { display: block; font-size: .78rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- widget / tracker ---------- */
.widget-section { background: var(--ink); color: var(--cream); padding: 5rem 1.5rem; }
.widget-section .section-label { color: var(--gold); }
.widget-section h2 { color: var(--cream); font-size: clamp(1.9rem, 4vw, 2.6rem); }
.widget-section .section-sub { color: #C9BFAF; }

.tracker {
  max-width: 640px; margin: 2.5rem auto 0;
  background: #3A3128; border: 1px solid #4E4335; border-radius: 10px;
  padding: 2rem;
}
.tracker-top { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.tracker-score-ring { position: relative; width: 120px; height: 120px; flex-shrink: 0; }
.ring-svg { transform: rotate(-90deg); width: 120px; height: 120px; }
.ring-bg { fill: none; stroke: #4E4335; stroke-width: 8; }
.ring-fg {
  fill: none; stroke: var(--terracotta); stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 326.7; stroke-dashoffset: 130;
  transition: stroke-dashoffset .4s ease;
}
.ring-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.ring-center span { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; }
.ring-center small { font-size: .65rem; text-transform: uppercase; letter-spacing: .05em; color: #C9BFAF; }
.tracker-stats { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.tracker-stat { text-align: center; }
.tracker-stat span { display: block; font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; }
.tracker-stat small { font-size: .7rem; color: #C9BFAF; text-transform: uppercase; letter-spacing: .04em; }

.tracker-question { font-size: 1.2rem; margin-bottom: .2em; }
.tracker-hint { font-size: .85rem; color: #C9BFAF; margin-bottom: 1.4em; }

.tracker-log { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; margin-bottom: 1.5rem; }
.log-btn {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  background: #453A2F; border: 1px solid #59503F; color: var(--cream);
  padding: .8rem 1rem; border-radius: 6px; font-family: var(--font-sans);
  font-size: .88rem; cursor: pointer; transition: background .2s ease, border-color .2s ease;
}
.log-btn:hover { background: var(--terracotta); border-color: var(--terracotta); }
.log-btn--cool:hover { background: var(--sage); border-color: var(--sage); }
.log-count {
  background: rgba(255,255,255,.15); border-radius: 20px; padding: .1rem .6rem; font-weight: 700; font-size: .8rem;
}

.thermal-balance { margin-bottom: 1.3rem; }
.thermal-bar {
  display: flex; height: 32px; border-radius: 20px; overflow: hidden; font-size: .72rem; font-weight: 700;
}
.thermal-warm, .thermal-cool { display: flex; align-items: center; justify-content: center; color: var(--cream); transition: width .3s ease; white-space: nowrap; }
.thermal-warm { background: var(--terracotta); }
.thermal-cool { background: var(--sage); }

.tracker-tip { font-size: .85rem; background: #453A2F; border-radius: 6px; padding: .9rem 1.1rem; margin-bottom: 1.2rem; }
.tracker .btn-ghost { border-color: #59503F; color: var(--cream); }
.tracker .btn-ghost:hover { background: var(--cream); color: var(--ink); }

/* ---------- journal ---------- */
.journal { padding: 5rem 1.5rem; max-width: var(--max); margin: 0 auto; }
.journal h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); max-width: 620px; margin: 0 auto .4em; }
.journal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.journal-card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 1.6rem; }
.journal-card--feature { background: var(--cream-alt); border-color: var(--gold); }
.journal-tag { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--terracotta); margin-bottom: .5em; }
.journal-card h3 { font-size: 1.2rem; }
.journal-card p:not(.journal-tag):not(.journal-meta) { color: var(--ink-soft); font-size: .9rem; }
.journal-meta { font-size: .75rem; color: var(--sage); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin: 0; }
.journal-more { text-align: center; color: var(--ink-soft); font-size: .9rem; margin-top: 2.5rem; }

/* ---------- community ---------- */
.community { background: var(--cream-alt); padding: 5rem 1.5rem; }
.community h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); max-width: 620px; margin: 0 auto .4em; }
.community-posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; max-width: var(--max); margin: 0 auto 2.5rem; }
.community-post { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 1.3rem; font-size: .88rem; }
.community-post p { color: var(--ink-soft); margin: .5em 0; }
.community-user { font-size: .78rem; color: var(--sage); font-weight: 700; }

/* ---------- contact / newsletter ---------- */
.contact { padding: 5rem 1.5rem; }
.contact-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.contact-inner h2 { font-size: clamp(1.9rem, 4vw, 2.4rem); }
.contact-inner p { color: var(--ink-soft); }
.contact-email {
  display: inline-block; font-family: var(--font-serif); font-size: 1.4rem;
  color: var(--terracotta); font-weight: 600; margin: .5em 0;
}
.contact-note { font-size: .82rem; }

.newsletter-form { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); text-align: left; }
.newsletter-form label { display: block; font-weight: 700; margin-bottom: .6em; text-align: center; }
.newsletter-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.newsletter-row input {
  flex: 1 1 220px; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 4px;
  font-family: var(--font-sans); font-size: .95rem; background: var(--white); color: var(--ink);
}
.newsletter-row input:focus { outline: 2px solid var(--terracotta); }
.newsletter-status { text-align: center; font-size: .85rem; color: var(--sage); font-weight: 700; min-height: 1.2em; margin-top: .8rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #C9BFAF; padding: 3.5rem 1.5rem 2rem; }
.footer-inner { max-width: var(--max); margin: 0 auto; text-align: center; }
.footer-inner .brand-text { color: var(--cream); font-size: 1rem; margin-bottom: .3em; }
.footer-nav { display: flex; gap: 1.5rem; justify-content: center; margin: 1.5rem 0; flex-wrap: wrap; }
.footer-nav a { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.footer-nav a:hover { color: var(--terracotta); }
.footer-copy { font-size: .78rem; margin-top: 1.5rem; }

/* ---------- responsive ---------- */
@media (max-width: 780px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  .site-header.nav-open .main-nav {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); padding: 1rem 1.5rem; border-bottom: 1px solid var(--line); gap: 1rem;
  }
  .path-track { flex-direction: column; }
  .path-arrow { display: none; }
  .tracker-top { justify-content: center; text-align: center; }
}
