@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg: #F5F0E8;
  --surface: #FFFFFF;
  --surface2: #EDE8DF;
  --border: #D8D0C4;
  --text: #1A1714;
  --text-muted: #8A8278;
  --accent: #E8440A;
  --accent-hover: #C73A08;
  --accent-soft: rgba(232,68,10,0.08);
  --gold: #C49A2A;
  --green: #2A7A3B;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Kanit', sans-serif;
  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 2px 12px rgba(26,23,20,0.08);
  --shadow-lg: 0 8px 32px rgba(26,23,20,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
}

/* Dot texture background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(26,23,20,0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
}

/* ── Layout ── */
.site-wrap {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px 60px;
}

/* ── Topbar ── */
.topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
}

.btn-signin {
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 8px 18px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.btn-signin:hover { background: var(--accent-hover); }

/* ── Nav tabs ── */
.nav-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: var(--surface2);
  padding: 4px;
  border-radius: var(--radius);
}

.nav-tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-muted);
  transition: all 0.2s;
  font-family: var(--sans);
  text-decoration: none;
  display: block;
}

.nav-tab.active,
.nav-tab:hover {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

/* ── Card ── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* ── Buttons ── */
.btn-primary {
  width: 100%;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  padding: 15px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-primary:disabled { background: var(--border); color: var(--text-muted); transform: none; cursor: not-allowed; }

/* ── Input ── */
input, textarea {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s;
}

input:focus, textarea:focus {
  border-color: var(--accent);
}

input::placeholder, textarea::placeholder {
  color: var(--text-muted);
}

/* ── Tag / Badge ── */
.tag {
  display: inline-block;
  background: var(--surface2);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  font-family: var(--mono);
}

/* ── Footer ── */
.site-footer {
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  padding-top: 32px;
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover { color: var(--accent); }

.footer-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.anim { animation: fadeUp 0.5s ease both; }
.anim-1 { animation-delay: 0.05s; }
.anim-2 { animation-delay: 0.1s; }
.anim-3 { animation-delay: 0.15s; }
.anim-4 { animation-delay: 0.2s; }
