:root {
  --cream: #fff8c9;
  --peach: #d99a6c;
  --deep-red: #b80000;
  --bright-red: #f51f2a;
  --cyan: #38a9c9;
  --ink: #090707;
  --panel: rgba(14, 13, 13, 0.72);
  --soft-white: #f4f0e8;
  --muted-text: #aaa7a0;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --site-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--site-font);
  background: var(--ink);
  color: var(--soft-white);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  position: fixed;
  top: 24px;
  left: 32px;
  right: 32px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.brand,
.desktop-nav,
.menu-toggle {
  pointer-events: auto;
}

.brand {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 248, 201, 0.22);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.12);
  color: rgba(255, 248, 201, 0.86);
  font-weight: 900;
  letter-spacing: 0;
  backdrop-filter: blur(8px);
}

.desktop-nav {
  display: flex;
  gap: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.desktop-nav a {
  position: relative;
  padding: 6px 0;
  color: rgba(255, 248, 201, 0.74);
  font-size: 13px;
  font-weight: 750;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.desktop-nav a.active,
.desktop-nav a:hover {
  background: transparent;
  color: rgba(255, 248, 201, 0.98);
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.55);
  transition: opacity 160ms ease, transform 160ms ease;
}

.desktop-nav a.active::after,
.desktop-nav a:hover::after {
  opacity: 0.7;
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: rgba(255, 248, 201, 0.86);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: none;
  place-content: center;
  gap: 12px;
  background: rgba(5, 4, 4, 0.9);
  backdrop-filter: blur(18px);
}

.mobile-menu.open {
  display: grid;
}

.mobile-menu a {
  min-width: 240px;
  padding: 16px 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--cream);
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.section-bg {
  position: relative;
  overflow: hidden;
  font-family: var(--site-font);
  background-image: var(--bg-image), var(--bg-fallback);
  background-size: cover;
  background-position: var(--bg-position, center);
  background-attachment: var(--bg-attachment, scroll);
}

.section-bg::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(0, 0, 0, var(--overlay, 0.55));
  z-index: 0;
}

