:root {
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Source Serif 4', 'Times New Roman', serif;
  --bg: #f4f5f7;
  --panel: #ffffff;
  --panel-muted: #f9fafb;
  --text: #0c0f16;
  --muted: #5a6070;
  --accent: #7b1b1b;
  --accent-soft: #b7403b;
  --border: #e5e7ed;
  --shadow: 0 14px 36px rgba(12, 15, 22, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: radial-gradient(circle at 20% 20%, rgba(123, 27, 27, 0.04), transparent 28%),
    radial-gradient(circle at 70% 0%, rgba(123, 27, 27, 0.03), transparent 26%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

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

main.page-shell {
  display: block;
}

.page-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 22px 72px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: 0.01em;
}

h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.15;
}

h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}

.muted {
  color: var(--muted);
}

.lede {
  margin: 8px 0 12px;
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
}

.role {
  margin: 2px 0 4px;
  color: var(--accent);
  font-weight: 650;
  line-height: 1.45;
}

.inline-link {
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
}

.inline-link:hover {
  text-decoration: underline;
  color: var(--accent-soft);
}

.inline-button {
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  color: var(--accent);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.inline-button:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(12, 15, 22, 0.08);
}

.tab-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 10px 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.tab-link {
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  background: linear-gradient(135deg, #ffffff, #fafbfc);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

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

.tab-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.layout {
  display: block;
}

.content {
  display: grid;
  gap: 36px;
  margin-top: 28px;
}

/* === Hero === */
.hero {
  display: grid;
  gap: 16px;
}

.hero-card {
  background: linear-gradient(145deg, var(--panel), #fcfbfc 65%, #f7f2f2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 24px 22px;
  box-shadow: var(--shadow);
}

.hero-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
}

.hero-avatar {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--panel-muted);
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: baseline;
  margin-bottom: 6px;
}

.hero-meta .name-block h1 {
  margin-bottom: 4px;
}

.hero-meta .muted {
  margin: 2px 0 0;
}

.contact-row,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
  align-items: center;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.highlight-card {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-muted);
  box-shadow: 0 6px 18px rgba(12, 15, 22, 0.05);
}

.highlight-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.highlight-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

/* === Sections === */
.section {
  display: grid;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 20px 18px;
  box-shadow: var(--shadow);
}

.card-section {
  background: linear-gradient(160deg, #ffffff 0%, #fbfbfd 60%, #f9f6f5 100%);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.section-header .section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-header .divider {
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  display: inline-block;
}

.section small {
  font-size: 13px;
  color: var(--muted);
}

.bio-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  align-items: start;
}

.focus-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.focus-list li {
  margin-bottom: 8px;
}

/* === Lists / timeline === */
.list-stack {
  display: grid;
  gap: 18px;
}

.list-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--border);
}

.list-row:last-child {
  border-bottom: none;
}

.list-label {
  font-weight: 600;
  color: var(--muted);
}

.item-title {
  font-weight: 650;
  margin-bottom: 4px;
}

.meta {
  font-size: 13px;
  color: var(--muted);
  margin: 2px 0 6px;
}

.links-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  margin-right: 6px;
  border-radius: 999px;
  background: #f2f3f7;
  color: #1f2937;
  font-size: 11px;
  border: 1px solid var(--border);
}

/* Projects */
.project-row .thumb {
  width: 120px;
  height: 72px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--panel-muted);
}

.project-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Resources */
.resource-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.resource-block {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-muted);
}

.resource-block ul {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}

.resource-block li {
  margin: 6px 0;
  font-size: 14px;
}

.resource-block .item-title {
  font-family: var(--font-heading);
  font-size: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: #f3f4f6;
  color: #111827;
}

.panel.inline-panel {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--panel-muted);
  border: 1px solid var(--border);
  margin-top: 8px;
  font-size: 13px;
}

/* Footer */
.site-footer {
  max-width: 1080px;
  margin: 8px auto 36px;
  padding: 0 22px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  font-size: 12px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 6px;
}

/* Responsiveness */
@media (max-width: 960px) {
  .page-shell {
    padding: 36px 18px 60px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .bio-grid,
  .list-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .page-shell {
    padding: 28px 16px 48px;
  }

  .tab-nav {
    padding: 8px;
  }

  .hero-card {
    padding: 18px;
  }
}