/* Base styles */
html {
  font-size: calc(12px + (18 - 10) * ((100vw - 300px) / (1600 - 300)));
  margin-left: 2rem;
  margin-right: 2rem;
  height: 100%;
  min-height: 100%;
  position: relative;
  overscroll-behavior: none;
}

body {
  background-color: #ffccff;
  background-image: linear-gradient(180deg, #ffccff, #ffffff 90%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  min-height: 100vh;
  margin: 0;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  overscroll-behavior: none;
}

/* Navigation */
nav {
  text-align: center;
  display: block;
  line-height: 3rem;
}

nav a {
  padding: 1rem 2rem;
  font-size: 1.3rem;
}

/* Links */
a {
  font-family: Arial, sans-serif;
  text-decoration: none;
  color: #cc3399;
}

a:visited {
  color: #cc3399;
}

a:hover {
  color: #ffffff;
  background-color: #cc3399;
}

a:focus {
  outline: none;
  color: #ffffff;
  background-color: #cc3399;
}

/* Typography */
p {
  font-size: 120%;
  font-family: Arial, sans-serif;
  color: #5f5f5f;
  white-space: pre-wrap;
  page-break-inside: avoid;
  break-inside: avoid;
  padding: 0.1rem 0;
  tab-size: 40;
}

/* Description */
.description {
  font-style: italic;
  color: #5f5f5f;
  margin: 0 0 2rem;
  padding: 0;
  font-size: 120%;
  font-family: Arial, sans-serif;
}

h1 {
  padding-top: 0.1rem;
  color: #7030a0;
  font-family: 'snap itc';
  font-size: 300%;
}

h2 {
  font-style: italic;
  color: #cc3399;
  padding-top: 1rem;
  font-size: 250%;
  font-family: 'ink free';
}

h3 {
  font-style: italic;
  color: #5f5f5f;
  padding-top: 1rem;
  font-size: 150%;
  font-family: 'ink free';
}

/* Images */
img {
  display: block;
  border: 0;
  vertical-align: bottom;
  position: relative;
  clear: right;
  width: 22vw;
  float: right;
  z-index: -100;
  margin: 0 10vw 1rem 0.25rem;
}

@media screen and (max-width: 600px) {
  img {
    margin-right: 3vw;
  }
}


/* Navigation */
.topnav {
  overflow: hidden;
  line-height: 2rem;
  padding-top: 1rem;
}

.topnav a {
  color: #cc3399;
  justify-content: center;
  padding: 0.1rem 1.5rem;
  font-size: 1.3rem;
}

.topnav a:hover {
  color: #ffffff;
  background-color: #cc3399;
}

.topnav .icon {
  display: none;
}

@media screen and (max-width: 900px) {
  .topnav a:not(:first-child) {
    display: none;
  }

  .topnav a.icon {
    float: right;
    display: block;
    justify-content: left;
  }

  nav {
    text-align: left;
  }

  .topnav.responsive {
    position: relative;
  }
  
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}

/* Poems specific */
.poem-item {
  margin: 0.25rem 0;
}

/* Footer */
footer {
  position: sticky;
  top: 100vh;
  width: 100%;
  clear: both;
  margin-top: auto;
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.footer {
  text-align: center;
  font-family: Arial, sans-serif;
  color: #5f5f5f;
  font-size: 120%;
  padding: 0.1rem 1.5rem;
  white-space: pre-wrap;
}

/* Fonts */
@font-face {
  font-family: 'snap itc';
  src: url('/snap-itc/snap itc.ttf');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'ink free';
  src: url('/ink-free/ink-free-normal.ttf');
  font-weight: normal;
  font-style: normal;
}
