/* ════════════════════════════════════════════════════════════
   BASE — reset, root tokens, typography, focus styles
   ════════════════════════════════════════════════════════════ */

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

:root {
  --gold: #c8a96e;
  --gold-dim: rgba(200, 169, 110, 0.35);
  --gold-glow: rgba(200, 169, 110, 0.2);
  --dark: #070707;
  --surface: #0f0f0f;
  --surface-2: #141414;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-b: rgba(255, 255, 255, 0.09);
  --text: #f2efe9;
  --text-mute: rgba(242, 239, 233, 0.62);
  --text-soft: rgba(242, 239, 233, 0.45);
  --ease: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-spring: cubic-bezier(0.34, 1.5, 0.64, 1);
}

html { scroll-behavior: smooth; }
body {
  background: var(--dark);
  color: var(--text);
  font-family: var(--font-plus-jakarta-sans), sans-serif;
  -webkit-font-smoothing: antialiased;
  cursor: none;
  overflow-x: hidden;
}

/* ── A11Y FOCUS STYLES ── */
button, input, textarea, select, a {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline-offset: 0;
  border-radius: 12px;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 10000;
  padding: 10px 18px;
  background: var(--gold);
  color: var(--dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 100px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

button { border: none; background: none; }
::-webkit-scrollbar { display: none; }
::selection { background: var(--gold-dim); color: var(--text); }

/* ── CUSTOM CURSOR ── */
#cur {
  position: fixed; width: 9px; height: 9px;
  background: var(--gold); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .28s, height .28s, opacity .28s, background .28s;
}
#cur.expand { width: 14px; height: 14px; opacity: 0.6; }
#ring {
  position: fixed; width: 34px; height: 34px;
  border: 1px solid rgba(200, 169, 110, 0.5);
  border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
}
@media (pointer: coarse) {
  html, body { cursor: auto; }
  #cur, #ring { display: none; }
  button, a, .card, .dot, .tag, [role="button"] { cursor: pointer !important; }
}

/* ── GENERIC PLACEHOLDER IMAGE ── */
.img-ph {
  position: relative;
  background: linear-gradient(135deg, #1a1410 0%, #0f0c0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.img-ph::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg,
      rgba(200, 169, 110, 0.04) 0,
      rgba(200, 169, 110, 0.04) 1px,
      transparent 1px,
      transparent 18px);
}
.img-ph::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.06;
  pointer-events: none;
}
.img-ph .ph-label {
  position: relative;
  z-index: 1;
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(200, 169, 110, 0.55);
  padding: 6px 14px;
  border: 1px dashed rgba(200, 169, 110, 0.3);
  border-radius: 100px;
  background: rgba(7, 7, 7, 0.5);
  backdrop-filter: blur(4px);
}
