body {
  letter-spacing: -0.01em;
}

.navbar {
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--atm-border);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
  gap: 2rem;
  align-items: center;
  padding: 3rem 0 2rem 0;
}

.hero {
    display: grid;
    grid-template-columns: 6fr 3fr;
    gap: 3rem;
    align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.95;
  margin-bottom: 1rem;
}

.hero h3 {
  color: var(--atm-muted);
  font-weight: 500;
}

.hero-card, .project-card, .publication, .post-card {
  border: 1px solid var(--atm-border);
  border-radius: 18px;
  padding: 1.25rem;
  background: var(--atm-card);
  box-shadow: 0 12px 32px rgba(20, 30, 50, 0.06);
}

.hero-card {
  font-size: 0.98rem;
}

.btn {
  border-radius: 999px;
  padding: 0.55rem 1rem;
  margin-right: 0.4rem;
  text-decoration: none;
}

.btn-primary {
  background: var(--atm-accent);
  color: white !important;
  border: 1px solid var(--atm-accent);
}

.btn-outline {
  border: 1px solid var(--atm-border);
}

.btn-sm {
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
}

.project-card, .publication {
  margin-bottom: 1rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.post-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(20, 30, 50, 0.10);
}

.post-tag {
  color: var(--atm-accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.callout-note {
  border-left: 4px solid var(--atm-accent);
  padding: 1rem;
  background: rgba(31, 95, 191, 0.08);
  border-radius: 12px;
}

.timeline {
  border-left: 2px solid var(--atm-border);
  padding-left: 1rem;
}

.quarto-title-banner {
  border-radius: 0 0 24px 24px;
}

@media (max-width: 800px) {
  .hero, .post-grid {
    grid-template-columns: 1fr;
  }
}

/* Dark mode fixes */
html[data-bs-theme="dark"] {
  --atm-card: rgba(30, 35, 45, 0.92);
  --atm-border: rgba(255, 255, 255, 0.14);
  --atm-muted: #c4c9d4;
  --atm-ink: #f1f3f7;
}

html[data-bs-theme="dark"] body {
  color: #f1f3f7;
}

html[data-bs-theme="dark"] .hero-card,
html[data-bs-theme="dark"] .project-card,
html[data-bs-theme="dark"] .publication,
html[data-bs-theme="dark"] .post-card {
  background: var(--atm-card);
  color: #f1f3f7;
  border-color: var(--atm-border);
}

html[data-bs-theme="dark"] .hero h3,
html[data-bs-theme="dark"] .post-card p,
html[data-bs-theme="dark"] .project-card p,
html[data-bs-theme="dark"] .publication p {
  color: #c4c9d4;
}

html[data-bs-theme="dark"] a {
  color: #8bb8ff;
}

html[data-bs-theme="dark"] .btn-outline {
  color: #f1f3f7 !important;
  border-color: rgba(255, 255, 255, 0.25);
}


/* Add to assets/css/styles.css */

.timeline{
  position:relative;
  margin:2rem 0;
}

.timeline::before{
  content:"";
  position:absolute;
  left:180px;
  top:0;
  bottom:0;
  width:2px;
  background:var(--atm-border);
}

.timeline-item{
  display:grid;
  grid-template-columns:160px 1fr;
  gap:2rem;
  margin-bottom:2rem;
  position:relative;
}

.timeline-item::before{
  content:"";
  position:absolute;
  left:173px;
  top:12px;
  width:14px;
  height:14px;
  border-radius:50%;
  background:var(--atm-accent);
}

.timeline-date{
  text-align:right;
  color:var(--atm-muted);
}

.timeline-content{
  background:var(--atm-card);
  border:1px solid var(--atm-border);
  border-radius:16px;
  padding:1.25rem;
}

@media (max-width:700px){
  .timeline::before{left:18px;}
  .timeline-item{
    grid-template-columns:1fr;
    padding-left:2.5rem;
  }
  .timeline-item::before{left:11px;}
  .timeline-date{text-align:left;}
}