:root {
  color-scheme: light;
  --bg: #FBF8F4;
  --surface: #FFFFFF;
  --ink: #26303A;
  --muted: #66727F;
  --line: #ECE6DD;
  --peach: #F4A98A;
  --peach-soft: #FDEEE4;
  --sky-soft: #E8F0F6;
  --lavender-soft: #F1ECF8;
  --sage: #6E9A88;
  --sage-deep: #3F6B5C;
  --gold: #B98E4E;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(38, 48, 58, .04), 0 8px 28px rgba(38, 48, 58, .06);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--sage-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 300; margin: 0.4rem 0 1rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 3rem 0 1rem; }
h3 { font-size: 1.3rem; margin: 2rem 0 0.5rem; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.eyebrow { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(251, 248, 244, .82); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid rgba(236, 230, 221, .7); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; letter-spacing: 0.06em; color: var(--ink); text-decoration: none; }
.brand span:last-child { font-weight: 300; letter-spacing: 0; color: var(--muted); }
.brand-sun { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 50% 60%, #FFC9A3 0 45%, rgba(255, 201, 163, .35) 46% 100%); }
nav { display: flex; align-items: center; gap: 22px; font-size: 0.95rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--ink); }
.nav-cta { color: var(--sage-deep) !important; font-weight: 600; }
@media (max-width: 560px) { nav a:not(.nav-cta) { display: none; } }

/* buttons */
.btn { display: inline-block; padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 0.98rem; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--sage-deep); color: #fff; box-shadow: 0 6px 18px rgba(63, 107, 92, .25); }
.btn.ghost { background: rgba(255, 255, 255, .7); color: var(--ink); border: 1px solid var(--line); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }

/* hero */
.hero { background: linear-gradient(180deg, #FDEFE6 0%, #F6EFF7 55%, var(--bg) 100%); padding: 56px 0 24px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 32px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }
.hero-art .dawn { width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(247, 169, 140, .18)); }
@media (max-width: 820px) {
  .hero { padding-top: 36px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; }
}

/* day rituals */
.day { padding: 56px 20px 16px; }
.day h2 { margin-top: 0.6rem; }
.day-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 2rem; }
.day-card { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.day-card h3 { margin: 0.9rem 0 0.2rem; font-size: 1.5rem; }
.day-card .line { font-family: var(--serif); font-style: italic; color: var(--ink); margin: 0 0 0.6rem; }
.day-card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.morning .icon { background: var(--peach-soft); color: #D9794F; }
.evening .icon { background: var(--lavender-soft); color: #7A68A6; }
.care .icon { background: #E7F1EC; color: var(--sage-deep); }
@media (max-width: 820px) { .day-grid { grid-template-columns: 1fr; } }

/* article cards */
.journal { padding-top: 40px; }
.journal h2 { margin-top: 0.6rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 1.6rem; }
@media (max-width: 920px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(38, 48, 58, .05), 0 16px 36px rgba(38, 48, 58, .09); }
.card-art { position: relative; height: 128px; background: radial-gradient(circle at 82% 30%, rgba(255, 255, 255, .75) 0 34px, rgba(255, 255, 255, 0) 70px), linear-gradient(135deg, var(--lavender-soft), var(--sky-soft)); }
.card-thai-cultural-belief .card-art { background: radial-gradient(circle at 82% 30%, rgba(255, 214, 180, .9) 0 30px, rgba(255, 214, 180, 0) 72px), linear-gradient(135deg, #FDE3D3, #FFF1D2); }
.card-icon { position: absolute; left: 24px; bottom: -24px; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; box-shadow: 0 6px 16px rgba(38, 48, 58, .08); color: #7A68A6; }
.card-thai-cultural-belief .card-icon { color: #D9794F; }
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 30px 24px 24px; flex: 1; }
.card-tag { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.card-title { font-family: var(--serif); font-size: 1.28rem; line-height: 1.25; }
.card-desc { color: var(--muted); font-size: 0.95rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: auto; padding-top: 8px; font-size: 0.85rem; color: var(--muted); }
.pill { display: inline-block; margin-left: 6px; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--peach); color: #C4673F; border-radius: 999px; padding: 1px 8px; }
.empty { color: var(--muted); background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); grid-column: 1 / -1; }

/* article page */
.article-head { background: linear-gradient(180deg, #F1ECF8 0%, #EDF3F8 60%, var(--bg) 100%); padding: 48px 0 28px; }
.head-thai-cultural-belief { background: linear-gradient(180deg, #FDEBDD 0%, #FFF4E4 60%, var(--bg) 100%); }
.crumbs { font-size: 0.85rem; color: var(--muted); margin: 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs span { margin: 0 8px; opacity: .6; }
.dek { font-size: 1.2rem; color: var(--muted); margin: 0 0 0.8rem; }
.meta { font-size: 0.88rem; color: var(--muted); margin: 0; }
.article { font-size: 1.08rem; line-height: 1.8; padding-bottom: 8px; }
.article > p:first-child { margin-top: 1.6rem; }
.article h2 { font-size: 1.75rem; }
.notice { background: var(--peach-soft); border-radius: 14px; padding: 14px 18px; font-size: 0.95rem; color: #8A5A40; }
blockquote { margin: 1.6rem 0; padding: 18px 22px; background: var(--lavender-soft); border-radius: 16px; border-left: 3px solid var(--sage); }
blockquote p { margin: 0.3rem 0; }
.pali { font-family: var(--serif); font-style: italic; font-size: 1.12em; }
.table-wrap { overflow-x: auto; margin: 1.4rem 0; border-radius: 16px; box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; background: var(--surface); font-size: 0.97rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); background: #FCFAF7; }
tr:last-child td { border-bottom: 0; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 10px; vertical-align: -2px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 0 0 4px var(--line); }
.steps { padding-left: 1.3rem; }
.steps li { margin-bottom: 0.8rem; }
.steps li::marker { color: var(--gold); font-weight: 600; }
.faq details { background: var(--surface); border-radius: 14px; padding: 4px 18px; margin: 10px 0; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--gold); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 14px; color: var(--muted); }
.sources { font-size: 0.9rem; color: var(--muted); }
.sources h2 { font-size: 1.2rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0.02em; }
.more { padding-top: 16px; }

/* waitlist */
.cta { max-width: 1120px; margin: 64px auto; padding: 0 20px; }
.cta-inner { background: linear-gradient(135deg, #FDE6D8 0%, #F3ECF9 55%, #E6F0F4 100%); border-radius: 28px; padding: 48px 32px; text-align: center; }
.cta h2 { margin: 0.6rem 0 0.8rem; }
.cta p { max-width: 38rem; margin: 0 auto 1rem; color: var(--muted); }
.cta .note { color: var(--ink); font-weight: 500; }
.waitlist-form { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 460px; margin: 1.4rem auto 0; }
.waitlist-form input { flex: 1 1 220px; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--line); font: inherit; background: #fff; }
.waitlist-form button { padding: 14px 24px; border-radius: 999px; border: 0; background: var(--sage-deep); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--muted); font-size: 0.9rem; text-align: center; }
.site-footer .belief { font-family: var(--serif); font-size: 1.4rem; font-weight: 300; color: var(--ink); margin: 0 0 0.6rem; }
.site-footer p { max-width: 40rem; margin: 0.4rem auto; }
.fine { font-size: 0.8rem; opacity: .8; }
.draft { background: var(--peach-soft); color: #8A5A40; text-align: center; font-size: 0.85rem; padding: 8px 16px; }
