html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin-bottom: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

main {
  min-height: calc(100vh - 180px);
  padding-top: 2rem;
}

/* Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-size: 1.5rem;
}

.nav-link {
  font-weight: 500;
  margin-left: 1rem;
  transition: color 0.3s ease;
}

/* Cards */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
}

.card:hover {
  transform: translateY(-5px);
}

.card-title {
  color: var(--heading);
  font-weight: 600;
}

/* Buttons */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem var(--surface), 0 0 0 0.25rem var(--link);
}

.btn-primary {
  font-weight: 500;
  transition: all 0.3s ease;
}

/* Forms */
.form-control {
  border-radius: 6px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Typography */
.display-4, .display-5 {
  font-weight: 700;
  color: var(--heading);
}

.lead {
  font-weight: 500;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .display-4, .display-5 {
    font-size: 2rem;
  }

  .nav-link {
    margin-left: 0;
    padding: 0.5rem 0;
  }
}
