@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');

:root {
  --night: #0b1630;
  --night-2: #12244a;
  --river: #0f2f52;
  --gold: #f2c766;
  --gold-soft: #f8e3ad;
  --cream: #fbf6ea;
  --leaf: #3f7d4e;
  --text: #eef2fb;
  --muted: #b5c0d8;
  --ink: #1d2433;
  --ink-muted: #5c6477;
  --line: rgb(255 255 255 / .12);
  font-family: "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.75; }
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(--gold); outline-offset: 3px; }

/* Header */
.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(--gold-soft); 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(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--gold-soft); }
.lang-switch { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--text); text-decoration: none;
  border: 1px solid rgb(255 255 255 / .28); border-radius: 999px; padding: 8px 12px; }
.lang-switch:hover { border-color: var(--gold); }
.lang-switch .flag { width: 21px; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px #ffffff40; }
html[lang="th"] .lang-switch { letter-spacing: 0; }

/* Hero: night sky, moon, river and floating krathong (all drawn, no photos) */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; color: var(--text);
  background: radial-gradient(ellipse at 70% 20%, #23407a 0%, var(--night-2) 38%, var(--night) 75%); }
.stars { position: absolute; inset: 0; background-image:
  radial-gradient(1px 1px at 12% 18%, #fff9 50%, transparent 51%), radial-gradient(1px 1px at 28% 8%, #fff8 50%, transparent 51%),
  radial-gradient(1.5px 1.5px at 44% 26%, #fffa 50%, transparent 51%), radial-gradient(1px 1px at 61% 12%, #fff7 50%, transparent 51%),
  radial-gradient(1px 1px at 84% 30%, #fff8 50%, transparent 51%), radial-gradient(1.5px 1.5px at 92% 9%, #fff9 50%, transparent 51%),
  radial-gradient(1px 1px at 6% 40%, #fff6 50%, transparent 51%), radial-gradient(1px 1px at 36% 44%, #fff5 50%, transparent 51%); }
.moon { position: absolute; top: 12%; right: 12%; width: clamp(110px, 16vw, 200px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #fffbe9 0%, #f7e7b8 55%, #e9cf88 100%);
  box-shadow: 0 0 60px 20px rgb(247 231 184 / .25), 0 0 140px 60px rgb(247 231 184 / .12); }
.river { position: absolute; inset: auto 0 0; height: 38%; background: linear-gradient(180deg, #13335c 0%, var(--river) 40%, #0a1a33 100%); }
.river::before { content: ""; position: absolute; top: -4%; right: calc(12% + clamp(110px, 16vw, 200px) / 2 - clamp(60px, 8vw, 110px) / 2); width: clamp(60px, 8vw, 110px); height: 90%;
  background: radial-gradient(ellipse 50% 100% at 50% 0%, rgb(247 231 184 / .45), rgb(247 231 184 / .12) 55%, transparent 75%); filter: blur(6px); }
.river::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, transparent 0 18px, rgb(255 255 255 / .035) 18px 20px); }
.krathongs { position: absolute; inset: auto 0 6%; height: 30%; pointer-events: none; }
.k { position: absolute; width: clamp(54px, 7vw, 86px); animation: drift 14s ease-in-out infinite; }
.k:nth-child(1) { left: 10%; bottom: 30%; animation-delay: -2s; }
.k:nth-child(2) { left: 34%; bottom: 8%; width: clamp(64px, 8.5vw, 104px); animation-delay: -7s; }
.k:nth-child(3) { left: 58%; bottom: 40%; width: clamp(44px, 5.5vw, 70px); animation-delay: -4s; }
.k:nth-child(4) { left: 80%; bottom: 14%; animation-delay: -10s; }
.flame { transform-origin: 50% 100%; animation: flicker 1.6s ease-in-out infinite alternate; }
@keyframes drift { 0%, 100% { transform: translate(0, 0) rotate(-2deg); } 50% { transform: translate(18px, -6px) rotate(2deg); } }
@keyframes flicker { from { transform: scaleY(1); opacity: .95; } to { transform: scaleY(1.15); opacity: .8; } }
@media (prefers-reduced-motion: reduce) { .k, .flame { animation: none; } }

.hero > .wrap { width: 100%; }
.hero-content { position: relative; z-index: 2; padding: 120px 0 34vh; max-width: 640px; }
.kicker { color: var(--gold); font-weight: 600; font-size: 14px; letter-spacing: .5px; margin: 0 0 12px; }
.hero h1 { font-family: "Noto Serif Thai", serif; font-weight: 700; font-size: clamp(44px, 7vw, 84px); line-height: 1.15; margin: 0 0 18px; color: #fffaf0; }
.hero h1 span { display: block; font-size: .42em; font-weight: 500; color: var(--gold-soft); margin-top: 8px; }
.hero p.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 560px; 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-gold { background: var(--gold); color: #2a1d00; }
.btn-ghost { border: 1px solid rgb(255 255 255 / .3); color: var(--text); margin-left: 8px; }

/* Sections */
section.block { padding: 88px 0; }
.eyebrow { color: #b07d16; font-weight: 700; font-size: 13px; letter-spacing: .5px; 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; color: var(--ink); }
.intro { color: var(--ink-muted); max-width: 720px; font-size: 17px; margin: 0 0 34px; }
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: #fff; border: 1px solid #ece3cf; 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; }
.note { font-size: 14px; color: var(--ink-muted); border-left: 3px solid var(--gold); padding: 8px 14px; background: #fff8e6; border-radius: 0 10px 10px 0; margin-top: 22px; }

.dark { background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); color: var(--text); }
.dark h2 { color: #fffaf0; }
.dark .intro { color: var(--muted); }
.dark .eyebrow { color: var(--gold); }
.dark .card { background: rgb(255 255 255 / .05); border-color: var(--line); }
.dark .card p { color: var(--muted); }
.place .where { font-size: 13px; color: var(--gold-soft); font-weight: 600; }

.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: #fff; border: 1px solid #ece3cf; 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(--leaf); color: #fff; font-weight: 700; }
.steps b { color: var(--ink); display: block; }

.eco { background: #eef6ee; }
.eco .card { border-color: #d6e8d6; }
.do-dont { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.do-dont ul { margin: 8px 0 0; padding-left: 20px; color: var(--ink-muted); }
.do h3 { color: var(--leaf); }
.dont h3 { color: #b0413e; }

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

@media (max-width: 900px) {
  .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { display: none; }
}
@media (max-width: 620px) {
  .g3, .g4, .steps, .do-dont { grid-template-columns: 1fr; }
  section.block { padding: 64px 0; }
  .btn-ghost { margin: 10px 0 0; }
  .moon { top: 14%; right: 8%; }
}
