/* ==========================================================================
   igor.pro.br — stylesheet
   Design notes: palette is a deliberate nod to the GitHub contribution
   graph (the data Igor's research mines): paper white, ink, commit green.
   Type: Space Grotesk (display) / Source Serif 4 (body) / JetBrains Mono
   (metadata: years, venues, labels).
   ========================================================================== */

:root {
  --paper: #fafbfc;
  --ink: #1b1f24;
  --slate: #57606a;
  --line: #d8dee4;
  --green: #2da44e;
  --green-deep: #1a7f37;
  --green-soft: #dafbe1;
  --green-cell-0: #ebedf0;
  --green-cell-1: #9be9a8;
  --green-cell-2: #40c463;
  --green-cell-3: #30a14e;
  --green-cell-4: #216e39;
  --max: 880px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3, nav, .btn { font-family: "Space Grotesk", "Helvetica Neue", sans-serif; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

a { color: var(--green-deep); text-decoration: none; border-bottom: 1px solid var(--green-cell-1); }
a:hover { border-bottom-color: var(--green-deep); }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* ---- nav ---- */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250,251,252,.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
header.site .row {
  max-width: var(--max); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
header.site .brand {
  font-weight: 700; font-size: 17px; letter-spacing: -.01em;
  color: var(--ink); border: 0;
}
header.site nav { display: flex; gap: 22px; flex-wrap: wrap; }
header.site nav a {
  font-size: 14px; font-weight: 500; color: var(--slate);
  border: 0; letter-spacing: .01em;
}
header.site nav a:hover { color: var(--green-deep); }

/* ---- hero ---- */
.hero { max-width: var(--max); margin: 0 auto; padding: 72px 24px 48px; }
.hero h1 {
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.05; letter-spacing: -.025em; margin: 0 0 14px;
}
.hero .role {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px; color: var(--green-deep);
  text-transform: uppercase; letter-spacing: .08em;
  margin: 0 0 26px;
}
.hero .thesis {
  font-size: clamp(19px, 2.6vw, 23px);
  line-height: 1.5; max-width: 640px; margin: 0 0 30px;
  color: var(--ink);
}
.hero .thesis em { font-style: normal; background: var(--green-soft); padding: 0 4px; }

/* signature element: contribution-graph strip */
.contrib {
  display: grid;
  grid-template-rows: repeat(7, 11px);
  grid-auto-flow: column;
  grid-auto-columns: 11px;
  gap: 3px;
  margin: 34px 0 8px;
  overflow: hidden;
}
.contrib span {
  width: 11px; height: 11px; border-radius: 2px;
  background: var(--green-cell-0);
  opacity: 0; animation: cell-in .4s ease forwards;
}
.contrib span.l1 { background: var(--green-cell-1); }
.contrib span.l2 { background: var(--green-cell-2); }
.contrib span.l3 { background: var(--green-cell-3); }
.contrib span.l4 { background: var(--green-cell-4); }
@keyframes cell-in { to { opacity: 1; } }
.contrib-caption {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px; color: var(--slate); margin: 0 0 4px;
}

/* ---- sections ---- */
section { max-width: var(--max); margin: 0 auto; padding: 44px 24px; }
section + section { border-top: 1px solid var(--line); }
h2 {
  font-size: 14px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--green-deep); margin: 0 0 22px;
  display: flex; align-items: center; gap: 10px;
}
h2::before {
  content: ""; width: 9px; height: 9px; border-radius: 2px;
  background: var(--green); flex: none;
}
h3 { font-size: 19px; margin: 26px 0 8px; letter-spacing: -.01em; }

.lead { font-size: 18.5px; max-width: 680px; }

/* research themes */
.themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 8px; }
.theme {
  border: 1px solid var(--line); border-radius: 8px;
  padding: 18px 18px 16px; background: #fff;
}
.theme h3 { margin: 0 0 8px; font-size: 16.5px; }
.theme p { margin: 0; font-size: 15px; color: var(--slate); line-height: 1.55; }
.theme .tag {
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  color: var(--green-deep); display: block; margin-bottom: 8px;
  letter-spacing: .05em;
}

/* publications */
.pub { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.pub:last-child { border-bottom: 0; }
.pub .meta {
  font-family: "JetBrains Mono", monospace; font-size: 12px;
  color: var(--slate); display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 3px;
}
.pub .meta .venue { color: var(--green-deep); font-weight: 600; }
.pub .meta .award { color: #9a6700; }
.pub .title { font-size: 16.5px; font-weight: 600; line-height: 1.4; }
.pub .authors { font-size: 14px; color: var(--slate); margin-top: 2px; }
.year-h {
  font-family: "Space Grotesk", sans-serif; font-size: 22px;
  margin: 34px 0 6px; letter-spacing: -.01em;
}

/* lists */
ul.clean { list-style: none; padding: 0; margin: 0; }
ul.clean li { padding: 8px 0 8px 22px; position: relative; }
ul.clean li::before {
  content: ""; position: absolute; left: 0; top: 16px;
  width: 8px; height: 8px; border-radius: 2px; background: var(--green-cell-2);
}

/* buttons */
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 6px;
  border: 1px solid var(--green-deep); color: var(--green-deep);
  font-weight: 600; font-size: 14.5px; letter-spacing: .01em;
}
.btn:hover { background: var(--green-soft); }
.btn.solid { background: var(--green-deep); color: #fff; }
.btn.solid:hover { background: var(--green); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* footer */
footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
footer .row {
  max-width: var(--max); margin: 0 auto; padding: 30px 24px 48px;
  font-size: 14px; color: var(--slate);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
footer a { color: var(--slate); }

@media (max-width: 600px) {
  .hero { padding-top: 48px; }
  header.site nav { gap: 14px; }
}

/* ---- hero with photo (personal page layout) ---- */
.hero-top {
  display: flex; align-items: center; gap: 32px; margin-bottom: 26px;
}
.hero-photo {
  width: 168px; height: 168px; border-radius: 12px; object-fit: cover;
  border: 1px solid var(--line); flex: none;
  box-shadow: 0 1px 0 var(--green-cell-1), 4px 4px 0 var(--green-soft);
}
.hero-id .name {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(30px, 5vw, 42px); font-weight: 700;
  letter-spacing: -.02em; line-height: 1.05; margin: 0 0 8px;
}
.hero .thesis-label {
  font-family: "JetBrains Mono", monospace; font-size: 11.5px;
  color: var(--slate); letter-spacing: .06em; margin: 0 0 6px;
}
@media (max-width: 600px) {
  .hero-top { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero-photo { width: 132px; height: 132px; }
}

/* software cards */
.sw { border: 1px solid var(--line); border-radius: 8px; background: #fff;
  padding: 20px; margin-bottom: 16px; }
.sw h3 { margin: 0 0 6px; font-size: 18px; }
.sw .links { font-family: "JetBrains Mono", monospace; font-size: 12.5px;
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.sw p { margin: 4px 0 0; font-size: 15px; color: var(--slate); }
.sub-h { font-family: "Space Grotesk", sans-serif; font-size: 16px;
  margin: 26px 0 8px; letter-spacing: -.01em; }
