:root {
  --coral: #f2746b;
  --coral-deep: #a93f3a;
  --coral-soft: #ffd9d3;
  --peach: #ffe8c8;
  --yellow: #f7d76a;
  --mint: #cceee3;
  --teal: #116b67;
  --blue: #d9ecf5;
  --lavender: #e9dcf7;
  --ink: #17353a;
  --muted: #615b5b;
  --surface: #fffaf5;
  --surface-cool: #f4fbfb;
  --white: #ffffff;
  --line: rgba(169, 63, 58, 0.14);
  --shadow: 0 24px 64px rgba(94, 54, 52, 0.14);
  --shadow-soft: 0 12px 34px rgba(76, 71, 70, 0.1);
  --radius-sm: 18px;
  --radius: 30px;
  --radius-lg: 46px;
  --content: 1180px;
  --reading: 790px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img {
  display: block;
  max-width: 100%;
}

a { color: inherit; }

button { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--ink);
  border-radius: 999px;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}

.container {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(255, 250, 245, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  color: var(--teal);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  text-decoration: none;
}

.brand-dot { color: var(--coral); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--coral);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta,
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  color: var(--white);
  background: var(--coral-deep);
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(169, 63, 58, 0.2);
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover,
.button:hover {
  box-shadow: 0 16px 30px rgba(169, 63, 58, 0.24);
  transform: translateY(-2px);
}

.button-secondary {
  color: var(--coral-deep);
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(169, 63, 58, 0.3);
  box-shadow: none;
}

.menu-toggle {
  width: 48px;
  height: 48px;
  display: none;
  place-items: center;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  width: 20px;
  height: 2px;
  display: block;
  content: "";
  background: var(--teal);
}

.menu-toggle span { margin: 4px 0; }

.home-hero {
  position: relative;
  min-height: 720px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 18%, rgba(233, 220, 247, 0.95) 0 11%, transparent 32%),
    radial-gradient(circle at 90% 15%, rgba(204, 238, 227, 0.95) 0 11%, transparent 32%),
    linear-gradient(135deg, #ffdcd5 0%, #ffebbd 48%, #dff3f1 100%);
}

.home-hero::before,
.home-hero::after {
  position: absolute;
  width: 310px;
  height: 310px;
  content: "";
  border: 60px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}

.home-hero::before { top: -170px; right: 5%; }
.home-hero::after { bottom: -210px; left: 2%; }

.hero-shell {
  position: relative;
  z-index: 2;
  width: min(1060px, calc(100% - 40px));
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(28px, 5vw, 58px);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(15px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--coral-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 10px;
  height: 10px;
  content: "";
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 14px -7px 0 var(--mint);
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  line-height: 1.28;
  letter-spacing: -0.035em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.65rem); }
h3 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2.4vw, 1.35rem); }

.hero-copy h1 { margin-bottom: 20px; }

.home-hero .hero-copy h1 { font-size: clamp(2.35rem, 4.3vw, 3.75rem); }

.hero-copy p {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.14rem);
}

.hero-media {
  position: relative;
  padding: 14px;
  background: linear-gradient(145deg, var(--white), rgba(255, 255, 255, 0.45));
  border-radius: 36px;
  box-shadow: var(--shadow-soft);
  transform: rotate(1.5deg);
}

.hero-media::before,
.hero-media::after {
  position: absolute;
  z-index: 2;
  content: "";
  border-radius: 50%;
}

.hero-media::before {
  width: 42px;
  height: 42px;
  top: -16px;
  right: 15%;
  background: var(--coral);
  box-shadow: -33px -8px 0 var(--yellow);
}

.hero-media::after {
  width: 34px;
  height: 34px;
  bottom: -13px;
  left: 12%;
  background: var(--teal);
  box-shadow: 28px 10px 0 var(--lavender);
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 26px;
}

.section { padding: clamp(72px, 10vw, 112px) 0; }

.section-cool {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-cool) 100%);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.guide-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.guide-image {
  display: block;
  overflow: hidden;
  background: var(--peach);
}

.guide-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.guide-card:hover .guide-image img { transform: scale(1.025); }

.guide-copy { padding: 26px; }

.guide-copy h2 {
  margin-bottom: 13px;
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
}

.guide-copy h2 a {
  color: var(--ink);
  text-decoration: none;
}

.guide-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.feature-card img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.feature-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(32px, 6vw, 70px);
}

.feature-copy h2 { margin-bottom: 18px; }

.feature-copy p {
  margin: 0 0 28px;
  color: var(--muted);
}

.article-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 94px) 0 clamp(70px, 9vw, 108px);
  background:
    radial-gradient(circle at 85% 25%, rgba(204, 238, 227, 0.86), transparent 30%),
    radial-gradient(circle at 15% 18%, rgba(233, 220, 247, 0.88), transparent 32%),
    linear-gradient(140deg, #fff0e8, #fff3c9 52%, #e8f7f5);
}

