:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --link: #2563eb;
  --link-hover: #1d4ed8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --text: #e5e5e5;
    --muted: #9ca3af;
    --border: #2a2a2a;
    --link: #60a5fa;
    --link-hover: #93c5fd;
  }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
  padding: 2rem 1.25rem;
}

main {
  max-width: 680px;
  margin: 0 auto;
}

/* Profile */
.profile {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.profile img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-text h1 {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.profile-text .tagline {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.profile-text .bio {
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
}

.profile-links a {
  color: var(--link);
  text-decoration: none;
  font-size: 0.875rem;
}

.profile-links a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Sections */
section {
  margin-bottom: 2.5rem;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 2rem;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

/* Now */
.now-content {
  font-size: 0.95rem;
}

.now-updated {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* Writing */
.writing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.writing-list a {
  color: var(--link);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.writing-list a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.writing-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* Footer */
footer {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* Mobile */
@media (max-width: 480px) {
  .profile {
    flex-direction: column;
    gap: 1rem;
  }
}
