/* ============ Base — shared fonts, variables, reset, utilities ============ */
/* Consolidated: Poppins dropped (Skills now uses Inter); Alatsi/Albert Sans stay for the hero */
@import url('https://fonts.googleapis.com/css2?family=Alatsi&family=Albert+Sans:wght@400;500&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&family=IBM+Plex+Mono:wght@400;500&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --yellow: #ffd43b;
  --accent: #0fb5a6;        /* teal thread — echoes the 3D objects */
  --accent-bright: #2dd4c4; /* accent on dark surfaces */
  --ink: #000000;
  --white: #ffffff;
  --muted: #6b6b6b;
  --gray-bg: #b3b3b3;      /* hero backdrop gray */
  --footer-bg: #cccccc;    /* contact footer gray */
  --dark-bg: #0a0a0a;      /* skills section background */
  --card: #171717;         /* dark card */
  --tile: #262626;         /* icon tile inside dark card */
  --dock-bg: #171717;
  --radius-card: 42px;

  --font-display: 'Inter', sans-serif;          /* big headings */
  --font-hero: 'Alatsi', sans-serif;            /* CODER, & */
  --font-hero-alt: 'Albert Sans', sans-serif;   /* Developer */
  --font-body: 'DM Sans', sans-serif;
  --font-soft: 'Inter', sans-serif;             /* skills section (was Poppins) */
  --font-mono: 'IBM Plex Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; }

/* Tighter reading container — the 1654px original read oversized on laptops */
.container {
  width: min(1100px, 100% - clamp(28.8px, 4.32vw, 86.4px));
  margin-inline: auto;
}

/* Scroll-reveal — add class="reveal" (optional inline --d: .15s for stagger).
   js/main.js flips .visible via IntersectionObserver.
   Gated behind html.js so content stays visible when JS doesn't run. */
html.js .reveal {
  opacity: 0;
  transform: translateY(46px);
  transition:
    opacity .9s cubic-bezier(.16, 1, .3, 1),
    transform .9s cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--d, 0s);
}
html.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

::selection { background: var(--accent); color: var(--white); }

/* Keyboard navigation — visible focus everywhere */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2.88px;
}