.breadcrumb {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--teal);
  font-weight: 800;
  text-underline-offset: 3px;
}

.article-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 70px);
}

.article-hero h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(2.35rem, 5vw, 4.15rem);
}

.article-description {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
}

.article-hero figure {
  position: relative;
  margin: 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.76);
  border-radius: 36px;
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.article-hero figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 26px;
}

.article-layout {
  width: min(calc(100% - 40px), var(--content));
  display: grid;
  grid-template-columns: 260px minmax(0, var(--reading));
  justify-content: center;
  gap: 64px;
  margin-inline: auto;
  padding: clamp(66px, 9vw, 110px) 0;
}

.article-rail {
  align-self: start;
  position: sticky;
  top: 104px;
}

.rail-card {
  padding: 24px;
  background: linear-gradient(145deg, #fff3ef, #f2fbfa);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.rail-card span {
  display: block;
  color: var(--coral-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rail-card p {
  margin: 8px 0 0;
  font-size: 0.92rem;
  font-weight: 800;
}

.prose {
  min-width: 0;
  font-size: 1.05rem;
}

.prose > p:first-child {
  margin-top: 0;
  color: #3f4f50;
  font-size: clamp(1.12rem, 2.2vw, 1.28rem);
  line-height: 1.85;
}

.prose h2 {
  position: relative;
  margin: 72px 0 22px;
  padding-top: 18px;
}

.prose h2::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 68px;
  height: 6px;
  content: "";
  background: linear-gradient(90deg, var(--coral), var(--yellow), var(--teal));
  border-radius: 999px;
}

.prose h3 {
  margin: 48px 0 18px;
  color: var(--teal);
}

.prose h4 {
  margin: 32px 0 0;
  padding: 25px 28px 13px;
  color: var(--coral-deep);
  background: linear-gradient(145deg, #fff6f2, #f4fbfb);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
}

.prose h4 + p {
  margin-top: 0;
  padding: 0 28px 27px;
  background: linear-gradient(145deg, #fff6f2, #f4fbfb);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 24px 24px;
}

.prose p { color: #3f3a39; }

.prose a {
  color: var(--teal);
  font-weight: 800;
  text-underline-offset: 4px;
}

.privacy-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--lavender), var(--peach), var(--mint));
}

.privacy-card {
  width: min(700px, 100%);
  padding: clamp(34px, 7vw, 72px);
  text-align: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.privacy-card h1 { margin-bottom: 16px; }

.site-footer {
  padding: 62px 0;
  background: #eaf0ee;
  border-radius: 42px 42px 0 0;
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-nav a {
  font-weight: 800;
  text-underline-offset: 4px;
}

.cookie-banner {
  position: fixed;
  z-index: 300;
  right: 20px;
  bottom: 20px;
  width: min(430px, calc(100% - 40px));
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--coral-soft);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.cookie-banner[hidden] { display: none; }

.cookie-banner p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.cookie-banner a {
  color: var(--teal);
  font-weight: 800;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-actions button {
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid var(--coral-deep);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.cookie-accept {
  color: var(--white);
  background: var(--coral-deep);
}

.cookie-reject {
  color: var(--coral-deep);
  background: var(--white);
}

@media (max-width: 920px) {
  .menu-toggle { display: grid; }

  .nav-links {
    position: fixed;
    inset: 74px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px 32px;
    background: rgba(255, 250, 245, 0.98);
    box-shadow: var(--shadow-soft);
  }

  .nav-links.is-open { display: flex; }

  .nav-links a {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-cta.desktop { display: none; }

  .hero-shell,
  .article-hero-grid,
  .feature-card { grid-template-columns: 1fr; }

  .guide-grid { grid-template-columns: 1fr; }

  .hero-shell { width: min(760px, calc(100% - 32px)); }
  .hero-media { transform: none; }

  .article-layout {
    width: min(calc(100% - 40px), var(--reading));
    display: block;
  }

  .article-rail {
    position: static;
    margin-bottom: 36px;
  }

  .feature-card img { min-height: 0; aspect-ratio: 3 / 2; }
}

@media (max-width: 560px) {
  .container,
  .article-layout { width: min(calc(100% - 28px), var(--content)); }

  .home-hero { min-height: auto; padding: 36px 0 64px; }

  .hero-shell {
    width: calc(100% - 28px);
    padding: 26px 20px;
    border-radius: 32px;
  }

  h1 { font-size: clamp(2.25rem, 13vw, 3.25rem); }

  .article-hero { padding-top: 42px; }

  .article-hero-grid { gap: 28px; }

  .article-hero figure { transform: none; }

  .feature-copy { padding: 30px 22px; }

  .prose { font-size: 1rem; }

  .prose h2 { margin-top: 56px; }

  .prose h4 { padding: 22px 20px 12px; }

  .prose h4 + p { padding: 0 20px 22px; }

  .footer-grid { flex-direction: column; }

  .site-footer { border-radius: 28px 28px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
