/* === Shared styles for vinhtrinh.com === */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  color: #1a1a2e;
  background: #f8f9fa;
}

/* --- Nav bar --- */
nav {
  background: #1a1a2e;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

nav a {
  color: #a0a0b8;
  text-decoration: none;
  padding: 1rem 1.25rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.2s, border-color 0.2s;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  color: #ffffff;
}

nav a.active {
  color: #ffffff;
  border-bottom-color: #6c63ff;
}

/* --- Page layout --- */
.page-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 56px);
  padding: 2rem;
  text-align: center;
}

/* --- Shared typography --- */
.page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1a1a2e;
}

.page-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: #555;
  max-width: 500px;
  line-height: 1.6;
}
