/* Yeşil Tıp design tokens, from the design system's tokens/*.css. Fonts load via <link> in the page. */
/* =====================================================
   YEŞİL TIP — Color Tokens
   White-dominant · green signature · cinematic dark accents
   ===================================================== */
:root {
  /* ---- Brand greens (base palette) ---- */
  --green-forest: #0E5A2B;   /* deepest brand green */
  --green-emerald: #15724E;  /* mid brand green */
  --green: #1F9D3F;          /* SIGNATURE accent — the glow */
  --green-sage: #4FA68A;     /* muted secondary */
  --green-pale: #9CD9B1;     /* on-dark highlight text */
  --green-mint: #E4F3EC;     /* tint surface / chips */
  --green-wash: #F1F8F4;     /* faintest tint */

  /* ---- Ink & cinematic darks ---- */
  --ink: #0B1F18;            /* primary near-black (green-black) */
  --ink-900: #060B08;        /* cinematic black */
  --ink-800: #0A0F0C;        /* cinematic panel */
  --ink-700: #122019;        /* raised dark surface */
  --slate: #5B6B66;          /* muted body grey-green */
  --slate-light: #8A9893;    /* tertiary text */

  /* ---- Neutrals ---- */
  --white: #FFFFFF;
  --paper: #F6FAF8;          /* off-white page wash */
  --line: #E3ECE8;           /* hairline border */
  --line-soft: #EEF3F1;      /* faint divider */
  --line-strong: #D6E2DC;    /* input / emphasized border */

  /* ---- Semantic: surfaces ---- */
  --bg-page: var(--white);
  --bg-subtle: var(--paper);
  --bg-tint: var(--green-mint);
  --bg-cinematic: var(--ink-900);
  --bg-cinematic-panel: var(--ink-800);
  --surface-card: var(--white);
  --surface-card-dark: var(--ink-700);

  /* ---- Semantic: text ---- */
  --text-strong: var(--ink);          /* headings on light */
  --text-body: var(--slate);          /* body on light */
  --text-muted: var(--slate-light);   /* captions / meta */
  --text-on-dark: #FFFFFF;            /* headings on dark */
  --text-on-dark-body: #D9F0E2;       /* body on dark */
  --text-on-dark-muted: #9CD9B1;      /* meta / accent on dark */
  --text-accent: var(--green-forest); /* green text on light (AA) */

  /* ---- Semantic: interactive ---- */
  --accent: var(--green);
  --accent-hover: #1B8A37;            /* darker on hover */
  --accent-press: #167030;           /* darker on press */
  --accent-strong: var(--green-forest);
  --on-accent: #FFFFFF;

  /* ---- Borders & lines ---- */
  --border: var(--line);
  --border-strong: var(--line-strong);
  --border-on-dark: rgba(255, 255, 255, 0.16);

  /* ---- Focus / glow ---- */
  --focus-ring: rgba(31, 157, 63, 0.35);
  --glow-green: rgba(31, 157, 63, 0.45);

  /* ---- Status (kept on-brand) ---- */
  --success: var(--green);
  --warning: #C77F0A;
  --danger: #C0392B;
  --info: var(--green-emerald);

  /* ---- Cinematic overlays (image protection) ---- */
  --scrim-bottom: linear-gradient(to top, rgba(6, 11, 8, 0.88) 0%, rgba(6, 11, 8, 0.30) 45%, transparent 75%); /* @kind other */
  --scrim-soft: linear-gradient(to top, rgba(6, 11, 8, 0.65) 0%, transparent 60%); /* @kind other */
  --scrim-forest: linear-gradient(to top, rgba(14, 90, 43, 0.80) 0%, transparent 60%); /* @kind other */
}

/* =====================================================
   YEŞİL TIP — Typography Tokens
   Archivo (wide aerospace grotesk) · Space Mono (telemetry)
   Substitution note: SpaceX uses proprietary Gotham/D-DIN;
   Archivo is the closest free Google Fonts match.
   ===================================================== */

:root {
  /* ---- Families ---- */
  --font-display: 'Archivo Expanded', 'Archivo', system-ui, sans-serif; /* wide uppercase headings */
  --font-sans: 'Archivo', system-ui, -apple-system, sans-serif;          /* UI + body */
  --font-mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace; /* specs / telemetry */

  /* ---- Weights ---- */
  --fw-regular: 400;   /* @kind font */
  --fw-medium: 500;    /* @kind font */
  --fw-semibold: 600;  /* @kind font */
  --fw-bold: 700;      /* @kind font */
  --fw-extrabold: 800; /* @kind font */
  --fw-black: 900;     /* @kind font */

  /* ---- Display scale (clamped, fluid) ---- */
  --fs-hero: clamp(2.75rem, 6vw, 5.5rem);     /* @kind font */
  --fs-display-1: clamp(2.25rem, 4.5vw, 4rem); /* @kind font */
  --fs-display-2: clamp(1.9rem, 3.5vw, 3rem);  /* @kind font */
  --fs-h1: clamp(1.75rem, 3vw, 2.5rem);        /* @kind font */
  --fs-h2: clamp(1.5rem, 2.4vw, 2rem);         /* @kind font */
  --fs-h3: 1.375rem;   /* 22 @kind font */
  --fs-h4: 1.125rem;   /* 18 @kind font */

  /* ---- Text scale ---- */
  --fs-lead: 1.25rem;  /* 20 — intro paragraphs @kind font */
  --fs-body: 1rem;     /* 16 @kind font */
  --fs-sm: 0.875rem;   /* 14 @kind font */
  --fs-xs: 0.75rem;    /* 12 @kind font */
  --fs-2xs: 0.6875rem; /* 11 — eyebrow / telemetry @kind font */

  /* ---- Line heights ---- */
  --lh-tight: 1.04;    /* @kind font */
  --lh-snug: 1.18;     /* @kind font */
  --lh-normal: 1.5;    /* @kind font */
  --lh-relaxed: 1.7;   /* @kind font */

  /* ---- Letter spacing ---- */
  --tracking-tight: -0.02em;  /* @kind font */
  --tracking-normal: 0;       /* @kind font */
  --tracking-wide: 0.08em;    /* @kind font */
  --tracking-wider: 0.18em;   /* eyebrows @kind font */
  --tracking-widest: 0.30em;  /* telemetry labels @kind font */

  /* ---- Semantic display helpers ---- */
  --display-transform: uppercase; /* @kind other */
}

