:root {
  color-scheme: light;
  --text: #1d1d1f;
  --muted: #65686a;
  --rule: #e1e5e2;
  --link: #226e9f;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
::selection { background: #d8e8e1; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
.skip { position: fixed; top: -100px; left: 12px; z-index: 3; padding: 8px; background: white; }
.skip:focus { top: 8px; }
.page { width: min(100%, 1000px); margin-inline: auto; padding-inline: 24px; }
header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 22px; padding-block: 24px; font-size: 15px; }
header a, footer a { color: var(--muted); }
.home { display: grid; grid-template-columns: minmax(0, 1fr) 288px; column-gap: 64px; }
.hero { grid-area: 1 / 1; padding-top: 24px; }
h1 { margin: 0; font-size: 40px; font-weight: 600; line-height: 1.1; letter-spacing: -.032em; }
.role { color: var(--muted); margin: 12px 0 0; line-height: 1.5; }
.bio { margin-top: 24px; }
.bio p { margin: 0 0 14px; }
.quick { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 20px 0 0; }
.side { grid-column: 2; grid-row: 1 / span 2; padding-top: 30px; }
.portrait { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.portrait { -webkit-touch-callout: none; -webkit-user-drag: none; -webkit-user-select: none; user-select: none; }
.timeline { position: sticky; top: 36px; margin: 44px 0 0; }
.timeline figcaption { font-weight: 600; font-size: 15px; }
.scale, .timeline li > span:last-child { display: flex; justify-content: space-between; }
.scale { margin-top: 14px; font: 11px ui-monospace, monospace; color: var(--muted); }
.timeline ul { list-style: none; margin: 8px 0 0; padding: 0; }
.timeline li { margin-bottom: 10px; font-size: 12px; color: #4a4e4c; }
.timeline small { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.track { display: block; height: 5px; background: #edf0ed; margin-bottom: 3px; }
.track i { display: block; height: 100%; width: var(--length); margin-left: var(--start); background: var(--ink); }
.sections { grid-area: 2 / 1; }
section { margin-top: 64px; scroll-margin-top: 24px; }
h2 { position: relative; display: inline-block; margin: 0; font-size: 21px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; }
h2::after { position: absolute; content: ''; inset: auto -4px -5px 0; height: 3px; background: var(--accent, #1f77b4); border-radius: 2px; }
#ambiente { --accent: #e98a38; }
.project-history { margin-top: 24px; }
.project-history summary { color: var(--link); cursor: pointer; }
#formacao { --accent: #52945d; }
#docencia { --accent: #bb6154; }
#publicacoes { --accent: #9467bd; }
article { margin-top: 30px; }
h2 + article { margin-top: 22px; }
.entry { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 2px 12px; }
h3, h4 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.45; }
.entry span, dt { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; }
article p { margin: 6px 0 0; }
.meta, dd span, .journal { color: var(--muted); font-size: 15px; }
.meta { margin-top: 2px; }
.journal { margin-top: 0; }
.work { margin-top: 20px; padding-left: 16px; border-left: 2px solid var(--rule); }
.work p { margin-top: 4px; }
.dated { display: grid; grid-template-columns: 85px minmax(0, 1fr); gap: 16px; margin: 24px 0 0; }
.dated dt { padding-top: 2px; }
dd { margin: 0; } dd span { display: block; } strong { font-weight: 600; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 96px !important; padding-block: 24px 40px; color: var(--muted); font-size: 14px; }
@media (max-width: 850px) {
  .home { grid-template-columns: 90px minmax(0, 1fr); gap: 0 20px; }
  .side, .hero { display: contents; }
  .portrait { grid-column: 1; grid-row: 1 / span 2; align-self: center; width: 90px; }
  h1 { grid-area: 1 / 2; align-self: end; font-size: 32px; }
  .role { grid-area: 2 / 2; align-self: start; font-size: 15px; margin-top: 6px; }
  .bio, .quick, .sections, .timeline { grid-column: 1 / -1; }
  .bio { grid-row: 3; margin-top: 28px; }
  .quick { grid-row: 4; margin-top: 0; }
  .timeline { grid-row: 5; position: static; width: min(100%, 420px); margin-top: 36px; }
  .sections { grid-row: 6; }
  section { margin-top: 46px; }
}
@media (max-width: 520px) {
  .page { padding-inline: 20px; }
  header nav { gap: 16px; font-size: 14px; }
  .home { grid-template-columns: 72px minmax(0, 1fr); column-gap: 16px; }
  .portrait { width: 72px; }
  h1 { font-size: 28px; }
  .dated { grid-template-columns: 76px minmax(0, 1fr); gap: 16px 10px; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
