:root {
  --text-font: 'Operator', system-ui, sans-serif;
}

/* Base styles */
* {
  box-sizing: border-box;
}

html {
  font-family: var(--text-font);
  font-size: 18px;
  line-height: 1.6;
  min-height: 100vh;
}

body {
  margin: 0 auto;
  max-width: 45ch;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  color: white;
  text-align: center;
  overflow: visible;
}

a {
  text-decoration: underline;
  text-decoration-style: wavy;
}

abbr {
  text-decoration: none;
}

/* Light mode */
@media (prefers-color-scheme: light) {
  html {
    background-color: #FFF5F6;
  }

  body {
    color: #0A0001;
  }

  a {
    color: #B60017;
  }

  .red {
    color: #B60017;
  }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  html {
    background-color: #0A0001;
  }

  body {
    color: #FFF5F6;
  }

  p a {
    color: inherit;
    background-color: #B60017;
  }

  #smile-toggle {
    background-color: transparent;
  }

  .red {
    color: #B60017;
  }
}

h1 {
  color: #B60017;
  font-family: 'Recursive', system-ui, sans-serif;
  font-size: 16rem;
  line-height: 1;
  margin: 0;
  font-variation-settings: 'CASL' 1, 'CRSV' 1, 'slnt' -10, 'wght' 976;
  position: relative;
  z-index: 2;
  background-image: url('/uploads/header.jpeg');
  background-size: cover;
  background-position: center;
  background-clip: text;
  -webkit-background-clip: text;
  transition: font-size 0.6s cubic-bezier(0.4, 0, 0.2, 1), font-variation-settings 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: max-content;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

h1 a {
  text-decoration: none;
  color: inherit;
  display: block;
}

#smile-toggle {
  background-color: none;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

#name-text,
#location-text,
#emoji-text,
#description-text {
  transition: opacity 0.3s ease-in-out;
}

header.index:hover h1 {
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hover-background-link {
  position: fixed;
  display: block;
  text-decoration: none;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
}

header.index:hover .hover-background-link {
  pointer-events: auto;
}

.hover-background-image {
  display: none;
}

/* Ensure header is positioned relative for z-index to work */
header.index {
  position: relative;
  z-index: 1;
  overflow: visible;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.social-icons {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.5em;
  padding-right: 0.5em;
}

.social-icons a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.social-icons a:hover {
  color: #B60017;
}

/* Mobile styles */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
}
