/* Sabai Wellbeing */
:root {
  --paper: #f5efe2;
  --paper-2: #ece4d2;
  --card: #fffaf0;
  --leaf: #1e3a2c;
  --leaf-2: #2c5240;
  --ink: #1b221d;
  --muted: #5f6a60;
  --line: #d9cfb9;
  --turmeric: #d99a1e;
  --turmeric-ink: #8a5f06;
  --lime: #c9d76f;
  --on-leaf: #f5efe2;
  --shadow: 0 1px 2px rgba(30, 58, 44, 0.06), 0 8px 24px rgba(30, 58, 44, 0.07);
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 22px;
  --gut: max(18px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121a15; --paper-2: #18231c; --card: #1c2820; --leaf: #0d1712; --leaf-2: #24392d;
    --ink: #ece6d6; --muted: #a3ab9f; --line: #2f3d33; --turmeric: #e7ad3a; --turmeric-ink: #f0c060;
    --lime: #b9c95f; --on-leaf: #ece6d6; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121a15; --paper-2: #18231c; --card: #1c2820; --leaf: #0d1712; --leaf-2: #24392d;
  --ink: #ece6d6; --muted: #a3ab9f; --line: #2f3d33; --turmeric: #e7ad3a; --turmeric-ink: #f0c060;
  --lime: #b9c95f; --on-leaf: #ece6d6; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: var(--gut); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--turmeric-ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--paper); z-index: 41; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo b { font: 400 22px/1 var(--serif); }
.logo i { font-style: normal; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 3px; }
.menu { display: flex; gap: 6px; align-items: center; }
.menu a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 99px; }
.menu a:hover, .menu a[aria-current="page"] { background: var(--paper-2); }
.menu .pill { background: var(--leaf); color: var(--on-leaf); }
.menu .pill:hover { background: var(--leaf-2); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; }
@media (max-width: 820px) {
  .burger { display: block; }
  .menu { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px var(--gut) 18px; }
  .menu.open { display: flex; }
  .menu a { padding: 12px 14px; }
}

/* Hero */
.hero { padding-block: 56px 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(44px, 7vw, 86px); margin: 14px 0 18px; }
.hero h1 em { font-style: normal; color: var(--turmeric-ink); }
.hero .lede { font-size: 19px; color: var(--muted); max-width: 34em; }
.arch { border-radius: 999px 999px var(--r) var(--r); overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%; box-shadow: var(--shadow); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-art { position: relative; }
.hero-art .sun { position: absolute; width: 92px; height: 92px; border-radius: 50%; background: var(--turmeric); top: 6%; right: -12px; mix-blend-mode: multiply; opacity: 0.9; }
.stamp { position: absolute; left: -18px; bottom: 28px; background: var(--card); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow); font-size: 14px; }
.stamp b { font: 400 28px/1 var(--serif); display: block; color: var(--leaf-2); }
:root[data-theme="dark"] .stamp b { color: var(--lime); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stamp b { color: var(--lime); } }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { max-width: 420px; }
  .stamp { left: 12px; }
}

