/* krutaopoon.com · สีสดจากรูปการ์ตูนกราฟฟิตี: ส้ม แดง ฟ้านีออน บนพื้นขาว (ธีมสว่างอย่างเดียว) */
:root {
  --bg: #ffffff;
  --bg-soft: #fff7f0;
  --ink: #1d1a22;
  --muted: #5d5866;
  --line: #f0e6dd;
  --orange: #ff7a1a;
  --red: #e5322d;
  --cyan: #12b3e6;
  --yellow: #ffc21a;
  --maroon: #8e1f2f;
  --radius: 18px;
  --head: "Kanit", "Leelawadee UI", Tahoma, sans-serif;
  --body: "Sarabun", "Leelawadee UI", Tahoma, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.7;
  overflow-x: clip;
}
a { color: inherit; }
h1, h2, b { font-family: var(--head); }

/* ---------- แถบบน ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  max-width: 1160px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { border-radius: 50%; }
.logo span { display: flex; flex-direction: column; line-height: 1.25; }
.logo b { font-size: 1.15rem; font-weight: 700; }
.logo small { color: var(--muted); font-size: .82rem; }
.menu { display: flex; gap: 6px; flex-wrap: wrap; }
.menu a {
  padding: 7px 16px; border-radius: 999px; text-decoration: none;
  font-family: var(--head); font-weight: 500; font-size: .95rem; color: var(--muted);
  transition: background .15s, color .15s;
}
.menu a:hover { background: var(--bg-soft); color: var(--ink); }
.menu a.on { background: var(--ink); color: #fff; }

/* ---------- ส่วนเปิดหน้า ---------- */
.hero {
  max-width: 1160px; margin: 0 auto; padding: 72px 24px 88px;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px; align-items: center;
}
.hello { margin: 0; font-family: var(--head); font-weight: 600; color: var(--orange); font-size: 1.1rem; }
h1 {
  margin: 4px 0 0; font-weight: 700; line-height: 1.25;
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
}
.brandname {
  display: inline-block;
  background: linear-gradient(90deg, var(--orange), var(--red));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.role { margin: 10px 0 0; font-family: var(--head); font-weight: 500; font-size: 1.2rem; color: var(--maroon); }
.bio { margin: 18px 0 0; max-width: 34em; color: var(--muted); font-size: 1.08rem; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; }
.tags li {
  padding: 4px 14px; border-radius: 999px; color: #fff;
  font-family: var(--head); font-weight: 500; font-size: .9rem;
}
.tags li:nth-child(4n+1) { background: var(--orange); }
.tags li:nth-child(4n+2) { background: var(--cyan); }
.tags li:nth-child(4n+3) { background: var(--red); }
.tags li:nth-child(4n+4) { background: var(--yellow); color: var(--ink); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  padding: 11px 24px; border-radius: 12px; text-decoration: none;
  font-family: var(--head); font-weight: 600; font-size: 1rem;
  transition: transform .15s, box-shadow .15s;
}
.btn.primary { background: var(--orange); color: #fff; box-shadow: 0 6px 0 var(--red); }
.btn.primary:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--red); }
.btn.ghost { border: 2px solid var(--ink); color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn:focus-visible, .sys:focus-visible, .menu a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

/* รูปวงกลม + วงแหวนไล่สี + จุดสีแบบสเปรย์ */
.hero-pic { position: relative; justify-self: center; width: min(420px, 100%); aspect-ratio: 1; }
.hero-pic img {
  position: relative; z-index: 1; display: block; width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover;
  border: 8px solid #fff;
  box-shadow: 0 0 0 6px var(--orange), 0 0 0 12px var(--cyan), 0 24px 60px rgba(229, 50, 45, .25);
}
.splat { position: absolute; border-radius: 50%; z-index: 0; }
.s1 { width: 34%; height: 34%; background: var(--yellow); top: -6%; right: -4%; }
.s2 { width: 22%; height: 22%; background: var(--red); bottom: 2%; left: -8%; }
.s3 { width: 12%; height: 12%; background: var(--cyan); top: 8%; left: -6%; }

/* ---------- บล็อกเนื้อหา ---------- */
.block { max-width: 1160px; margin: 0 auto; padding: 72px 24px; }
#systems { background: var(--bg-soft); max-width: none; }
#systems > * { max-width: 1112px; margin-left: auto; margin-right: auto; }
.block-head { text-align: center; margin-bottom: 36px; }
.block-head h2 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 700; line-height: 1.3; }
.block-head h2::after {
  content: ""; display: block; width: 64px; height: 6px; margin: 12px auto 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--orange), var(--red));
}
.block-head p { margin: 12px 0 0; color: var(--muted); }

.ico {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; color: #fff;
}
.ico.orange { background: var(--orange); }
.ico.cyan { background: var(--cyan); }
.ico.red { background: var(--red); }
.ico.yellow { background: var(--yellow); color: var(--ink); }

.systems { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.sys {
  display: flex; flex-direction: column; gap: 8px; padding: 28px;
  background: #fff; border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink); text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.sys b { font-size: 1.3rem; font-weight: 600; margin-top: 8px; line-height: 1.4; }
.sys small { color: var(--muted); font-size: .98rem; }
.sys .go { margin-top: auto; padding-top: 10px; font-family: var(--head); font-weight: 600; color: var(--orange); }
a.sys:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--orange); }
.sys.soon { border-style: dashed; box-shadow: none; opacity: .65; }

/* ---------- ท้ายหน้า ---------- */
.foot {
  text-align: center; padding: 32px 24px 40px; color: var(--muted);
  border-top: 6px solid transparent;
  border-image: linear-gradient(90deg, var(--orange), var(--red), var(--cyan)) 1;
}
.foot p { margin: 0; }
.foot .small { font-size: .88rem; margin-top: 4px; }

/* ---------- จอเล็ก ---------- */
@media (max-width: 760px) {
  .topbar-in { padding: 10px 16px; flex-wrap: wrap; }
  .logo small { display: none; }
  .menu { width: 100%; flex-wrap: nowrap; overflow-x: auto; }
  .menu a { white-space: nowrap; padding: 5px 12px; font-size: .9rem; }
  html { scroll-padding-top: 110px; }
  .hero { grid-template-columns: 1fr; padding: 40px 16px 64px; gap: 40px; }
  .hero-pic { order: -1; width: min(280px, 78%); }
  .block { padding: 56px 16px; }
  .sys { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .sys, .menu a { transition: none; }
}
