/* ============================================================
   skids.clinic v2.0 — foundation.css
   ============================================================
   Design tokens, typography, layout, navigation, footer, buttons.
   Extracted from the reference HTML files in reference-html/.

   Claude Code: this file is the starter skeleton. Extract the
   complete CSS from the reference HTML files and consolidate it
   here. The token block below is the shared foundation; layered on
   top will be section-specific styles per page.
   ============================================================ */

:root {
  /* Colours */
  --ink: #0e1414;
  --ink-2: #2a3030;
  --ink-3: #5a6464;
  --ink-4: #93a0a0;
  --paper: #fdfcf8;
  --paper-warm: #fbf6ec;
  --paper-deep: #f5f0e3;

  --teal: #0e766b;
  --teal-deep: #064a44;
  --teal-light: #4ea69a;
  --teal-soft: #c5e6e0;
  --teal-mist: #e8f5f2;

  --linen: rgba(14, 20, 20, 0.06);
  --linen-2: rgba(14, 20, 20, 0.12);

  /* Spacing */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;
  --space-9: 192px;

  /* Layout widths */
  --content: 1320px;
  --reading: 760px;

  /* Easing */
  --quick: 160ms cubic-bezier(0.16, 1, 0.3, 1);
  --medium: 320ms cubic-bezier(0.16, 1, 0.3, 1);
  --reveal: 700ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Radii */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-xl: 48px;

  /* Cover system motion */
  --drift-duration: 14s;
}

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

html {
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 400;
  font-feature-settings: 'kern' 1, 'liga' 1, 'ss01' 1;
  overflow-x: hidden;
}

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

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.display-1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.03em;
}

.display-2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.display-3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(22px, 1.9vw, 26px);
  line-height: 1.25;
}

.body-l { font-size: 21px; line-height: 1.55; }
.body { font-size: 18px; line-height: 1.55; }
.body-s { font-size: 15px; line-height: 1.5; }

.over {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 769px) { .container { padding: 0 40px; } }
@media (min-width: 1025px) { .container { padding: 0 48px; } }

.reading { max-width: var(--reading); margin: 0 auto; }

.section { padding: var(--space-7) 0; }
@media (min-width: 1025px) { .section { padding: var(--space-8) 0; } }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--reveal), transform var(--reveal);
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   COVER SYSTEM v3 — base classes
   See spec/01-cover-system-rules.md for full system
   ============================================================ */
.cover {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    inset 0 0 60px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 4px 4px, 6px 6px;
  opacity: 0.7;
  z-index: 1;
  pointer-events: none;
}

@keyframes drift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-8%, 4%); }
  50%  { transform: translate(-4%, 8%); }
  75%  { transform: translate(4%, 2%); }
  100% { transform: translate(0, 0); }
}

@keyframes lifePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(0.94); opacity: 0.88; }
}

.icon-life {
  transform-origin: center;
  transform-box: fill-box;
  animation: lifePulse 4.5s ease-in-out infinite;
}

/* ============================================================
   NAVIGATION (extracted from reference HTML — Claude Code completes)
   ============================================================ */

/* Claude Code: paste full .nav and related styles here from
   reference-html/homepage-reference.html */

/* ============================================================
   FOOTER (extracted from reference HTML — Claude Code completes)
   ============================================================ */

/* Claude Code: paste full .footer and related styles here from
   reference-html/homepage-reference.html */

/* ============================================================
   BUTTONS (extracted from reference HTML — Claude Code completes)
   ============================================================ */

/* Claude Code: paste full .btn and variant styles here from
   reference-html/homepage-reference.html */
