/* HitRadar base — white paper, warm ink, tangerine signal (owner's pick: orange + white).
   Light-only on purpose: DeskPick already owns dark + orange. */
:root {
  --bg: #ffffff; --tint: #fff6ef; --tint-2: #ffeadb; --surface: #ffffff;
  --ink: #1c1917; --muted: #6b6159; --line: #f0e3d8; --line-strong: #e3cfbf;
  --brand: #ff6a13; --brand-strong: #c94b08; --brand-soft: #ffe3cf; --on-brand: #ffffff;
  --up: #15803d; --down: #dc2626; --hot: #ff6a13; --good: #ff9a4a; --ok: #f4c9a5; --low: #ece2da;
  --radius: 14px; --shadow: 0 1px 0 rgba(28, 25, 23, .04), 0 10px 30px -22px rgba(201, 75, 8, .45);
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 'IBM Plex Sans Thai', system-ui, sans-serif; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small, small { font-size: .82rem; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
h1, h2 { line-height: 1.3; letter-spacing: -.01em; }
h2 { font-size: 1.25rem; margin: 0 0 .75rem; }
.lead { color: var(--muted); margin: 0 0 18px; max-width: 60ch; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.12rem; text-decoration: none; flex: none; }
.brand svg { width: 30px; height: 30px; }
.brand small { font-family: var(--mono); font-weight: 500; color: var(--muted); font-size: .72rem; }
.nav { display: flex; gap: 2px; font-size: .93rem; overflow-x: auto; scrollbar-width: none; }
.nav a { text-decoration: none; padding: 7px 12px; border-radius: 999px; color: var(--muted); white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--tint); }
.nav a.is-on { color: var(--brand-strong); background: var(--brand-soft); font-weight: 600; }
.main { padding-top: 22px; padding-bottom: 64px; min-height: 60vh; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--tint); padding: 28px 0 40px; font-size: .88rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 24px; }
.site-footer p { margin: 8px 0 0; }

/* buttons + chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0;
  border-radius: 999px; background: var(--brand-strong); color: var(--on-brand); font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; box-shadow: 0 6px 16px -8px rgba(201, 75, 8, .7); }
.btn:hover { background: #b24207; }
.btn-ghost { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; text-decoration: none;
  color: var(--brand-strong); border: 1px solid var(--line-strong); font-weight: 500; }
.btn-ghost:hover { background: var(--tint); }
.chip { flex: none; display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line-strong); text-decoration: none; font-size: .88rem; white-space: nowrap; color: var(--ink); }
.chip:hover { border-color: var(--brand); color: var(--brand-strong); }
.chip-soft { background: var(--tint); border-color: transparent; }
.chip-on, .chip-on:hover { background: var(--brand); color: var(--on-brand); border-color: var(--brand); font-weight: 600; }
.img-ph { display: block; background: var(--tint); }

@media (max-width: 720px) {
  .header-row { height: auto; padding: 10px 16px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .nav { width: 100%; margin: 0 -4px; }
  .nav a { padding: 6px 10px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
