/* layout: responsibility-owned styles; cascade order preserved. */
:root {
  --content-width: 1200px;
  --section-space: 96px;
}

.section, .section-inner {
  padding: var(--section-space) max(32px,calc((100vw - var(--content-width))/2));
}

.section h2, .section-inner h2 {
  letter-spacing: -.7px;
}

.section-label, .research-section .section-label, .laboratory .section-label {
  font: 600 26px/1.4 var(--font-reading);
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 30px;
}

.section-heading {
  margin-bottom: 42px;
  gap: 50px;
  align-items: end;
}

.section-heading>p {
  font-size: 18px;
  line-height: 1.8;
  max-width: 44ch;
}

.about {
  background: var(--ivory);
  column-gap: 40px;
  row-gap: 30px;
  padding-top: 72px;
  padding-bottom: 72px;
}

.about-heading h2 {
  font-size: 44px;
  line-height: 1.2;
}

.about-copy {
  max-width: none;
}

.about-copy .intro {
  font-size: 24px;
  line-height: 1.65;
}

.about-portrait .portrait {
  border-radius: 0;
  box-shadow: none;
}

.research-section {
  background: var(--paper);
  color: var(--navy);
}

.research-section .eyebrow, .research-section .source-note {
  color: var(--brown);
}

.research-section h2 {
  font-size: 38px;
  line-height: 1.35;
  max-width: 1000px;
  margin-bottom: 40px;
}

.research-grid p:not(.eyebrow) {
  color: var(--brown);
  font-size: 18px;
  line-height: 1.85;
  max-width: 64ch;
}

.research-section .objective blockquote {
  font-size: 24px;
  line-height: 1.65;
  margin-bottom: 0;
}

.research-section .objective {
  border-color: #b69e74;
}

.research-section .research-emphasis {
  margin: 42px 0;
  padding: 30px 0;
}

.research-objectives ol {
  gap: 26px 48px;
}

.research-objectives li {
  padding-top: 16px;
  border-top: 1px solid #b69e7466;
}

.research-objectives li:before {
  top: 18px;
}

.references {
  gap: 64px;
}

