/* ───────────────────────────────────────────────────────────
   GENITAL LONGEVITY · Design Tokens
   Editorial Magazine × Premium Health
   Grift fallback: Bricolage Grotesque (display) + Manrope (body)
   ─────────────────────────────────────────────────────────── */

:root {
  /* ─────────────────────────────────────────────
     COLOR RAMPS — Figma variable export (Mayıs 2026)
     Primary / Secondary / Neutral + Black + White
     ───────────────────────────────────────────── */

  /* Primary (canlı mavi) — Base: 700 */
  --primary-50:  #E8F1FF;
  --primary-100: #D5E5FF;
  --primary-200: #B3CDFF;
  --primary-300: #86ADFF;
  --primary-400: #577FFF;
  --primary-500: #3053FF;
  --primary-600: #0D23FF;
  --primary-700: #0112EE; /* Base */
  --primary-800: #0718CC;
  --primary-900: #10209F;
  --primary-950: #0A115C;

  /* Secondary (pembe) — Base: 200 */
  --secondary-50:  #FEF1F9;
  --secondary-100: #FDE6F4;
  --secondary-200: #FEC6E9; /* Base */
  --secondary-300: #FFA2DA;
  --secondary-400: #FD69BF;
  --secondary-500: #F83CA4;
  --secondary-600: #E81A81;
  --secondary-700: #CA0C66;
  --secondary-800: #A60E54;
  --secondary-900: #8B1048;
  --secondary-950: #550228;

  /* Neutral (pure grey) */
  --neutral-50:  #FAFAFA;
  --neutral-100: #F5F5F5;
  --neutral-200: #E5E5E5;
  --neutral-300: #D4D4D4;
  --neutral-400: #A3A3A3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;
  --neutral-950: #0A0A0A;

  /* ── Semantic aliases (mapped to ramps) ── */
  --color-primary:       var(--primary-700);
  --color-primary-hover: var(--primary-900);
  --color-primary-soft:  var(--primary-50);

  --color-secondary:      var(--secondary-200);
  --color-secondary-soft: var(--secondary-50);
  --color-secondary-deep: var(--secondary-600);

  --color-black:    #03040A;  /* Black variable */
  --color-white:    #FFFFFF;  /* White variable */
  --color-ink-1:    var(--neutral-900);
  --color-ink-2:    var(--neutral-600);
  --color-ink-3:    var(--neutral-400);
  --color-line:     var(--neutral-200);
  --color-bg-soft:  var(--neutral-50);

  /* Semantic — NOT in uploaded set, kept from prior system */
  --color-success: #2BB673;
  --color-warning: #F59E0B;
  --color-danger:  #E5484D;
  /* Semantic soft tints (verified/online/warning badges) — systematize ad-hoc hexes */
  --color-success-soft: #E7F7EF;
  --color-success-deep: #1E9A5E;
  --color-warning-soft: #FFF3E0;
  --color-warning-deep: #B26A00;
  --color-danger-soft:  #FDECEC;

  /* Typography */
  --font-display: "Bricolage Grotesque", "Grift", Georgia, "Times New Roman", serif;
  --font-body:    "Manrope", "Grift", -apple-system, "Helvetica Neue", sans-serif;
  --font-editorial: "Bricolage Grotesque", Georgia, "Times New Roman", serif;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --s-11: 160px;

  /* Layout */
  --container: 1280px;
  --container-wide: 1440px;
  --gutter: 24px;
  --pad-outer: 80px;

  /* Radii */
  --r-0: 0px;
  --r-1: 4px;
  --r-2: 12px;
  --r-pill: 999px;

  /* Shadow (minimal) */
  --shadow-1: 0 2px 8px rgba(3, 4, 10, 0.06);
  --shadow-2: 0 12px 32px rgba(3, 4, 10, 0.08);
}

/* ──── Reset & base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-ink-1);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }

/* ──── Type system ──────────────────────────────────────── */
.t-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.t-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.t-h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.t-h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.t-h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.005em;
}
.t-body-l { font-size: 18px; line-height: 1.66; }
.t-body { font-size: 16px; line-height: 1.75; }
.t-body-s { font-size: 14px; line-height: 1.57; }
.t-caption {
  font-size: 12px;
  line-height: 1.5;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.t-quote {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.375;
  letter-spacing: -0.01em;
}
.muted { color: var(--color-ink-2); }
.dim { color: var(--color-ink-3); }

/* ──── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  border-radius: var(--r-1);
  transition: all .18s ease;
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-1);
}
.btn-secondary {
  background: transparent;
  color: var(--color-black);
  border-color: var(--color-black);
}
.btn-secondary:hover {
  background: var(--color-black);
  color: var(--color-white);
}
.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  height: auto;
  padding: 0;
  font-weight: 600;
}
.btn-ghost:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 32px; font-size: 17px; }
.btn-block { width: 100%; }

/* ──── Pills / Chips ────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-ink-1);
  background: var(--color-white);
  transition: all .15s ease;
}
.pill:hover { border-color: var(--color-ink-1); }
.pill.active { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }
.pill.soft { background: var(--color-primary-soft); color: var(--color-primary); border-color: transparent; }
.pill.pink { background: var(--color-secondary-soft); color: var(--color-secondary-deep); border-color: transparent; }

/* ──── MRB Badge ─────────────────────────────────────────── */
.mrb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.mrb-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary); }

/* ──── Kicker (magazine eyebrow) ────────────────────────── */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-ink-1);
}
.kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-secondary-deep);
}
.kicker.muted-tone { color: var(--color-ink-2); }

/* ──── Layout helpers ───────────────────────────────────── */
.container {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--pad-outer);
}
.container-narrow { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-outer); }
.section { padding: var(--s-9) 0; }
.section-sm { padding: var(--s-8) 0; }
.section-lg { padding: 128px 0; }

.divider { height: 1px; background: var(--color-line); border: 0; margin: 0; }

/* ──── Article cover image ratios ───────────────────────── */
.cover {
  width: 100%;
  background: var(--color-bg-soft);
  object-fit: cover;
  display: block;
}
.cover-3-2 { aspect-ratio: 3 / 2; }
.cover-2-3 { aspect-ratio: 2 / 3; }
.cover-16-9 { aspect-ratio: 16 / 9; }
.cover-4-5 { aspect-ratio: 4 / 5; }
.cover-1-1 { aspect-ratio: 1 / 1; }

/* ──── Avatar ───────────────────────────────────────────── */
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-bg-soft) center/cover;
  flex-shrink: 0;
}
.avatar-sm { width: 24px; height: 24px; }
.avatar-md { width: 40px; height: 40px; }
.avatar-lg { width: 48px; height: 48px; }

/* ──── Editorial helpers ────────────────────────────────── */
.pullquote {
  border-left: 3px solid var(--color-primary);
  padding: 8px 0 8px 28px;
  margin: 32px 0;
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 28px;
  line-height: 1.4;
  color: var(--color-ink-1);
  letter-spacing: -0.01em;
}
.callout {
  background: var(--color-primary-soft);
  padding: 24px 28px;
  margin: 32px 0;
  border-radius: 4px;
  font-size: 16px;
  line-height: 1.65;
}
.callout-pink { background: var(--color-secondary-soft); }

/* ──── Selection ────────────────────────────────────────── */
::selection { background: var(--color-primary); color: var(--color-white); }
