@charset "UTF-8";

@font-face {
  font-family: "8segdiag";
  src: url("assets/fonts/8segdiag.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --background: #ececec;
  --text: #080808;
  --muted: #505050;
  --line: #cbcbcb;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--background);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  line-height: 1.25;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}
.section {
  padding-block: 88px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  background: #000;
  color: #fff;
  padding: 10px 18px;
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: translateY(0);
}

/* O cabeçalho e a abertura seguem a composição do PDF de referência. */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 25px;
}
.wordmark {
  display: block;
  font-family: "8segdiag", monospace;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.1;
  text-decoration: none;
  letter-spacing: 0;
}
.header nav {
  display: flex;
  justify-content: center;
  gap: 44px;
  margin-top: 27px;
}
.header nav a {
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.5;
}
.header nav a:hover,
.header nav a[aria-current="location"] {
  text-decoration: underline;
}
.hero {
  text-align: center;
  padding-top: 126px;
  padding-bottom: 150px;
}
h1 {
  font-size: clamp(38px, 4.45vw, 64px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
}
.role {
  font-size: 32px;
  margin-top: 5px;
  line-height: 1.2;
}
.intro {
  max-width: 500px;
  margin: 28px auto 0;
  line-height: 1.25;
}
.stack-line {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 39px;
  list-style: none;
  padding: 0;
  margin: 31px 0 0;
}
.stack-line li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}
.stack-line img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 46px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  min-width: 192px;
  min-height: 44px;
  padding: 9px 22px;
  border: 1px solid var(--text);
  text-decoration: none;
  line-height: 1.5;
}
.button:hover {
  background: #dedede;
}
.button.dark {
  color: #fff;
  background: #000;
  border-color: #000;
}
.button.dark:hover {
  background: #303030;
}
a:active,
button:active {
  opacity: 0.65;
}

/* Seções com títulos simples, linhas finas e sem blocos decorativos. */
h2 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.section-heading {
  text-align: center;
  margin-bottom: 40px;
}
.projects {
  border-top: 1px solid var(--line);
}
.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 44px;
}
.filters button {
  padding: 7px 0;
  background: none;
  border: 0;
  font-size: 14px;
  color: var(--muted);
}
.filters button:hover,
.filters button[aria-pressed="true"] {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 6px;
}
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 64px;
  row-gap: 48px;
}
.project {
  min-width: 0;
  align-self: start;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.project-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1366 / 768;
  object-fit: cover;
  margin-bottom: 24px;
}
.project-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 12px;
}
.project-meta span + span::before {
  content: "·";
  margin-right: 10px;
}
.project h3 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.project-body > p {
  font-size: 15px;
  color: var(--muted);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
  font-size: 12px;
  color: var(--muted);
}
.project details {
  margin-top: 21px;
}
.project summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
  min-height: 34px;
}
.project summary::-webkit-details-marker {
  display: none;
}
.project summary:hover > span:not([aria-hidden]) {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.project summary > span[aria-hidden] {
  font-size: 20px;
  line-height: 1;
}
.project details[open] summary > span[aria-hidden] {
  transform: rotate(45deg);
}
.case-content {
  padding-top: 18px;
}
.case-content h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.case-content p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}
.case-content p:last-child {
  margin-bottom: 0;
}
.case-content .case-note {
  font-size: 12px;
}
.text-link {
  display: inline-block;
  font-size: 13px;
  text-decoration: underline;
}
.project .text-link {
  margin-top: 20px;
}

.experience-band > .wrap {
  border-top: 1px solid var(--line);
}
.experience-layout {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 80px;
  margin-top: 56px;
}
.company h3 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.company p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 12px;
}
.company .mono {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 20px;
}
.timeline article + article {
  margin-top: 32px;
}
.timeline-date {
  font-size: 12px;
  color: var(--muted);
}
.timeline h3 {
  font-size: 19px;
  font-weight: 500;
  margin: 8px 0 12px;
  letter-spacing: -0.025em;
}
.timeline p {
  color: var(--muted);
  font-size: 14px;
}
.experience-summary {
  max-width: 730px;
  margin: 44px 0 0 auto;
  font-size: 14px;
  color: var(--muted);
}

#sobre {
  border-top: 1px solid var(--line);
}
.about-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 90px;
}
.about-intro {
  margin-top: 26px;
}
.about-layout > div > p {
  color: var(--muted);
  font-size: 15px;
}
.about-layout > div > p + p {
  margin-top: 18px;
}
.education {
  margin-top: 32px;
}
.education h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.education p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
}
.skills {
  padding-top: 65px;
}
.skills > div + div {
  margin-top: 26px;
}
.skills h3 {
  font-size: 16px;
  font-weight: 500;
}
.skills p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}

