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

:root {
  --bg: #ffffff;
  --fg: #09090b;
  --muted: #71717a;
  --border: #e4e4e7;
  --accent: #18181b;
  --radius: 0.5rem;
  --font: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* Layout */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.logo {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--fg);
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s;
}

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

/* Hero */
.hero {
  padding: 6rem 0 5rem;
}

.avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 1.5rem;
  border: 1px solid var(--border);
}

.hero-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.hero-name {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-bio {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.btn-icon:hover {
  color: var(--fg);
  background: #f4f4f5;
  border-color: #d4d4d8;
}

/* Section */
.section { padding: 4rem 0; }
.section-alt { background: #fafafa; }

.section-inner { display: flex; flex-direction: column; gap: 1.5rem; }

.section-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Card */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--bg);
}

.card p { color: var(--muted); font-size: 14px; }

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 12px;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius);
  background: #f4f4f5;
  color: var(--fg);
}

/* Item grid (Stack / Hobby) */
.item-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .item-grid { grid-template-columns: repeat(3, 1fr); }
}

.item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color 0.15s;
}

.item:hover { border-color: #d4d4d8; }

.item-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: #3f3f46;
}

.item-name {
  font-size: 14px;
  font-weight: 500;
}

/* Works */
.container-wide { max-width: 1080px; }

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

@media (min-width: 1024px) {
  .work-grid { grid-template-columns: repeat(3, 1fr); }
}

.work {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

a.work:hover {
  border-color: var(--fg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.work-thumb {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #18181b;
}

.work-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
}

.work-title {
  font-size: 15px;
  font-weight: 600;
}

.work-desc {
  font-size: 14px;
  color: var(--muted);
}

.work-tags {
  display: flex;
  gap: 0.375rem;
  margin-top: auto;
  padding-top: 0.25rem;
}

.work-muted {
  border-style: dashed;
  background: #fafafa;
}

.work-muted .work-thumb { background: #f4f4f5; }
.work-muted .work-title { color: var(--muted); font-weight: 500; }

/* Post list */
.post-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.post-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  color: var(--fg);
}

.post-item:last-child { border-bottom: none; }
.post-item:hover { background: #fafafa; }

.post-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.post-meta {
  font-size: 12px;
  color: var(--muted);
}

.post-arrow {
  font-size: 14px;
  color: var(--muted);
  flex-shrink: 0;
  margin-left: 1rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer p {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
