/* Sticky footer: body is flex column, main grows to push footer down */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 100%;
  margin: 0;
}

main {
  flex: 1;
  padding-left: 50px;
  padding-right: 50px;
}

/* Hide content until DOM is ready (JS adds .loaded to body) */
body.hidden {
  visibility: hidden;
}

@font-face {
  font-family: 'Roboto-300-normal';
  src: url('fonts/roboto_5.2.10/ttf/roboto-latin-300-normal.ttf') format('truetype');
}

@font-face {
  font-family: 'ibm-plex-sans-latin-300-normal';
  src: url('fonts/ibm-plex-sans_5.2.8/ttf/ibm-plex-sans-latin-300-normal.ttf') format('truetype');
}

header {
  border-bottom: 2px solid #eee;
}

header h1 {
  font-size: 2em;
  font-family: 'Roboto-300-normal', sans-serif;
  text-align: center;
  padding-top: .5em;
  padding-bottom: .5em;
  text-transform: uppercase;
  letter-spacing: .2em;
}

header h1 a {
  color: inherit;
  text-decoration: none;
}

header h1 a:hover {
  text-decoration: underline;
}

.subheadline {
  font-family: 'ibm-plex-sans-latin-300-normal';
  font-size: 1.7em;
  text-align: center;
  padding-top: 4vh;
  padding-bottom: 4vh;
  letter-spacing: .08em;
  line-height: 1.7em;
}

.form-section {
  display: flex;
  justify-content: center;
}

.hidden-form-label {
  display: none;
}

.form-section p {
  font-family: 'ibm-plex-sans-latin-300-normal';
  font-size: 1.2em;
  letter-spacing: .05em;
  line-height: 1.8em;
  text-align: center;
}

.contact-form .form-group {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.contact-form input[type="email"] {
  flex: 1;
  padding: 0.5rem 0.75rem;
  font-family: 'ibm-plex-sans-latin-300-normal', sans-serif;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-form input[type="email"]:focus {
  outline: none;
  border-color: #666;
}

.contact-form .primary-button {
  padding: 0.5rem 1.25rem;
  font-family: 'ibm-plex-sans-latin-300-normal', sans-serif;
  font-size: 1rem;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.contact-form .primary-button:hover {
  background: #555;
}

.contact-form .primary-button:active {
  background: #222;
}

.privacy-content {
  font-family: 'ibm-plex-sans-latin-300-normal', sans-serif;
  font-size: 1.1em;
  line-height: 1.8em;
  letter-spacing: .05em;
  max-width: 42rem;
  margin: 4vh auto 0;
}

.privacy-content h2 {
  font-family: 'Roboto-300-normal', sans-serif;
  font-size: 1.5em;
  margin-bottom: 1em;
}

.text-link {
  color: #333;
  text-decoration: underline;
}

.text-link:hover {
  color: #555;
}

.site-footer {
  background: #333;
  color: #fff;
  padding: 0.7rem 50px;
  margin-top: 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'ibm-plex-sans-latin-300-normal', sans-serif;
  font-size: 0.95em;
  letter-spacing: .05em;
}

.footer-site-name {
  font-weight: 500;
}

.footer-link {
  color: #fff;
  text-decoration: none;
}

.footer-link:hover {
  color: #ddd;
}

.bot-filter {
  display: none;
}

/* tablet styles */
@media (min-width: 768px) {
  h2.subheadline {
    padding-top: 25vh;  
    max-width: 860px;  
    margin: 0 auto;
  }

  .form-section {
    max-width: 545px;
    margin: 0 auto;
  }
}
