:root {
  color-scheme: light dark;
  --font-sans: system-ui, -apple-system, "PingFang SC", "Noto Sans Thai", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ink: #1B1B1A;
  --ink-2: #5C5B57;
  --ink-3: #8A8984;
  --ink-4: #B3B2AC;
  --paper: #F6F5F3;
  --surface: #FFFFFF;
  --surface-2: #EFEEEB;
  --surface-3: #E7E5E1;
  --line: #E4E2DD;
  --line-2: #D5D3CD;
  --maxw: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--ink-2);
}

.site-header,
.site-footer,
main {
  width: min(calc(100% - 48px), var(--maxw));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.language-switcher {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
}

.language-switcher a {
  min-width: 40px;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.language-switcher a:hover,
.language-switcher a:focus-visible {
  color: var(--ink);
  background: var(--surface);
  outline: none;
}

main {
  min-height: calc(100vh - 153px);
}

.language-panel {
  display: block;
  scroll-margin-top: 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(48px, 9vw, 112px);
  align-items: center;
  padding: clamp(72px, 12vw, 144px) 0 clamp(80px, 14vw, 160px);
}

.eyebrow,
.meta,
.updated {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 14ch;
  margin-bottom: 24px;
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.lede {
  max-width: 610px;
  margin-bottom: 32px;
  color: var(--ink-2);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.button:hover {
  background: var(--ink-2);
  color: var(--paper);
}

.button.secondary {
  border-color: var(--line-2);
  background: transparent;
  color: var(--ink);
}

.button.secondary:hover {
  background: var(--surface-2);
}

.placeholder-note {
  margin: 12px 0 0;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
}

.stamp-mark {
  width: min(100%, 320px);
  aspect-ratio: 4 / 5;
  margin-inline: auto;
  transform: rotate(2deg);
}

.stamp-mark .paper {
  fill: var(--surface);
  stroke: var(--line-2);
}

.stamp-mark .art,
.stamp-mark .detail {
  fill: none;
  stroke: var(--ink);
}

.stamp-mark .art {
  stroke-width: 2;
}

.stamp-mark .detail {
  opacity: 0.42;
  stroke-width: 1;
}

.stamp-mark text {
  fill: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature {
  padding: 32px 28px 36px 0;
}

.feature + .feature {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.feature h2 {
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 550;
}

.feature p {
  margin-bottom: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
}

.closing {
  padding: 80px 0 96px;
}

.closing p {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.7;
}

.document {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 0.68fr);
  gap: clamp(48px, 9vw, 120px);
  padding: clamp(64px, 10vw, 120px) 0 112px;
}

.document-header {
  position: sticky;
  top: 32px;
  align-self: start;
}

.document h1 {
  max-width: 10ch;
  font-size: clamp(36px, 5vw, 54px);
}

.document-copy {
  max-width: 680px;
}

.document-copy section {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.document-copy section:first-child {
  padding-top: 0;
  border-top: 0;
}

.document-copy h2 {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 550;
  line-height: 1.4;
}

.document-copy p,
.document-copy li {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.75;
}

.document-copy p:last-child {
  margin-bottom: 0;
}

.plain-list {
  margin: 0;
  padding-left: 1.2em;
}

.plain-list li + li {
  margin-top: 8px;
}

.contact-card {
  padding: 24px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
}

.contact-card .email {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: clamp(19px, 3vw, 26px);
  letter-spacing: -0.03em;
}

.faq section {
  padding: 24px 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.5;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ECEBE7;
    --ink-2: #A7A6A0;
    --ink-3: #7A7974;
    --ink-4: #54534F;
    --paper: #161614;
    --surface: #1E1E1C;
    --surface-2: #262624;
    --surface-3: #2F2F2C;
    --line: #2C2C29;
    --line-2: #3A3A36;
  }
}

@media (max-width: 720px) {
  .site-header,
  .site-footer,
  main {
    width: min(calc(100% - 32px), var(--maxw));
  }

  .site-header {
    min-height: 68px;
  }

  .hero,
  .document {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 56px;
    padding: 64px 0 80px;
  }

  .hero-copy {
    order: 1;
  }

  .stamp-mark {
    order: 2;
    width: min(74vw, 280px);
  }

  .feature-strip {
    grid-template-columns: 1fr;
  }

  .feature,
  .feature + .feature {
    padding: 24px 0;
    border-left: 0;
  }

  .feature + .feature {
    border-top: 1px solid var(--line);
  }

  .document {
    gap: 44px;
    padding: 64px 0 88px;
  }

  .document-header {
    position: static;
  }

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

@media (max-width: 390px) {
  .wordmark span {
    display: none;
  }

  .language-switcher a {
    min-width: 34px;
    padding-inline: 7px;
  }

  h1 {
    font-size: 39px;
  }
}