[data-section] :is(h1, h2, h3, p, a, span, strong, button) {
  font-weight: var(--section-font-weight, 500) !important;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  --bg-fallback:
    radial-gradient(circle at 75% 40%, rgba(217, 154, 108, 0.32), transparent 24%),
    linear-gradient(105deg, #6d421f 0%, #2d1a12 46%, #111 100%);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    repeating-radial-gradient(circle at 20% 20%, rgba(255,255,255,0.18) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
  z-index: 1;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(760px, 88vw);
  padding: 110px 0 80px clamp(28px, 7vw, 96px);
}

.eyebrow,
.hero h1 {
  margin: 0;
  color: var(--cream);
  font-size: clamp(70px, 8vw, 126px);
  line-height: 0.92;
  font-weight: 950;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 920px;
  font-size: clamp(48px, 6vw, 88px);
}

.thai-intro {
  margin: clamp(80px, 12vh, 150px) 0 8px;
  color: var(--cream);
  font-size: clamp(22px, 2.1vw, 34px);
}

.campaign {
  margin: 0 0 54px;
  color: var(--peach);
  font-size: clamp(44px, 5.4vw, 78px);
  font-weight: 950;
  line-height: 1;
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 0 48px;
  border-radius: 999px;
  background: linear-gradient(90deg, #caffd2, #91bbff);
  color: #069bd4;
  font-size: 26px;
  font-weight: 950;
  box-shadow: 14px 16px 0 rgba(18, 168, 199, 0.58), 0 18px 34px rgba(0, 0, 0, 0.32);
}

.primary-cta[data-platform="youtube"] {
  background: linear-gradient(90deg, #ff4f54, #ffe1e1);
  color: #b80000;
  box-shadow: 14px 16px 0 rgba(184, 0, 0, 0.42), 0 18px 34px rgba(0, 0, 0, 0.32);
}

.primary-cta[data-platform="facebook"],
.primary-cta[data-platform="telegram"] {
  background: linear-gradient(90deg, #d7f4ff, #82bcff);
  color: #136cc7;
}

.primary-cta[data-platform="instagram"] {
  background: linear-gradient(90deg, #ffd1ed, #f6a25c);
  color: #9c235d;
  box-shadow: 14px 16px 0 rgba(187, 32, 112, 0.36), 0 18px 34px rgba(0, 0, 0, 0.32);
}

.primary-cta[data-platform="tiktok"],
.primary-cta[data-platform="member"],
.primary-cta[data-platform="trailer"] {
  background: linear-gradient(90deg, #f1f1f1, #b6fff4);
  color: #111;
  box-shadow: 14px 16px 0 rgba(56, 169, 201, 0.38), 0 18px 34px rgba(0, 0, 0, 0.32);
}

.brand-icon svg {
  display: block;
  width: 32px;
  height: 32px;
}

.social {
  min-height: 760px;
  padding: 38px clamp(20px, 4vw, 70px) 56px;
  --bg-fallback:
    radial-gradient(circle at 30% 34%, rgba(255,255,255,0.12), transparent 28%),
    linear-gradient(135deg, #2f2b2f, #0b0b0d 70%);
}

.section-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.35));
}

.section-shade.stronger {
  background: rgba(0, 0, 0, 0.32);
}

.social h2 {
  position: relative;
  z-index: 3;
  margin: 0 auto;
  color: #bd0606;
  font-size: clamp(52px, 7vw, 86px);
  font-weight: 950;
  text-align: center;
  letter-spacing: 0.15em;
}

.social-links {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 80px auto 0;
  max-width: 920px;
}

.social-button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  padding: 0 28px;
  border-radius: 999px;
  background: #ba0606;
  box-shadow: 0 18px 30px rgba(0,0,0,0.26);
  color: white;
  font-size: 14px;
  font-weight: 950;
  justify-content: center;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease;
  width: 100%;
}

.social-button:hover {
  background: var(--bright-red);
  transform: translateY(-2px);
}

.social-button:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: min(446px, 100%);
  justify-self: center;
}

.events {
  min-height: 760px;
  padding: 90px clamp(24px, 4vw, 70px);
  --bg-fallback:
    radial-gradient(circle at 72% 28%, rgba(244, 218, 170, 0.12), transparent 20%),
    linear-gradient(125deg, #14100c, #070707 70%);
}

.event-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(420px, 1.22fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}

.calendar-panel h2,
.section-heading h2 {
  margin: 0 0 34px;
  color: var(--cream);
  font-family: var(--site-font);
  font-size: clamp(62px, 7vw, 94px);
  font-weight: 500;
  line-height: 1;
}

.calendar {
  width: min(560px, 100%);
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 18px 20px;
  text-align: center;
}

.calendar-weekdays {
  margin-bottom: 22px;
  color: var(--cyan);
  font-size: 27px;
  font-weight: 700;
}

.calendar-weekdays span:first-child,
.day.sunday {
  color: #f03527;
}

.day {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--cyan);
  font-size: 29px;
  cursor: pointer;
}

.day.has-event {
  background: rgba(184, 0, 0, 0.56);
  color: white;
}

.day.selected {
  outline: 2px solid var(--cream);
}

.event-card {
  position: relative;
  overflow: visible;
  min-height: 430px;
  border-radius: 8px;
  background: #f0f0f0;
  color: #222;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}

.event-card-head {
  height: 116px;
  border-radius: 8px 8px 0 0;
  background: var(--bright-red);
}

.binder {
  position: absolute;
  top: -46px;
  z-index: 2;
  width: 22px;
  height: 108px;
  border-radius: 999px;
  background: #171819;
}

.binder-left { left: 20%; }
.binder-right { right: 20%; }

.event-card-body {
  min-height: 314px;
  padding: 38px;
  position: relative;
}

.event-card-body::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 86px;
  height: 86px;
  content: "";
  background: linear-gradient(135deg, rgba(0,0,0,0.06) 0 50%, rgba(0,0,0,0.12) 51%);
  border-radius: 8px 0 8px 0;
}

.event-card-body h3 {
  margin: 0 0 16px;
  color: #111;
  font-size: 30px;
}

.event-card-body p {
  margin: 8px 0;
  color: #333;
  font-size: 16px;
  line-height: 1.6;
}

.event-card-body a {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 18px;
  border-radius: 8px;
  background: #111;
  color: white;
  font-weight: 850;
}

.latest {
  min-height: 720px;
  padding: 90px clamp(22px, 5vw, 80px);
  --bg-fallback:
    radial-gradient(circle at 12% 20%, rgba(245,31,42,0.2), transparent 24%),
    linear-gradient(140deg, #160606, #090707 60%, #1d1d23);
}

.section-heading {
  position: relative;
  z-index: 2;
  margin-bottom: 34px;
}

.section-heading p {
  margin: 0 0 10px;
  color: var(--bright-red);
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.post-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 18px;
}

.post-card {
  overflow: hidden;
  min-height: 360px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  box-shadow: var(--shadow);
}

.post-thumb {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(245,31,42,0.82), rgba(56,169,201,0.5));
}

.post-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-thumb::after {
  position: absolute;
  inset: 20px;
  content: "";
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 8px;
}

.platform-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.58);
  font-size: 13px;
  font-weight: 900;
}

.post-card-content {
  padding: 18px;
}

.post-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.25;
}

.post-card p {
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  line-height: 1.5;
}

