@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/BricolageGrotesque-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  --ink: #0b0b0b;
  --paper: #f4f2ec;
  --line: #ddd9cf;
  --mute: #6b675e;
  --sun: #ffd60a;
  --white: #fff;
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", "Noto Sans Thai", "Thonburi", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  -webkit-text-size-adjust: 100%;
}
img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; box-shadow: 0 0 0 6px var(--ink); }

/* Language: English by default, Thai when <html data-lang="th">. */
[lang="th"] { display: none; }
html[data-lang="th"] [lang="th"] { display: revert; }
html[data-lang="th"] [lang="en"] { display: none; }
html[data-lang="th"] body { line-height: 1.8; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--gutter); top: 8px; z-index: 10; background: var(--sun); padding: 8px 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(48px, 8vw, 96px) 0; }
[id] { scroll-margin-top: 72px; }
.dark { background: var(--ink); color: var(--paper); }
.sun { background: var(--sun); }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 0.4em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 9vw, 6rem); }
h2 { font-size: clamp(1.9rem, 5vw, 3.2rem); }
h3 { font-size: 1.25rem; letter-spacing: 0; line-height: 1.2; }
html[data-lang="th"] h1, html[data-lang="th"] h2, html[data-lang="th"] h3 { line-height: 1.3; letter-spacing: 0; }
p { margin: 0 0 1em; max-width: 62ch; }
.lede { font-size: clamp(1.1rem, 2.4vw, 1.4rem); }
.eyebrow { font: 800 0.8rem/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1rem; }
.small { font-size: 0.875rem; color: var(--mute); }
.dark .small { color: #b5b0a4; }

/* Header */
.top { background: var(--ink); color: var(--paper); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.top .logo img { height: 26px; width: auto; }
.top nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.top nav a, .lang { padding: 10px; font-size: 0.9rem; text-decoration: none; color: inherit; }
.top nav a[aria-current="page"] { color: var(--sun); }
.top nav a:hover { text-decoration: underline; }
.lang { background: none; border: 1px solid #444; border-radius: 99px; padding: 6px 12px; cursor: pointer; font-family: inherit; }

@media (max-width: 700px) {
  .top { position: static; }
  .top .wrap { gap: 0 12px; padding-top: 6px; }
  .top .lang { margin-left: auto; }
  .top nav { order: 3; width: 100%; margin: 0 -10px; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; }
}

/* Buttons */
.btn {
  display: inline-block; padding: 14px 22px; border: 2px solid var(--ink); border-radius: 6px;
  background: var(--sun); color: var(--ink); font: 800 1rem/1.1 var(--display);
  text-decoration: none; cursor: pointer; box-shadow: 4px 4px 0 var(--ink);
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn.ghost { background: transparent; box-shadow: none; }
.dark .btn { border-color: var(--sun); box-shadow: 4px 4px 0 #000; }
.dark .btn.ghost { color: var(--paper); border-color: var(--paper); box-shadow: none; }
.btn[aria-disabled="true"] { background: var(--line); border-color: var(--mute); color: var(--ink); box-shadow: none; cursor: not-allowed; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.5rem; align-items: center; }

/* Hero */
.hero { padding: clamp(32px, 6vw, 80px) 0; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.8rem); }
.hero h1 em { font-style: normal; color: var(--sun); }
.hero figure { margin: 0; }
.hero figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 6px; box-shadow: 10px 10px 0 var(--sun); }
.hero figcaption { font-size: 0.8rem; color: #b5b0a4; margin-top: 18px; }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero figure { order: -1; }
  /* Wide crop on phones: keep both faces in frame, sitting a little below the top edge. */
  .hero figure img { aspect-ratio: 5 / 4; object-position: 50% 24%; box-shadow: 6px 6px 0 var(--sun); }
}

/* Numbers */
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); border: 2px solid var(--ink); background: var(--white); color: var(--ink); }
.board > div { padding: 20px; border: 1px solid var(--line); }
.board .num { font: 800 clamp(2rem, 6vw, 3rem)/1 var(--display); display: block; }
.board .label { font-size: 0.85rem; color: var(--mute); display: block; margin-top: 6px; }
.dark .board .small { color: var(--mute); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 1.5rem; padding: 0; list-style: none; }
.card { background: var(--white); border: 2px solid var(--ink); border-radius: 6px; padding: 22px; display: flex; flex-direction: column; gap: 6px; color: var(--ink); }
.card.pick { box-shadow: 6px 6px 0 var(--sun), 6px 6px 0 2px var(--ink); }
.card .price { font: 800 1.8rem/1 var(--display); }
.card .btn { margin-top: auto; align-self: flex-start; }
.card p { margin-bottom: 0.6em; }
.tag { display: inline-block; align-self: flex-start; font: 800 0.7rem/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 8px; border: 1.5px solid var(--ink); border-radius: 3px; background: var(--paper); }
.tag.available { background: var(--sun); }
.tag.sold { background: var(--ink); color: var(--paper); }
.tag.reserved, .tag.soon { background: var(--line); }

.video { aspect-ratio: 16 / 9; background: #000; border: 2px solid var(--ink); }
.shorts { display: flex; gap: 14px; overflow-x: auto; padding: 4px 0 12px; margin: 0.8rem 0 0; list-style: none; scroll-snap-type: x mandatory; }
.shorts li { flex: 0 0 150px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; }
.shorts a { display: block; aspect-ratio: 9 / 16; border: 2px solid var(--sun); border-radius: 6px; }
.shorts a:hover, .shorts a:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.shorts .small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video iframe { width: 100%; height: 100%; border: 0; }

/* Tables */
table { width: 100%; border-collapse: collapse; background: var(--white); border: 2px solid var(--ink); }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 0.95rem; }
th { font: 800 0.75rem/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; background: var(--paper); }
.scroll { overflow-x: auto; }

/* Forms */
form { display: grid; gap: 14px; max-width: 560px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
input, textarea, select { font: inherit; padding: 12px; border: 2px solid var(--ink); border-radius: 4px; background: var(--white); color: var(--ink); width: 100%; }
.hp { position: absolute; left: -9999px; }
.note { border: 1.5px dashed var(--ink); background: var(--white); padding: 14px 16px; margin: 1.2rem 0; max-width: 62ch; }
.dark .note { background: #1a1a1a; border-color: var(--mute); }

details { border-bottom: 1px solid var(--line); padding: 16px 0; max-width: 70ch; }
summary { font: 800 1.1rem/1.3 var(--display); cursor: pointer; }
details p { margin: 0.8em 0 0; }

footer { background: var(--ink); color: var(--paper); padding: 40px 0; font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; }
footer ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 16px; flex-wrap: wrap; }
footer img { height: 24px; width: auto; margin-bottom: 10px; }

/* Follow + email */
.follow-row { display: flex; flex-wrap: wrap; gap: 18px 22px; list-style: none; padding: 0; margin: 1.4rem 0 2rem; }
.follow-row li { display: grid; gap: 8px; justify-items: start; }
.follow-row .btn { font-size: 1.05rem; }
.subscribe { max-width: 620px; gap: 10px; }
.subscribe > label { font-weight: 600; font-size: 1.05rem; }
.subscribe-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
@media (max-width: 520px) { .subscribe-row { grid-template-columns: 1fr; } .follow-row .btn { width: 100%; text-align: center; } .follow-row li { width: 100%; } }
.subscribe input[aria-invalid="true"] { border-color: #d62828; }

/* Contact buttons */
.contact-row { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 0.6rem 0 0; }
.dark .contact-row .btn.ghost { color: var(--paper); border-color: var(--paper); }

/* Sponsor: reels + proof */
.reel { display: block; position: relative; aspect-ratio: 9 / 16; background: #1a1a1a; border: 2px solid var(--sun); border-radius: 6px; overflow: hidden; }
.reel img { width: 100%; height: 100%; object-fit: cover; }
.reel .tile-cap { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; text-align: center; font: 800 0.95rem/1.25 var(--display); color: var(--paper); }
.reel.proof { border-color: var(--ink); }
[data-w-proof-list] { grid-template-columns: repeat(auto-fill, minmax(140px, 200px)); }
[data-w-audience] > div { padding: 20px; }

/* Pillars: photo + problems, sides alternate */
.pillar { display: grid; grid-template-columns: minmax(220px, 0.8fr) 1.2fr; gap: clamp(20px, 5vw, 56px); align-items: center; padding: clamp(28px, 5vw, 56px) 0; border-top: 2px solid var(--ink); }
.pillar:nth-of-type(even) { grid-template-columns: 1.2fr minmax(220px, 0.8fr); }
.pillar:nth-of-type(even) figure { order: 2; }
.pillar figure { margin: 0; }
.pillar figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; box-shadow: 8px 8px 0 var(--sun), 8px 8px 0 2px var(--ink); }
.pillar h3 { font-size: clamp(2rem, 6vw, 3.4rem); }
.problems { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 18px; }
.problems li { border-left: 4px solid var(--sun); padding-left: 16px; }
.problems .q { font: 800 clamp(1.15rem, 2.6vw, 1.45rem)/1.25 var(--display); margin: 0 0 6px; }
html[data-lang="th"] .problems .q { line-height: 1.5; letter-spacing: 0; }
.problems a { font-size: 0.95rem; font-weight: 600; }
.lead-q { background: var(--ink); color: var(--paper); border-radius: 6px; padding: 18px 20px; margin: 1rem 0 0; }
.lead-q p { font: 800 clamp(1.1rem, 2.4vw, 1.35rem)/1.3 var(--display); margin: 0 0 14px; }
html[data-lang="th"] .lead-q p { line-height: 1.55; letter-spacing: 0; }
.lead-q .btn { box-shadow: 4px 4px 0 #000; }
@media (max-width: 760px) {
  .pillar, .pillar:nth-of-type(even) { grid-template-columns: 1fr; }
  .pillar:nth-of-type(even) figure { order: 0; }
  .pillar figure img { aspect-ratio: 5 / 4; object-position: 50% 30%; }
}

/* Photo wall + strips */
.photos { columns: 4 190px; column-gap: 10px; margin-top: 1.5rem; }
.photos img { width: 100%; height: auto; margin: 0 0 10px; border-radius: 4px; break-inside: avoid; background: var(--line); }
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; border: 2px solid var(--ink); }

/* Sun sections: buttons flip so they stand out from the yellow */
.sun .btn { background: var(--ink); color: var(--sun); }
.sun .btn.ghost { background: transparent; color: var(--ink); }
.sun .note { color: var(--ink); }
.sun .lede { color: var(--ink); }

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