/* ui-craft · macro: ref: Higgsfield mock 18 พ.ย. (centered link hub + isometric hero) · theme: nuea.ai light · 2026-11-18 · skill.nueaai.com */
:root {
  --bg: #fff7e6; /* ตรงกับพื้นภาพ hero จาก Higgsfield */
  --surface: #ffffff;
  --ink: #0f1b3d;
  --muted: #4a5675;
  --line: #ead9c6;
  --orange: #c9480a;
  --orange-hover: #b33f08;
  --blue: #1d5fd1;
  --green: #04843c;
  --green-hover: #036b31;
  --input-line: #b9a58f;
  --nudge: #fdebd9;
  --error: #a3240b;
  --on-accent: #ffffff;
  --radius: 14px;
  --font-display: "Prompt", system-ui, sans-serif;
  --font-body: "Anuphan", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.7 var(--font-body);
}
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 40rem; margin: 0 auto; padding: 0 1rem; }

/* แถบแบรนด์ */
.brand { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0 0.5rem; }
.brand__id { display: flex; align-items: center; gap: 0.625rem; color: var(--ink); text-decoration: none; font: 600 1.25rem/1 var(--font-display); }
.brand__id img { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); }
.brand__ig { font-weight: 500; font-size: 0.9375rem; }

/* พาดหัว */
.lede { padding: 0.5rem 0 1.5rem; text-align: center; }
.lede__art { display: block; width: 100%; max-width: 30rem; height: auto; margin: 0 auto 0.5rem; mask-image: radial-gradient(ellipse 60% 62% at 50% 52%, #000 48%, transparent 100%); }
.lede h1 { margin: 0; font: 600 clamp(1.75rem, 6.5vw, 2.5rem)/1.3 var(--font-display); text-wrap: balance; }
.lede h1 strong { color: var(--orange); font-weight: 700; font-size: 1.3em; white-space: nowrap; }
.lede p { margin: 0.75rem 0 0; color: var(--muted); font-size: 1.0625rem; }

/* กล่องเลือก */
.choice { background: var(--surface); border-radius: var(--radius); padding: 1.5rem 1.25rem; scroll-margin-top: 1rem; box-shadow: 0 1px 2px rgb(15 27 61 / 0.04), 0 8px 24px rgb(15 27 61 / 0.06); }
.choice h2 { margin: 0 0 1rem; font: 600 1.25rem/1.45 var(--font-display); text-align: center; text-wrap: balance; }
.choice__actions { display: grid; gap: 0.625rem; }
@media (min-width: 30rem) { .choice__actions { grid-template-columns: 1fr 1fr; } }
.choice p { margin: 0 0 0.75rem; }
.small { font-size: 0.875rem; color: var(--muted); line-height: 1.7; }
.small a { color: var(--blue); }
.choice .notice { margin-top: 0.75rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.75rem 1.25rem; border-radius: 999px;
  font: 600 1.0625rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color 160ms ease-out, transform 160ms ease-out;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--orange); color: var(--on-accent); }
.btn--primary:hover { background: var(--orange-hover); color: var(--on-accent); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--on-accent); }
.btn--line { background: var(--green); color: var(--on-accent); width: 100%; }
.btn--line:hover { background: var(--green-hover); color: var(--on-accent); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.follow { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.75rem; }
.follow .btn { min-height: 2.75rem; padding: 0.5rem 1rem; font-size: 1rem; }

/* ฟอร์มอีเมล */
.email { display: grid; gap: 0.75rem; margin-top: 1rem; }
.email label { font-weight: 500; }
.email #email-hint { margin-top: 0.375rem; }
.email input[type="email"] {
  width: 100%; min-height: 3rem; padding: 0.625rem 0.875rem; font: inherit; color: var(--ink);
  border: 1px solid var(--input-line); border-radius: 10px; background: var(--surface);
}
.check { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.625rem; align-items: start; font-size: 0.9375rem; line-height: 1.7; }
.check input { width: 1.25rem; height: 1.25rem; margin: 0.25rem 0 0; accent-color: var(--orange); }
.status { margin: 0; font-weight: 500; }
.status--error { color: var(--error); }

/* รายการ Skill */
.skills { padding: 2.5rem 0 1rem; }
.skills h2 { text-align: center; margin: 0 0 0.25rem; font: 600 1.5rem/1.3 var(--font-display); }
.skills > p { margin: 0 0 1rem; color: var(--muted); text-align: center; }
.skills ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.skill {
  display: grid; grid-template-columns: 4rem 1fr auto; gap: 0.125rem 0.875rem; align-items: center;
  padding: 0.875rem; background: var(--surface); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgb(15 27 61 / 0.04), 0 6px 18px rgb(15 27 61 / 0.05);
}
.skill__icon { grid-column: 1; grid-row: 1 / span 3; width: 4rem; height: 4rem; border-radius: 10px; background: var(--bg); object-fit: cover; }
.skill h3 { grid-column: 2; margin: 0; font: 600 1.125rem/1.4 var(--font-display); }
.skill p { grid-column: 2; margin: 0; color: var(--muted); line-height: 1.6; }
.skill .ep { grid-column: 2; font-size: 0.875rem; color: var(--muted); }
.skill .btn { grid-column: 3; grid-row: 1 / span 3; min-height: 2.75rem; padding: 0.5rem 1rem; font-size: 0.9375rem; }
@media (max-width: 30rem) {
  .skill { grid-template-columns: 3.5rem 1fr; align-items: start; }
  .skill__icon { width: 3.5rem; height: 3.5rem; grid-row: 1 / span 4; }
  .skill .btn { grid-column: 2; grid-row: auto; justify-self: start; margin-top: 0.5rem; min-height: 2.5rem; }
}

.nudge { margin: 1.5rem 0 0; padding: 1rem 1.25rem; background: var(--nudge); border-radius: var(--radius); }
.nudge p { margin: 0; }

/* ปิดท้าย */
.foot { padding: 2.5rem 0 2rem; font-size: 0.9375rem; color: var(--muted); text-align: center; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.25rem; margin-bottom: 0.5rem; }

/* หน้า privacy */
.doc { padding: 1.5rem 0 3rem; }
.doc h1 { font: 600 1.75rem/1.35 var(--font-display); margin: 1rem 0 0.25rem; }
.doc h2 { font: 600 1.25rem/1.4 var(--font-display); margin: 2rem 0 0.5rem; }
.doc ul, .doc ol { padding-left: 1.25rem; }
.doc li { margin-bottom: 0.375rem; }

.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:active { transform: none; }
}
