/* Layout: cabeçalho fixo com menu, páginas com um cabeçalho de título e uma coluna de conteúdo; fundo branco e verde musgo escuro. */
:root {
  --bg: #FFFFFF;
  --surface: #F7F9F4;
  --ink: #222B1F;
  --muted: #5F6A59;
  --line: #E3E8DC;
  --accent: #33472A;        /* verde musgo escuro */
  --on-accent: #FFFFFF;
  --accent-soft: #EBF0E3;
  --accent2: #A94E33;       /* terracota, só em detalhes */
  --display: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;   /* o site é sempre claro, mesmo em aparelhos no modo escuro */
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; text-wrap: balance; color: var(--accent); }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.2rem); line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2rem); line-height: 1.15; }
h3 { font-size: 1.125rem; line-height: 1.35; font-weight: 600; text-wrap: balance; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 0.5rem 0.75rem; z-index: 30; }
.skip:focus { left: 16px; top: 16px; }
.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

/* cabeçalho e menu */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 2rem; padding-block: 0.85rem; }
.brand { display: flex; flex-direction: column; text-decoration: none; }
.brand-name { font-family: var(--display); font-size: 1.3rem; line-height: 1.2; color: var(--accent); }
.brand-role { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.nav ul { display: flex; flex-wrap: wrap; gap: 0.1rem 1.3rem; }
.nav a { display: block; padding-block: 0.4rem; color: var(--muted); text-decoration: none; font-size: 0.95rem; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent2); }
.menu-btn { display: none; font: inherit; font-size: 0.95rem; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 3px; padding: 0.45rem 0.9rem; cursor: pointer; }

/* páginas */
main { flex: 1; }
.page-head { padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem); display: flex; flex-direction: column; gap: 1.1rem; }
.page { max-width: 52rem; padding-bottom: clamp(3rem, 8vw, 5rem); display: flex; flex-direction: column; gap: 1.5rem; }
.band { border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 6vw, 4rem); display: flex; flex-direction: column; gap: 1.5rem; }
.lead { font-family: var(--display); font-size: clamp(1.25rem, 2.6vw, 1.5rem); line-height: 1.4; max-width: 34em; }
.intro { color: var(--muted); max-width: 38em; }
.prose { display: flex; flex-direction: column; gap: 1rem; max-width: 38em; }
.kicker { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent2); font-weight: 600; }
.sub { font-family: var(--body); font-size: 0.8125rem; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 1rem; }
.small { font-size: 0.9rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn { font: inherit; font-weight: 600; font-size: 0.975rem; display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 1.25rem; border-radius: 3px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent);
  text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.12); }
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.quiet:hover { border-color: var(--ink); filter: none; }

/* início */
.hero { padding-block: clamp(2.5rem, 6vw, 4rem) 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 19rem); gap: 2rem clamp(2rem, 6vw, 5rem); align-items: end; }
.hero-text { display: flex; flex-direction: column; gap: 1.4rem; min-width: 0; align-self: center; padding-block: 1rem clamp(2.5rem, 7vw, 4.5rem); }
.photo.cutout { aspect-ratio: auto; max-width: 19rem; background: none; border: 0; padding: 0; border-radius: 0; display: block; }
.photo.cutout img { height: auto; }
.photo { aspect-ratio: 4 / 5; width: 100%; max-width: 20rem; border-radius: 4px; overflow: hidden; background: var(--surface); border: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 0.9rem; text-align: center; padding: 1rem; }
.photo.has-img { border: 0; padding: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bio-top { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 1.5rem 2.5rem; align-items: start; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.1rem); line-height: 1.04; max-width: 12em; }
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.door { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.35rem; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; text-decoration: none; color: var(--ink); min-width: 0; }
.door:hover { border-color: var(--accent); }
.door-title { font-family: var(--display); font-size: 1.45rem; line-height: 1.2; color: var(--accent); }
.door-text { color: var(--muted); font-size: 0.975rem; }
.door-go { margin-top: auto; padding-top: 0.5rem; font-size: 0.9rem; font-weight: 600; color: var(--accent); }
.about { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: 1.5rem 3rem; }
.about .prose { max-width: 36em; }

