:root {
  --void: #05050a;
  --deep: #0c0d16;
  --ink: #edebe6;
  --dim: #8b8a99;
  --line: #22222f;
  --gold: #e8a94a;
  --ember: #c1502e;
  --photon: #6fa8dc;

  --serif: "Fraunces", Georgia, serif;
  --sans: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { color-scheme: dark; scroll-behavior: smooth; }

html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

a { color: inherit; }

#hole {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  display: block;
}

#fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  z-index: 5;
  display: block;
  pointer-events: none;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 6vw;
  z-index: 1;
}

.topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: 0.9rem;
}

.topnav__mark {
  font-family: var(--serif);
  letter-spacing: 0.04em;
  color: var(--dim);
}

.topnav__cta {
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.topnav__cta:hover { color: var(--gold); }

.hero__content {
  max-width: 46rem;
  margin: auto 0;
  padding: 4rem 0;
}

.hero__name {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.04;
  margin: 0 0 1.3rem;
  letter-spacing: -0.01em;
}

.hero__role {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--dim);
  max-width: 32ch;
  margin: 0 0 1.6rem;
}

.hero__cv {
  display: inline-block;
  text-decoration: none;
  color: var(--gold);
  font-size: 0.92rem;
  border-bottom: 1px solid var(--ember);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero__cv:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.scroll-cue {
  align-self: center;
  margin-bottom: 2.5rem;
  width: 1px;
  height: 3rem;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.scroll-cue span {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gold);
  animation: cue 2.2s ease-in-out infinite;
}

@keyframes cue {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue span { animation: none; top: 0; }
}

main {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, transparent, var(--void) 60vh);
}

.section {
  background: var(--void);
}

.sobre {
  background: transparent;
}

.section {
  max-width: 62rem;
  margin: 0 auto;
  padding: 6rem 6vw 2rem;
  border-top: 1px solid var(--line);
}

.section:first-of-type { border-top: none; }

.section__head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.9rem;
  margin: 0 0 2.5rem;
}

.sobre__layout {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 2.5rem;
  align-items: start;
  max-width: 46rem;
}

.avatar {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--ember), var(--void) 72%);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sobre__body p {
  color: var(--ink);
  font-size: 1.05rem;
  max-width: 62ch;
}

.sobre__body p:last-child { color: var(--dim); }

@media (max-width: 560px) {
  .sobre__layout {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .avatar { width: 6rem; height: 6rem; }
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 1px;
  background: var(--line);
}

.timeline__item {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1.5rem;
  padding-bottom: 3rem;
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__when {
  position: relative;
  padding-left: 1.8rem;
  color: var(--dim);
  font-size: 0.9rem;
}

.timeline__dot {
  position: absolute;
  left: -1px;
  top: 0.35rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--void);
  border: 2px solid var(--gold);
}

.timeline__what h3 {
  margin: 0 0 0.2rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
}

.timeline__org {
  margin: 0 0 0.6rem;
  color: var(--ember);
  font-size: 0.95rem;
}

.timeline__what p:not(.timeline__org) {
  margin: 0;
  color: var(--dim);
  max-width: 58ch;
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.skills__group h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.05rem;
  margin: 0 0 0.9rem;
  color: var(--gold);
}

.skills__group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--dim);
  font-size: 0.95rem;
}

.skills__group li {
  padding: 0.35rem 0;
  border-top: 1px solid var(--line);
}

.skills__group li:first-child { border-top: none; }

.projetos__list {
  display: flex;
  flex-direction: column;
}

.proj {
  padding: 1.8rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 16rem 1fr;
  gap: 1.5rem;
}

.proj:first-child { border-top: none; }

.proj__meta h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  margin: 0 0 0.2rem;
}

.proj__meta h3 a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.proj__meta h3 a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.proj__meta span {
  color: var(--dim);
  font-size: 0.85rem;
}

.proj p {
  margin: 0;
  color: var(--dim);
  max-width: 58ch;
}

.github__profile {
  display: inline-block;
  margin-top: 2rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.github__profile:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.contato__body p {
  font-size: 1.05rem;
  max-width: 40ch;
}

.contato__links {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contato__links a {
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.3rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.3rem;
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  transition: border-color 0.2s ease, color 0.2s ease;
}

@media (max-width: 480px) {
  .contato__links a { font-size: 1.05rem; }
}

.contato__links a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 1rem 4rem;
  color: var(--dim);
  font-size: 0.85rem;
}

.footer__horizon {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1rem;
  margin: 0 0 1rem;
}

.footer__credit {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.footer__linus {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

@media (max-width: 780px) {
  .timeline__item, .proj {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .timeline::before { left: 5px; }
  .timeline__what { padding-left: 1.8rem; }
  .skills__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .skills__grid { grid-template-columns: 1fr; }
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
