/* Igor Novaes Lins — personal site
   Economist-style sidebar layout · Bricolage Grotesque + Hanken Grotesk · trilingual */

:root{
  --ink:#16181b; --muted:#565d66; --faint:#9aa0a6;
  --line:#e4e6e8; --line2:#d7dadd;
  --red:#e3120b; --blue:#0b3d59; --paper:#ffffff;
  --display:"Bricolage Grotesque",system-ui,-apple-system,sans-serif;
  --sans:"Hanken Grotesk",system-ui,-apple-system,"Segoe UI",sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;display:flex;min-height:100vh;color:var(--ink);background:var(--paper);
  font-family:var(--sans);font-size:15.8px;line-height:1.6;font-weight:400;letter-spacing:-.002em;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;
}
a{color:var(--blue);text-decoration:none;text-underline-offset:2px}
a:hover{text-decoration:underline}

/* ---------- SIDEBAR ---------- */
.sidebar{
  width:296px;flex:0 0 296px;background:#fff;border-right:1px solid var(--line);
  padding:0 0 2rem;position:sticky;top:0;align-self:flex-start;height:100vh;overflow-y:auto;
  display:flex;flex-direction:column;
}
.flag{height:6px;background:var(--red)}
.inner{padding:1.9rem 1.7rem 1.4rem;display:flex;flex-direction:column;gap:1.3rem;flex:1}
.portrait{
  width:100%;height:206px;border-radius:2px;object-fit:cover;object-position:58% 18%;display:block;
  border:1px solid var(--line);
}
.namelink{border:none}
.name{
  font-family:var(--display);font-weight:700;font-size:1.6rem;line-height:1.04;
  letter-spacing:-.024em;margin:.7rem 0 .5rem;color:var(--ink);
}
.tagline{
  font-family:var(--display);font-weight:600;font-size:.9rem;color:var(--red);
  margin:0 0 .55rem;line-height:1.32;letter-spacing:-.008em;
}
.current{font-family:var(--sans);font-size:.82rem;color:var(--muted);margin:0;line-height:1.5}
.current strong{color:var(--ink);font-weight:600}

nav.tabs{display:flex;flex-direction:column;margin:.1rem 0}
nav.tabs a{
  font-family:var(--display);color:var(--ink);font-size:.88rem;font-weight:500;letter-spacing:-.01em;
  text-transform:lowercase;padding:.56rem 0;border-bottom:1px solid var(--line);
}
nav.tabs a:first-child{border-top:1px solid var(--line2)}
nav.tabs a:hover{color:var(--red);text-decoration:none}
nav.tabs a.active{color:var(--red);font-weight:700}

.langs{
  display:flex;align-items:center;gap:.5rem;font-family:var(--display);
  font-size:.74rem;letter-spacing:.06em;font-weight:600;
}
.langs a{color:var(--faint);border:none}
.langs a.active{color:var(--ink)}
.langs a:hover{color:var(--ink);text-decoration:none}
.langs span{color:var(--line2)}

.contact{
  margin-top:auto;padding-top:1.1rem;border-top:1px solid var(--line);
  display:flex;flex-direction:column;gap:.4rem;font-family:var(--sans);font-size:.82rem;font-weight:500;
}
.contact a{color:var(--muted)}
.contact a:hover{color:var(--blue)}
.contact-foot{display:none}
.contact-foot a{color:var(--muted)}
.contact-foot a:hover{color:var(--blue)}

