:root {
  --navy: #132c3e;
  --mint: #8de1c3;
  --teal: #126f63;
  --ink: #1f3342;
  --muted: #586d79;
  --paper: #f4f7f8;
  --line: #dce5e8;
  font-family: 'Manrope', 'Noto Sans Thai', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #46b99b; outline-offset: 4px; border-radius: 6px; }
::selection { background: var(--mint); color: var(--navy); }
.wrap { max-width: 1160px; margin: auto; padding-inline: 40px; }
.skip { position: fixed; top: -100px; left: 20px; z-index: 10; background: var(--mint); color: var(--navy); padding: 12px; }
.skip:focus { top: 10px; }

.site-header {
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px max(40px, calc((100vw - 1080px) / 2));
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 800; white-space: nowrap; }
.brand em { font-style: normal; color: var(--mint); }
.brand img { border-radius: 8px; }
nav { display: flex; gap: 30px; font-size: 14px; color: #c5d4dd; }
nav a:hover { color: var(--mint); }

.hero { background: var(--navy); color: #fff; padding: 40px 0 72px; }
.hero h1 { font-size: clamp(36px, 4.6vw, 58px); font-weight: 600; line-height: 1.35; letter-spacing: -.03em; margin: 0 0 18px; }
.hero h1 span { color: var(--mint); }
.hero p { max-width: 560px; margin: 0; color: #c4d3dc; font-size: 16px; line-height: 1.9; }

.group { padding-top: 64px; }
.group:last-of-type { padding-bottom: 80px; }
.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 22px; }
.group-head h2 { font-size: 26px; font-weight: 600; margin: 0; }
.group-head p { margin: 0; font-size: 14px; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.card {
  position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 46px 22px 22px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.card:hover { border-color: #a9cfc3; box-shadow: 0 10px 26px #132c3e14; transform: translateY(-2px); }
.card img { border-radius: 13px; display: block; }
.card h3 { font-size: 18px; font-weight: 700; margin: 2px 0 6px; }
.card p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--muted); }
.card .go { position: absolute; top: 20px; right: 20px; color: var(--teal); font-size: 16px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; }
.tags li { font-size: 12px; color: var(--teal); background: #e5f5ef; border-radius: 999px; padding: 3px 10px; }

.site-footer { display: flex; align-items: center; gap: 24px; padding-block: 30px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.site-footer .brand { font-size: 16px; color: var(--ink); }
.site-footer .brand em { color: var(--teal); } /* mint fails contrast on the light footer */
.site-footer p { margin: 0; }

@media (max-width: 700px) {
  .wrap { padding-inline: 16px; }
  .site-header { padding: 16px; }
  nav { gap: 16px; font-size: 13px; }
  .hero { padding: 24px 0 48px; }
  .group { padding-top: 44px; }
  .group-head { flex-direction: column; gap: 4px; }
  .cards { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 420px) { nav { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card { transition: none; } .card:hover { transform: none; } }

p, li { text-wrap: pretty; }
