:root {
  --bg: #0b0b0c;
  --bg-elevated: #141416;
  --border: #26262a;
  --border-hover: #38383e;
  --text: #e8e8ea;
  --text-muted: #9a9aa2;
  --text-dim: #7d7d84;
  --accent: #d7dbe0;
  --accent-dim: #9aa0a8;
  --accent-glow: rgba(215, 219, 224, 0.14);
  --mono: "SF Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  --radius: 10px;
  --maxw: 820px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent-glow);
  color: var(--text);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-dim);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: 0;
  left: -999px;
  z-index: 100;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 11, 12, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  flex-shrink: 0;
  display: block;
}

.brand-mark .mark-bg {
  stroke: var(--text-dim);
  opacity: 0.5;
}

.brand-mark .mark-fg {
  stroke: var(--accent);
}

nav.tabs {
  display: flex;
  gap: 20px;
}

nav.tabs a {
  position: relative;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 4px 0;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

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

nav.tabs a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px 88px;
}

.hero {
  padding: 8px 0 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.hero p.tagline {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
  max-width: 56ch;
}

.page-header {
  margin-bottom: 44px;
}

.page-header h1 {
  font-size: clamp(1.65rem, 4vw, 2.1rem);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.page-header p {
  color: var(--text-muted);
  margin: 0;
  max-width: 56ch;
}

.section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-bottom: 48px;
}

.card-grid.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card-grid.cols-1 {
  grid-template-columns: 1fr;
}

.bio-text {
  color: var(--text);
  font-size: 1rem;
}

.card {
  display: block;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.card:hover {
  border-color: var(--border-hover);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.entry-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 48px;
}

.entry {
  padding: 22px 4px;
  margin: 0 -4px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
}

.entry:first-child {
  padding-top: 4px;
}

.entry:last-child {
  border-bottom: none;
}

.entry .meta {
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.78rem;
  white-space: nowrap;
  padding-top: 2px;
}

.entry h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.entry p {
  margin: 0;
  color: var(--text-muted);
}

.entry p + p {
  margin-top: 8px;
}

.contact-link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border-hover);
  transition: color 0.15s ease, border-color 0.15s ease;
}

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

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s ease;
}

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

@media (max-width: 560px) {
  .entry {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
