:root {
  --bg: #111111;
  --bg-subtle: #1a1a1a;
  --text: #e0e0e0;
  --text-muted: #888888;
  --text-dim: #555555;
  --accent: #5eead4;
  --accent-hover: #99f6e4;
  --badge-bg: rgba(94, 234, 212, 0.15);
  --content-width: 620px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

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

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

/* Layout */

main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 80px 24px 120px;
}

/* Header */

header {
  margin-bottom: 48px;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 12px;
  display: block;
}

header h1 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
}

header h1 a {
  color: var(--text);
}

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

header time {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
}

/* Bio */

.bio {
  margin-bottom: 32px;
}

.bio p {
  margin-bottom: 16px;
}

.bio p:last-child {
  margin-bottom: 0;
}

.core-ideas {
  margin-top: 24px;
}

.core-ideas p:first-child {
  margin-bottom: 12px;
}

.core-ideas p {
  margin-bottom: 4px;
  line-height: 1.6;
}

.dim {
  color: #cccccc;
  font-style: italic;
  margin-top: 12px !important;
}

/* Contact */

.contact {
  margin-bottom: 48px;
  font-size: 14px;
}

.contact a {
  color: #ffffff;
}

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

.social-icon {
  width: 25px;
  height: 25px;
  vertical-align: middle;
  filter: brightness(0) invert(1);
  transition: filter 0.15s;
}

.contact a:hover .social-icon {
  filter: brightness(0) invert(0.85) sepia(1) saturate(3) hue-rotate(130deg);
}

.separator {
  color: var(--text-dim);
  margin: 0 8px;
}

/* Article Sections */

.articles {
  margin-bottom: 40px;
}

.articles h2,
.contact h2 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.articles ul {
  list-style: none;
}

.articles li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 0;
}

.articles li a {
  color: var(--text);
  max-width: 70%;
  margin-right: auto;
}

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

.articles li time {
  font-size: 13px;
  color: var(--text-dim);
  white-space: nowrap;
  flex-shrink: 0;
}

/* New Badge — Integrity Mind pill pattern */

.badge {
  display: inline-block;
  border-radius: 9999px;
  background: var(--badge-bg);
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Modal */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-subtle);
  border: 1px solid var(--text-dim);
  border-radius: 8px;
  padding: 32px;
  max-width: 400px;
  text-align: center;
}

.modal p {
  color: var(--text);
  font-size: 15px;
  margin-bottom: 16px;
}

.modal-link {
  display: block;
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 24px;
}

.modal-link:hover {
  color: var(--accent-hover);
}

.modal-close {
  background: none;
  border: 1px solid var(--text-dim);
  border-radius: 4px;
  color: var(--text-muted);
  padding: 6px 20px;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font);
  transition: color 0.15s, border-color 0.15s;
}

.modal-close:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

/* Responsive */

@media (max-width: 480px) {
  main {
    padding: 48px 20px 80px;
  }

  header h1 {
    font-size: 18px;
  }
}
