@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── TOKENS ── */
:root {
  --bg: #ffffff;
  --border: #e5e7eb;
  --text: #111111;
  --text-muted: #6b7280;
  --font: 'Inter', system-ui, sans-serif;
  --max-w: 960px;
  --nav-h: 64px;

  /* 3 font sizes only */
  --fs-sm: 12px;   /* labels, tags, meta, footer */
  --fs-base: 15px; /* body, nav, cards, contact  */
  --fs-hero: clamp(32px, 5vw, 52px); /* hero name only */
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

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

.nav-logo {
  font-weight: 800;
  font-size: var(--fs-base);
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.3px;
}

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

.nav-links a {
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--text); }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ── SECTIONS ── */
section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 24px;
}

section + section { border-top: 1px solid var(--border); }

.section-label {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 12px;
}

/* ── HERO ── */
#hero {
  padding-top: 48px;
  padding-bottom: 48px;
}

.hero-name {
  font-size: var(--fs-hero);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: var(--fs-base);
  color: var(--text-muted);
  max-width: 520px;
}

/* ── ABOUT ── */
.about-bio {
  font-size: var(--fs-base);
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 24px;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── TAGS (shared by skill-tag and project-tag) ── */
.skill-tag,
.project-tag {
  background: #f3f4f6;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: var(--fs-sm);
  font-weight: 500;
}

/* ── CARDS (shared base) ── */
.project-card,
.blog-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.15s;
}

.project-card:hover,
.blog-card:hover {
  border-color: #9ca3af;
  transform: translateY(-2px);
}

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

.project-card h3 {
  font-size: var(--fs-base);
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-card h3 .arrow {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  transition: transform 0.15s;
}

.project-card:hover h3 .arrow {
  transform: translate(2px, -2px);
  color: var(--text);
}

.project-card p {
  font-size: var(--fs-base);
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 16px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ── BLOG ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.blog-date {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}

.blog-card h3 {
  font-size: var(--fs-base);
  font-weight: 700;
  margin-bottom: 8px;
}

.blog-card p {
  font-size: var(--fs-base);
  color: var(--text-muted);
  flex: 1;
}

.view-all {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.view-all:hover { text-decoration: underline; }

/* ── BLOG INLINE LIST ── */
.blog-list-inline {
  max-width: 640px;
  margin-bottom: 20px;
}

.blog-list-item-inline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}

.blog-list-item-inline:first-child { border-top: 1px solid var(--border); }

.blog-list-item-inline:hover .post-title-inline { color: var(--text-muted); }

.post-title-inline {
  font-size: var(--fs-base);
  font-weight: 600;
  transition: color 0.15s;
}

.post-meta-inline {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── HOBBIES / PHOTOGRAPHY ── */
.hobby-intro {
  font-size: var(--fs-base);
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 24px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.photo-slot {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 4px;
  background: #f3f4f6;
}

.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.photo-slot:hover img {
  transform: scale(1.03);
}

.photo-placeholder {
  background: #f3f4f6;
  border: 1px solid var(--border);
}

@media (max-width: 640px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── CONTACT ── */
.contact-text {
  font-size: var(--fs-base);
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 24px;
}

.contact-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: var(--fs-base);
  font-weight: 600;
  transition: border-color 0.15s, transform 0.1s;
}

.contact-link:hover {
  border-color: #9ca3af;
  transform: translateY(-1px);
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
  }
  .nav-hamburger { display: flex; }
  section { padding: 48px 20px; }
  #hero { padding-top: 32px; padding-bottom: 32px; }
}
