:root {
--bg: #f8fafc;         /* Light ice blue/grey */
    --bg-warm: #f1f5f9;    /* Slightly deeper slate tint */
    --text: #0f172a;       /* Deep navy/charcoal */
    --text-mid: #475569;   /* Muted slate */
    --text-light: #94a3b8; /* Light silver */
    --accent: #2563eb;     /* Vibrant blue */
    --accent-hover: #1d4ed8;
    --link: #0891b2;       /* Cyan-leaning blue */
    --link-hover: #0e7490;
    --rule: #e2e8f0;
    --card-bg: #ffffff;
  --col-width: 680px;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Crimson Pro', Georgia, serif;
  line-height: 1.7;
  min-height: 100vh;
}

/* ── Top bar ── */
.topbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeDown 0.6s ease 0.2s forwards;
}
.topbar-inner {
  max-width: var(--col-width);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.topbar-name {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-mid);
  font-family: 'Source Sans 3', sans-serif;
  text-transform: uppercase;
}
.topbar-nav a {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem;
  color: var(--text-light);
  text-decoration: none;
  margin-left: 28px;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.topbar-nav a:hover { color: var(--accent); }

/* ── Main column ── */
.column {
  max-width: var(--col-width);
  margin: 0 auto;
  padding: 0 24px;
  padding-top: 80px;
}

/* ── Header / Intro ── */
.header {
  padding: 60px 0 40px;
  opacity: 0;
  animation: fadeIn 0.8s ease 0.3s forwards;
}
.header h1 {
  font-size: 2.6rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--text);
}
.header .subtitle {
  font-size: 1.15rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-mid);
  margin-bottom: 32px;
}
.header .intro {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--text);
  max-width: 600px;
}
.header .intro a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.2s;
}
.header .intro a:hover {
  border-color: var(--accent);
}

/* ── Section divider ── */
.section-rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 48px 0 40px;
}

.section-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 32px;
}

/* ── Project entries (worrydream style) ── */
.entry {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(12px);
  cursor: default;
}
.entry.visible {
  animation: slideUp 0.5s ease forwards;
}

.entry-thumbnail {
  width: 140px;
  height: 100px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg-warm);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.entry-thumbnail svg {
  width: 64px;
  height: 64px;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.entry:hover .entry-thumbnail svg {
  opacity: 0.75;
}

.entry-body h3 {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 4px;
  color: var(--text);
}
.entry-body h3 a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s;
}
.entry-body h3 a:hover { color: var(--accent-hover); }
.entry-date {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.78rem;
  color: var(--text-light);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.entry-body p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-mid);
}
.entry-tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.entry-tag {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--text-light);
  background: var(--bg);
}

/* ── Short essays / notes section ── */
.notes-list {
  list-style: none;
}
.notes-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  opacity: 0;
  transform: translateY(8px);
}
.notes-list li.visible {
  animation: slideUp 0.4s ease forwards;
}
.notes-list li a {
  font-size: 1.02rem;
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s;
}
.notes-list li a:hover { color: var(--accent-hover); }
.notes-list li span {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.78rem;
  color: var(--text-light);
  white-space: nowrap;
  margin-left: 20px;
}

/* ── Background / CV section ── */
.bio-block {
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(12px);
}
.bio-block.visible {
  animation: slideUp 0.5s ease forwards;
}
.bio-block h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 10px;
}
.bio-block p, .bio-block li {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--text-mid);
}
.bio-block ul {
  list-style: none;
}
.bio-block ul li {
  padding: 4px 0;
}
.bio-block ul li::before {
  content: '—';
  color: var(--rule);
  margin-right: 10px;
}
.timeline-item {
  display: flex;
  gap: 16px;
  padding: 6px 0;
}
.timeline-year {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem;
  color: var(--text-light);
  min-width: 90px;
  flex-shrink: 0;
}
.timeline-desc {
  font-size: 0.98rem;
  color: var(--text-mid);
}
.timeline-desc strong {
  font-weight: 500;
  color: var(--text);
}

/* ── Contact ── */
.contact-line {
  font-size: 0.95rem;
  color: var(--text-mid);
  padding: 60px 0 80px;
  text-align: center;
  font-style: italic;
}
.contact-line a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.contact-line a:hover {
  border-color: var(--accent);
}

/* ── Epigraph ── */
.epigraph {
  margin: 20px 0 40px;
  padding: 0 0 0 20px;
  border-left: 2px solid var(--rule);
  font-style: italic;
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0;
  animation: fadeIn 1s ease 0.6s forwards;
}
.epigraph .attr {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 6px;
}

/* ── Animations ── */
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes fadeDown {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 600px) {
  html { font-size: 16px; }
  .header h1 { font-size: 2rem; }
  .entry {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .entry-thumbnail {
    width: 100%;
    height: 80px;
  }
  .topbar-nav a { margin-left: 16px; }
}

/* ── Selection ── */
::selection {
  background: rgba(139, 69, 19, 0.15);
  color: var(--text);
}