@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../assets/fonts/geist-latin-400-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../assets/fonts/geist-latin-500-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("../assets/fonts/geist-latin-600-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../assets/fonts/eb-garamond-latin-400-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist Fallback";
  src: local("Arial");
  ascent-override: 93%;
  descent-override: 21%;
  line-gap-override: 0%;
  size-adjust: 96%;
}

@font-face {
  font-family: "EB Garamond Fallback";
  src: local("Georgia");
  ascent-override: 87%;
  descent-override: 22%;
  line-gap-override: 0%;
  size-adjust: 92%;
}

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

:root {
  --bg: oklch(0.980 0 90);
  --bg-elevated: oklch(1.000 0 90);
  --text-primary: oklch(0.130 0 90);
  --text-secondary: oklch(0.420 0 90);
  --text-tertiary: oklch(0.650 0 90);
  --chat-me-bg: oklch(0.930 0.005 270);
  --chat-me-color: oklch(0.130 0 90);
  --accent: oklch(0.500 0.204 43.5);
  --accent-hover: oklch(0.430 0.180 43.5);
  --accent-on-dark: oklch(0.696 0.204 43.5);
  --text-on-accent: oklch(1.000 0 90);
  --surface: oklch(0.945 0 90);
  --surface-hover: oklch(0.910 0 90);
  --border: oklch(0.000 0 0 / 0.06);
  --border-strong: oklch(0.000 0 0 / 0.1);
  --nav-bg: oklch(0.980 0 90 / 0.85);
  --shadow-sm: 0 1px 2px oklch(0.000 0 0 / 0.04);
  --shadow-md: 0 4px 12px oklch(0.000 0 0 / 0.06);
  --shadow-cta-hover: 0 6px 20px oklch(0.000 0 0 / 0.14);
  --shadow-btn-accent: 0 1px 4px oklch(0.000 0 0 / 0.12);
  --shadow-card-border: inset 0 0 0 1.5px oklch(0.000 0 0 / 0.1);
  --green: oklch(0.720 0.190 150);

  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.0625rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: clamp(1.5rem, 4vw, 2rem);
  --text-3xl: clamp(2rem, 5vw, 2.75rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 4.5rem;
  --space-16: 6rem;

  --content-width: 720px;
  --content-px: var(--space-5);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 500ms;

  --font-body: "Geist", "Geist Fallback", system-ui, -apple-system, sans-serif;
  --font-heading: "EB Garamond", "EB Garamond Fallback", Georgia, serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--accent);
  color: var(--text-on-accent);
  padding: var(--space-2) var(--space-4);
  border-radius: 0 0 8px 8px;
  font-size: var(--text-sm);
  font-weight: 500;
  z-index: 200;
  transition: top var(--duration-base) var(--ease-out);
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
  opacity: 1;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection {
  background: var(--accent);
  color: var(--text-on-accent);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

a:hover {
  color: var(--accent-hover);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
