@font-face {
  font-family: "Apple Garamond";
  src: url("AppleGaramond.ttf") format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap; 
}

:root {
  --text-color: #353839;
  --title-font: "Apple Garamond";
}

h1,
h2,
h3,
h4,
h5, 
p, 
small,
a {
  color: var(--text-color);
  font-family: "Apple Garamond", sans-serif;
}

a {
  transition: opacity 0.4s ease-out 0.1s;
  text-decoration: none;
  color: #4682B4;
  opacity: 0.8;
  &:hover {
    transition: opacity 0.3s ease-in 0s;
    opacity: 0.5;
  }
}

p {
  font-size: max(24px, min(24px,10vw));
}

html {
  color: var(--text-color);
  font-family: "Georgia", serif;
  font-size: 1.2em;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

body {
  min-width: 375px;
  width: 800px;
  max-width: 1200px;
  padding: 15px 15px 0 15px;
  display: flex;
  flex-direction: column;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

img {
  max-width: 100%;
}

.site-title {
  margin-bottom: 32px;
  /*text-transform: uppercase;*/
  font-family: var(--title-font); 
  text-align: center;
  font-size: max(1.9em, min(2.75em,8vw));
}

header {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin: auto 1em;
}

nav {
  display: flex;
  a { color: black; }
  @media (max-width: 600px) {
    gap: 1em;
  }
  @media (min-width: 600px) {
    gap: 2em;
  }
  font-size: max(1.3em, min(1.75em,6vw));
  justify-content: left;
  margin-bottom: 20px;
  span {
    opacity: 0.2;
  }
}

main {
  margin: 1.5em;
}

.block {
  border: 1px dotted white;
  padding: 5px 15px;
  margin: 0 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.block h1 {
  font-size: 1em;
  text-align: center;
  margin-bottom: 0;
}

.small {
  font-size: 0.8em;
}

.wave {
  background: #111;
  color: #fff;
  text-shadow: 1px 1px 10px #fff, 1px 1px 10px #ccc;
}

footer {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

hr {
  width: 90%;
  opacity: 0.8;
}
