@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: block;
  src: url('/assets/outfit-latin.woff2?v=6c18d579fd87c3776be068b762cbc83fde3acb543d49eabd3ade842eb987e887') format('woff2');
}

:root {
  color-scheme: light;
  --ink: #20252b;
  --muted: #626972;
  --link: #1a73e8;
  --nav-bg: rgba(255, 255, 255, 0.55);
  --nav-blur: 6px;
}

* { box-sizing: border-box; }
html { font-size: 16px; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  letter-spacing: 0.01em;
}
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
.document { max-width: 850px; padding: 30px 32px 40px; margin: auto; }
nav { 
  display: flex; 
  gap: 24px; 
  justify-content: flex-end; 
  padding: 20px 32px; 
  margin: -30px -32px 30px -32px;
  font-size: 1.05rem; 
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(var(--nav-blur));
  -webkit-backdrop-filter: blur(var(--nav-blur));
}
nav a { text-decoration: none; color: var(--muted); }
nav a[aria-current] { color: var(--ink); font-weight: 650; }
.about-intro {
  max-width: 38rem;
  margin: 0 auto;
  min-height: calc(100vh - 115px);
  min-height: calc(100svh - 115px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0;
}
.about-intro h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 2rem; }
.about-facts { margin: 0; padding-left: 1.2em; font-size: clamp(1.125rem, 2.4vw, 1.5rem); line-height: 1.6; }
.about-facts li { padding-left: .3em; margin-bottom: 1rem; }
.about-facts li:last-child { margin-bottom: 0; }
.about-facts li::marker { color: #7a8795; font-size: .7em; }
.about-facts li:nth-child(1)::marker { color: #4285f4; }
.about-facts li:nth-child(2)::marker { color: #ea4335; }
.about-facts li:nth-child(3)::marker { color: #fbbc05; }
.about-facts li:nth-child(4)::marker { color: #34a853; }
.about-facts li:nth-child(5)::marker { color: #4285f4; }
.about-cli { margin: 2.2rem 0 0; }
.about-cli code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  background: #f4f6f8;
  padding: 8px 14px;
  border-radius: 6px;
  color: #3b434e;
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: inline-block;
  max-width: 100%;
  overflow-x: auto;
}
@media screen and (prefers-reduced-motion: no-preference) {
  /* About page: restored to original timing */
  .about-intro h1, .about-facts li, .about-cli {
    animation: about-enter 800ms cubic-bezier(.22, 1, .36, 1) backwards;
  }
  .about-facts li { animation-delay: 125ms; }
  .about-facts li:nth-child(2) { animation-delay: 250ms; }
  .about-facts li:nth-child(3) { animation-delay: 375ms; }
  .about-facts li:nth-child(4) { animation-delay: 500ms; }
  .about-facts li:nth-child(5) { animation-delay: 625ms; }
  .about-cli { animation-delay: 750ms; }

  /* Resume & Posts: faster, snappy top-to-bottom cascade */
  .profile,
  section > h2,
  .entry,
  .details,
  .page-heading,
  .post-cover,
  .post-list > li,
  .prose {
    animation: about-enter 550ms cubic-bezier(.22, 1, .36, 1) backwards;
  }

  /* Resume sequence */
  .profile { animation-delay: 0ms; }
  section:nth-of-type(1) > h2 { animation-delay: 50ms; }
  section:nth-of-type(1) > .entry:nth-of-type(1) { animation-delay: 100ms; }
  section:nth-of-type(1) > .entry:nth-of-type(2) { animation-delay: 150ms; }
  section:nth-of-type(1) > .entry:nth-of-type(3) { animation-delay: 200ms; }
  section:nth-of-type(1) > .entry:nth-of-type(4) { animation-delay: 250ms; }
  section:nth-of-type(2) > h2 { animation-delay: 300ms; }
  section:nth-of-type(2) > .entry:nth-of-type(1) { animation-delay: 350ms; }
  section:nth-of-type(2) > .entry:nth-of-type(2) { animation-delay: 400ms; }
  section:nth-of-type(3) > h2 { animation-delay: 450ms; }
  section:nth-of-type(3) > .details { animation-delay: 500ms; }

  /* Posts list sequence */
  .page-heading { animation-delay: 0ms; }
  .post-list > li:nth-child(1) { animation-delay: 60ms; }
  .post-list > li:nth-child(2) { animation-delay: 120ms; }
  .post-list > li:nth-child(3) { animation-delay: 180ms; }
  .post-list > li:nth-child(4) { animation-delay: 240ms; }
  .post-list > li:nth-child(5) { animation-delay: 300ms; }
  .post-list > li:nth-child(n+6) { animation-delay: 360ms; }

  /* Individual post page sequence */
  .post-cover { animation-delay: 60ms; }
  .prose { animation-delay: 120ms; }

  /* 404 page sequence */
  .not-found-status,
  .not-found-intro h1,
  .not-found-lead {
    animation: about-enter 550ms cubic-bezier(.22, 1, .36, 1) backwards;
  }
  .not-found-status { animation-delay: 0ms; }
  .not-found-intro h1 { animation-delay: 60ms; }
  .not-found-lead { animation-delay: 120ms; }
}
@keyframes about-enter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.profile { display: flex; align-items: flex-start; gap: 36px; padding: 30px 0 7px; }
.profile > div { flex: 1; min-width: 0; }
h1 { font-size: 2.3rem; line-height: 1.12; letter-spacing: -.045em; margin: 0 0 9px; font-weight: 700; }
.byline { color: var(--muted); font-size: 1rem; margin: 0; }
.portrait { width: 168px; height: auto; flex-shrink: 0; border-radius: 3px; }
section { margin-top: 28px; }
h2 { font-size: 1.3rem; letter-spacing: -.025em; font-weight: 700; margin: 0 0 13px; }
section > h2 { font-size: 1.05rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #526377; margin-bottom: 15px; }
.entry { margin-bottom: 21px; }
.entry:last-child { margin-bottom: 0; }
h3 { font-size: 1.15rem; margin: 0; font-weight: 650; letter-spacing: -.015em; }
.organization-card {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
  text-decoration: none;
  vertical-align: baseline;
  transition: background-color 140ms ease, transform 150ms cubic-bezier(0.2, 0, 0, 1);
}
/* The text supplies the badge baseline; the icon stays visually centered. */
.organization-card img { align-self: center; flex: 0 0 18px; width: 18px; height: 18px; object-fit: contain; }
.organization-card span { min-width: 0; }
.organization-card:hover, .organization-card:focus-visible { background: #f1f1f1; color: var(--ink); text-decoration: none; transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .organization-card { transition: none; } }
.entry-meta { margin: 3px 0 5px; font-size: .95rem; color: var(--muted); }
.degree { margin: 3px 0; font-size: 1rem; }
.dates { font-size: .95rem; color: var(--muted); font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; }
.entry ul { padding-left: 19px; margin: 6px 0 0; font-size: 1rem; line-height: 1.6; color: #464e57; }
.entry li { padding-left: 1px; margin: 3px 0; }
.details { display: grid; grid-template-columns: 105px 1fr; gap: 6px 16px; margin: 0; font-size: 1rem; }
.details dt { font-weight: 650; }
.details dd { margin: 0; overflow-wrap: anywhere; color: #464e57; }
.page-heading { margin: 30px 0 26px; }
.owner { font-size: 1rem; margin: 0 0 18px; }
.owner a { text-decoration: none; }
.empty { color: var(--muted); min-height: 200px; }
.post-list { list-style: none; padding: 0; }
.post-list > li { display: grid; grid-template-columns: 108px 1fr; gap: 18px; padding: 16px 0; }
.post-list time { font-size: .95rem; color: var(--muted); padding-top: 3px; }
.post-list h2 { padding: 0; margin: 0; font-size: 1.2rem; font-weight: 650; letter-spacing: -.02em; }
.post-list p { margin: 5px 0 0; color: var(--muted); font-size: 1.05rem; }
.prose { max-width: 72ch; }
.post-cover { max-width: 72ch; margin: 0 0 28px; }
.post-cover img { display: block; width: 100%; height: auto; }
.post-cover figcaption { margin-top: 8px; font-size: .9rem; color: var(--muted); }
.prose h2 { margin-top: 30px; }
.prose h3 { margin-top: 22px; }
.prose img { max-width: 100%; height: auto; }
.prose pre { overflow: auto; padding: 16px; background: #f4f6f8; font-size: .95rem; }
.prose code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.prose :not(pre) > code { background: #f4f6f8; padding: 2px 4px; }
.prose blockquote { margin-left: 0; padding-left: 20px; color: var(--muted); font-style: italic; }
.prose table { border-collapse: collapse; display: block; overflow: auto; }
.prose th, .prose td { padding: 7px 12px; text-align: left; }
.prose th { background: #f4f6f8; }
.prose hr { display: none; }
.skip { position: absolute; top: -60px; left: 12px; background: #fff; padding: 8px; z-index: 2; }
.skip:focus { top: 8px; }

/* 404 Page */
.not-found-intro {
  max-width: 38rem;
  margin: 0 auto;
  min-height: calc(100vh - 115px);
  min-height: calc(100svh - 115px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0;
}
.not-found-status {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 600;
  color: #ea4335;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}
.not-found-intro h1 {
  font-size: clamp(1.8rem, 3.8vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -.03em;
  margin: 0 0 0.75rem;
  font-weight: 700;
}
.not-found-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 600px) {
  .not-found-intro { min-height: 0; padding: 2rem 0; }
  .document { padding: 20px; }
  .profile { gap: 20px; padding-top: 24px; }
  h1 { font-size: 2rem; }
  .portrait { width: 123px; }
  .byline { font-size: .95rem; }
  .details { grid-template-columns: 85px 1fr; gap: 7px 10px; }
  .post-list > li { grid-template-columns: 1fr; gap: 4px; }
  nav { padding-bottom: 14px; }
}

@media print {
  .about-intro, .not-found-intro { min-height: 0; padding: 0; }
  .document { max-width: none; padding: 0; font-size: 10pt; }
  nav, .skip { display: none; }
  .profile { padding-top: 0; }
  h1 { font-size: 22pt; }
  section { margin-top: 16px; }
  .entry { break-inside: avoid; margin-bottom: 12px; }
  a { color: inherit; text-decoration: none; }
  .organization-card { background: none; padding: 0; }
  .portrait { width: 120px; }
}


