:root {
  --bg: #f8f2ea;
  --surface: rgba(255, 251, 247, 0.88);
  --surface-strong: #fffdf9;
  --text: #13233d;
  --muted: #5f6a78;
  --line: rgba(19, 35, 61, 0.12);
  --accent: #f26a2e;
  --accent-deep: #cb4a12;
  --accent-soft: #ffe4d3;
  --ok: #dff4ef;
  --ok-text: #145d50;
  --shadow: 0 24px 60px rgba(19, 35, 61, 0.1);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Sora", "Noto Sans Thai", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(242, 106, 46, 0.18), transparent 30%),
    linear-gradient(180deg, #fffaf5 0%, #f8f2ea 55%, #efdfcf 100%);
}

a {
  color: inherit;
}

.page-shell {
  width: min(calc(100% - 24px), var(--max-width));
  margin: 0 auto;
  padding: 18px 0 42px;
}

.topbar,
.hero,
.section-card,
.cta-card,
.faq-card,
.site-footer {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 999px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--accent), #ff9c62);
  color: white;
  font-weight: 800;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy small,
.topbar nav a,
.hero p,
.section-card p,
.faq-card p,
.site-footer p,
.meta-chip,
.list-note,
.crumbs a {
  color: var(--muted);
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar nav a,
.button,
.ghost-button {
  text-decoration: none;
  font-weight: 600;
}

.button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
}

.button {
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}

.ghost-button {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 14px;
  font-size: 0.92rem;
}

.crumbs span {
  color: var(--text);
}

.hero {
  display: grid;
  gap: 18px;
  padding: 24px 18px;
  border-radius: var(--radius-xl);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.7rem, 4.5vw, 2.7rem);
  line-height: 1.06;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.hero p,
.section-card p,
.faq-card p,
.site-footer p,
li {
  line-height: 1.75;
}

.hero-actions,
.chip-row,
.link-grid,
.faq-grid,
.content-grid,
.three-grid,
.two-grid {
  display: grid;
  gap: 14px;
}

.hero-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chip-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(19, 35, 61, 0.05);
  border: 1px solid var(--line);
}

.section-stack {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.section-card,
.cta-card,
.faq-card {
  padding: 22px 18px;
  border-radius: var(--radius-lg);
}

.section-card ul,
.faq-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.list-note {
  margin-top: 10px;
}

.link-grid a,
.content-grid article,
.three-grid article,
.two-grid article {
  display: block;
  padding: 18px;
  text-decoration: none;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.link-grid a strong {
  display: block;
  margin-bottom: 8px;
}

.detail-grid {
  display: grid;
  gap: 18px;
}

.detail-grid .section-card,
.detail-grid .cta-card {
  margin: 0;
}

.meta-list {
  display: grid;
  gap: 12px;
}

.meta-list article {
  padding: 16px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.meta-list strong {
  display: block;
  margin-bottom: 6px;
}

.hero-summary {
  display: grid;
  gap: 10px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--ok);
  color: var(--ok-text);
  font-size: 0.88rem;
  font-weight: 700;
}

.site-footer {
  display: grid;
  gap: 14px;
  padding: 22px 18px;
  margin-top: 24px;
  border-radius: var(--radius-xl);
}

@media (min-width: 760px) {
  .chip-row,
  .three-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .two-grid,
  .faq-grid,
  .link-grid,
  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meta-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 759px) {
  .topbar {
    border-radius: 28px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }
}
