/* =========================
   Base Reset
========================= */

@import url('https://fonts.googleapis.com/css2?family=Black+Ops+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Quicksand&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lobster&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Knewave&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Electrolize&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Racing+Sans+One&display=swap');

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;

  font-family: "Electrolize", sans-serif;
  font-weight: 400;
  line-height: 1.5;

  background: var(--color-background);
  color: var(--color-text);

  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* =========================
   Layout
========================= */

.container {
  width: min(1100px, 90%);
  margin: 0 auto;
}

main {
  flex: 1;
}

/* =========================
   Typography
========================= */

h1, h2, h3, h4, h5 {
  font-family: "Racing Sans One", system-ui;
  font-weight: 300;
  margin: 0 0 0.75rem 0;
  line-height: 1.2;
  color: var(--color-lowlight);
}

h1 {
  font-family: "Electrolize", system-ui;
  font-size: 2.5rem;
  margin: 1em 0 0.6em 0;
}

h2 {
  font-size: 3rem;
  margin: 1em 0 0.5em 0;
}

h3 {
  font-size: 2.25rem;
  margin: 0.9em 0 0.5em 0;
}

h4 {
  font-size: 1.875rem;
  margin: 0.8em 0 0.4em 0;
}

h5 {
  font-size: 1.5rem;
  margin: 0.7em 0 0.4em 0;
}

p {
  font-size: 1.5rem;
  margin: 0 0 0.75rem 0;
}

a {
  font-size: 1.5rem;
  display: inline-block;
  color: var(--color-links);
  text-decoration: none;
  padding: 0.625rem;
  border-radius: 999px;
  transition: 0.2s ease;
}

ul, ol {
  padding-left: 2.5rem;
  font-size: 1.25rem;
}

/* =========================
   Header
========================= */

.site-header {
  background: transparent;
  border-top: 3px solid var(--color-border);
}

.header-top {
  background: var(--color-headerbackground1);
  padding: 1.25rem;
}

.header-btm {
  background: var(--color-headerbackground2);
  padding: 1.25rem;
}

.header-flash {
  background: var(--color-headerbackground3);
  padding: 1.25rem;
}

/* layout rows */
.header-top .container,
.header-btm .container,
.header-flash .container {
  display: flex;
  align-items: center;
}

.header-top .container {
  justify-content: space-between;
}

.header-btm .container,
.header-flash .container {
  justify-content: center;
}

/* logo/title */
.logotitle {
  background: var(--color-black);
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: 999px;
  font-size: 1.5rem;
}

/* header links */
.header-top a {
  padding: 0.625rem 1rem;
  background: transparent;
}

.header-flash a {
  padding: 0.625rem 1rem;
  background: var(--color-getbutton);
  color: var(--color-black);
  border-radius: 999px;
}

.header-flash a:hover {
  background: var(--color-white);
  color: var(--color-black);
}

/* =========================
   Blockquote / Code
========================= */

blockquote {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 1.25rem;

  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 0.75rem solid var(--color-highlight);
  background: var(--color-lowlight);
  color: var(--color-highlight);
}

code {
  background: var(--color-lowlight);
  color: var(--color-white);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-family: monospace;
}

/* =========================
   Utilities
========================= */

.text-center { text-align: center; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* =========================
   Grid
========================= */

.grid {
  display: grid;
  gap: 1rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* =========================
   MOBILE FIX (IMPORTANT)
========================= */

@media (max-width: 768px) {

  html {
    font-size: 12px;
  }

  .header-top .container {
    flex-direction: column;
    gap: 0.75rem;
  }

  .header-top,
  .header-btm,
  .header-flash {
    padding: 0.75rem;
  }

  .logotitle {
    font-size: 1.25rem;
    text-align: center;
  }

  .header-top a,
  .header-flash a {
    font-size: 1rem;
  }
}