@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    --font-sans: "Karla Variable";
    --font-serif: "Gentium Book Basic";
  }
  * {
    @apply border-border;
  }
  body {
    font-feature-settings: "rlig" 1, "calt" 1;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

::-moz-selection {
  /* Code for Firefox */
  color: #fff;
  background: #222222;
}

::selection {
  color: #fff;
  background: #222222;
}

/* Links
–––––––––––––––––––––––––––––––––––––––––––––––––– */

/* SLIDE IN, SLIDE OFF (REVERSE) */
a.pastel {
  text-decoration: none;
  display: inline-block;
  color: #222222;
  position: relative;
  padding-bottom: 2px;
}

a.pastel:before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  transition: width 0s ease;
}

a.pastel:after {
  content: "";
  display: block;
  position: absolute;
  right: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: #222222;
  transition: width 0.5s ease;
}

a.pastel:hover:before {
  width: 0;
  background: #222222;
  transition: width 0.5s ease;
}

a.pastel:hover:after {
  width: 0;
  background: transparent;
  transition: width 0s ease;
}

.link-underline {
  border-bottom-width: 0;
  background-image: linear-gradient(transparent, transparent),
    linear-gradient(transparent, transparent);
  background-size: 0 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.5s ease-in-out;
}

.link-underline-black {
  background-image: linear-gradient(transparent, transparent), linear-gradient(#222222, #222111);
}

.link-underline:hover {
  background-size: 100% 2px;
  background-position: 0 100%;
}

/* Maps
–––––––––––––––––––––––––––––––––––––––––––––––––– */

#map {
  height: 500px;
  width: 100%;
}

@media only screen and (min-width: 75em) {
  .is-style-karla {
    font: 400 1.8rem "Karla", "Montserrat", "Helvetica Neue", sans-serif;
    line-height: 2.6rem;
    -webkit-font-smoothing: antialiased;
  }
}

@media only screen and (min-width: 62em) {
  .is-style-karla {
    font: 400 1.8rem "Karla", "Montserrat", "Helvetica Neue", sans-serif;
    line-height: 2.6rem;
  }
}
