/* Generated by web/build.py · colours: brand/tokens.json + web/pages.py WEB_COLORS (plan 3.3, look A Q14) */
:root {

  --paper: #F6F1E7;

  --paper-deep: #ECE4D4;

  --ink: #1F1D1A;

  --brand-dark: #A03322;

  --muted: #665E55;

  --rule: #DCD2C0;

  --gold: #EFD08F;

  --gold-ink: #7D6230;

  --cream: #F3ECDD;

  --cream-muted: #E2D5C0;

  --caution-ink: #8A5A36;

  --caution-soft: #F1E4D3;

  --day-tint: #F8F0E3;

  --band-dark: #832A1C;

  --white: #FFFFFF;

  --line: #EEE9E0;

  --soft: #FAF8F4;

}

@font-face {
  font-family: "Sarabun";
  src: url("/fonts/sarabun-regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Sarabun";
  src: url("/fonts/sarabun-bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Sarabun", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.8;
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

a { color: var(--brand-dark); text-underline-offset: 3px; }

h1, h2 {
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.nobr { white-space: nowrap; }   /* h1 breaks only at spaces (browsers split "ดูดวง" as ดูด/วง) */
h1 { font-size: 1.6rem; margin: 0.25rem 0 0.5rem; }   /* the widest nobr word must fit a 320 px phone */
.doc h1 + p { color: var(--muted); font-size: 0.95rem; margin-bottom: 2rem; }
h2 { font-size: 1.2rem; margin: 2.5rem 0 0.75rem; }

p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: 0.4rem; }
strong { font-weight: 700; }

header.site {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 1.25rem;
}
header.site .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.98rem;
}
header.site img { width: 32px; height: 32px; }

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
}
table { border-collapse: collapse; width: 100%; }
td:last-child, th:last-child { min-width: 5.5rem; text-align: right; }   /* may wrap: "ข้อละ 39 บาท · 3 ข้อ 99 บาท" is wide */
th, td { text-align: left; vertical-align: top; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); }
th { background: var(--soft); color: var(--muted); font-size: 0.85rem; }
tr:last-child td { border-bottom: 0; }

.home {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 2rem;
}
.home .mark { width: 6.5rem; height: 6.5rem; }
.home h1 { font-size: 2rem; margin-top: 1.5rem; }
.home p { color: var(--muted); font-size: 1.1rem; }
.button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.85rem 1.8rem;
  background: var(--brand-dark);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
}

.notfound { text-align: center; padding-top: 4rem; }

footer.site {
  border-top: 1px solid var(--line);
  padding: 1.5rem 1.25rem 2rem;
  text-align: center;
  font-size: 0.9rem;
}
footer.site nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
footer.site a { color: var(--muted); text-decoration: none; }
