html,
body {
  min-height: 100%;
  margin: 0;
}

html {
  text-size-adjust: none;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

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

input,
button,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
  hyphens: auto;
  font-family: var(--base-font-family-display);
  text-shadow: 1px 1px 2px var(--base-color-dark);
}

:where(h1, h2, h3, h4, h5, h6, p, ul, ol, dl) {
  line-height: calc(1em + 0.5rem);
}

@font-face {
  font-family: 'Faculty Glyphic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Faculty_Glyphic/FacultyGlyphic-Regular.ttf');
}

@font-face {
  font-family: 'Pirata One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Pirata_One/PirataOne-Regular.ttf');
}

:root {
  --base-color-dark: #0c0311;
  --base-color-pink: #CC38AC;
  --base-color-light: #f4e9f3;
  --base-font-size: 1rem;
  --base-type-scale: 1.5;
  --base-font-size-sm: calc(var(--base-font-size) / var(--base-type-scale));
  --base-font-size-lg: calc(var(--base-font-size) * var(--base-type-scale));
  --base-font-size-xl: calc(var(--base-font-size-lg) * var(--base-type-scale));
  --base-font-size-2xl: calc(var(--base-font-size-xl) * var(--base-type-scale));
  --base-font-size-3xl: calc(var(--base-font-size-2xl) * var(--base-type-scale));
  --base-font-family-display: 'Pirata One', serif;
  --base-font-family-serif: 'Faculty Glyphic', serif;

  color-scheme: dark;
  font-family: var(--base-font-family-serif);
  overflow-x: clip;
  background-color: var(--base-color-dark);
  color: var(--base-color-light);
}

body {
  padding-block-end: 1.5rem;
}

header {
  width: 100vw;
  padding-block: 1.5rem;
  background-color: var(--base-color-dark);
  z-index: 1;

  @media (min-width: 56.3125rem) {
    position: sticky;
    top: 0;
  }
}

a {
  color: var(--base-color-pink);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: var(--base-font-size-lg);

  @media (min-width: 56.3125rem) {
    justify-content: space-between;
  }
}

nav a {
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

section {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  text-align: center;
  position: relative;
  font-size: var(--base-font-size-lg);
}

h1 {
  font-size: var(--base-font-size-3xl);
}

h2 {
  font-size: var(--base-font-size-2xl);
}

h3 {
  font-size: var(--base-font-size-xl);
}

h4 {
  font-size: var(--base-font-size-lg);
}

h5 {
  font-size: var(--base-font-size);
}

h6 {
  font-size: var(--base-font-size-sm);
}

.cmp-container {
  width: min(calc(100% - 3rem), 60rem);
  margin-inline: auto;
}

.cmp-background-image {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  width: 100vw;
  height: 100dvh;
  object-fit: cover;
  max-width: initial;
}