/* Optional helper classes (consumers may use directly) */
.yt-display {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-tight);
  color: var(--text-strong);
}
.yt-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--accent-strong);
}
.yt-lead {
  font-family: var(--font-sans);
  font-size: var(--fs-lead);
  line-height: var(--lh-relaxed);
  color: var(--text-body);
}
.yt-body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  color: var(--text-body);
}

/* =====================================================
   YEŞİL TIP — Spacing & Layout Tokens
   4px base grid · generous aerospace whitespace
   ===================================================== */
:root {
  /* ---- Base spacing scale (4px grid) ---- */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;
  --space-40: 160px;

  /* ---- Semantic spacing ---- */
  --gap-inline: var(--space-3);     /* between inline items (icon+text) */
  --gap-card: var(--space-6);       /* internal card padding rhythm */
  --gap-grid: var(--space-6);       /* grid gutters */
  --section-y: clamp(64px, 10vw, 128px); /* @kind spacing */
  --section-y-tight: clamp(48px, 7vw, 80px); /* @kind spacing */

  /* ---- Layout ---- */
  --container: 1240px;        /* standard max content width */
  --container-wide: 1440px;   /* wide / full-bleed inner */
  --container-narrow: 760px;  /* prose / forms */
  --gutter: clamp(20px, 5vw, 56px); /* @kind spacing */

  --nav-h: 80px;
  --topbar-h: 36px;
}

/* =====================================================
   YEŞİL TIP — Effects: radii, shadows, motion, blur
   SpaceX-grade restraint: sharp corners, hairlines,
   slow premium easing, flat-but-deliberate shadows.
   ===================================================== */
:root {
  /* ---- Corner radii (sharp/technical bias) ---- */
  --radius-sharp: 2px;   /* buttons, chips — aerospace sharpness */
  --radius: 4px;         /* default control */
  --radius-md: 8px;      /* inputs, small cards */
  --radius-lg: 14px;     /* cards, media */
  --radius-xl: 22px;     /* feature panels */
  --radius-full: 999px;  /* pills, avatars */

  /* ---- Shadows (light surfaces) ---- */
  --shadow-xs: 0 1px 2px rgba(11, 31, 24, 0.06);
  --shadow-sm: 0 2px 8px rgba(11, 31, 24, 0.07);
  --shadow-card: 0 10px 30px -12px rgba(14, 90, 43, 0.18);
  --shadow-lift: 0 30px 60px -20px rgba(14, 90, 43, 0.35);
  --shadow-float: 0 18px 40px -16px rgba(11, 31, 24, 0.22);

  /* ---- Shadows / glow (dark + accent) ---- */
  --shadow-cinematic: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  --glow-accent: 0 0 0 0 rgba(31, 157, 63, 0.45);
  --glow-accent-soft: 0 8px 30px -6px rgba(31, 157, 63, 0.45);

  /* ---- Borders ---- */
  --border-hairline: 1px solid var(--border);          /* @kind other */
  --border-hairline-dark: 1px solid var(--border-on-dark); /* @kind other */

  /* ---- Motion: easing ---- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);     /* @kind other */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);  /* @kind other */
  --ease-emphasized: cubic-bezier(0.16, 1, 0.3, 1); /* @kind other */

  /* ---- Motion: duration ---- */
  --dur-fast: 0.18s;     /* @kind other */
  --dur: 0.35s;          /* @kind other */
  --dur-slow: 0.7s;      /* @kind other */
  --dur-cinematic: 1.2s; /* @kind other */

  /* ---- Blur (glass / scrim) ---- */
  --blur-glass: blur(10px);  /* @kind other */
  --blur-strong: blur(20px); /* @kind other */

  /* ---- Background textures ---- */
  --dot-grid: radial-gradient(rgba(11, 31, 24, 0.06) 1px, transparent 1px);   /* @kind other */
  --dot-grid-dark: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px); /* @kind other */
  --dot-grid-size: 40px 40px; /* @kind spacing */
}

/* Respect reduced motion globally for any token-driven anim helpers */
@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0.001s;     /* @kind other */
    --dur: 0.001s;          /* @kind other */
    --dur-slow: 0.001s;     /* @kind other */
    --dur-cinematic: 0.001s; /* @kind other */
  }
}

