/* Continuação do Hero aprovado. Escopo restrito às seções editoriais e ao footer. */
.editorial-section, .ed-footer {
  --ed-ink: #193b64;
  --ed-muted: #496580;
  --ed-line: #ccdbe6;
  color-scheme: light;
  color: var(--ed-ink);
  background: #faf9f6;
}
.editorial-section { padding-block: clamp(42px, 4vw, 64px); }
.editorial-section:not(#projetos) { min-height: calc(100svh - var(--header-height, 76px)); display: grid; align-items: center; }
#projetos { padding-block: clamp(56px, 6vw, 90px); }
.editorial-section .container, .ed-footer .container { width: min(1320px, calc(100% - clamp(40px, 10.2vw, 170px))); }
.editorial-section strong { color: var(--ed-ink); }
.editorial-section :focus-visible, .ed-footer :focus-visible { outline-color: #193b64; }
.ed-tint { background: #f1f5f8; }
.ed-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.ed-kicker { font: 500 .66rem/1.7 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: #496580; }
.editorial-section h2 { font: 400 clamp(2.6rem, 4vw, 4rem)/1.05 "Instrument Serif", Georgia, serif; letter-spacing: -.035em; margin-top: 10px; }
.editorial-section em { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; color: #41688c; }
.ed-heading > p { max-width: 340px; font-size: .9rem; color: var(--ed-muted); line-height: 1.8; }
.ed-about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(35px, 8vw, 130px); padding-top: 38px; border-top: 1px solid var(--ed-line); }
.ed-statement { font: 400 clamp(1.6rem, 2.5vw, 2.25rem)/1.25 "Instrument Serif", Georgia, serif; max-width: 430px; }
.ed-prose { font-size: 1rem; color: var(--ed-muted); }
.ed-prose > p + p { margin-top: 24px; }
#sobre .ed-prose { max-width: 65ch; line-height: 1.8; }
#tecnologias .ed-skills { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 65px); }
#tecnologias .ed-skill { min-width: 0; }
#tecnologias .ed-skill h3 { line-height: 1.15; text-wrap: balance; }
#tecnologias .ed-skill p:not(.ed-skill-stack) { font-size: .86rem; line-height: 1.65; color: var(--ed-muted); }
#tecnologias .ed-skill .ed-skill-note { margin-top: 10px; font-size: .78rem; }
@media (max-width: 520px) {
  #tecnologias .ed-skills { grid-template-columns: minmax(0, 1fr); }
  #tecnologias .ed-skill { padding-block: 20px; }
  #tecnologias .ed-skill h3 { font-size: 1.65rem; }
  #sobre .ed-about { padding-top: 26px; gap: 26px; }
}
.ed-focus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--ed-line); }
.ed-focus dt { font: .62rem var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.ed-focus dd { margin: 8px 0 0; color: var(--ed-ink); font-size: .8rem; }
.ed-case { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: clamp(30px, 5vw, 80px); align-items: center; padding-block: 56px; border-top: 1px solid var(--ed-line); }
.ed-case-reverse { grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); }
.ed-case-reverse .ed-case-visual { order: 2; }
.ed-case-copy { min-width: 0; }
.ed-case h3 { font: 400 clamp(2.4rem, 3.4vw, 3.5rem)/1.05 "Instrument Serif", Georgia, serif; letter-spacing: -.035em; margin: 16px 0 20px; }
.ed-case-copy > p:not(.ed-kicker) { font-size: .95rem; color: var(--ed-muted); }
.ed-case-copy .ed-lead { font-size: 1.02rem !important; color: var(--ed-ink) !important; margin-bottom: 17px; }
.ed-image { position: relative; display: block; border: 1px solid #b9ccda; overflow: hidden; background: #e4ecf2; box-shadow: 0 22px 45px #193b6410; }
.ed-image img { width: 100%; height: auto; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.ed-image:hover img, .ed-image:focus-visible img { transform: scale(1.025); }
.ed-enlarge { position: absolute; bottom: 12px; right: 12px; background: #faf9f6; padding: 5px 11px; color: #193b64; font-size: .65rem; }
.ed-caption { font: .62rem/1.8 var(--font-mono); color: #496580; margin-top: 18px; }
.ed-secondary-photo { max-width: 58%; margin: 25px 0 0 auto; }
/* Imagens dos projetos formam uma galeria coerente, mantendo cada captura inteira. */
#projetos .ed-case-visual { min-width: 0; }
#projetos .ed-image { border-radius: 3px; background: #dfe6eb; }
#projetos .ed-image img { display: block; width: 100%; height: auto; aspect-ratio: auto; }
#projetos .ed-secondary-photo { width: min(58%, 360px); max-width: none; margin: -34px 0 0 auto; position: relative; z-index: 1; }
#projetos .ed-secondary-photo .ed-image { border: 5px solid #faf9f6; box-shadow: 0 16px 35px #193b6422; }
#projetos .ed-caption { padding-left: 2px; letter-spacing: .025em; }
@media (max-width: 800px) {
  #projetos .ed-secondary-photo { width: min(68%, 300px); margin-top: -24px; }
  #projetos .ed-secondary-photo .ed-image { border-width: 3px; }
}
.ed-tags { display: flex; flex-wrap: wrap; gap: 8px 17px; list-style: none; margin: 24px 0; padding: 0; color: #375b79; font: .64rem/1.5 var(--font-mono); }
.ed-tags li { border-bottom: 1px solid #b6cbdc; padding-bottom: 5px; }
.ed-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; margin-top: 24px; }
.ed-link { display: inline-flex; gap: 12px; align-items: center; min-height: 44px; font-size: .82rem; color: #193b64; text-decoration: underline; text-decoration-color: #a7bece; text-underline-offset: 6px; }
.ed-link span { transition: transform .25s; }
.ed-link:hover span, .ed-link:focus-visible span { transform: translate(3px,-3px); }
.ed-private { color: #496580; font: .65rem/1.6 var(--font-mono); }
.editorial-section .project-details { border-block: 1px solid var(--ed-line); margin-top: 20px; color: var(--ed-muted); font-size: .82rem; }
.editorial-section .project-details summary { color: #193b64; min-height: 48px; padding-block: 12px; }
.editorial-section .project-details p { color: var(--ed-muted); margin-block: 12px; }
#projetos .project-details h4 { margin: 18px 0 4px; color: var(--ed-ink); font: 600 .78rem/1.4 var(--font-sans); }
#projetos .project-details h4 + p { margin-top: 4px; }
.ed-diagram { padding: clamp(25px, 4vw, 55px); border: 1px solid #b8cbd9; background: #e7eff5; }
.ed-diagram-title { margin: 30px 0; font: 400 clamp(2rem, 3vw, 3rem)/1.1 "Instrument Serif", Georgia, serif; }
.ed-diagram ol { list-style: decimal-leading-zero; padding-left: 28px; margin: 0; }
.ed-diagram li { padding: 15px 0 15px 10px; border-top: 1px solid #bfd1df; font-size: .82rem; }
.ed-diagram li::marker { font: .65rem var(--font-mono); color: #41688c; }
.ed-diagram figcaption { margin-top: 28px; font-size: .64rem; color: #496580; }
.ed-repositories { padding-top: 35px; border-top: 1px solid var(--ed-line); display: grid; grid-template-columns: 1fr 2fr; align-items: center; gap: 25px; font-size: .86rem; }
.ed-repositories > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 28px; }
.ed-job { display: grid; grid-template-columns: 1fr 2fr; gap: 36px; border-top: 1px solid var(--ed-line); padding: 36px 0; }
.ed-job h3 { font-size: clamp(1.15rem, 2vw, 1.7rem); font-weight: 500; }
.ed-job p:not(.ed-kicker) { max-width: 700px; font-size: .92rem; color: var(--ed-muted); }
.ed-job .ed-company { margin: 12px 0 22px; color: #193b64; }
.ed-company-link { color: inherit; text-decoration: underline; text-decoration-color: var(--ed-line); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color .2s ease; }
.ed-company-link:hover, .ed-company-link:focus-visible { text-decoration-color: currentColor; }
.ed-skills { display: grid; grid-template-columns: 1fr 1fr; gap: 0 65px; }
.ed-skill { display: flex; gap: 26px; padding: 20px 0; border-top: 1px solid var(--ed-line); }
.ed-skill h3 { font: 400 2rem "Instrument Serif", Georgia, serif; }
.ed-skill-stack { margin: 15px 0 13px; font: .72rem/1.9 var(--font-mono); color: #193b64; }
.ed-skill p:last-child { font-size: .86rem; color: var(--ed-muted); }
.ed-education { display: grid; grid-template-columns: 1fr 1fr; gap: 65px; }
.ed-education .ed-heading { grid-column: 1 / -1; justify-content: center; text-align: center; margin-bottom: 0; }
.ed-education .ed-degree { grid-column: 1 / -1; width: min(100%, 680px); justify-self: center; text-align: center; }
.ed-degree { border-top: 1px solid var(--ed-line); padding-top: 30px; }
.ed-degree h3 { font: 400 clamp(2rem, 3.1vw, 3rem)/1.1 "Instrument Serif", Georgia, serif; margin: 28px 0 16px; }
.ed-degree p { font-size: .85rem; color: var(--ed-muted); }
.ed-degree .ed-institution { font-size: 1rem; color: #193b64; margin-bottom: 10px; }
.ed-degree-note { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--ed-line); }
.ed-contact { background: #e7eff5; }
.ed-contact h2 { font-size: clamp(2.8rem, 4.5vw, 4.5rem); }
.ed-contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; margin-top: 50px; }
.ed-contact-intro > p { max-width: 410px; font-size: .95rem; color: var(--ed-muted); }
.ed-contact-character { width: min(100%, 500px); margin-top: 25px; overflow: hidden; }
.ed-contact-character img { display: block; width: 150%; max-width: none; height: auto; margin-left: -25%; aspect-ratio: 724 / 241; }
@media (max-width: 800px) { .ed-contact-character { width: min(100%, 360px); margin-top: 22px; } }
.ed-email { display: block; overflow-wrap: anywhere; font-size: clamp(.9rem, 1.6vw, 1.4rem); padding-bottom: 18px; border-bottom: 1px solid #a6bece; }
.editorial-section .copy-email { width: auto; height: auto; min-height: 44px; border: 0; padding: 0; border-radius: 0; background: transparent; color: #193b64; font-size: .78rem; }
.editorial-section .copy-email:hover { background: transparent; text-decoration: underline; }
.editorial-section .copy-status { color: #193b64; }
.ed-location { color: #496580; font: .65rem var(--font-mono); margin-top: 40px; }
.ed-footer { border-top: 1px solid #ccdbe6; padding: 35px 0; }
.ed-footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 25px; }
.ed-footer p { font-size: .72rem; color: #496580; }
@media (prefers-reduced-motion: no-preference) {
  .editorial-section .reveal.is-revealing { animation: ed-reveal .6s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes ed-reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
}
@media (max-width: 800px) {
  .editorial-section:not(#projetos) { min-height: calc(100svh - var(--header-height, 76px)); padding-block: 32px; }
  .ed-heading { display: block; margin-bottom: 40px; }
  .ed-heading > p { margin-top: 25px; }
  .ed-about, .ed-education, .ed-contact-grid { grid-template-columns: 1fr; gap: 35px; }
  .ed-case, .ed-case-reverse { grid-template-columns: minmax(0,1fr); gap: 32px; padding-block: 50px; }
  .ed-case-reverse .ed-case-visual { order: 0; }
  .ed-case-copy { max-width: 600px; }
  .ed-repositories { grid-template-columns: 1fr; gap: 14px; }
  .ed-job { grid-template-columns: 1fr; gap: 18px; }
  .ed-skills { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
  .ed-skill { display: block; padding: 14px 0; }
  .ed-skill h3 { font-size: 1.35rem; }
  .ed-skill p:last-child { font-size: .78rem; line-height: 1.5; }
  .ed-focus { grid-template-columns: 1fr; }
  .ed-focus > div { display: flex; justify-content: space-between; gap: 15px; }
  .ed-focus dd { margin: 0; }
  .ed-footer-inner { align-items: start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .editorial-section *, .editorial-section *::before, .editorial-section *::after { animation: none !important; transition: none !important; scroll-behavior: auto; } }
