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

:root {
  --bg: #fcfcfa;
  --card: #ffffff;
  --text: #222;
  --muted: #6b6b6b;
  --line: #e5e3dd;
  --hover: #f1efe9;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

main {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Profile */
.profile {
  text-align: center;
  padding: 4rem 0 2.5rem;
}

.avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.profile h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.bio {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.4rem;
}

/* Links */
.links {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.15s, transform 0.1s;
}

.links a:hover {
  border-color: var(--muted);
  transform: translateY(-1px);
}

.links .name {
  font-weight: 600;
}

.links .handle {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Works */
.works {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}

.works h2 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 1.25rem;
}

.works ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.works a {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem;
  margin: 0 -1rem;
  border-radius: 8px;
  transition: background 0.15s;
}

.works a:hover {
  background: var(--hover);
}

.works .title {
  font-weight: 600;
}

.works .desc {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
}
