/* ── Reset ─────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Tokens ────────────────────────────────────────────────────────────── */
:root {
  --bg: #0f0d0a;
  --surface: #1a1612;
  --border: #2e2720;
  --cream: #f0ebe0;
  --muted: #8a7e6e;
  --gold: #c9962a;
  --sepia: #7a5c2e;
  --rust: #b5381e;
  --sage: #3d6b4f;
}

/* ── Base ──────────────────────────────────────────────────────────────── */
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Layout ────────────────────────────────────────────────────────────── */
.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  min-height: 100vh;
}

/* ── Header / identity ─────────────────────────────────────────────────── */
.identity {
  text-align: center;
  margin-bottom: 24px;
}

.avatar-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid var(--border);
  overflow: hidden;
  margin: 0 auto 28px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  font-size: 48px;
  color: var(--muted);
  opacity: .4;
}

.identity-name {
  font-family: 'EB Garamond', serif;
  font-size: 42px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: .01em;
  color: var(--cream);
  margin-bottom: 16px;
}

.identity-bio {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 480px;
  margin: 0 auto 12px;
}

.identity-bio-af {
  font-size: 13px;
  color: #5a5040;
  font-style: italic;
  max-width: 480px;
  margin: 0 auto;
}

/* ── Divider ───────────────────────────────────────────────────────────── */
.divider {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: 24px auto;
}

/* ── Project cards ─────────────────────────────────────────────────────── */
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 800px;
}

.project-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  transition: all .18s;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s;
}

.project-card:hover {
  border-color: #3e3428;
  background: #201c16;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .4);
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card.archive::before {
  background: var(--sepia);
}

.project-card.blog::before {
  background: var(--sage);
}

.card-icon {
  font-size: 24px;
  margin-bottom: 14px;
  display: block;
}

.card-title {
  font-family: 'EB Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 6px;
}

.card-title-af {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 12px;
}

.card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 24px;
  font-size: 11.5px;
  color: #3a3028;
  border-top: 1px solid var(--border);
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 560px) {
  .projects {
    grid-template-columns: 1fr;
  }

  .identity-name {
    font-size: 32px;
  }
}