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

/* Shared layout for the Thai-culture sites; each site sets its palette in :root (theme.css part). */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.75; font-family: "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--paper); }
a { color: inherit; }
img, svg { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: #fff; padding: 8px 12px; border-radius: 6px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.site-header { position: absolute; inset: 0 0 auto; z-index: 3; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--hero-strong); text-decoration: none; font-family: "Noto Serif Thai", serif; font-weight: 700; font-size: 20px; }
.logo svg { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 24px; font-size: 14px; }
.nav-links a { color: var(--hero-muted); text-decoration: none; }
.nav-links a:hover { color: var(--hero-strong); }
.lang-switch { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--hero-text); text-decoration: none;
  border: 1px solid var(--hero-line); border-radius: 999px; padding: 8px 12px; background: var(--hero-chip); }
.lang-switch:hover { border-color: var(--accent); }
.lang-switch .flag { width: 21px; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px #ffffff40; }

.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; color: var(--hero-text); background: var(--hero-bg); }
.hero > .wrap { width: 100%; position: relative; z-index: 2; }
.hero-content { padding: 120px 0 90px; max-width: 600px; }
.hero-panel { background: var(--hero-panel, transparent); border-radius: 22px; padding: var(--hero-pad, 0); backdrop-filter: var(--hero-blur, none); }
.kicker { color: var(--accent); font-weight: 600; font-size: 14px; margin: 0 0 12px; }
.hero h1 { font-family: "Noto Serif Thai", serif; font-weight: 700; font-size: clamp(44px, 7vw, 82px); line-height: 1.15; margin: 0 0 18px; color: var(--hero-strong); }
.hero h1 span { display: block; font-size: .42em; font-weight: 500; color: var(--hero-sub); margin-top: 8px; }
.hero p.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--hero-muted); margin: 0 0 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.btn-main { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border: 1px solid var(--hero-line); color: var(--hero-text); margin-left: 8px; }
.art { position: absolute; z-index: 1; pointer-events: none; }

section.block { padding: 88px 0; }
.eyebrow { color: var(--eyebrow); font-weight: 700; font-size: 13px; margin: 0 0 6px; }
h2 { font-family: "Noto Serif Thai", serif; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.25; margin: 0 0 16px; }
.intro { color: var(--ink-muted); max-width: 720px; font-size: 17px; margin: 0 0 34px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--card-line); border-radius: 16px; padding: 24px; }
.card h3 { font-size: 19px; margin: 6px 0 8px; }
.card p { margin: 0; color: var(--ink-muted); font-size: 15px; }
.card .icon { font-size: 30px; line-height: 1.2; }
.card .tag { font-size: 13px; color: var(--eyebrow); font-weight: 600; }
.note { font-size: 14px; color: var(--ink-muted); border-left: 3px solid var(--accent); padding: 8px 14px; background: var(--note); border-radius: 0 10px 10px 0; margin-top: 22px; }

.alt { background: var(--alt-bg); color: var(--alt-text); }
.alt h2 { color: var(--alt-strong); }
.alt .intro, .alt .card p { color: var(--alt-muted); }
.alt .eyebrow { color: var(--accent); }
.alt .card { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .12); }
.alt .card .tag { color: var(--accent); }
.alt .note { background: rgb(255 255 255 / .06); color: var(--alt-muted); }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--card-line); border-radius: 14px; padding: 18px 18px 18px 64px; position: relative; color: var(--ink-muted); }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--step); color: #fff; font-weight: 700; }
.steps b { color: var(--ink); display: block; }
.list-card ul { margin: 8px 0 0; padding-left: 20px; color: var(--ink-muted); }

.footer { background: var(--foot-bg); color: var(--foot-muted); padding: 40px 0; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer b { color: var(--foot-strong); font-family: "Noto Serif Thai", serif; }

@media (prefers-reduced-motion: reduce) { .art, .art * { animation: none !important; } }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nav-links { display: none; } }
@media (max-width: 620px) {
  .g2, .g3, .g4, .steps { grid-template-columns: 1fr; }
  section.block { padding: 64px 0; }
  .btn-ghost { margin: 10px 0 0; }
}

/* Thai script must never be letter-spaced (skill web-lang-switch) */
html[lang="th"] h1, html[lang="th"] h1 span, html[lang="th"] .eyebrow, html[lang="th"] .kicker { letter-spacing: 0; }

/* ---- theme: yipengthai.com ---- */

:root { --paper: #fbf6ee; --ink: #221a2e; --ink-muted: #5c5168; --accent: #ffb347; --accent-ink: #2b1400; --eyebrow: #c0571a;
  --card: #fff; --card-line: #ece0d0; --note: #fff3e0; --step: #c0571a;
  --hero-bg: radial-gradient(ellipse at 70% 30%, #3b2a6b 0%, #241a4a 35%, #160f2e 70%, #0c0820 100%);
  --hero-text: #f6efff; --hero-strong: #fff8ea; --hero-sub: #ffd28a; --hero-muted: #cfc4e6; --hero-line: rgb(255 255 255 / .28); --hero-chip: rgb(0 0 0 / .2);
  --alt-bg: #1a1236; --alt-text: #efe9fb; --alt-strong: #fff; --alt-muted: #c6bce0;
  --foot-bg: #0c0820; --foot-muted: #b3a9cf; --foot-strong: #ffb347; }
.hero::before { content: ""; position: absolute; inset: 0; background-image:
  radial-gradient(1px 1px at 15% 20%, #fff8 50%, transparent 51%), radial-gradient(1px 1px at 40% 10%, #fff7 50%, transparent 51%),
  radial-gradient(1.5px 1.5px at 65% 25%, #fff9 50%, transparent 51%), radial-gradient(1px 1px at 88% 15%, #fff7 50%, transparent 51%),
  radial-gradient(1px 1px at 25% 45%, #fff5 50%, transparent 51%); }
.lanterns { right: 0; top: 0; width: min(55vw, 700px); height: 100%; overflow: visible; }
.l { animation: up 18s linear infinite; }
.l1 { transform: translate(140px, 560px); animation-delay: -2s; }
.l2 { transform: translate(300px, 600px); animation-delay: -8s; }
.l3 { transform: translate(430px, 520px); animation-delay: -12s; }
.l4 { transform: translate(220px, 640px); animation-delay: -5s; }
.l5 { transform: translate(520px, 620px); animation-delay: -15s; }
.l6 { transform: translate(380px, 660px); animation-delay: -10s; }
@keyframes up { 0% { translate: 0 120px; opacity: 0; } 10% { opacity: 1; } 85% { opacity: .9; } 100% { translate: 40px -720px; opacity: 0; } }
@media (max-width: 900px) { .lanterns { opacity: .45; width: 100vw; } }
