/* introvert.travel — three colours only: charcoal, cream, one warm accent */
:root {
  --ink: #1b1a18;
  --paper: #f2ede3;
  --accent: #c27a3e;

  --ink-70: rgba(27, 26, 24, 0.7);
  --ink-60: rgba(27, 26, 24, 0.62);
  --ink-12: rgba(27, 26, 24, 0.12);
  --paper-70: rgba(242, 237, 227, 0.7);
  --paper-60: rgba(242, 237, 227, 0.62);
  --paper-12: rgba(242, 237, 227, 0.12);

  --sans: "IBM Plex Sans Thai", system-ui, sans-serif;
  --serif: "Newsreader", "IBM Plex Sans Thai", Georgia, serif;
  --mono: "IBM Plex Mono", "IBM Plex Sans Thai", ui-monospace, monospace; /* Thai glyphs fall through to Plex Sans Thai */

  --gutter: clamp(16px, 5vw, 64px);
  --section: clamp(88px, 14vw, 180px);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.mono { font-family: var(--mono); font-weight: 400; letter-spacing: 0.02em; }
.serif { font-family: var(--serif); font-weight: 300; }

::selection { background: var(--accent); color: var(--ink); }

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

/* ---------- Surfaces ---------- */
.dark  { background: var(--ink);   color: var(--paper); --muted: var(--paper-70); --faint: var(--paper-60); --line: var(--paper-12); }
.light { background: var(--paper); color: var(--ink);   --muted: var(--ink-70);   --faint: var(--ink-60);   --line: var(--ink-12); }

section { padding: var(--section) var(--gutter); }
.wrap { max-width: 1160px; margin: 0 auto; }
.wrap.narrow { max-width: 720px; }

.eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.02em; /* Thai breaks apart with wide tracking */
  color: var(--faint);
  margin-bottom: 28px;
}

.section-title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 22ch;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.section-note { color: var(--muted); max-width: 36ch; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--gutter);
  color: var(--paper);
  background: rgba(27, 26, 24, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.wordmark {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.wordmark .dot { color: var(--accent); }

.nav { display: flex; gap: 28px; font-size: 14px; }
.nav a { text-decoration: none; opacity: 0.8; transition: opacity 0.2s; }
.nav a:hover { opacity: 1; }
.nav-cta { opacity: 1 !important; border-bottom: 1px solid currentColor; }

@media (max-width: 640px) {
  .nav a:not(.nav-cta) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font: 500 15px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--paper); }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--paper-60); }
.btn-ghost:hover { border-color: var(--paper); }
.btn-ghost[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }

.sound-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound-bars i { display: block; width: 2px; height: 4px; background: currentColor; }
[aria-pressed="true"] .sound-bars i { animation: bar 1.1s ease-in-out infinite; }
[aria-pressed="true"] .sound-bars i:nth-child(2) { animation-delay: -0.4s; }
[aria-pressed="true"] .sound-bars i:nth-child(3) { animation-delay: -0.75s; }
@keyframes bar { 0%, 100% { height: 3px; } 50% { height: 12px; } }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: 96px;
  padding-left: max(var(--gutter), calc((100% - 1160px) / 2));
  padding-right: max(var(--gutter), calc((100% - 1160px) / 2));
}

