/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:    #fdf8f3;
  --warm-100: #f5ede0;
  --warm-200: #e8d5bb;
  --warm-600: #9a7a56;
  --warm-700: #7a5c38;
  --text:     #2d2319;
  --muted:    #7a6a58;
  --accent:   #c0622f;
  --accent-h: #a3501f;
  --radius:   12px;
  --max-w:    720px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
}

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

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(253, 248, 243, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--warm-200);
}

.nav-logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: 0.05em;
}
.nav-logo:hover { text-decoration: none; }

.nav nav { display: flex; gap: 1.5rem; }
.nav nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav nav a:hover { color: var(--accent); text-decoration: none; }

/* ── Hero ── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 5rem 2rem 4rem;
  gap: 1rem;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--warm-200);
  color: var(--warm-700);
  font-weight: 700;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 500;
}

.hero-bio {
  max-width: 520px;
  color: var(--muted);
  font-size: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--warm-200);
  border-radius: 999px;
  background: white;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.social-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(192,98,47,0.1);
  text-decoration: none;
}

/* ── Sections ── */
.section { padding: 5rem 2rem; }
.section:nth-child(even) { background: var(--warm-100); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}
.section h2::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 0.4rem;
}

/* ── About ── */
.about p { color: var(--muted); margin-bottom: 1rem; }
.about p:last-child { margin-bottom: 0; }

/* ── Project grid ── */
.project-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.project-card {
  background: white;
  border: 1px solid var(--warm-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.project-card:hover {
  box-shadow: 0 6px 24px rgba(122,92,56,0.1);
  transform: translateY(-2px);
}

.project-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
}

.project-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.platform-badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--warm-100);
  color: var(--warm-700);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--warm-200);
}

.project-tagline {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.project-desc {
  font-size: 0.93rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
  line-height: 1.65;
}

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.87rem;
  font-weight: 600;
  color: white;
  background: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background 0.2s;
}
.app-store-btn:hover {
  background: var(--accent-h);
  text-decoration: none;
}
.app-store-btn[href="#"] { display: none; }

/* ── App icon ── */
.app-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  margin-left: auto;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.app-icon[src=""] { display: none; }

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 2.5rem 2rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--warm-200);
}

/* ── Responsive ── */
@media (min-width: 600px) {
  .project-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .nav { padding: 0.85rem 1.25rem; }
  .hero { padding: 3.5rem 1.25rem 3rem; }
  .section { padding: 3.5rem 1.25rem; }
}
