/* Layout: photo bands that run edge to edge like the stream, text set on a quiet valley-green ground; red umbrella dots as the only ornament */
:root {
  --bg: #f2f5f0;
  --surface: #ffffff;
  --ink: #17221b;
  --muted: #55645a;
  --line: #d6dfd5;
  --stream: #1f6f63;
  --umbrella: #b8261d;
  --umbrella-ink: #ffffff;
  --band: #e4ece2;
  --f-display: "Pridi", "Noto Serif Thai", Georgia, serif;
  --f-body: "IBM Plex Sans Thai Looped", "Noto Sans Thai Looped", "Sarabun", system-ui, sans-serif;
  --f-label: "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.65rem;
  --step-3: 2.15rem;
  --step-4: clamp(2.2rem, 5vw, 3.4rem);
  --radius: 14px;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1612; --surface: #16201a; --ink: #e7eee8; --muted: #a3b2a7; --line: #2a3a30;
    --stream: #5cc2ae; --umbrella: #e2574b; --umbrella-ink: #160b0a; --band: #131d17;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1612; --surface: #16201a; --ink: #e7eee8; --muted: #a3b2a7; --line: #2a3a30;
  --stream: #5cc2ae; --umbrella: #e2574b; --umbrella-ink: #160b0a; --band: #131d17;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.75;
  margin: 0;
}
img { max-width: 100%; display: block; }
a { color: var(--stream); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--umbrella); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.3; text-wrap: balance; margin: 0; font-weight: 600; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0; max-width: 65ch; }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.label {
  font-family: var(--f-label); font-size: var(--step--1); letter-spacing: .06em;
  color: var(--stream); font-weight: 600; display: inline-flex; align-items: center; gap: .5em;
}
.label::before { content: ""; width: .7em; height: .7em; border-radius: 50%; background: var(--umbrella); }

/* header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 10px; }
.brand { font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; display: flex; align-items: baseline; gap: .4em; }
.brand small { font-family: var(--f-label); font-weight: 500; font-size: .8rem; color: var(--muted); }
.nav { display: flex; gap: 4px 14px; flex-wrap: wrap; font-family: var(--f-label); font-size: .95rem; }
.nav a { color: var(--ink); text-decoration: none; padding: 4px 2px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--umbrella); }

/* hero */
.hero { position: relative; }
.hero img { width: 100%; height: clamp(320px, 62vw, 620px); object-fit: cover; }
.hero-card { position: relative; margin-top: -90px; }
.hero-card .inner { background: var(--surface); border-radius: var(--radius); padding: clamp(20px, 4vw, 40px); display: grid; gap: 14px; box-shadow: 0 10px 40px -20px rgba(0,0,0,.35); max-width: 760px; }
.lede { font-size: var(--step-1); color: var(--muted); line-height: 1.6; }

.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.btn { font-family: var(--f-label); font-weight: 600; display: inline-flex; align-items: center; gap: .5em; padding: 10px 18px; border-radius: 999px; text-decoration: none; border: 2px solid var(--umbrella); }
.btn.primary { background: var(--umbrella); color: var(--umbrella-ink); }
.btn.ghost { color: var(--umbrella); background: transparent; }

/* facts strip */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-block: 36px; }
.facts div { background: var(--surface); padding: 16px 18px; display: grid; gap: 2px; min-width: 0; }
.facts dt { font-family: var(--f-label); font-size: var(--step--1); color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* sections */
section { padding-block: clamp(40px, 7vw, 80px); }
.band { background: var(--band); }
.stack { display: grid; gap: 14px; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.split > * { min-width: 0; }
.split.flip > :first-child { order: 2; }
.photo { border-radius: var(--radius); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.photo.tall img { aspect-ratio: 3 / 4; }
.photo.low img { object-position: 50% 72%; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pair .photo img { aspect-ratio: 3 / 4; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 26px; }
.card { display: grid; gap: 10px; align-content: start; color: inherit; text-decoration: none; }
.card .photo img { aspect-ratio: 4 / 3; }
.card h3 { display: flex; justify-content: space-between; gap: 8px; }
.card:hover h3 { color: var(--umbrella); }
.card p { color: var(--muted); font-size: .98rem; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { padding-left: 1.5em; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: .55em; height: .55em; border-radius: 50%; background: var(--umbrella); }

blockquote { margin: 0; padding: 18px 20px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); display: grid; gap: 8px; }
blockquote p { font-family: var(--f-display); font-size: 1.08rem; line-height: 1.6; }
blockquote footer { font-family: var(--f-label); font-size: var(--step--1); color: var(--muted); }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 24px; }

/* menu */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 32px; margin-top: 26px; }
.menu-grid h3 { border-bottom: 2px solid var(--umbrella); padding-bottom: 4px; margin-bottom: 8px; }
.menu-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.menu-grid li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dotted var(--line); padding-block: 3px; }
.menu-grid li span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.star { color: var(--umbrella); font-family: var(--f-label); font-size: .8rem; font-weight: 600; }
.note { font-size: var(--step--1); color: var(--muted); }

/* tables */
.table-wrap { overflow-x: auto; margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 460px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--f-label); font-size: var(--step--1); color: var(--muted); font-weight: 600; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

/* faq */
details { border-bottom: 1px solid var(--line); padding-block: 14px; }
summary { cursor: pointer; font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::after { content: "+"; color: var(--umbrella); font-weight: 700; }
details[open] summary::after { content: "–"; }
details p { margin-top: 8px; color: var(--muted); }

/* steps */
.steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.2em 1fr; gap: 12px; align-items: start; }
.steps li::before { content: counter(s); width: 2.2em; height: 2.2em; border-radius: 50%; background: var(--umbrella); color: var(--umbrella-ink); display: grid; place-items: center; font-family: var(--f-label); font-weight: 700; }

/* contact + footer */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 22px; }
.contact div { display: grid; gap: 4px; min-width: 0; }
.contact strong { font-family: var(--f-label); font-size: var(--step--1); color: var(--muted); font-weight: 600; }
.site-foot { border-top: 1px solid var(--line); padding-block: 28px; font-size: var(--step--1); color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.site-foot address { font-style: normal; }

@media (max-width: 760px) {
  .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .hero-card { margin-top: -50px; }
  .nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 2px; scrollbar-width: none; }
  .nav a { white-space: nowrap; }
}
@media (prefers-reduced-motion: no-preference) {
  .card .photo img { transition: transform .5s ease; }
  .card:hover .photo img { transform: scale(1.04); }
}
