:root {
  --bg: #F6F1E7;
  --bg-glow: #FBF3DF;
  --card: #FFFFFF;
  --ink: #16151A;
  --muted: #5F5C66;
  --line: #E6E1D8;
  --soft: #EFEAE0;
  --red: #C8463B;
  --red-soft: #FBE7E4;
  --red-text: #9F2A20;
  --ember: #D9622A;
  --sel: #2F4A3A;
  --radius: 20px;
  --max: 720px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration-color: var(--ember); text-underline-offset: 3px; }
a:hover { color: var(--ember); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.3px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 4px 16px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a[aria-current="page"] { color: var(--ink); }

/* Type */
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 2.6px; color: var(--muted); text-transform: uppercase; margin: 32px 0 6px; }
h1 { font-size: clamp(32px, 8vw, 48px); line-height: 1.1; letter-spacing: -1.2px; margin: 0 0 14px; font-weight: 800; }
h2 { font-size: 23px; line-height: 1.25; letter-spacing: -0.4px; margin: 36px 0 10px; font-weight: 800; }
h3 { font-size: 18px; margin: 22px 0 6px; font-weight: 800; }
p { margin: 0 0 14px; }
.lead { font-size: 19px; color: var(--muted); }
.small { font-size: 14px; color: var(--muted); }
ul { padding-left: 22px; margin: 0 0 14px; }
li { margin-bottom: 6px; }

/* Hero */
.hero { padding: 24px 0 8px; }
.hero-icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 10px 24px rgba(20, 10, 40, 0.1); margin-bottom: 20px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.pill { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 700; }
.button { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; font-weight: 800; padding: 14px 22px; border-radius: 16px; margin-top: 10px; }
.button:hover { color: #fff; background: #2a2930; }

/* Cards */
.cards { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 18px 0; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 6px; box-shadow: 0 6px 12px rgba(20, 10, 40, 0.04); }
.card h3 { margin-top: 0; }

.note { background: var(--red-soft); border-radius: var(--radius); padding: 16px 18px 4px; margin: 22px 0; color: var(--red-text); }
.note strong { color: var(--red-text); }
.calm { background: var(--soft); border-radius: var(--radius); padding: 16px 18px 4px; margin: 22px 0; }

/* FAQ */
details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin: 10px 0; }
details[open] { padding-bottom: 4px; }
summary { font-weight: 800; cursor: pointer; list-style-position: outside; }
summary::marker { color: var(--ember); }
details > *:not(summary):first-of-type { margin-top: 10px; }

/* Tables (credits) */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 12px 0 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.45; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 800; background: var(--soft); }
tr:last-child td { border-bottom: 0; }
td a { word-break: break-word; }

/* Stacked rows on phones */
@media (max-width: 560px) {
  .stack table, .stack thead, .stack tbody, .stack tr, .stack td { display: block; width: 100%; }
  .stack thead { display: none; }
  .stack tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .stack tr:last-child { border-bottom: 0; }
  .stack td { border: 0; padding: 2px 0; }
  .stack td:first-child { font-weight: 800; font-size: 15px; }
  .stack td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 600; }
}

.todo { background: #FFF3C4; padding: 0 4px; border-radius: 4px; }

/* Footer */
.site-footer { margin-top: 56px; padding: 24px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 10px; }
.site-footer a { color: var(--muted); }
.nowrap { white-space: nowrap; }
