@layer theme, base, components, utilities;
@import "tailwindcss/theme.css" layer(theme);
@import "tailwindcss/preflight.css" layer(base);
@import "tailwindcss/utilities.css" layer(utilities);

:root {
  --color-bg: #fcfcfb;
  --color-text: #000000;
  --blend-mode: lighten;
  --mh: 1rem;
  --mv: 5vh;
}
/* Dark mode overrides */
/* @media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #000000;
    --color-text: #ffffff;
    --blend-mode: multiply;
  }
} */

::selection {
  background: var(--color-text);
  color: var(--color-bg);
}
html {
  font-size: 12px;
}
body {
  font-family: "Montagu Slab", serif;
  font-variation-settings: "opsz" 100, "wght" 350;
  font-weight: 350;
  font-style: normal;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.3;
  width: 100%;
  min-height: 100vh;
  text-align: center;
  font-size: clamp(1rem, 2vw, 2rem);
}

article {
  padding: 10vh 0;
  width: 100%;
  max-width: 60em;
}

section {
  padding: var(--mv) var(--mh);
}

.grid-cols-1 {
  gap: var(--mv);
}

h1 {
  font-size: clamp(3em, 9.5vw, 4em);
  line-height: 1;
  font-variation-settings: "opsz" 120, "wght" 350;
}
h2 {
  font-size: clamp(1.5em, 6vw, 3em);
  line-height: 1;
  font-variation-settings: "opsz" 120, "wght" 350;
}
h3 {
  font-size: clamp(1em, 3vw, 1.2em);
}
h4 {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gradient-text {
  position: relative;
}

.gradient-text::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, var(--color-bg), var(--color-text));
  mix-blend-mode: var(--blend-mode);
  z-index: 1;
}
