/* ================================
   CSS Variables
================================ */
:root {
  /* Colors */
  --color-bg: #F5F5F4;
  --color-bg-dark: #111214;
  /*--color-text: #0F172A;*/
  --color-text: #111214;
  --color-text-light: #F9FAFB;
  --color-text-muted: #5C6B7A;
  --color-accent: #b00ad3;
  --color-accent-3: #fe802d;

  /*Radiuses*/
   --radius-s: 8px 0px 8px 8px;
   --radius-m: 12px 0px 12px 12px;

  /* Spacing */
  --spacing-sm: 0.75rem;
  --spacing-md: 1.25rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  --spacing-2xl: 8rem;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Jost', sans-serif;

  /* Type scale */
  --text-xs:   0.75rem;   /*  12px */
  --text-sm:   0.875rem;  /*  14px */
  --text-base: 1.125rem;  /*  18px */
  --text-lg:   1.375rem;  /*  22px */
  --text-xl:   1.75rem;   /*  28px */
  --text-2xl:  2.5rem;    /*  40px */
  --text-3xl:  3.5rem;    /*  56px */
  --text-4xl:  5rem;      /*  80px */
  --text-5xl:  6.5rem;    /* 104px */

  /* Layout */
  --header-height: 72px;
  --max-width: 1280px;
}

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

html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  isolation: auto;
}

/* ================================
   Base
================================ */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  font-weight: 350;
  background-color: var(--color-bg);
  color: var(--color-text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ================================
   Focus — keyboard only
================================ */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 3px; }

/* ================================
   Typography
================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.5;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-4xl); font-weight: 400; }
h2 { font-size: var(--text-3xl); font-weight: 400; }
h3 { font-size: var(--text-xl);  font-weight: 400; }
h4 { font-size: var(--text-lg);  font-weight: 400; }

p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-muted);
}

.prose {
  max-width: 753px;
}

.prose-centered { 
  max-width: 753px;
  margin: 0 auto;
}

  .prose-centered + .prose-centered {
  margin-top: 1rem;
}
 .prose + .prose {
  margin-top: 1rem;
}

/* ================================
   Layout
================================ */
.container {
  width: 100%;
  max-width: 1144px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ================================
   Responsive type
================================ */
@media (max-width: 768px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl);  }
}

/*Dark invert*/
body.theme-dark .header__cta {
  color: var(--color-text);
  background: var(--color-bg);
  border-color: var(--color-bg);
}

body.theme-dark .header__burger span {
  background: var(--color-accent-3) !important;
}

body.theme-dark .header__burger span:nth-child(2)::before {
  background: var(--color-accent-3) !important;
}
@media (max-width: 768px) {
body.theme-dark .header__burger:not(.is-open) span {
  background: var(--color-accent-3) !important;
}

body.theme-dark .header__burger:not(.is-open) span:nth-child(2)::before {
  background: var(--color-accent-3) !important;
}

body.theme-dark .header__burger.is-open span {
  background: var(--color-text) !important;
}

body.theme-dark .header__burger.is-open span:nth-child(2)::before {
  background: var(--color-text) !important;
}
}


.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}