.nav-list.open ~ .nav-overlay {
  display: block;
}

@media (max-width: 767px) {
  .home-grid {
    min-height: auto;
  }

  .terminal {
    height: auto;
  }

  .nav-toggle {
    padding: 12px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .home-grid {
    padding: 1rem;
    gap: 1rem;
  }

  .terminal-body {
    min-height: 160px;
    max-height: 240px;
    font-size: 0.78rem;
  }

  .terminal {
    font-size: 0.78rem;
  }

  .page-content {
    padding: 2rem 1rem;
  }

  .placeholder-page {
    padding: 2rem 1rem;
    min-height: calc(100vh - var(--header-height) - 80px);
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }
}

@media (min-width: 768px) {
  .section {
    padding: 4rem 0;
  }
}

@media (prefers-contrast: high) {
  :root {
    --color-text: #ffffff;
    --color-text-dim: #cccccc;
  }

  [data-theme="light"] {
    --color-text: #000000;
    --color-text-dim: #333333;
  }

  .glass {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
