/* =========================
   GLOBAL DESIGN SYSTEM
========================= */

:root {
  --bg: #ecebe5;
  --text: #0f1116;
  --muted: #666;
  --card-bg: #ffffff;
  --accent: #1f3a6b;
}

/* RESET */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* BASE */
body {
  font-family: 'Chivo', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* NAV */
nav {
  display: flex;
  justify-content: space-between;
  padding: 20px 40px;
  background: white;
  position: sticky;
  top: 0;
  border-bottom: 1px solid #ddd;
  z-index: 1000;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

/* LAYOUT */
.container {
  max-width: 1000px;
  margin: auto;
  padding: 60px 20px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

/* TYPOGRAPHY */
h1 {
  font-family: 'Newsreader', serif;
  font-size: 2.8rem;
  margin-bottom: 10px;
}

h2 {
  font-family: 'Newsreader', serif;
  font-weight: 500;
}

.meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

/* IMAGES */
img.profile {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* SECTIONS */
.section {
  margin-top: 60px;
}

/* CARDS */
.card {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 12px;
  margin-top: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  overflow: hidden;
}
/* make cards equal height */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  transition: 0.2s;
}

.card img {
  transition: transform 0.2s ease;
}

.card:hover img {
  transform: scale(1.03);
}

.card p {
  margin-top: 10px;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 20px;
  margin-top: 20px;
}

/* LINKS */
a {
  color: var(--accent);
}

a:hover {
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

.card img {
  width: 100%;
  height: 200px;        /* controls visual consistency */
  object-fit: cover;    /* crops nicely instead of stretching */
  border-radius: 10px;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-link:hover {
  text-decoration: none;
}

.email-link {
  color: #1f3a6b;
  text-decoration: none;
  position: relative;
  z-index: 2; /* ensures it overrides card click */
}

.email-link {
  font-size: 14px;
}

.email-link:hover {
  text-decoration: underline;
}