:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #1c2430;
  --muted: #5d6877;
  --line: #dde2e8;
  --accent: #0f766e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Noto Sans Thai", system-ui, sans-serif;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--accent); }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-header .inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}

nav a {
  margin-right: 1.1rem;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
}

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

nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 2.5rem 1rem 3rem;
}

h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.25; margin: 0 0 0.75rem; }
h2 { margin-top: 2.2rem; }
p { max-width: 62ch; }

.lead { font-size: 1.15rem; color: var(--muted); }

.button {
  display: inline-block;
  padding: 0.65rem 1.3rem;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  cursor: zoom-in;
}

form { display: grid; gap: 1rem; max-width: 480px; margin-top: 1.5rem; }
label { display: grid; gap: 0.3rem; font-weight: 600; }
input, textarea {
  font: inherit;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

#form-msg { color: var(--accent); font-weight: 600; }

.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

dialog { border: none; padding: 0; background: transparent; max-width: 92vw; }
dialog::backdrop { background: rgba(0, 0, 0, 0.75); }
dialog img { max-width: 92vw; max-height: 88vh; border-radius: 6px; display: block; }
