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

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --border: #222;
  --text: #ededed;
  --text-secondary: #888;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.hero {
  padding: 80px 0 48px;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.tagline {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.tagline a {
  color: var(--text);
  font-weight: 500;
}

.tagline a:hover {
  color: var(--accent);
}

.bio {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 560px;
  margin-bottom: 24px;
}

.bio a {
  color: var(--text);
  font-weight: 500;
}

.bio a:hover {
  color: var(--accent);
}

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

.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}

.link-pill:hover {
  border-color: #444;
  background: #1a1a1a;
  color: var(--text);
}

.link-pill svg {
  flex-shrink: 0;
}

/* Sections */
.section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 24px;
}

/* Work categories */
.work-category {
  margin-top: 24px;
}

.work-category + .work-category {
  margin-top: 32px;
}

.category-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* Work grid */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.work-category:last-child .work-grid {
  grid-template-columns: 1fr 1fr;
}

.work-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s;
}

.work-card:hover {
  border-color: #333;
}

.work-card h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.work-card h4 a {
  color: var(--text);
}

.work-card h4 a:hover {
  color: var(--accent);
}

.work-card p {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.badge-archived {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a16207;
  background: rgba(234, 179, 8, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 6px;
}

/* PR list */
.pr-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pr-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--text);
  transition: background 0.2s;
}

.pr-item:hover {
  background: var(--surface);
  color: var(--text);
}

.pr-tag {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.pr-tag.merged {
  color: #a855f7;
  background: rgba(168, 85, 247, 0.15);
}

.pr-title {
  font-size: 0.9375rem;
  font-weight: 500;
  flex: 1;
  min-width: 0;
}

.pr-number {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* Tweet grid */
.tweet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.tweet-card {
  display: block;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s;
  color: var(--text);
}

.tweet-card:hover {
  border-color: #333;
  color: var(--text);
}

.tweet-card p {
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tweet-date {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Video grid */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.video-card {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.video-card:hover {
  border-color: #333;
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface);
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.2s;
}

.video-card:hover .play-btn {
  opacity: 1;
}

/* Writing */
.writing-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 16px;
}

.writing-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--text);
  transition: background 0.2s;
}

.writing-item:hover {
  background: var(--surface);
  color: var(--text);
}

.writing-title {
  font-size: 0.9375rem;
  font-weight: 500;
}

.writing-source {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  white-space: nowrap;
  margin-left: 16px;
}

/* Footer */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

footer p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 600px) {
  .hero {
    padding: 48px 0 32px;
  }

  h1 {
    font-size: 2rem;
  }

  .work-grid,
  .work-category:last-child .work-grid,
  .video-grid,
  .tweet-grid {
    grid-template-columns: 1fr;
  }

  .writing-item {
    flex-direction: column;
    gap: 2px;
  }

  .writing-source {
    margin-left: 0;
  }
}