.post-card a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--cream);
  font-weight: 950;
}

.embedded-post-card {
  min-height: 0;
  background: rgba(255,255,255,0.04);
}

.post-embed-shell {
  width: 100%;
  min-height: 600px;
  background: #fff;
}

.post-embed-shell.youtube {
  min-height: 0;
  aspect-ratio: 16 / 9;
  background: #000;
}

.post-embed-shell.tiktok {
  min-height: 680px;
  background: #000;
}

.post-embed-shell.facebook {
  min-height: 620px;
}

.post-embed-shell iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
}

.post-embed-shell.youtube iframe {
  min-height: 0;
}

.embedded-post-card .embedded-post-link {
  display: flex;
  min-height: 52px;
  margin: 0;
  padding: 14px 18px;
  align-items: center;
  justify-content: center;
  color: var(--bright-red);
  font-weight: 800;
}

/* Section color controls map only to colors that appear in the public site. */
[data-section="hero"] :is(.eyebrow, h1),
[data-section="social"] h2,
[data-section="events"] .calendar-panel h2,
[data-section="latest"] .section-heading h2 {
  color: var(--cream);
}

[data-section="hero"] .thai-intro,
[data-section="social"] .social-button,
[data-section="events"] .day,
[data-section="latest"] .post-card h3 {
  color: var(--soft-white);
}

[data-section="hero"] .campaign,
[data-section="events"] :is(.calendar-weekdays span:first-child, .day.sunday),
[data-section="latest"] :is(.section-heading p, .post-card a) {
  color: var(--bright-red);
}

[data-section="social"] .social-button,
[data-section="events"] :is(.event-card-head, .day.has-event) {
  background: var(--bright-red);
}

[data-section="events"] .calendar-weekdays,
[data-section="latest"] .post-card p {
  color: var(--muted-text);
}

.admin {
  padding: 90px clamp(20px, 5vw, 80px);
  background: #0f0f10;
}

.admin-gate {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(280px, 0.55fr);
  gap: 24px;
  align-items: end;
}

.admin-gate p {
  margin: 0 0 8px;
  color: var(--bright-red);
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.admin-gate h2 {
  margin: 0;
  color: var(--cream);
  font-size: clamp(40px, 6vw, 72px);
}

.admin-login {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.055);
}

.admin-login[hidden] {
  display: none;
}

.cms-login-field {
  display: none;
}

.admin-login.cms-mode .cms-login-field {
  display: grid;
}

button.cms-login-field {
  width: 100%;
}

.password-reset-form[hidden] {
  display: none;
}

.secure-source-note {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
}

.secure-source-note span {
  color: rgba(255,255,255,0.68);
  font-size: 0.88rem;
  line-height: 1.5;
}

.connection-wizard-header,
.connection-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.latest-posts-preview {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  background: rgba(0,0,0,0.18);
}

.latest-post-preview-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 5px;
  background: rgba(255,255,255,0.05);
}

.latest-post-preview-item .brand-icon svg {
  width: 26px;
  height: 26px;
}

.latest-post-preview-item div {
  display: grid;
  min-width: 0;
}

