:root {
  color-scheme: light dark;
  --max-width: 50rem;
  --fg: #1a1a1a;
  --bg: #fdfdfd;
  --muted: #666;
  --accent: #0b5fa5;
  --accent-research: #8c2f39;
  --accent-warm: #d6620a;
  --accent-photo: #1a8f7b;
  --accent-aws: #b35900;
}

* {
  box-sizing: border-box;
}

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

.site-header,
main,
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
}

.site-title {
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
}

.site-header nav a {
  margin-left: 1rem;
  color: var(--muted);
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--accent);
}

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

.site-footer {
  color: var(--muted);
  font-size: 0.85rem;
}

.notes-list {
  list-style: none;
  padding: 0;
}

.notes-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid #eee;
}

.note-date {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Hero */
.hero {
  padding: 2.5rem 0 1.5rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: 2.1rem;
  line-height: 1.15;
}

.hero-lede {
  font-size: 1.1rem;
  max-width: 36rem;
}

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

/* Focus areas */
.focus-section {
  margin: 0.5rem 0 3rem;
}

.focus-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.focus-pill {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  font-size: 0.85rem;
  font-weight: 600;
}

.focus-pill-genai {
  color: var(--accent);
}

.focus-pill-agentic {
  color: var(--accent-warm);
}

.focus-pill-governance {
  color: var(--accent-research);
}

.focus-pill-quantum {
  color: var(--accent-photo);
}

/* Research background */
.research-section {
  margin: 3rem 0;
}

.mini-stats {
  display: flex;
  gap: 1.75rem;
  margin: 1rem 0 1.25rem;
}

.mini-stat {
  display: flex;
  flex-direction: column;
}

.mini-stat-number {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-research);
}

.mini-stat-label {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Timeline */
.timeline-section {
  margin: 3rem 0;
}

.timeline-section h2 {
  margin-bottom: 1.25rem;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.75rem;
  padding: 0 0 0.85rem 1.25rem;
  font-size: 0.92rem;
}

.timeline-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  bottom: calc(0.85rem - 0.15rem);
  width: 4px;
  border-radius: 2px;
  background: var(--muted);
}

.timeline-row.timeline-research::before {
  background: var(--accent-research);
}

.timeline-row.timeline-industry::before {
  background: var(--accent);
}

.timeline-row.timeline-current::before {
  background: linear-gradient(to top, var(--accent-aws), transparent);
}

.timeline-row-year {
  flex: 0 0 2.75rem;
  align-self: flex-end;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.timeline-row-body {
  flex: 1 1 16rem;
}

.timeline-row.timeline-research .timeline-row-year {
  color: var(--accent-research);
}

.timeline-row.timeline-industry .timeline-row-year {
  color: var(--accent);
}

.timeline-row.timeline-current .timeline-row-year {
  color: var(--accent-aws);
}

.timeline-row.timeline-research .timeline-org {
  color: var(--accent-research);
}

.timeline-row.timeline-industry .timeline-org {
  color: var(--accent);
}

.timeline-row.timeline-current .timeline-org {
  color: var(--accent-aws);
}

.timeline-milestone {
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
  transform: translateY(-50%);
}

.timeline-milestone::before {
  content: "";
  width: 8px;
  height: 2px;
  background: var(--bg);
  flex-shrink: 0;
}

.timeline-milestone-label {
  margin-left: 1.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-aws);
  white-space: nowrap;
}

/* Cards */
.cards-section {
  margin: 3rem 0;
}

.writing-group {
  margin: 0 0 1.75rem;
}

.writing-group:last-child {
  margin-bottom: 0;
}

.writing-group h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem;
  border: 1px solid #eee;
  border-left: 3px solid #eee;
  border-radius: 0.5rem;
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.15s, transform 0.15s;
}

.card:not(.timeline-card):hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card-talk {
  border-left-color: var(--accent-warm);
}

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

.card-writing {
  border-left-color: var(--accent);
}

.card-paper {
  border-left-color: var(--accent-research);
}

.card-oss {
  border-left-color: var(--accent-aws);
}

.card-kicker {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.card-talk .card-kicker {
  color: var(--accent-warm);
}

.card-writing .card-kicker {
  color: var(--accent);
}

.card-paper .card-kicker {
  color: var(--accent-research);
}

.card-oss .card-kicker {
  color: var(--accent-aws);
}

.card-description {
  font-size: 0.85rem;
  color: var(--muted);
}

.card-title {
  font-weight: 600;
}

/* Pills / link list */
.links-section {
  margin: 3rem 0;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #ddd;
  text-decoration: none;
  color: var(--fg);
  font-size: 0.9rem;
}

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

.pill-accent {
  border-color: var(--accent-photo);
  color: var(--accent-photo);
  font-weight: 600;
}

/* Photography banner */
.photo-banner {
  margin: 3rem 0;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border-left: 3px solid var(--accent-photo);
  background: linear-gradient(135deg, #e8f6f3, #f7fbf3);
}

.photo-banner h2 {
  margin-top: 0;
  color: var(--accent-photo);
}

.notes-teaser {
  margin: 3rem 0 1rem;
  text-align: right;
}

@media (max-width: 600px) {
  .mini-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hero h1 {
    font-size: 1.6rem;
  }
}
