@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@400;500;600&family=Noto+Serif+Thai:wght@600;700&display=swap");

:root {
  --ink: #14213d;
  --ink-2: #2b3a5c;
  --gold: #c9a227;
  --gold-soft: #f6efd9;
  --paper: #fbfaf6;
  --line: #e6e2d6;
  --muted: #5d6475;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "IBM Plex Sans Thai", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  font-size: 17px;
}
h1, h2, h3 { font-family: "Noto Serif Thai", serif; line-height: 1.35; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--ink-2); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
#site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(20, 33, 61, .97);
  backdrop-filter: blur(6px);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px;
  background: var(--gold); color: var(--ink); font-family: "Noto Serif Thai", serif; font-weight: 700; font-size: .95rem;
}
.links { display: flex; gap: 4px; }
.links a {
  color: #dfe3ec; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .95rem;
}
.links a:hover { background: rgba(255,255,255,.08); color: #fff; }
.links a.active { color: var(--gold); }
.menu-btn { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .links {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; background: var(--ink); padding: 8px 22px 18px;
  }
  .links.open { display: flex; }
  .links a { padding: 12px 6px; border-bottom: 1px solid rgba(255,255,255,.08); }
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 400px at 80% -10%, #2b3a5c 0%, transparent 60%), var(--ink);
  color: #fff; padding: 84px 0 92px;
}
.hero .eyebrow { color: var(--gold); font-weight: 600; letter-spacing: .04em; margin-bottom: 10px; }
.hero p.lead { font-size: 1.15rem; color: #cfd5e2; max-width: 640px; }
.hero.small { padding: 56px 0 60px; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px; text-decoration: none; font-weight: 600;
  background: var(--gold); color: var(--ink); margin: 8px 10px 0 0;
}
.btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn:hover { filter: brightness(1.06); }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 28px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  text-decoration: none; color: inherit; display: block; transition: transform .15s, box-shadow .15s;
}
a.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(20,33,61,.09); }
.card .icon { font-size: 1.8rem; margin-bottom: 10px; }
.card .more { color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.tag {
  display: inline-block; font-size: .8rem; padding: 2px 10px; border-radius: 99px;
  background: var(--gold-soft); color: #7a5f0f; margin-bottom: 8px;
}

.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; }
.list li:last-child { border-bottom: 0; }

.note {
  background: var(--gold-soft); border-left: 4px solid var(--gold); padding: 16px 20px; border-radius: 8px;
}

/* ---------- Footer ---------- */
#site-footer { background: var(--ink); color: #cfd5e2; padding: 40px 0 26px; font-size: .95rem; }
.foot { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.foot strong { color: #fff; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot a { color: #cfd5e2; text-decoration: none; }
.foot a:hover { color: var(--gold); }
.foot .muted { color: #9aa3b8; }
.disclaimer { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); color: #9aa3b8; font-size: .88rem; }
