/* Base styles - shared across all themes */
* { 
  box-sizing: border-box; 
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

header > div:first-child {
  font-weight: 700;
}

nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  margin-left: 1.25rem;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

nav a:hover, 
nav a.active { 
  color: var(--text-heading); 
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  margin-bottom: 1rem;
}

.badge {
  display: inline-block;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  border-radius: 9999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  color: var(--accent);
}

.profile-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: center;
  backdrop-filter: blur(10px);
}

.profile-card img {
  width: 120px;
  height: 120px;
  border-radius: 9999px;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 2px solid var(--card-border);
}

section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 0;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  margin-bottom: 1.5rem;
}

h2 { 
  margin-bottom: 1.25rem; 
  margin-top: 2rem;
}

h3 {
  margin-top: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 1.25rem;
  backdrop-filter: blur(10px);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.card h3 a {
  color: var(--accent);
  text-decoration: none;
}

.card h3 a:hover {
  text-decoration: underline;
}

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

a.link:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  color: var(--muted);
  padding: 3rem 1.25rem 4rem;
}

/* Additional styles for other pages */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 1.25rem;
  backdrop-filter: blur(10px);
}

.contact-card h3 {
  margin-top: 0;
  color: var(--accent);
}

ul {
  color: var(--text);
}

ul li {
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 850px) {
  .hero { 
    grid-template-columns: 1fr; 
  }
  
  header { 
    flex-direction: column;
  }
  
  nav a:first-child {
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  nav {
    flex-direction: column;
    align-items: stretch;
  }
  
  nav a {
    margin-left: 0;
    padding: 0.5rem;
    text-align: center;
  }
}
