:root {
  --bg-dark-color: #e0e0e0;
  --bg-light-color: #fff;
  --fg-color: #333;
  --subtitle-color: #555;
  --bar-height: 10px;
  --drip-color: #000;
  --drip-distance: 340px;
}

/* quick and dirty css reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Fira Sans', sans-serif;
  line-height: 1.4;
  color: var(--fg-color);;
  background-color: var(--bg-light-color);
  background: linear-gradient(var(--bg-light-color), var(--bg-dark-color));
  min-height: 100vh;
  max-width: 60rem;
  margin: 0 auto;
  padding: 1rem;
}

.bar {
  background-color: var(--drip-color);
  border-bottom: 1px solid var(--bg-dark-color);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--bar-height);
  z-index: 1;
}

.site-title {
  margin-top: 2rem;
  margin-bottom: 4rem;
  text-align: center;
}

.site-title h1 {
  margin: 0;
  /* font-size: 4rem; */
  font-size: clamp(4rem, 0rem + 16vw, 10rem);
  font-family: 'Fira Sans', sans-serif;
  font-weight: 600;
  font-style: italic;
  line-height: 1.2;
  /* letter-spacing: -0.01em; */
  background-color: #000;
  background: linear-gradient(#333, #000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 1px rgba(255, 255, 255, .1);
}

.site-title p {
  margin: 0;
  color: var(--subtitle-color);
  font-weight: 300;
  font-size: 1.2rem;
  line-height: 1.2;
  /* font-style: italic; */
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.site-title em {
  font-style: normal;
  display: block;
}

.primary-nav {
  list-style: none;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

.primary-nav li {
  flex: 1;
}

.primary-nav a {
  display: block;
  max-width: 22rem;
  margin: 0 auto;
  padding: .6em 1em;
  color: rgb(10, 95, 198);
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 0.17em solid rgb(10, 95, 198);
  border-radius: calc(0.65em + 1em + 0.15em);
}

.primary-nav a:hover {
  /* background: rgb(17, 161, 209); */
  background: linear-gradient(rgb(17, 161, 209), rgb(10, 95, 198));
  box-shadow: 0 0 1.25em rgba(10, 95, 198, .5);
  color: #fff;
}

@media screen and (min-width: 960px) {
  header,
  nav,
  main {
    max-width: 1000px;
    margin: 0 auto;
  }

  header {
    margin-top: 20%;
  }

  nav {
    margin-top: 1rem;
  }

  .site-title {
    display: grid;
    justify-content: center;
    margin-block: 0;
    /* transform: rotate(-1.5deg); */
  }
  
  .site-title h1 {
    /* font-size: 10rem; */
    /* font-size: clamp(2rem, 13vw, 11rem); */
  }
  
  .site-title p {
    position: relative;
    top: -1.7rem;
    left: 0.3em;
    text-align: left;
    font-size: 1.15rem;
  }

  .site-title em {
    display: inline;
  }

  .primary-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    max-width: 54rem;
    margin: 0 auto;
  }

  .primary-nav a {
    max-width: 100%;
  }
}

/********************************************************
 * Dripping originally inspired by: https://codepen.io/Penno/pen/mVPqdb
 *
 * Some other cool ones:
 * https://codepen.io/abehjat/pen/oXMENv
 * https://codepen.io/Coderesting/pen/RwwLPZM 
 * https://codepen.io/Callum-Martin/pen/aWpdGw
 *
 * Another example svg filter: https://codesandbox.io/s/9du6w?file=/index.html
 ********************************************************/

.drops {
  -webkit-filter: url('#liquid');
  filter: url('#liquid');
  position: absolute;
  z-index: 2;
  top: -10px;
  left: 95%;
  width: 90px;
  margin-left: -45px;
}

.drops.paused,
.drops.paused .drip:after {
  animation-play-state: paused;
}

.drip,
.drip:after {
  position: absolute;
  top: 0;
  left: 0;
  margin: auto;
  background-color: var(--drip-color);
}

.drip {
  width: 100%;
  height: 16px;
}

.drip:after {
  content: '';
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;

  width: 20px;
  height: 20px;
  border-radius: 50% 0 50% 50%;
  transform: rotate(-45deg);

  /* border-radius: 50%; */

  /* width: 28px;
  height: 48px;
  clip-path: path("M15 6 Q 15 6, 25 18 A 12.8 12.8 0 1 1 5 18 Q 15 6 15 6z"); */

  /* animation: drip 1.5s cubic-bezier(1, .19, .66, .12) infinite .5s infinite; */
  /* animation: drip 1.5s cubic-bezier(0.42, 0, 1.0, 1.0) infinite; */
  animation: drip 2s cubic-bezier(.75, .2, .85, .1) .5s infinite; 
}

@keyframes drip {
  0% {
    top: -20px;
    opacity: 1;
  }

  100% {
    top: var(--drip-distance);
    opacity: 1;
  }
}