/*
 * regular-tags.css — optimized
 * Fonts, Base Styles, Typography
 */

/* =========================================================
   FONTS
   ========================================================= */

@font-face {
  font-family: "Montserrat VF";
  src: url("/site/assets/files/fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   BASE STYLES
   ========================================================= */

html {
  scroll-behavior: smooth;
  font-size: 62.5%;
}

body {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: "Montserrat VF", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 2.1em;
  font-weight: 300;
  line-height: 1.6;
  color: #222;
  padding: 0 12px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

header {
  min-height: calc(10rem + 10px);
  margin-bottom: 1em;
}

footer {
  margin-top: 1em;
}

hr {
  margin: 3rem 0 3.5rem 0;
  border: none;
  border-top: 1px solid #E1E1E1;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 2rem;
  font-weight: 300;
  line-height: 1;
}

h1 { font-size: 2em; letter-spacing: -.1rem; }
h2, h3 { font-size: 1.2em; letter-spacing: -.1rem; }
h4 { font-size: 1em; letter-spacing: -.08rem; }
h5 { font-size: 1em; letter-spacing: -.05rem; }
h6 { font-size: 1em; letter-spacing: 0; }

p {
  margin: 0 0 2em 0;
}

p:last-child { margin-bottom: 0; }

em, em > a {
  font-style: normal;
  animation: linkcolor 60s infinite;
}

em > a:hover,
em > a:focus {
  animation: none;
  color: #222;
}

/* =========================================================
   LINKS
   ========================================================= */

a {
  color: #222;
  text-decoration: none;
  display: inline-block;
  position: relative;
}

a::after {
  position: absolute;
  content: "";
  display: block;
  width: 0;
  height: 0;
  bottom: 0.25em;
  left: 0;
  border-bottom: 0.06em solid #666;
  z-index: 0;
  transition: .4s;
}

a:hover {
  cursor: url(../arrows/arrow-tbr.png) 95 95, auto;
}

a:hover::after {
  width: calc(100% + .2em);
}

/* =========================================================
   BUTTONS & FORMS
   ========================================================= */

button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
  display: inline-block;
  height: 2rem;
  padding: 18px 100px;
  font-size: 1.3rem;
  font-weight: 300;
  line-height: .2rem;
  letter-spacing: .1rem;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  color: #222;
  background-color: transparent;
  border: 1px solid #666;
  border-radius: 2rem;
  box-shadow: 0px 3px 0px #222;
  cursor: pointer;
  box-sizing: border-box;
}

button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
button:focus,
input[type="submit"]:focus,
input[type="reset"]:focus,
input[type="button"]:focus {
  color: #666;
  box-shadow: 0 1px 0px #252525;
  outline: 0;
  translate: 0 2px;
  cursor: url(../arrows/arrow-tul.png), auto;
}

input[type="email"],
input[type="number"],
input[type="search"],
input[type="text"],
input[type="tel"],
input[type="url"],
input[type="password"],
textarea,
select {
  height: 2rem;
  padding: 18px 10px;
  background-color: #fff;
  border: 1px solid #666;
  border-radius: 2rem;
  box-shadow: none;
  box-sizing: border-box;
  text-align: center;
  appearance: none;
}

textarea { min-height: 65px; padding: 6px 0; }

input:focus,
textarea:focus,
select:focus {
  border: 1px solid #33C3F0;
  outline: 0;
}

label,
legend {
  display: block;
  font-size: 1.2rem;
  font-weight: 300;
  padding-left: 12px;
}

fieldset { padding: 0; border: 0; }

input[type="checkbox"],
input[type="radio"] { display: inline; }

/* =========================================================
   LISTS, TABLES, CODE
   ========================================================= */

ul, ol { padding-left: 0; margin-top: 0; }

ul { list-style: none; }
ol { list-style: decimal inside; }

ul ul, ul ol, ol ul, ol ol { margin: 1.5rem 0 1.5rem 3rem; font-size: 90%; }

li { margin-bottom: 1rem; }

code {
  padding: .2rem .5rem;
  margin: 0 .2rem;
  font-size: 90%;
  white-space: nowrap;
  background: #F1F1F1;
  border: 1px solid #E1E1E1;
  border-radius: 4px;
}

pre > code { display: block; padding: 1rem 1.5rem; white-space: pre; }

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #E1E1E1;
}

th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }

/* =========================================================
   IMAGES
   ========================================================= */

img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* =========================================================
   ANIMATIONS & KEYFRAMES
   ========================================================= */

@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeout { from { opacity: 1; } to { opacity: 0; } }

@keyframes linkcolor {
  0%, 20% { color: #FF0044; }
  25%, 50% { color: #3BFF00; }
  55%, 70% { color: #006464; }
  75%, 95% { color: #645F00; }
  100% { color: #FF0044; }
}

@keyframes svgcolor {
  0%, 20% { fill: #FF0044; }
  25%, 50% { fill: #3BFF00; }
  55%, 70% { fill: #006464; }
  75%, 95% { fill: #645F00; }
  100% { fill: #FF0044; }
}

@keyframes strokecolor {
  0%, 20% { stroke: #FF0044; }
  25%, 50% { stroke: #3BFF00; }
  55%, 70% { stroke: #006464; }
  75%, 95% { stroke: #645F00; }
  100% { stroke: #FF0044; }
}

@keyframes backgroundcolor {
  0%, 20% { background-color: #FF0044; }
  25%, 50% { background-color: #3BFF00; }
  55%, 70% { background-color: #006464; }
  75%, 95% { background-color: #645F00; }
  100% { background-color: #FF0044; }
}

/* =========================================================
   MEDIA QUERIES
   ========================================================= */

@media (min-width: 512px) {
  body { font-size: 4.8em; line-height: 1.2; }

  label, legend { font-size: 1.6rem; margin-bottom: 4px; }

  footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  footer div:last-child { text-align: initial; }

  input[type="email"],
  input[type="number"],
  input[type="search"],
  input[type="text"],
  input[type="tel"],
  input[type="url"],
  input[type="password"],
  textarea,
  select,
  button,
  input[type="submit"],
  input[type="reset"],
  input[type="button"] {
    height: 6rem;
    line-height: 1.4;
    border-radius: 4rem;
  }

  a::after { bottom: 0.14em; }
}

@media (prefers-reduced-motion: no-preference) {
  #lightbox[open] img { animation: show 0.25s ease-in-out normal; }
  @keyframes show { from { opacity: 0; } to { opacity: 1; } }
}
