@font-face {
  font-family: "Noto Sans Thai";
  src: url("thai.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #faf8f5;
  --ink: #211e1b;
  --muted: #605851;
  --accent: #a83a0e;
  --rule: #e7ddd3;
  --measure: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.58 "Noto Sans Thai", system-ui, sans-serif;
}
a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
.masthead, .footer { padding-inline: clamp(20px, 5.4vw, 82px); }
.masthead-inner, .footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 22px;
}
.masthead-inner {
  max-width: var(--measure);
  min-height: 73px;
  margin-inline: auto;
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: flex;
  align-items: center;
  min-height: 48px;
}
.brand img { display: block; width: clamp(112px, 11vw, 148px); height: auto; }
.quiet-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: .86rem;
  white-space: nowrap;
  text-decoration: none;
}
.quiet-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero { text-align: center; }
.hero-copy {
  padding: clamp(33px, 4vw, 64px) 20px clamp(27px, 3vw, 46px);
}
.release {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: clamp(.9rem, 1.3vw, 1.05rem);
  font-weight: 680;
}
h1 {
  margin: 0 auto;
  max-width: 23ch;
  font-size: clamp(2rem, 5.35vw, 5.2rem);
  line-height: 1.2;
  font-weight: 740;
  letter-spacing: -.038em;
  text-wrap: balance;
}
.intro {
  margin: 12px auto 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: clamp(.95rem, 1.8vw, 1.26rem);
  text-wrap: pretty;
}
.preview-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  color: var(--accent);
  font-weight: 610;
  font-size: .95rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.preview-link:hover { color: var(--ink); }
.hero-image {
  display: block;
  width: 100%;
  height: clamp(420px, 44vw, 650px);
  object-fit: cover;
  object-position: 52% 53%;
  background: #ecded0;
}
.preview {
  width: min(100%, 710px);
  margin-inline: auto;
  padding: clamp(44px, 7vw, 88px) 20px;
  text-align: center;
  scroll-margin-top: 16px;
}
h2 {
  margin: 0 0 18px;
  font-size: clamp(1.65rem, 3.5vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -.025em;
}
.tabs {
  display: flex;
  justify-content: center;
  gap: clamp(6px, 2.5vw, 25px);
  border-bottom: 1px solid var(--rule);
}
.tabs button {
  min-height: 44px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 7px clamp(7px, 2vw, 17px);
  font: inherit;
  font-weight: 550;
  cursor: pointer;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] {
  color: var(--accent);
  border-bottom-color: currentColor;
}
.panel { padding: 25px 4px 0; }
.panel h3 { margin: 0 0 6px; font-size: 1.1rem; }
.panel p { margin: 0 auto; max-width: 47ch; color: var(--muted); }
.footer {
  min-height: 66px;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .81rem;
}

@media (max-width: 640px) {
  .masthead-inner { min-height: 60px; }
  .hero-copy { padding-top: 35px; }
  .hero-image { height: clamp(246px, 84vw, 400px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