/* ---------- MAIN ---------- */
main{flex:1 1 auto;padding:3.6rem 3.6rem 5rem;max-width:752px}
.kicker{
  font-family:var(--display);font-size:.84rem;font-weight:600;letter-spacing:.005em;
  text-transform:lowercase;color:var(--red);margin:0 0 .7rem;
}
h1{
  font-family:var(--display);font-weight:700;font-size:2.66rem;margin:0 0 1.6rem;
  letter-spacing:-.032em;line-height:1.0;color:var(--ink);text-transform:lowercase;
}
.lead{
  font-family:var(--sans);font-size:1.2rem;line-height:1.5;color:#2a2e33;
  font-weight:400;letter-spacing:-.003em;margin:0 0 1.2rem;
}
main p{margin:0 0 1.05rem}
main em{font-style:italic}
h2.sub{
  font-family:var(--display);font-weight:600;font-size:.98rem;text-transform:lowercase;
  letter-spacing:.01em;color:var(--ink);margin:2.8rem 0 1.2rem;padding-top:1.2rem;border-top:1px solid var(--line);
}

/* groups / lists (research threads, publications, writing) */
.group{margin:0 0 1.7rem}
.group h3{
  font-family:var(--display);font-weight:600;font-size:1.12rem;margin:0 0 .55rem;
  letter-spacing:-.012em;color:var(--ink);text-transform:lowercase;
}
.group p{margin:0}
ol.list{margin:0;padding:0 0 0 1.2rem}
ol.list li{margin:0 0 .8rem;font-size:.95rem;line-height:1.55}
ol.list li:last-child{margin-bottom:0}
.venue{color:var(--muted)}
.tag{
  display:inline-block;font-family:var(--display);font-size:.74rem;font-weight:700;
  letter-spacing:.005em;color:var(--red);
  border:1px solid var(--red);border-radius:2px;padding:.01rem .34rem;margin-left:.3rem;vertical-align:.05em;
}
.tags{margin-top:.5rem;display:flex;flex-wrap:wrap;gap:.32rem}
.tags .tag{margin-left:0}
a.tag{transition:background .12s ease,color .12s ease}
a.tag:hover{background:var(--red);color:#fff;text-decoration:none}

/* consulting areas */
ul.areas{
  list-style:none;margin:.3rem 0 1.2rem;padding:0;display:grid;
  grid-template-columns:1fr 1fr;gap:.45rem 1.4rem;
}
ul.areas li{position:relative;padding-left:1rem;font-size:.95rem}
ul.areas li::before{
  content:"";position:absolute;left:0;top:.6em;width:5px;height:5px;background:var(--red);border-radius:50%;
}

/* call to action (consulting) */
.cta{
  margin-top:1.8rem;font-family:var(--display);font-weight:600;font-size:1.08rem;
  letter-spacing:-.012em;color:var(--ink);line-height:1.4;
}
.cta a{color:var(--red);font-weight:700;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
.cta a:hover{color:var(--red);text-decoration:underline}

footer{
  margin-top:3.2rem;padding-top:1.15rem;color:var(--faint);font-family:var(--sans);
  font-size:.79rem;font-weight:500;position:relative;
}
footer::before{content:"";position:absolute;top:-1px;left:0;width:54px;height:2px;background:var(--red)}

/* ---------- RESPONSIVE ---------- */
@media (max-width:880px){
  body{flex-direction:column}
  .sidebar{width:100%;flex:none;height:auto;position:static;border-right:none;border-bottom:1px solid var(--line)}
  .inner{padding:1.4rem 1.6rem;gap:.95rem}
  .portrait{height:150px}
  .name{font-size:1.5rem;margin:.55rem 0 .35rem}
  /* nav becomes a single horizontal row instead of stacked full-width rows */
  nav.tabs{flex-direction:row;flex-wrap:wrap;gap:.1rem 1.25rem;margin:.1rem 0}
  nav.tabs a{border:none;padding:.12rem 0;font-size:1rem}
  nav.tabs a:first-child{border-top:none}
  /* contacts wrap horizontally instead of one per line */
  .contact{display:none}
  .contact-foot{display:flex;flex-wrap:wrap;gap:.4rem 1.1rem;margin:0 0 1.1rem;font-family:var(--sans);font-size:.84rem;font-weight:500}
  main{padding:2.2rem 1.6rem 4rem;max-width:none}
  h1{font-size:2.2rem}
  ul.areas{grid-template-columns:1fr}
}
