/* =========================================
   GLOBAL RESET & BASE STYLES
   ========================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;

  /* Subtle architectural dot-grid background */
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Typography Hierarchy */
h1, h2, h3, .font-display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Single-Page Application View Switching */
.view-section {
  display: none;
  padding-top: calc(var(--header-height) + 32px);
  padding-bottom: 80px;
  animation: viewFadeIn 260ms ease-out;
}

.view-section.active {
  display: block;
}

@keyframes viewFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus Accessibility */
:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}
.navbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

@media (max-width: 640px) {
  .navbar-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand-logo {
    font-size: 1rem;
  }

  .navbar-actions {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }

  .navbar-actions .btn-sm {
    flex: 1;
    padding: 8px 6px;
    font-size: 0.78rem;
    white-space: nowrap;
    text-align: center;
  }
}