/* ============================================================
   base.css — resets, typography, and global shared styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 300;
  transition: background var(--transition), color var(--transition);
}

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

a {
  color: inherit;
}

/* ── Shared layout ── */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 48px;
}

section {
  padding: 96px 0;
}

/* ── Section headers ── */
.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 44px;
}

.divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 52px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.2px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(91, 156, 246, 0.35);
}

[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 4px 20px rgba(43, 94, 167, 0.3);
}

/* ── Skill tags ── */
.skill-tag {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 400;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

/* ── Timeline tags ── */
.tl-tag {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
  font-weight: 400;
}

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

  section {
    padding: 64px 0;
  }
}
