/* Base styles shared across all pages */

/* ===== CSS Variables ===== */
:root {
  /* Font families */
  --main-font: 'Brandongrotesque', sans-serif;
  --secondary-font: 'Brandongrotesquecond', sans-serif;
  --main-font-cond: var(--secondary-font);

  /* Colors — content page defaults */
  --bg-color: #646464;
  --primary-bg-color: var(--bg-color);
  --text-color: #f0f0f0;
  --link-color: #dbd9d9;
  --nav-link-color: var(--link-color);
  --nav-link-hover-color: #fff;
  --line-color: rgba(240, 240, 240, 0.18);

  /* Sizes */
  --animation-duration: 1.2s;
  --base-font-size: 16px;
  --small-font-size: 15px;
  --large-font-size: 18px;
}

/* ===== Font Declarations ===== */
@font-face {
  font-family: 'Brandongrotesque';
  src: url('../fonts/BrandonGrotesque-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Brandongrotesque';
  src: url('../fonts/BrandonGrotesque-Thin.woff') format('woff');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Brandongrotesquecond';
  src: url('../fonts/BrandonGrotesqueCond-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Brandongrotesquecond';
  src: url('../fonts/BrandonGrotesqueCond-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Brandongrotesquecond';
  src: url('../fonts/BrandonGrotesqueCond-Thin.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

/* ===== Normalization ===== */
html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-duration: 1.2s;
  font-size: 16px;
  line-height: 1.15;
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-text-size-adjust: none;
  -moz-text-size-adjust: none;
  -ms-text-size-adjust: none;
  text-size-adjust: none;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--main-font);
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: none;
  -moz-text-size-adjust: none;
  -ms-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body, html {
  height: 100%;
}

.site-body {
  background-color: var(--bg-color);
  color: var(--text-color);
  text-align: center;
  font-family: var(--main-font);
  font-weight: 300;
}

.site-body.nav-open {
  overflow: hidden;
}

/* ===== Typography ===== */
a {
  color: var(--text-color);
  vertical-align: baseline;
  font-family: var(--main-font);
  text-decoration: underline;
  position: relative;
  overflow: visible;
  font-weight: 300;
}
