/* ══════════════════════════════════════════════════════════════════
   KAAB DIGITAL STUDIO — CORE DESIGN SYSTEM & TOKENS
   Version: 3.0 (2026 Edition)
   Architecture: Vanilla CSS, Zero-Framework, Zero-Bloat
   ══════════════════════════════════════════════════════════════════ */

:root {
  /* Color Tokens */
  --ink: #0E0E0E;
  --paper: #F3EFE6;
  --paper-alt: #E8E4DB;
  --accent: #C75B3F;
  --white: #FAFAF8;
  --text-soft: #6B6860;
  --text-light: #C8C4BC;
  --border-dark: #2A2A2A;
  --border-light: #D4D0C8;
  --line: #D4D0C8;
  --ink-soft: #42403B;
  --ink-faint: #8A867E;

  /* Typography */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --pad-lg: clamp(2.5rem, 7vw, 6rem);

  /* Animation Easings */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

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

html {
  font-size: 16px;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Focus States (WCAG 2.2 AA) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem var(--pad);
  background: rgba(14, 14, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 300ms var(--ease-out), opacity 300ms var(--ease-out);
}
.nav__logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--white);
}
.nav__logo-accent {
  color: var(--accent);
  font-size: 0.9em;
  margin-left: 2px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color 200ms var(--ease-out);
}
.nav__links a:hover {
  color: var(--white);
}
.nav__cta {
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out) !important;
}
.nav__cta:hover {
  background: var(--accent);
  color: var(--white) !important;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-dark);
  padding: 2.4rem var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--ink);
  color: var(--text-light);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.footer__links {
  display: flex;
  gap: 1.6rem;
}
.footer__links a {
  color: var(--text-light);
  transition: color 200ms var(--ease-out);
}
.footer__links a:hover {
  color: var(--accent);
}

@media (max-width: 640px) {
  .footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
