/* Custom styles for digitalnative.net */

:root {
  --pico-font-family: "Inconsolata", "SFMono-Regular", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace;
}

body {
  font-family: var(--pico-font-family);
  background-color: black;
}

/* Override PicoCSS to use Inconsolata everywhere */
* {
  font-family: var(--pico-font-family) !important;
}

/* Ensure proper spacing and readability for monospace font */
body {
  line-height: 1.3;
  font-size: 1rem;
  font-weight: 450;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 650;
  line-height: 1.3;
}

p {
  font-family: "Roboto Slab", serif !important;
  margin-bottom: 1rem;
}

a {
  font-weight: bold;
  color: #666;
}

/* Full page video background */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
}

.background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: -1;
}

/* Wider margins for home page */
.template-homepage .container-fluid {
  max-width: clamp(800px, 85vw, 1200px);
  margin: 0 auto;
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
  position: relative;
  z-index: 2;
}

/* Ensure content is readable over video */
.template-homepage {
  min-height: 100vh;
}

.template-homepage main {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Responsive design improvements */
@media (max-width: 768px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.3rem; }

  /* Slightly increase paragraph font size on tablets */
  p {
    font-family: "Roboto Slab", serif !important;
    font-size: 1.2rem;
  }
  
  .template-homepage .container-fluid {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .template-homepage main {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  
}

@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.3rem; }
  
  /* Increase paragraph font size on mobile for better readability */
  p {
    font-family: "Roboto Slab", serif !important;
    font-size: 1.2rem;
  }
  
  .template-homepage .container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  /* Hide video background on small devices to improve performance */
  .video-background {
    display: none;
  }
}

/* Header layout styling */
header .grid {
  align-items: start;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.logo-container {
  padding-left: 2rem;
  align-self: center;
}

header img {
  max-width: min(300px, 80vw);
  height: auto;
}

.nav-container {
  padding-right: 4rem;
  justify-self: end;
  align-self: start;
}

/* Header navigation styling */
.header-nav ul {
  gap: 1.5rem;
}

.header-nav li {
  margin: 0;
  align: right;
}

.header-nav a {
  font-weight: bold;
  padding: 0.2rem 0;
  text-decoration: none;
  color: #666;
  transition: opacity 0.3s ease;
}

.header-nav a:hover {
  opacity: 0.7;
}

/* Responsive header for mobile */
@media (max-width: 768px) {
  header .grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }
  
  .header-nav ul {
    justify-content: center;
    gap: 1rem;
  }
  
  .template-homepage section {
    margin-bottom: 2rem;
  }
  
  .template-homepage p {
    font-family: "Roboto Slab", serif !important;
    margin-bottom: 1.2rem;
  }
}

@media (max-width: 480px) {
  .header-nav ul {
    flex-direction: row;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
}
