/* ============================================================
   GLOBAL.CSS
   Variables, resets, base HTML/body styles.
   Must be loaded before ui.css and any page stylesheet.
   ============================================================ */

/* ---- IMPORTS ---- */
@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

/* ---- DESIGN TOKENS ---- */
:root {
  /* Typography */
  --font-heading: "EB Garamond", serif;
  --font-body: "Inter", sans-serif;

  /* Type scale */
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-md: 15px;
  --text-fluid-body: clamp(15px, 1.1vw, 17px);
  --text-fluid-sub: clamp(18px, 1.5vw, 24px);
  --text-fluid-subheading: clamp(22px, 2vw, 34px);
  --text-fluid-heading: clamp(28px, 3vw, 48px);
  --text-fluid-hero: clamp(30px, calc(5.13vw - 9.8px), 72px);
  --text-fluid-display: clamp(72px, 8vw, 128px);

  /* Layout */
  --nav-height: 75px;
  --gap: 24px;
  --slide-pad-x: calc(var(--gap) * 3);
  --slide-pad-y: calc(var(--gap) * 2);

  /* Component */
  --border-width: 3px;
  --cards-gap: 3px;

  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.4s ease;
}

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

/* ---- BASE ---- */
html {
  scroll-padding-top: calc(var(--nav-height) + var(--gap));
  /* nav-height offset needed because nav is fixed and body padding-top compensates for initial layout only */
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--nav-height);
  background: var(--bg-100);
  font-family: var(--font-body);
  font-size: 16px;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings:
    "kern" 1,
    "liga" 1,
    "calt" 1;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-100);
}

section {
  width: 100%;
}

section:not(.hero-bg):not(.proof-bar) {
  display: flex;
  align-items: center;
  flex-direction: column;
}

/* ---- UTILITY ---- */
.eb-garamond {
  font-family: var(--font-heading), serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.03em;
}

/* kept for back-compat with home.html class name */
.eb-garamond-mine {
  font-family: var(--font-heading), serif !important;
  font-optical-sizing: auto;
  font-weight: 400 !important;
  font-style: normal;
  letter-spacing: -0.03em !important;
}
