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

:root {
  --color-bg: #fafaf9;
  --color-surface: #ffffff;
  --color-text: #1c1917;
  --color-muted: #78716c;
  --color-accent: #d97706;
  --color-border: #e7e5e4;
  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --max-w: 900px;
}

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

/* ── Navigation ── */
header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
}

/* ── Main content ── */
main {
  flex: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 64px 24px;
}

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: center;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--color-border);
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-text h1 span {
  color: var(--color-accent);
}

.hero-text .tagline {
  font-size: 1.1rem;
  color: var(--color-muted);
  margin-bottom: 24px;
}

.hero-text p {
  color: var(--color-muted);
  max-width: 480px;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}

/* ── Section ── */
section {
  margin-top: 64px;
}

section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

/* ── Skills / tags ── */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: var(--color-border);
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
}

/* ── Works grid ── */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.work-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.work-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.work-card img {
  width: 100%;
  display: block;
}

.work-card-body {
  padding: 20px;
}

.work-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.work-card-body p {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.work-card-body .tag {
  margin-top: 12px;
}

/* ── Hobbies list ── */
.hobby-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.hobby-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.hobby-item .icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.hobby-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.hobby-item p {
  font-size: 0.82rem;
  color: var(--color-muted);
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-info p {
  color: var(--color-muted);
  margin-bottom: 32px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--color-accent);
}

.contact-link .link-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-image img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}

/* ── Page hero ── */
.page-hero {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--color-muted);
  font-size: 1rem;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 32px 24px;
  font-size: 0.82rem;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-image {
    order: -1;
    max-width: 200px;
    margin: 0 auto;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-image {
    display: none;
  }
}