/* Search bar */
.search { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 8px; box-shadow: var(--shadow); max-width: 620px; }
.search label { display: grid; gap: 0; padding: 6px 14px; border-radius: 14px; min-width: 0; }
.search label:hover { background: var(--paper); }
.search label span { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.search select { border: 0; background: transparent; padding: 2px 0; font-weight: 600; outline: none; min-width: 0; width: 100%; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 16px; padding: 14px 22px; font-weight: 700; cursor: pointer; text-decoration: none; background: var(--leaf); color: var(--on-leaf); }
.btn:hover { background: var(--leaf-2); }
.btn.sun { background: var(--turmeric); color: #1b1606; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
@media (max-width: 560px) { .search { grid-template-columns: 1fr; } .search .btn { width: 100%; } }

/* Section shell */
.sec { padding-block: 72px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(32px, 4.4vw, 52px); margin-top: 8px; }
.sec-head p { color: var(--muted); max-width: 30em; }

/* Moods */
.moods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mood { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 16px; align-content: start; }
.mood h3 { font-size: 30px; }
.mood > p { color: var(--muted); font-size: 15px; }
.mood .cats { display: grid; gap: 10px; }
.catlink { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; text-decoration: none; padding: 8px; border-radius: 16px; border: 0; background: transparent; text-align: left; cursor: pointer; width: 100%; }
.catlink:hover { background: var(--paper); }
.catlink img { width: 64px; height: 76px; object-fit: cover; border-radius: 99px 99px 10px 10px; }
.catlink b { display: block; font-weight: 700; }
.catlink small { color: var(--muted); font-size: 13px; }
.catlink .n { font: 400 20px/1 var(--serif); color: var(--turmeric-ink); }
@media (max-width: 900px) { .moods { grid-template-columns: 1fr; } }

/* Finder */
.finder { background: var(--paper-2); border-radius: 36px; margin: 0 max(8px, env(safe-area-inset-left, 0px)); }
.finder-grid { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.filters { position: sticky; top: 92px; background: var(--card); border-radius: var(--r); padding: 20px; border: 1px solid var(--line); display: grid; gap: 20px; }
.filters h4 { font: 700 13px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.chk { display: flex; align-items: center; gap: 10px; padding: 6px 4px; cursor: pointer; font-size: 15px; }
.chk input { width: 18px; height: 18px; accent-color: var(--leaf-2); }
.chk em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 13px; }
.field { display: grid; gap: 6px; }
.field select, .field input { width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--turmeric-ink); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; justify-self: start; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.results-bar b { font: 400 26px/1 var(--serif); }
.results-bar select { padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.list { display: grid; gap: 12px; }
.row { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: start; }
.row .num { width: 44px; height: 44px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; font: 400 17px/1 var(--serif); color: var(--leaf-2); }
.row h3 { font: 700 19px/1.25 var(--sans); }
.row .where { color: var(--muted); font-size: 14px; margin-top: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { font-size: 13px; padding: 4px 10px; border-radius: 99px; background: var(--paper); }
.tag.cat { background: color-mix(in srgb, var(--lime) 45%, var(--card)); font-weight: 600; }
.acts { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.acts a { font-size: 14px; font-weight: 700; text-decoration: none; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line); text-align: center; white-space: nowrap; }
.acts a:hover { background: var(--paper); }
.acts a.go { background: var(--leaf); color: var(--on-leaf); border-color: var(--leaf); }
.empty { padding: 40px; text-align: center; color: var(--muted); background: var(--card); border-radius: 20px; border: 1px dashed var(--line); }
.mfilter { display: none; }
@media (max-width: 900px) {
  .finder-grid { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: grid; }
  .mfilter { display: inline-flex; }
}
@media (max-width: 600px) {
  .row { grid-template-columns: 1fr; }
  .row .num { display: none; }
  .acts { flex-direction: row; flex-wrap: wrap; }
  .acts a { flex: 1; }
}

/* Areas */
.areas { display: flex; flex-wrap: wrap; gap: 10px; }
.area { border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 10px 16px; cursor: pointer; font-weight: 600; }
.area span { color: var(--muted); font-weight: 400; margin-left: 6px; }
.area:hover { border-color: var(--leaf-2); }

/* Tools band */
.band { background: var(--leaf); color: var(--on-leaf); border-radius: 36px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; margin: 0 max(8px, env(safe-area-inset-left, 0px)); }
.band .txt { padding: 56px clamp(22px, 5vw, 64px); display: grid; gap: 18px; align-content: center; }
.band .eyebrow { color: var(--lime); }
.band h2 { font-size: clamp(32px, 4.4vw, 52px); }
.band p { opacity: 0.85; }
.band ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.band li { border: 1px solid rgba(245, 239, 226, 0.3); border-radius: 99px; padding: 6px 12px; font-size: 14px; }
.band .pic { min-height: 320px; }
.band .pic img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } .band .pic { min-height: 220px; max-height: 300px; } }

/* FAQ + suggest */
.two { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--serif); color: var(--turmeric-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 10px; max-width: 60ch; }
.suggest { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: grid; gap: 14px; }
.suggest h3 { font-size: 28px; }
.suggest p { color: var(--muted); font-size: 15px; }
.mail { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mail code { font: 600 15px/1 var(--sans); background: var(--paper); padding: 10px 12px; border-radius: 10px; user-select: all; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

/* Footer */
.foot { padding-block: 48px 36px; border-top: 1px solid var(--line); margin-top: 72px; }
.foot .wrap { display: grid; gap: 22px; }
.foot-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot nav a, .foot nav button { text-decoration: none; font-weight: 600; font-size: 15px; background: none; border: 0; padding: 0; cursor: pointer; }
.fine { color: var(--muted); font-size: 13px; max-width: 80ch; }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.open { display: block; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(15, 25, 19, 0.45); }
.drawer .panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(460px, 100%); background: var(--paper); padding: calc(24px + env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) 24px; overflow-y: auto; display: grid; gap: 18px; align-content: start; }
.drawer .x { justify-self: end; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: 20px; }
.drawer h3 { font-size: 34px; }
.drawer .arch { aspect-ratio: 16 / 11; border-radius: 160px 160px 18px 18px; }
.drawer dl { margin: 0; display: grid; gap: 12px; }
.drawer dt { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.drawer dd { margin: 2px 0 0; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 14px; font-weight: 600; z-index: 80; opacity: 0; pointer-events: none; transition: opacity .2s; }
.toast.on { opacity: 1; }