.hero-meter {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--mono);
  line-height: 0.9;
}
.meter-value {
  font-size: clamp(120px, 26vw, 300px);
  font-weight: 400;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.meter-unit { font-size: clamp(20px, 3vw, 32px); color: var(--accent); }

.hero-caption { font-size: 13px; color: var(--paper-60); margin-top: 16px; margin-bottom: 64px; }

.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero-sub { font-size: clamp(20px, 2.6vw, 26px); color: var(--paper-70); margin-top: 12px; }
.hero-body { max-width: 52ch; color: var(--paper-70); margin-top: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* ---------- Manifesto ---------- */
.manifesto-lead {
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
}
.manifesto-body p { color: var(--muted); font-size: 19px; }
.manifesto-body p + p { margin-top: 20px; }

.rules { margin-top: 64px; border-top: 1px solid var(--line); }
.rules li {
  display: grid;
  grid-template-columns: 48px 1fr;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}
.rules .mono { color: var(--accent); font-size: 14px; padding-top: 3px; }

.signoff { margin-top: 64px; font-size: 22px; color: var(--muted); }

/* ---------- Quiet Score ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr minmax(0, 400px);
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
}
.split-text p { color: var(--muted); max-width: 46ch; }
.split-text .section-title { margin-bottom: 32px; }
.split-text p + p { margin-top: 20px; }
.split-text .note { font-size: 13px; line-height: 1.7; border-left: 2px solid var(--accent); padding-left: 16px; margin-top: 32px; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}

.label {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  padding: 20px 22px 16px;
  border: 2px solid var(--ink);
  outline: 1px solid var(--paper-60);
  outline-offset: 6px;
  font-size: 15px;
  font-weight: 400;
}
.label-head { padding-bottom: 6px; }
.label-title { display: block; font: 600 34px/1.1 var(--sans); letter-spacing: -0.02em; }
.label-sub { font-size: 12px; color: var(--ink-70); }
.label-rule { height: 1px; background: var(--ink); margin: 6px 0; }
.label-rule.thick { height: 8px; }
.label-row { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; border-bottom: 1px solid var(--ink-12); }
.label-row:last-of-type { border-bottom: 0; }
.label-row.big { font-weight: 600; font-size: 18px; border-bottom: 0; }
.label-row.big .mono { color: var(--accent); font-weight: 500; font-size: 22px; }
.label-row.indent { padding-left: 16px; color: var(--ink-70); }
.label-foot { font-size: 11px; color: var(--ink-70); padding-top: 4px; }

/* ---------- Routes ---------- */
.route-list { border-top: 1px solid var(--line); counter-reset: route; }
.route {
  display: grid;
  grid-template-columns: 2.2fr 2fr 1.2fr 0.6fr;
  align-items: baseline;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s;
}
.route:hover { padding-left: 12px; }
.route-name { font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.01em; line-height: 1.2; }
.route-place { color: var(--muted); }
.route-meta { font-size: 13px; color: var(--muted); }
.route-meta:last-child { text-align: right; }
.route.later .route-name::after {
  content: "JP";
  font-family: var(--mono);
  font-size: 11px;
  vertical-align: super;
  margin-left: 8px;
  color: var(--accent);
}

@media (max-width: 760px) {
  .route { grid-template-columns: 1fr auto; gap: 4px 16px; }
  .route-name, .route-place { grid-column: 1 / -1; }
  .route-meta:last-child { text-align: right; }
}

.footnote { font-size: 13px; color: var(--muted); margin-top: 28px; }
.tag { color: var(--accent); margin-right: 8px; }

/* ---------- Services ---------- */
.services .section-title { margin-bottom: 64px; }
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.plan { padding: 36px 32px 40px 0; border-right: 1px solid var(--line); }
.plan + .plan { padding-left: 32px; }
.plan:last-child { border-right: 0; }
.plan-name { font-size: 34px; margin-bottom: 20px; }
.plan-price { font-size: 15px; color: var(--muted); margin-bottom: 20px; }
.plan-price .mono { font-size: 22px; color: var(--paper); margin-right: 4px; }
.plan-desc { color: var(--muted); }
.plan.muted .plan-name, .plan.muted .plan-price .mono { color: var(--paper-70); }
.plan-flag { display: inline-block; margin-top: 24px; font-size: 12px; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 4px 12px; }

@media (max-width: 860px) {
  .plans { grid-template-columns: 1fr; }
  .plan, .plan + .plan { padding: 32px 0; border-right: 0; border-bottom: 1px solid var(--line); }
}

.terms { margin-top: 56px; display: grid; gap: 12px; color: var(--muted); font-size: 15px; }
.terms li { padding-left: 24px; position: relative; }
.terms li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }

/* ---------- Included kit ---------- */
.included .section-title { margin-bottom: 56px; }
.kit { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); }
.kit li { padding: 28px 24px 0 0; }
.kit li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.kit-no { font-size: 12px; color: var(--accent); }
.kit h3 { font-weight: 500; font-size: 18px; margin: 16px 0 10px; }
.kit p { color: var(--muted); font-size: 15px; }

@media (max-width: 960px) {
  .kit { grid-template-columns: 1fr 1fr; }
  .kit li, .kit li + li { padding: 28px 16px 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .kit { grid-template-columns: 1fr; }
}

/* ---------- Coin ---------- */
.coin-wrap { display: flex; align-items: center; gap: clamp(40px, 8vw, 96px); flex-wrap: wrap; justify-content: center; }
.coin {
  position: relative;
  width: 220px;
  height: 220px;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  perspective: 900px;
  border-radius: 50%;
}
.coin-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  backface-visibility: hidden;
  transition: transform 0.9s cubic-bezier(0.6, 0, 0.2, 1);
  background:
    radial-gradient(circle at 34% 28%, rgba(242, 237, 227, 0.45), transparent 46%),
    radial-gradient(circle at 70% 80%, rgba(27, 26, 24, 0.35), transparent 55%),
    var(--accent);
  box-shadow:
    inset 0 0 0 6px rgba(27, 26, 24, 0.18),
    inset 0 0 0 9px rgba(242, 237, 227, 0.18);
}
.coin-face span {
  font: 500 26px/1 var(--mono);
  letter-spacing: 0.18em;
  color: var(--ink);
  padding-left: 0.18em;
}
.coin-back { transform: rotateY(180deg); }
.coin[aria-pressed="true"] .coin-front { transform: rotateY(-180deg); }
.coin[aria-pressed="true"] .coin-back { transform: rotateY(0deg); }