.references .credits {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.references>div>p, .references details p, .credits p {
  font-size: 16px;
  line-height: 1.85;
  max-width: 70ch;
}

footer {
  padding: 30px max(32px,calc((100vw - 1200px)/2));
  border-top: 1px solid #c6a15c55;
}

.methodology {
  background: var(--ivory);
}

.methodology .section-heading h2 {
  font-size: 44px;
  line-height: 1.25;
  max-width: 20ch;
}

.method-grid {
  border-top: 0;
  border-bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
}

.method-grid article, .method-grid article:first-child, .method-grid article:last-child, .method-grid article:nth-child(3), .method-grid article:nth-child(4) {
  padding: 24px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.method-grid h3 {
  font-size: 27px;
  line-height: 1.3;
  min-height: 0;
  margin-bottom: 14px;
}

.method-grid p {
  font-size: 17px;
  line-height: 1.85;
  max-width: 54ch;
  margin-bottom: 0;
}

.process {
  margin-top: 42px;
  padding: 26px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  display: block;
}

.process>span {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--brown);
}

.process p {
  font-size: 23px;
  line-height: 1.7;
  margin: 12px 0;
}

.process b {
  font-weight: 400;
  padding: 0 14px;
  color: var(--brown);
}

.process small {
  font-size: 14px;
  line-height: 1.8;
  display: block;
}

@media(max-width:760px) {
  :root {
    --section-space: 52px;
  }

  .section, .section-inner {
    padding-left: 6%;
    padding-right: 6%;
  }

  .section-heading {
    gap: 22px;
  }

  .section-label, .research-section .section-label, .laboratory .section-label {
    font-size: 24px;
  }

  .about-heading h2, .references h2, .methodology .section-heading h2 {
    font-size: 36px;
  }

  .research-section h2 {
    font-size: 29px;
  }

  .references {
    gap: 28px;
  }

  .about {
    gap: 28px;
  }

  .about-copy .intro {
    font-size: 21px;
  }

  .method-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .process p {
    font-size: 19px;
  }

  .process b {
    padding: 0 5px;
  }
}

.section-label, .research-section .section-label, .laboratory .section-label {
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-label:before {
  flex: 0 0 28px;
}

.section-heading>p {
  margin-bottom: 0;
}

.about-copy>p:not(.intro) {
  max-width: 59ch;
}

.method-grid h3 {
  color: var(--navy);
}

.method-grid article {
  min-width: 0;
}

.method-grid p {
  color: var(--muted);
}

.process {
  max-width: 100%;
}

@media(min-width:761px) {
  .about-heading h2, .methodology .section-heading h2, .references h2 {
    font-size: 44px;
    line-height: 1.22;
  }

  .section-heading {
    grid-template-columns: 1.15fr 1fr;
  }
}

@media (min-width: 1001px) {
  html:has(:is(#sobre, #pesquisa, #atlas, #laboratorio, #metodologia, #fontes, #referencias, #contribuicoes):target) {
    scroll-padding-top: 0;
  }

  main > :is(.about, .atlas-section, .methodology, .references, .sources-section) {
    min-height: 100svh;
    align-content: center;
  }
}

@media (min-width: 1001px) and (min-height: 680px) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html {
    scroll-padding-top: 0;
  }

  .site-header,
  main > :is(.about, .atlas-section, .laboratory, .methodology, .sources-section, .references),
  .research-section > .research-screen {
    scroll-snap-align: start;
  }

  .portal-footer {
    scroll-snap-align: end;
  }

  .section.atlas-section { padding-block: clamp(24px, 5vh, 56px); }
  .section.methodology { padding-block: clamp(20px, 4vh, 48px); }
}

.methodology .section-heading {
  display: block;
  margin-bottom: 0;
}

.methodology .section-heading h2 {
  max-width: none;
  margin: 0;

}

.methodology .section-heading > p:not(.section-label) {
  max-width: 68ch;
  margin: 8px 0 0;
  color: var(--brown);
  font-size: 16px;
  line-height: 1.5;
}

.section.methodology { gap: clamp(18px, 3vh, 30px); }
.methodology .method-grid { gap: 12px 16px; }

.methodology .method-grid article:nth-child(n) {
  padding: 12px 18px;
  background: #fffaf1;
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--gold);
}

.methodology .method-grid h3 {
  margin: 0 0 5px;
  font: 400 clamp(20px, 2vw, 24px)/1.25 var(--serif);
}

.methodology .method-grid p {
  max-width: none;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}

.methodology .process {
  margin: 0;
  padding: 12px 18px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.methodology .process > span,
.methodology .process b { color: var(--brown); }
.methodology .process p {
  margin: 4px 0;
  color: inherit;
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.45;
}
.methodology .process small { color: var(--brown); }

@media (max-width: 760px) {
  .methodology .process b { padding-inline: 4px; }
  .methodology .method-grid { grid-template-columns: 1fr; }
}

/* Uma composição completa para os três momentos da metodologia. */
@media (min-width: 1001px) {
  .section.methodology {
    display: grid;
    grid-template-rows: auto minmax(auto, 1fr) auto;
    align-content: stretch;
    min-height: 100svh;
    box-sizing: border-box;
    gap: clamp(20px, 3vh, 32px);
    padding-block: clamp(28px, 4vh, 48px);
  }
  .methodology .section-label { margin-bottom: 14px; }
  .methodology .section-heading h2 { font-size: clamp(36px, 3.3vw, 48px); line-height: 1.15; }
  .methodology .section-heading > p:not(.section-label) { font-size: 18px; margin-top: 14px; }
  .methodology .method-grid { align-items: stretch; gap: 18px; }
  .methodology .method-grid article:nth-child(n) {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(18px, 2.5vh, 28px);
  }
  .methodology .method-grid h3 { font-size: clamp(24px, 2.1vw, 30px); margin-bottom: 10px; }
  .methodology .method-grid p { font-size: 18px; line-height: 1.55; margin: 0; }
  .methodology .process { padding: 22px 26px; }
  .methodology .process p { font-size: clamp(24px, 2.3vw, 32px); margin-block: 12px; }
  .methodology .process small { font-size: 17px; line-height: 1.5; }
}

@media (min-width: 1001px) and (max-height: 800px) {
  .section.methodology { padding-block: 24px; gap: 18px; }
  .methodology .section-label { margin-bottom: 8px; }
  .methodology .section-heading > p:not(.section-label) { font-size: 17px; margin-top: 10px; }
  .methodology .method-grid article:nth-child(n) { padding: 18px; }
  .methodology .method-grid p { font-size: 17px; line-height: 1.45; }
  .methodology .process { padding: 16px 22px; }
  .methodology .process p { margin-block: 8px; font-size: 26px; }
  .methodology .process small { font-size: 16px; }
}