.latest-post-preview-item span:last-child {
  overflow: hidden;
  color: var(--muted-text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connection-wizard-header h3 {
  margin-bottom: 4px;
}

.connection-list {
  display: grid;
  gap: 10px;
}

.connection-item {
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  background: rgba(255,255,255,0.035);
}

.connection-item > div {
  display: grid;
  gap: 4px;
  min-width: 120px;
}

.connection-item label {
  flex: 1;
  max-width: 320px;
  margin: 0;
  font-size: 0.78rem;
}

.connection-item input {
  margin-top: 4px;
}

.connection-status {
  color: rgba(255,255,255,0.58);
  font-size: 0.78rem;
}

.connection-status.connected {
  color: #71e6a3;
}

.connection-status.unavailable {
  color: #ff9b72;
}

.connection-action {
  flex: 0 0 auto;
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 800;
}

@media (max-width: 720px) {
  .connection-wizard-header,
  .connection-item {
    align-items: stretch;
    flex-direction: column;
  }

  .connection-item label {
    max-width: none;
  }
}

.admin-login.cms-mode .local-login-field {
  display: none;
}

.admin-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.admin-header p {
  margin: 0 0 8px;
  color: var(--bright-red);
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.admin-header h2 {
  margin: 0;
  color: var(--cream);
  font-size: clamp(40px, 6vw, 72px);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.section-image-panel {
  grid-column: 1 / -1;
}

.cms-panel {
  grid-column: 1 / -1;
}

.cms-status {
  margin: 0;
  color: var(--cream);
  font-size: 15px;
  line-height: 1.6;
}

.section-image-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.section-image-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(0,0,0,0.24);
}

.section-image-card h4 {
  margin: 0;
  color: var(--cream);
  font-size: 18px;
}

.section-style-settings {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.section-style-settings h5 {
  margin: 0;
  color: var(--cream);
  font-size: 15px;
}

.hero-font-controls {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  background: rgba(0,0,0,0.18);
}

.hero-font-controls h4 {
  margin: 0;
  color: var(--cream);
}

.font-picker {
  display: grid;
  gap: 6px;
}

.panel .font-picker-search {
  width: 100%;
  min-height: 40px;
}

.font-picker-menu {
  display: grid;
  max-height: 150px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  background: #111;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.2);
}

.panel .font-picker-menu button {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  text-align: left;
}

.panel .font-picker-menu button:hover,
.panel .font-picker-menu button:focus,
.panel .font-picker-menu button[aria-selected="true"] {
  background: rgba(245,31,42,0.24);
  outline: none;
}

.panel .font-picker-menu button[aria-selected="true"]::after {
  content: "✓";
  float: right;
}

.selected-font {
  margin: 0;
  color: var(--muted-text);
  font-size: 13px;
}

.selected-font strong {
  color: var(--cream);
}

.image-preview {
  min-height: 120px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background-image: var(--preview-image), linear-gradient(135deg, rgba(245,31,42,0.28), rgba(56,169,201,0.2));
  background-size: cover;
  background-position: var(--preview-position, center);
}

.panel {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.055);
}

.panel h3 {
  margin: 0 0 6px;
  color: var(--cream);
  font-size: 22px;
}

label {
  display: grid;
  gap: 7px;
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background: rgba(0,0,0,0.32);
  color: white;
  padding: 0 12px;
}

textarea {
  min-height: 88px;
  padding: 12px;
  line-height: 1.5;
  resize: vertical;
}

input[type="range"] {
  padding: 0;
}

input[type="file"] {
  min-height: auto;
  padding: 10px;
  color: rgba(255,255,255,0.8);
}

input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 0;
  border-radius: 6px;
  background: rgba(255,255,255,0.14);
  color: white;
  font-weight: 850;
  padding: 9px 12px;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.switch-row input {
  width: 20px;
  min-height: 20px;
}

button,
.panel button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--bright-red);
  color: white;
  font-weight: 950;
  cursor: pointer;
}

.ghost-button {
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
}

.form-note {
  margin: 0;
  color: var(--muted-text);
  font-size: 13px;
  line-height: 1.5;
}

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

.color-settings-grid input[type="color"] {
  height: 46px;
  padding: 5px;
  cursor: pointer;
}

@media (max-width: 520px) {
  .color-settings-grid {
    grid-template-columns: 1fr;
  }
}

.font-preview {
  display: grid;
  gap: 8px;
  min-height: 70px;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(255, 248, 201, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.font-preview span {
  color: var(--muted-text);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.font-preview strong {
  display: block;
  color: var(--cream);
  font-size: 24px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(20px, 5vw, 80px);
  background: #050505;
  color: rgba(255,255,255,0.72);
}

@media (max-width: 1050px) {
  .social-links {
    gap: 22px;
    margin-top: 64px;
  }

  .event-grid,
  .admin-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

@media (max-width: 760px) {
  .topbar {
    top: 14px;
    left: 16px;
    right: 16px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-copy {
    padding-left: 24px;
    padding-right: 24px;
  }

  .thai-intro {
    margin-top: 58px;
  }

  .primary-cta {
    width: min(280px, 100%);
    min-height: 56px;
    justify-content: center;
    padding: 0 24px;
    font-size: 21px;
  }

  .social {
    padding-top: 82px;
  }

  .social h2 {
    font-size: clamp(36px, 10vw, 54px);
    letter-spacing: 0.08em;
  }

  .social-links {
    grid-template-columns: 1fr;
    width: min(480px, 92vw);
    margin-top: 16px;
  }

  .social-button {
    width: 100%;
    min-height: 54px;
    letter-spacing: 0.16em;
  }

  .social-button:last-child:nth-child(odd) {
    grid-column: auto;
    width: 100%;
  }

  .event-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .section-image-grid {
    grid-template-columns: 1fr;
  }

  .admin-gate {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .events,
  .latest,
  .admin {
    padding-top: 76px;
  }

  .calendar-weekdays,
  .day {
    font-size: 20px;
  }

  .calendar-weekdays,
  .calendar-days {
    gap: 12px 8px;
  }

  .event-card {
    min-height: 390px;
  }

  .post-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
  }

  .post-card {
    flex: 0 0 84vw;
    scroll-snap-align: start;
  }

  .admin-header,
  footer {
    align-items: start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .section-bg {
    background-attachment: scroll !important;
  }
}