.coin-text { max-width: 360px; }
.coin-text .eyebrow { margin-bottom: 16px; }
.coin-state { font-size: clamp(28px, 4vw, 40px); line-height: 1.3; }
.coin-note { color: var(--muted); margin-top: 16px; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.steps li { padding: 32px 32px 40px 0; border-bottom: 1px solid var(--line); counter-increment: step; position: relative; }
.steps li:not(:nth-child(3n + 1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  display: block;
  margin-bottom: 20px;
}
.step-time { font-size: 13px; color: var(--accent); display: block; margin-bottom: 8px; }
.steps h3 { font-weight: 500; font-size: 20px; margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 15px; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li:not(:nth-child(3n + 1)) { padding: 28px 0; border-left: 0; }
}

.exception {
  margin-top: 56px;
  padding: 24px 28px;
  border: 1px solid var(--ink);
  max-width: 640px;
}
.exception .mono { display: block; font-size: 13px; color: var(--accent); margin-bottom: 8px; }

/* ---------- Waitlist ---------- */
.waitlist .section-title { max-width: 20ch; }
.waitlist-body { color: var(--muted); margin-top: 24px; }
.form { margin-top: 48px; display: grid; gap: 24px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; color: var(--muted); }
.optional { color: var(--faint); font-size: 12px; margin-left: 6px; }
.field input, .field select {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  font: 400 17px var(--sans);
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--paper-60);
  border-radius: 6px;
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--paper-70) 50%), linear-gradient(135deg, var(--paper-70) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.field select option { color: var(--ink); background: var(--paper); }
.field input::placeholder { color: var(--paper-60); }
.field input:focus, .field select:focus { border-color: var(--accent); outline: none; }
.field input[aria-invalid="true"] { border-color: var(--accent); }

.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 14px; color: var(--muted); cursor: pointer; line-height: 1.6; }
.consent input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); }

.form-msg { min-height: 1.6em; font-size: 15px; color: var(--accent); }
.form.done .field, .form.done .consent, .form.done button { display: none; }
.form.done .form-msg { font-size: 19px; color: var(--paper); }

/* ---------- Footer ---------- */
.site-footer { padding: 64px var(--gutter) 40px; border-top: 1px solid var(--paper-12); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start; }
.footer-tag { color: var(--paper-60); margin-top: 8px; font-size: 14px; }
.footer-links { display: flex; gap: 24px; font-size: 14px; }
.footer-links a { text-decoration: none; color: var(--paper-70); }
.footer-links a:hover { color: var(--paper); }
.footer-small { grid-column: 1 / -1; font-size: 12px; color: var(--paper-60); }

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .coin-face { transition: none; }
  [aria-pressed="true"] .sound-bars i { animation: none; height: 8px; }
}

/* ---------- Waitlist timeline ---------- */
.timeline { margin: 40px 0 0; border-top: 1px solid var(--line); }
.timeline div { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.timeline dt { color: var(--accent); font-size: 14px; padding-top: 2px; }
.timeline dd { margin: 0; color: var(--muted); font-size: 15px; }

.consent a, .footer-small a { color: inherit; text-underline-offset: 3px; }
.consent a:hover, .footer-small a:hover { color: var(--accent); }

/* ---------- Legal page ---------- */
.legal { padding-top: calc(var(--section) * 0.8); }
.legal .section-title { margin-bottom: 48px; }
.legal h2 { font-weight: 500; font-size: 19px; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p, .legal ul + p { margin-top: 12px; }
.legal ul + p { margin-top: 20px; }
.legal ul { display: grid; gap: 6px; }
.legal li { padding-left: 24px; position: relative; }
.legal li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.legal a { color: var(--ink); text-underline-offset: 3px; }
.legal a:hover { color: var(--accent); }
.legal-back { margin-top: 56px !important; }

/* ---------- Multi-page ---------- */
.nav a[aria-current="page"] { opacity: 1; color: var(--accent); }
.page-top { padding-top: calc(var(--section) * 0.8); }
h1.section-title { font-size: clamp(32px, 5vw, 52px); }

/* homepage: three doors to the detail pages */
.door-list { border-top: 1px solid var(--line); }
.door-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 24px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding 0.3s;
}
.door-list a::after { content: "→"; grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--accent); font-family: var(--mono); }
.door-list a:hover { padding-left: 12px; }
.door-name { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; }
.door-meta { grid-column: 1; color: var(--muted); font-size: 15px; }

/* detail pages: closing band */
.next-band { padding-top: 72px; padding-bottom: 72px; border-top: 1px solid var(--line); }
.next-wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.next-link { text-decoration: none; display: grid; gap: 10px; }
.next-link .eyebrow { margin-bottom: 0; }
.next-title { font-size: clamp(28px, 4vw, 44px); line-height: 1.2; }
.next-link:hover .next-title { color: var(--accent); }
.next-title::after { content: " →"; font-family: var(--mono); font-size: 0.6em; color: var(--accent); }
