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

:root {
  --color-bg: #ffffff;
  --color-text: #111827;
  --color-text-muted: #6b7280;
  --color-blue: #2563eb;
  --color-blue-dark: #1d4ed8;
  --color-border: #e5e7eb;
  --color-card-bg: #f9fafb;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --radius: 0.75rem;
}

html { font-family: var(--font-sans); color: var(--color-text); background: var(--color-bg); }
body { min-height: 100vh; display: flex; flex-direction: column; }

a { color: var(--color-blue); text-decoration: none; }
a:hover { color: var(--color-blue-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ── Layout ── */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* ── Header / Nav ── */
.site-header {
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-logo img { height: 40px; width: auto; }
.site-logo span { font-size: 1.1rem; font-weight: 700; color: var(--color-text); letter-spacing: -0.02em; }
.site-nav { display: flex; gap: 2rem; list-style: none; }
.site-nav a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
}
.site-nav a:hover { color: var(--color-blue); text-decoration: none; }

/* ── Footer ── */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 0;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}
.site-footer .container { display: flex; flex-direction: column; gap: 0.75rem; }
.site-footer p { line-height: 1.6; }

/* ── Hero ── */
.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--color-text);
}

/* ── Card grid ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0 4rem;
}
.card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
.card-image { aspect-ratio: 16/9; overflow: hidden; background: var(--color-card-bg); }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.25rem 1.5rem 1.5rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.card-meta { font-size: 0.75rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.card-title { font-size: 1.1rem; font-weight: 700; line-height: 1.3; color: var(--color-text); }
.card-title:hover { color: var(--color-blue); text-decoration: none; }
.card-excerpt { font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.6; margin-top: 0.25rem; flex: 1; }

/* ── Post / Page content ── */
.page-header { padding: 3rem 0 2rem; border-bottom: 1px solid var(--color-border); margin-bottom: 2.5rem; }
.page-header h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.page-header .post-meta { margin-top: 0.75rem; font-size: 0.875rem; color: var(--color-text-muted); }

.post-content { max-width: 720px; padding-bottom: 4rem; }
.post-content h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 0.75rem; }
.post-content h3 { font-size: 1.2rem; font-weight: 700; margin: 1.75rem 0 0.5rem; }
.post-content p { line-height: 1.75; margin-bottom: 1.25rem; color: var(--color-text); }
.post-content ul, .post-content ol { margin: 0 0 1.25rem 1.5rem; line-height: 1.75; }
.post-content li { margin-bottom: 0.4rem; }
.post-content blockquote { border-left: 4px solid var(--color-blue); margin: 1.5rem 0; padding: 0.75rem 1.25rem; color: var(--color-text-muted); font-style: italic; }
.post-content hr { border: none; border-top: 1px solid var(--color-border); margin: 2.5rem 0; }
.post-content img { border-radius: 0.5rem; margin: 1.5rem 0; }
.post-content figure { margin: 1.5rem 0; }
.post-content figcaption { font-size: 0.85rem; color: var(--color-text-muted); text-align: center; margin-top: 0.5rem; }
.post-content strong { font-weight: 700; }
.post-content em { font-style: italic; }
.post-content code { background: var(--color-card-bg); padding: 0.15em 0.4em; border-radius: 0.25rem; font-size: 0.9em; font-family: monospace; }

/* ── About page ── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2rem; margin: 2.5rem 0; }
.team-card { display: flex; flex-direction: column; gap: 0.75rem; }
.team-card img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; }

/* ── Section utility ── */
.section { padding: 3rem 0; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .site-nav { gap: 1rem; }
  .card-grid { grid-template-columns: 1fr; }
}
