:root {
  --bg: #050505;
  --bg-elev: #121212;
  --ink: #f6f3ec;
  --muted: #b7b3aa;
  --gold: #e0b52a;
  --gold-deep: #b88912;
  --silver: #d5d8de;
  --red: #e31c3d;
  --line: rgba(224, 181, 42, 0.18);
  --pad: clamp(0.9rem, 3.6vw, 2rem);
  --max: 1160px;
  --radius: 0.8rem;
  --font-display: "Outfit", "Noto Sans Thai", sans-serif;
  --font-body: "Noto Sans Thai", system-ui, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --header-h: 4.6rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #000;
  color: #fff;
  padding: 0.55rem 0.8rem;
}
.skip:focus {
  left: 0.6rem;
  top: calc(0.6rem + var(--safe-top));
}

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 5, 5, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: calc(0.35rem + var(--safe-top)) var(--pad) 0.35rem;
}

.top__inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 3.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: clamp(52px, 12vw, 88px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.45rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  background: #000;
}

.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand__name b {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.6vw, 1.15rem);
  letter-spacing: 0.04em;
}
.brand__name span {
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  margin: 0 auto;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.top__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.4rem, 1.5vw, 0.9rem);
  flex-wrap: wrap;
}
.top__nav > a:not(.top__ext) {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0.4rem 0.15rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.top__nav > a:not(.top__ext):hover,
.top__nav > a.is-active { color: #fff; }

.top__ext {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 42px;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 800;
  color: #111;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  white-space: nowrap;
}
.top__ext:hover { filter: brightness(1.06); }

.hero {
  position: relative;
  min-height: clamp(420px, 62vh, 620px);
  display: grid;
  align-items: end;
  overflow: clip;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,5,5,0.35) 0%, rgba(5,5,5,0.25) 38%, rgba(5,5,5,0.92) 100%),
    linear-gradient(95deg, rgba(5,5,5,0.55) 0%, transparent 55%);
}
.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.4rem var(--pad) 1.5rem;
}
.kicker {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero__brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 7vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-shadow: 0 8px 28px rgba(0,0,0,0.65);
}
.hero__brand span { color: var(--gold); }
.hero__lead {
  margin: 0.65rem 0 0;
  max-width: 34rem;
  font-size: clamp(0.98rem, 2.1vw, 1.1rem);
  color: #efe8da;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero__actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.search { margin-top: 0.9rem; max-width: 32rem; }
.search__row { display: flex; gap: 0.4rem; }
.search input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  padding: 0 1.05rem;
  font: inherit;
}
.search input::placeholder { color: #9a958c; }
.search button {
  min-height: 48px;
  padding: 0 1.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: #111;
  font-weight: 800;
  cursor: pointer;
}
.hero__note { margin: 0.65rem 0 0; font-size: 0.82rem; color: var(--muted); }
.hero__note a { color: var(--gold); text-underline-offset: 3px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.96rem;
  transition: transform 0.16s ease, filter 0.16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #111;
  box-shadow: 0 10px 26px rgba(224, 181, 42, 0.28);
}
.btn--ghost {
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.35);
  color: #fff;
}

.strip {
  padding: 1.15rem var(--pad);
  border-top: 1px solid var(--line);
  background: #0c0c0c;
}
.strip__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.strip__item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.strip__item img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
}
.strip__item h2 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.strip__item p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.section { padding: clamp(1.5rem, 3.8vw, 2.8rem) var(--pad); }
.section--alt {
  border-top: 1px solid var(--line);
  background: #0b0b0b;
}
.section__inner { max-width: var(--max); margin: 0 auto; }
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.section__head h2,
.about h2,
.article__head h1 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}
.section__head h2 { font-size: clamp(1.3rem, 3.3vw, 1.85rem); }
.section__head a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(128px, 1fr);
  gap: 0.7rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.poster {
  scroll-snap-align: start;
  text-decoration: none;
  min-width: 128px;
}
.poster img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 0.65rem;
  background: #1a1a1a;
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
}
.poster strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.82rem;
  line-height: 1.3;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cats {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.cat {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 148px;
  padding: 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  overflow: hidden;
  border: 1px solid transparent;
}
.cat img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,0.86));
}
.cat strong, .cat span { position: relative; z-index: 1; }
.cat strong { font-family: var(--font-display); font-size: 1.05rem; }
.cat span { color: #d7d2c8; font-size: 0.8rem; margin-top: 0.15rem; }
.cat:hover { border-color: rgba(224,181,42,0.5); transform: translateY(-2px); }

.about { max-width: 740px; margin: 0 auto; }
.about h2 { font-size: clamp(1.4rem, 4vw, 2rem); margin-bottom: 0.75rem; }
.about p { margin: 0 0 0.9rem; color: var(--muted); font-size: 1.02rem; }
.about strong { color: var(--ink); }
.about a, .prose a, .faq-item a {
  color: var(--gold);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.about--media {
  max-width: var(--max);
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}
.about--media img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.cards {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #101010;
  transition: border-color 0.16s, transform 0.16s;
}
.post-card:hover { border-color: rgba(224,181,42,0.45); transform: translateY(-2px); }
.post-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #1a1a1a;
}
.post-card__body { padding: 0.95rem 1rem 1.05rem; display: flex; flex-direction: column; flex: 1; }
.post-card h2, .post-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.3;
}
.post-card p { margin: 0; color: var(--muted); font-size: 0.92rem; flex: 1; }
.post-card__more {
  margin-top: 0.8rem;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.86rem;
}

