/* ==========================================================================
   Base: design tokens, reset, typography primitives, utilities
   Tokens come from the Figma file (PLAYGROUND / Page 14 / homepage - desktop).
   The homepage is the style guide for every page: fonts, colors, grid and
   breakpoints are defined once here and in layout.css. Pages designed wider
   in Figma (1728px) are mapped onto the same 12-column grid, never given
   their own tokens.
   ========================================================================== */

:root {
  /* Colors — Figma variables */
  --color-black: #000;
  --color-green-01: #8b9c5c;
  --color-pink-02: #c482a4;
  --color-grey-1: #999;

  /* Colors — local fills used in the frame */
  --color-page: #f5f5f5;
  --color-canvas: #ebebeb;
  --color-dark: #141414;
  --color-dark-surface: #292929;
  --color-on-dark: #ebebeb;
  --color-on-dark-muted: #b8b8b8;
  --color-line: #ccc;
  --color-line-dark: #4d4d4d;
  --color-label: #a3a3a3;
  --color-placeholder-text: #e0e0e0;
  --color-white: #fff;

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tracking-tight: -0.04em; /* -0.64px @16, -1.92px @48 */
  --tracking-label: -0.02em; /* -0.32px @16 */

  /* Grid tokens (--gutter, --pitch) live in layout.css */
  --section-pad-top: 48px;
  --section-pad-bottom: 48px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Reset ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--color-page);
  color: var(--color-black);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: none; }
a { color: inherit; }
strong { font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--color-pink-02);
  outline-offset: 3px;
}

/* Page transitions: navigating between pages keeps the pink name as one
   shared element (.hero__name -> .cv-header__name) that glides to its new
   place. Cross-document View Transitions; browsers without support just
   navigate normally. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  ::view-transition-group(site-name) {
    animation-duration: 0.7s;
    animation-timing-function: var(--ease-in-out);
  }
}

/* Utilities --------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--color-black);
  color: var(--color-white);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* Inline green link used in running text */
.text-link {
  color: var(--color-green-01);
  font-weight: 700;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.25s var(--ease);
}
.text-link:hover,
.text-link:focus-visible { background-size: 100% 1px; }

/* Image placeholders until real photos are provided */
.placeholder { width: 100%; height: 100%; }
.placeholder--black { background: var(--color-black); }
.placeholder--grey { background: var(--color-grey-1); }
