/* =============================================================
   SKInnocence Clinic — shared system styles
   The base layer used by every page. Inline page styles override
   these as needed. Loaded once, browser-cached across navigation.
   ============================================================= */

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

:root {
  --bg: #fbfaf7;
  --fg: #0a0a0a;
  --fg-muted: #6e6e6e;
  --fg-faint: #a8a8a4;
  --rule: #e6e3dc;
  --rule-soft: #ece9e2;
  --max: 1280px;
  --gutter: clamp(24px, 5vw, 80px);
}

[data-theme="dark"] {
  --bg: #0b0b0b;
  --fg: #f5f3ec;
  --fg-muted: #8a8a85;
  --fg-faint: #4a4a47;
  --rule: #1d1d1b;
  --rule-soft: #161614;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

::selection { background: var(--fg); color: var(--bg); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ============================================================
   NAV — fixed chrome at top, identical across every page
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--rule); }
.brand {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.01em;
}
.brand b { font-style: normal; font-weight: 600; }

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  padding: 9px 16px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  transition: background 0.18s, color 0.18s;
}
.nav-cta:hover { background: var(--fg); color: var(--bg); }

/* ============================================================
   COMMON TYPE PATTERNS
   ============================================================ */
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--fg);
  display: block;
}
.section-title em { font-style: italic; }
.section-lead.muted { color: var(--fg-muted); }
.cta-line em { font-style: italic; }

/* ============================================================
   BUTTONS — pill CTA used identically on every page
   ============================================================ */
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary .arrow {
  transition: transform 0.2s ease;
  display: inline-block;
}
.btn-primary:hover .arrow { transform: translateX(4px); }

.cta-note .dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  background: var(--fg-muted);
  border-radius: 999px;
  margin: 0 10px;
  vertical-align: middle;
}

/* ============================================================
   FOOTER — shared chrome at bottom
   ============================================================ */
.footer-mark b { font-style: normal; font-weight: 500; }
.footer-meta a {
  color: var(--fg-muted);
  transition: color 0.15s;
}
.footer-meta a:hover { color: var(--fg); }
.footer-meta .sp { flex: 1; }

/* ============================================================
   MOTION PREFERENCES — universal
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
