/* 990club — public site. Same look as the app: paper, ink, sticker cards.
   Mali 700 for display, Mitr for body (mobile/CLAUDE.md, handoff/github.md). */

:root {
  --paper: #FDF7EE;
  --paper-warm: #F6EBD9;
  --card: #FFFFFF;
  --ink: #3B3730;
  --ink-soft: rgba(59, 55, 48, 0.74);
  --ink-faint: rgba(59, 55, 48, 0.52);
  --mint: #C7DEC0;
  --amber: #FBD9A8;
  --lilac: #DCD3FF;
  --pink: #F7C5CE;
  --aqua: #A8DDE0;
  --blue: #BBD9F2;
  --coral: #EF9A8E;
  --line: 2px;
  --shadow: 4px 4px 0 rgba(59, 55, 48, 0.2);
  --radius: 16px;
  --font-display: "Mali", "Mitr", "Noto Sans Thai", "Sarabun", "Segoe UI", sans-serif;
  --font-body: "Mitr", "Noto Sans Thai", "Sarabun", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
}

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

.wrap { max-width: 720px; margin: 0 auto; padding: 20px 18px 72px; }

/* ── header ─────────────────────────────────────────────── */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: var(--line) solid var(--ink);
  border-radius: 12px;
  background: var(--amber);
  box-shadow: var(--shadow);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.brand b { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.lang { font-size: 14px; color: var(--ink-soft); white-space: nowrap; }

/* ── type ───────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.25; margin: 0 0 8px; }
h1 { font-size: clamp(28px, 6.5vw, 40px); letter-spacing: -0.01em; }
h2 { font-size: 22px; margin-top: 36px; }
h3 { font-size: 18px; margin-top: 20px; }
h2 + p, h3 + p { margin-top: 0; }
p { margin: 10px 0; }
ul, ol { padding-left: 22px; margin: 8px 0; }
li { margin: 4px 0; }
.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.lead { font-size: 19px; }
.muted { color: var(--ink-soft); font-weight: 300; }
.small { font-size: 14px; }
.meta { font-size: 14px; color: var(--ink-faint); margin: 4px 0 24px; }
code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.92em; background: var(--paper-warm); padding: 1px 6px; border-radius: 6px; }

/* ── sticker cards ──────────────────────────────────────── */
.card {
  background: var(--card);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin: 18px 0;
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card h2 { margin-top: 0; }
.tone-mint { background: var(--mint); }
.tone-amber { background: var(--amber); }
.tone-lilac { background: var(--lilac); }
.tone-pink { background: var(--pink); }
.tone-aqua { background: var(--aqua); }
.tone-blue { background: var(--blue); }
.tone-paper { background: var(--paper-warm); }

.grid { display: grid; gap: 16px; }
.grid .card { margin: 0; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* ── buttons & badges ───────────────────────────────────── */
.btn {
  display: inline-block;
  min-height: 44px;
  padding: 9px 20px;
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  box-shadow: var(--shadow);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  line-height: 1.5;
}
.btn.ghost { background: var(--card); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(59, 55, 48, 0.2); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 6px; }
.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 52px;
  padding: 6px 16px;
  border: var(--line) solid var(--ink);
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  box-shadow: var(--shadow);
  line-height: 1.2;
}
.store small { font-size: 11px; opacity: 0.8; }
.store b { font-family: var(--font-display); font-size: 17px; }

.tag {
  display: inline-block;
  padding: 2px 10px;
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  background: var(--mint);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.6;
  margin: 2px 4px 2px 0;
}

.price { font-family: var(--font-display); font-weight: 700; font-size: 36px; line-height: 1.1; }
.price small { font-size: 15px; font-family: var(--font-body); font-weight: 400; color: var(--ink-soft); }

/* ── tables ─────────────────────────────────────────────── */
.tablewrap { overflow-x: auto; margin: 12px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.55; min-width: 520px; }
th, td { text-align: left; vertical-align: top; padding: 10px 10px; border-bottom: 1px solid rgba(59, 55, 48, 0.25); }
th { font-family: var(--font-display); font-weight: 700; background: var(--paper-warm); border-bottom: var(--line) solid var(--ink); }
tr:last-child td { border-bottom: none; }

/* ── misc ───────────────────────────────────────────────── */
.toc { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 0; margin: 0 0 24px; list-style: none; font-size: 15px; }
.todo {
  background: var(--pink);
  border: 2px dashed var(--ink);
  border-radius: 6px;
  padding: 0 6px;
  font-weight: 500;
}
hr { border: 0; border-top: var(--line) solid var(--ink); margin: 40px 0; }
.faq details { border-bottom: 1px solid rgba(59, 55, 48, 0.25); padding: 6px 0; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 17px; padding: 8px 0; list-style-position: outside; }
.faq details[open] summary { color: var(--ink); }
.faq details p, .faq details ul { margin-top: 4px; }

footer { margin-top: 56px; font-size: 14px; color: var(--ink-soft); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 10px; }

@media print {
  body { background: #fff; }
  .card, .mark, .btn, .store { box-shadow: none; }
  .top .lang, .stores { display: none; }
}