.contact {
  padding-block: 78px 90px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.contact-bottom {
  margin-top: 32px;
}
.email-link {
  font-size: clamp(16px, 2.3vw, 24px);
  text-decoration: none;
}
.email-link:hover {
  text-decoration: underline;
}
.copy-button {
  display: block;
  margin: 9px auto 0;
  min-height: 32px;
  padding: 5px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.copy-status {
  font-size: 12px;
  margin-top: 5px;
}
.contact .button {
  margin-top: 24px;
  min-width: 160px;
}
.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding-block: 25px;
  font-size: 11px;
  color: var(--muted);
}
.footer a {
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}

@media (min-width: 1600px) {
  .hero {
    padding-top: 165px;
    padding-bottom: 180px;
  }
}
@media (max-width: 1000px) {
  .hero {
    padding-top: 110px;
    padding-bottom: 110px;
  }
  .project-grid {
    column-gap: 40px;
  }
  .experience-layout,
  .about-layout {
    gap: 44px;
  }
}
@media (max-width: 650px) {
  html {
    scroll-padding-top: 24px;
  }
  .wrap {
    width: calc(100% - 40px);
  }
  .header {
    padding-top: 24px;
  }
  .wordmark {
    font-size: 30px;
  }
  .header nav {
    gap: 22px;
    margin-top: 26px;
  }
  .header nav a {
    font-size: 11px;
  }
  .hero {
    padding-top: 85px;
    padding-bottom: 85px;
  }
  h1 {
    font-size: clamp(32px, 7.5vw, 46px);
    max-width: 500px;
    margin-inline: auto;
  }
  .role {
    font-size: 23px;
    margin-top: 10px;
  }
  .intro {
    font-size: 14px;
    line-height: 1.6;
    max-width: 460px;
    margin-top: 24px;
  }
  .stack-line {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 12px;
    max-width: 360px;
    margin: 30px auto 0;
  }
  .stack-line li {
    font-size: 11px;
  }
  .stack-line img {
    width: 25px;
    height: 25px;
  }
  .hero-actions {
    gap: 10px;
    margin-top: 32px;
  }
  .hero-actions .button {
    min-width: 0;
    flex: 1;
    max-width: 192px;
    padding: 10px 12px;
    font-size: 13px;
  }
  .section {
    padding-block: 58px;
  }
  h2 {
    font-size: 28px;
  }
  .section-heading {
    margin-bottom: 28px;
  }
  .filters {
    gap: 22px;
    margin-bottom: 30px;
  }
  .filters button {
    font-size: 12px;
    min-height: 40px;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .project h3 {
    font-size: 23px;
  }
  .project-body > p {
    font-size: 14px;
  }
  .project summary {
    min-height: 44px;
  }

  .experience-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 35px;
  }
  .company h3 {
    font-size: 22px;
  }
  .company .mono {
    margin-top: 12px;
  }
  .experience-summary {
    margin-top: 32px;
  }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-layout h2 {
    text-align: center;
  }
  .skills {
    padding-top: 0;
  }
  .contact {
    padding-block: 58px;
  }
  .footer {
    font-size: 10px;
  }
  .footer span:first-child {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@media print {
  :root {
    background: white;
  }
  body {
    font-size: 10pt;
  }
  .wrap {
    width: 100%;
  }
  .header {
    padding-top: 0;
  }
  .wordmark {
    font-size: 24px;
  }
  .header nav,
  .hero-actions,
  .filters,
  .copy-button,
  .copy-status,
  .footer a {
    display: none !important;
  }
  .hero,
  .section,
  .contact {
    padding-block: 25px;
  }
  h1 {
    font-size: 30pt;
  }
  h2 {
    font-size: 22pt;
  }
  .role {
    font-size: 19pt;
  }
  .intro {
    max-width: none;
  }
  .stack-line {
    margin-top: 20px;
  }
  .project-grid {
    display: block;
  }
  .project {
    break-inside: avoid;
    padding-top: 15px;
    margin-bottom: 24px;
  }
  .project details {
    display: none;
  }
  .experience-layout,
  .about-layout {
    display: block;
  }
  .timeline,
  .skills {
    margin-top: 25px;
  }
  .experience-summary {
    max-width: none;
  }
  .skills {
    padding-top: 0;
  }
  .contact .button {
    border: 0;
    background: none;
    color: black;
    padding: 0;
    min-height: 0;
  }
}

.email-reveal {
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  line-height: inherit;
}

/* Links entre páginas estáticas; funciona também sem JavaScript. */
.language-switch {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 13px;
}
.language-switch a {
  text-decoration: none;
}
.language-switch a:hover {
  text-decoration: underline;
}
@media (max-width: 650px) {
  .language-switch {
    top: 20px;
    right: 20px;
    font-size: 12px;
  }
}
@media print {
  .language-switch {
    display: none;
  }
}