.faq-list { margin-top: 0.5rem; display: grid; gap: 0.75rem; }
.faq-item {
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101010;
}
.faq-item h3 { margin: 0 0 0.35rem; font-size: 1.02rem; }
.faq-item p { margin: 0; color: var(--muted); }

.foot {
  border-top: 1px solid var(--line);
  padding: 1.4rem var(--pad) calc(1.25rem + var(--safe-bottom));
  background: #080808;
}
.foot__inner { max-width: var(--max); margin: 0 auto; display: grid; gap: 1rem; }
.foot__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.5fr 1fr 1fr;
}
.foot__brand {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.foot__brand img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 0.4rem;
}
.foot h2 {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.foot a { color: var(--muted); text-decoration: none; display: inline-block; min-height: 1.7rem; }
.foot a:hover { color: #fff; }
.foot__copy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.15rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.86rem;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}
.foot__copy a { color: var(--gold); display: inline; }

.article { padding: 1.15rem var(--pad) 2.3rem; }
.article__inner { max-width: 740px; margin: 0 auto; }
.article__inner--wide { max-width: var(--max); }
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.crumbs a { color: var(--gold); text-decoration: none; }
.article__cover {
  width: 100%;
  aspect-ratio: 16/8;
  object-fit: cover;
  border-radius: 0.9rem;
  margin: 0.2rem 0 1rem;
  background: #1a1a1a;
}
.article__head h1 {
  font-size: clamp(1.5rem, 5vw, 2.35rem);
  line-height: 1.18;
  margin: 0.1rem 0 0.65rem;
}
.article__meta { margin: 0 0 0.35rem; font-size: 0.82rem; color: var(--muted); }
.article__lead { margin: 0; color: var(--muted); font-size: 1.02rem; }
.prose h2 {
  margin: 1.7rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 3vw, 1.3rem);
}
.prose p { margin: 0 0 0.9rem; color: var(--muted); font-size: 1.02rem; }
.prose .plain-list { margin: 0 0 1rem; padding-left: 1.15rem; color: var(--muted); }
.prose .plain-list li { margin: 0.35rem 0; }
.article__cta { margin: 1.6rem 0 0.2rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.article__related { margin-top: 2.1rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.article__related h2 { margin: 0 0 0.65rem; font-family: var(--font-display); font-size: 1.12rem; }
.article__related ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.article__related a {
  display: block;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  background: #101010;
}
.post-grid { display: grid; gap: 0.85rem; margin-top: 1.2rem; }
.wide-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 980px) {
  .cats, .cards, .foot__grid, .about--media { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .top__nav {
    display: none;
    position: absolute;
    left: var(--pad);
    right: var(--pad);
    top: calc(4.35rem + var(--safe-top));
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.7rem;
    background: rgba(8,8,8,0.98);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
  .top.is-open .top__nav { display: flex; }
  .strip__inner, .cards, .wide-grid, .foot__grid, .cats, .about--media { grid-template-columns: 1fr; }
  .hero { min-height: clamp(390px, 70vh, 540px); }
  .hero__actions, .search__row { flex-direction: column; align-items: stretch; }
  .btn, .search button { width: 100%; }
  .rail { grid-auto-columns: 42%; }
  .article__cover { aspect-ratio: 16/10; }
}

@media (max-width: 380px) {
  .brand__name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .cat:hover, .post-card:hover { transform: none; }
}
