/* ============================================================
   GLOBAL — tokens, reset, typography, nav, footer
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ── Design Tokens ── */
:root {
  --bg:          #F0F0F0;
  --surface:     #E6E6E6;
  --text:        #111111;
  --text-muted:  #6b6b6b;
  --accent:      #111111;
  --border:      #D8D8D8;

  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;

  --size-xs:   0.75rem;   /*  12px */
  --size-sm:   0.875rem;  /*  14px */
  --size-base: 1rem;      /*  16px */
  --size-md:   1.125rem;  /*  18px */
  --size-lg:   1.5rem;    /*  24px */
  --size-xl:   2rem;      /*  32px */
  --size-2xl:  3rem;      /*  48px */
  --size-3xl:  4.5rem;    /*  72px */
  --size-4xl:  6rem;      /*  96px */

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  8rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --transition: 0.2s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--size-base);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }

/* ── Typography scale ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(var(--size-3xl), 8vw, var(--size-4xl)); }
h2 { font-size: clamp(var(--size-xl), 4vw, var(--size-2xl)); }
h3 { font-size: var(--size-lg); }
h4 { font-size: var(--size-md); font-weight: 600; }

p { max-width: 65ch; }

.label {
  font-size: var(--size-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-md);
}

/* ── Nav ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  mix-blend-mode: normal;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: var(--size-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.nav-links a {
  font-size: var(--size-sm);
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

/* ── Footer ── */
.site-footer {
  padding: var(--space-lg) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  margin-top: var(--space-xl);
}

.site-footer p {
  font-size: var(--size-xs);
  color: var(--text-muted);
  max-width: none;
}

.site-footer a {
  font-size: var(--size-xs);
  color: var(--text-muted);
  transition: color var(--transition);
}

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

/* ── Utility ── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .site-nav { padding: var(--space-sm); }
  .container { padding-inline: var(--space-sm); }
  .site-footer { flex-direction: column; gap: var(--space-sm); align-items: flex-start; }
}