/* listas */
.roles { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.roles div { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 0.25rem 1.5rem; padding-block: 0.8rem; border-bottom: 1px solid var(--line); }
.roles dt { color: var(--muted); font-size: 0.95rem; }
.themes { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.themes div { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 0.35rem 1.5rem; padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.themes dt { font-family: var(--display); font-size: 1.3rem; line-height: 1.25; color: var(--accent); }
.timeline { display: flex; flex-direction: column; }
.timeline li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; padding-block: 0.65rem; border-bottom: 1px solid var(--line); }
.timeline li:first-child { border-top: 1px solid var(--line); }
.yr { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.plain { display: flex; flex-direction: column; gap: 0.6rem; max-width: 38em; }
.plain li { padding-left: 1rem; position: relative; }
.plain li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.4rem; height: 1px; background: var(--accent2); }
.links { display: flex; flex-direction: column; }
.links li { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 0.25rem 1.5rem; padding-block: 0.8rem; border-bottom: 1px solid var(--line); }
.links li:first-child { border-top: 1px solid var(--line); }
.links span:first-child { color: var(--muted); font-size: 0.95rem; }
.links a { overflow-wrap: anywhere; }

/* pesquisa */
.projects { display: flex; flex-direction: column; }
.project { padding-block: 1.75rem; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.75rem; }
.project:first-child { border-top: 1px solid var(--line); }
.project-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; }
.project-head h3 { font-family: var(--display); font-weight: 500; font-size: 1.45rem; color: var(--accent); }
.facts { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }
.facts div { display: flex; flex-direction: column; min-width: 0; }
.facts dt { font-size: 0.75rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.facts dd { font-variant-numeric: tabular-nums; }
details { border-bottom: 1px solid var(--line); }
details summary { cursor: pointer; padding-block: 0.9rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--accent2); font-weight: 400; font-size: 1.2rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details .timeline { margin-bottom: 1.25rem; }
details .timeline li:last-child { border-bottom: 0; }

/* publicações */
.pub-tools { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; }
.field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.field.grow { flex: 1 1 16rem; }
.field label { font-size: 0.75rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
input[type="search"], select { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 0.6rem 0.75rem; width: 100%; min-width: 0; }
input[type="search"]:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 2px var(--accent-soft); }
.pubs { display: flex; flex-direction: column; }
.pub { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.pub:first-child { border-top: 1px solid var(--line); }
.pub-body { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.pub-title { font-weight: 600; line-height: 1.4; }
.pub-authors { font-size: 0.85rem; color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.pub-journal { font-size: 0.925rem; }
.pub-journal em { font-family: var(--display); font-size: 1.05rem; }
.tag { display: inline-block; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; color: var(--accent2); border: 1px solid currentColor; border-radius: 999px; padding: 0.05rem 0.55rem; vertical-align: 0.1em; white-space: nowrap; }
.tag.draft { border-style: dashed; }

/* cursos, textos, vídeos, giro */
.cards { display: flex; flex-direction: column; gap: 0.75rem; }
.cards.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
.card .facts { gap: 0.4rem 1.5rem; }
.card.course { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; }
.card-main { display: flex; flex-direction: column; gap: 0.6rem; flex: 1 1 18rem; min-width: 0; }
.card .btn { flex: none; }
.hint { font-size: 0.875rem; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 1.25rem; counter-reset: passo; }
.steps li { counter-increment: passo; display: flex; flex-direction: column; gap: 0.3rem; border-top: 1px solid var(--line); padding-top: 0.85rem; }
.steps li::before { content: counter(passo); font-family: var(--display); font-size: 1.6rem; line-height: 1; color: var(--accent2); }
.based { font-size: 0.85rem; color: var(--muted); margin-top: auto; }
.slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 0.75rem; }
.slot { aspect-ratio: 16 / 9; max-width: 100%; border: 1px dashed var(--line); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 0.9rem; text-align: center; padding: 1rem; background: var(--surface); }
.notes { display: flex; flex-direction: column; }
.note { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.note:first-child { border-top: 1px solid var(--line); }
.note-body { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.note-body h3 { font-family: var(--display); font-weight: 500; font-size: 1.45rem; line-height: 1.2; color: var(--accent); }

/* rodapé */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); font-size: 0.9rem; color: var(--muted); }
.site-footer .wrap { padding-block: 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.foot-id { display: flex; flex-direction: column; gap: 0.2rem; max-width: 30em; }
.foot-name { font-family: var(--display); font-size: 1.15rem; color: var(--accent); }

@media (max-width: 1199px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; flex-basis: 100%; }
  .site-header.open .nav { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding-bottom: 0.25rem; }
  .nav a { padding-block: 0.7rem; border-bottom: 1px solid var(--line); }
  .nav li:last-child a { border-bottom: 0; }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); font-weight: 600; }
}
@media (max-width: 899px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .hero-text { padding-bottom: 1rem; }
  .hero .photo { max-width: 15rem; }
}
@media (max-width: 699px) {
  .roles div, .links li, .themes div, .note, .about, .bio-top { grid-template-columns: minmax(0, 1fr); }
  .bio-top .photo { max-width: 13rem; }
  .note { gap: 0.4rem; }
  .timeline li { grid-template-columns: 4.75rem minmax(0, 1fr); }
  .pub { grid-template-columns: 2.9rem minmax(0, 1fr); gap: 0.75rem; }
  .brand-role { display: none; }
}
