/* === GLOBAL === */
body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background: #f5f5f5;
  color: #282828;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
}

a:link {
  color: #282828;
  text-decoration: none;
}

a:visited {
  color: #800080;
  text-decoration: none;
}

a:hover {
  color: #282828;
  text-decoration: underline;
}

a:active {
  color: #FFFF00;
}

@supports (font-variation-settings: normal) {
  body,
  .site-header h1,
  .site-header h2,
  .sidebar .toggle,
  .sidebar .contact,
  .content {
    font-family: 'Inter var', 'Helvetica Neue', Arial, sans-serif;
  }
}

/* === BACKGROUND === */
.background {
  background: #f5f5f5;
  background-size: cover;
  background-position: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
}

/* === HEADER === */
.site-header {
  padding: 0.5rem 2rem 1rem 2.5rem;
  border-bottom: 0px solid #ddd;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: #f5f5f5;
}

.site-header h1 {
  font-weight: 650;
  font-size: 1.75rem;
  color: #282828;
  margin-top: 0;
  margin-bottom: 0;
  letter-spacing: -0.0em;
}

.site-header h2 {
  font-size: 1.5rem;
  font-weight: 300;
  color: #282828;
  margin-top: -0.5rem;
  margin-bottom: 0;
  font-style: normal;
}

/* === LAYOUT === */
.main-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
}

/* === SIDEBAR === */
.sidebar {
  padding: 6.5rem 1rem 1rem 1rem;
  border-right: 0px solid #ddd;
  align-self: start;
  position: fixed;
}

.sidebar .toggle,
.sidebar .contact {
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.5;
  color: #282828;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-bottom: 1rem;
  text-align: left;
  text-decoration: none;
  display: block;
  width: fit-content;
  position: relative;
  padding-left: 1.5rem;
}

.sidebar .toggle:hover::before,
.sidebar .toggle.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.54rem;
  width: 0.6rem;
  height: 0.6rem;
  background-color: #f04a00;
}

.sidebar .toggle:hover,
.sidebar .contact:hover {
  text-decoration: none;
}

/* === CONTENT AREA === */
.content-area {
  padding: 6.5rem 1rem 1rem 10rem;
  max-width: 780px;
  align-self: start;
}

.content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
  display: block;
  color: #282828;
}

.content h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  display: block;
  color: #0020c2;
  margin-top: 0rem;
  margin-bottom: 0.5rem    
}

.content.visible {
  opacity: 1;
}

.content > div {
  margin: 0 0 1rem 0;
  padding: 0;
}

.content p,
.content ul {
  margin-top: 0;
}

.content ul {
  padding-left: 1.2rem;
}

.content li {
  margin-bottom: 0.5rem;
}

.content p:first-of-type {
  margin-top: 0;
  padding-top: 0;
}

/* === MEDIA === */
@media (min-width: 769px) { 
  .main-layout {
    min-height: calc(100vh - 100px);
  }
}

@media (max-width: 768px) {

  body {
    font-size: 1.125rem;
    padding-left: 0;
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: #F5f5f5; 
    padding: 1rem 1rem 1rem 1rem;
  }

  .site-header h1 {
    font-size: 1.5rem;
    margin-left: 0;
  }

  .site-header h2 {
    font-size: 1.25rem;
    line-height: 1.2;
    margin-left: 0;
  }

  .main-layout {
    padding-top: 11rem;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0;
  }

  .sidebar {
    position: fixed;
    top: 5.2rem;
    left: 0;
    width: 100%;
    z-index: 99;
    background-color: #F5f5f5;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    padding: 0 1rem;
    border-right: none;
    margin-bottom: 0; 
    gap: 0;
    align-self: start;
  }

  .sidebar .toggle {
    font-size: 1rem;
    padding-left: 0;
    margin-bottom: 0;
  }

  .sidebar .toggle:last-child {
    margin-bottom: 1rem;
  }

  .sidebar .toggle.active {
    color: #f04a00;
    font-weight: 600;
  }

  .sidebar .toggle::before {
    display: none;
  }

  .content-area {
    padding: 1rem 1rem 1rem 1rem;
    max-width: 100%;
    align-self: start;
  }

  .background {
    background-size: cover;
    background-position: center;
    width: 100vw;
    height: 100vh;
    position: fixed;
  }

  .site-container {
    padding-bottom: 2rem;
  }

  html, body {
    overflow-x: hidden;
  }
}

/* === DEBUG === */
/* .debug-outline * {
  outline: 1px solid red !important; 
  background-color: rgba(255, 0, 0, 0.1) !important; 
  box-shadow: 0 0 0 1px blue !important; 
} */