/* ============================================================
   GLOBAL.CSS — Karol Jia v3
   Black / White + electric lime accent
   ============================================================ */

:root {
  --bg:        #f5f4f0;
  --bg-elev:   #ffffff;
  --fg:        #0a0a0a;
  --fg-muted:  #6b6b6b;
  --line:      #d6d4cc;
  --hl:        #d4ff3a;
  --hl-ink:    #0a0a0a;
}

[data-theme="dark"] {
  --bg:        #0a0a0a;
  --bg-elev:   #141414;
  --fg:        #f5f4f0;
  --fg-muted:  #8a8a85;
  --line:      #262624;
  --hl:        #d4ff3a;
  --hl-ink:    #0a0a0a;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* hide native cursor only inside the hero zone when cat-cursor is on */
body.cat-cursor-on #hero,
body.cat-cursor-on #hero * { cursor: none !important; }

h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
h2 {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}
h3 { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.01em; }
p  { font-size: 1rem; }

a { color: inherit; text-decoration: none; transition: opacity 0.2s ease; }
a:hover { opacity: 0.6; }

.muted { color: var(--fg-muted); }

.mono {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hl {
  background: var(--hl);
  color: var(--hl-ink);
  padding: 0 0.22em;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}
.row   { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 1.25rem; }

.section { padding: 6rem 0; border-top: 1px solid var(--line); }
.section:first-of-type { border-top: none; }

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--fg);
  color: var(--fg);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  background: transparent;
  font-family: inherit;
}
.btn:hover { background: var(--fg); color: var(--bg); opacity: 1; }

.btn-primary {
  background: var(--hl);
  color: var(--hl-ink);
  border-color: var(--hl);
}
.btn-primary:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.iconbtn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-family: inherit;
}
.iconbtn:hover { border-color: var(--fg); }

footer {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.h-scroll::-webkit-scrollbar { height: 6px; }
.h-scroll::-webkit-scrollbar-track { background: transparent; }
.h-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.h-scroll::-webkit-scrollbar-thumb:hover { background: var(--fg-muted); }
