﻿/* GERAL: Início */
body {
  min-height: 100vh;
  font: 1.0625rem/1.7 var(--font-body);
  letter-spacing: 0.01em;
  color: var(--text);
  background-color: var(--bg);
  transition: var(--transition-theme);
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-link);
}

:focus-visible {
  outline: 2px solid var(--border-strong);
  outline-offset: 4px;
}

.container {
  width: min(100% - 2.5rem, 640px);
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  white-space: nowrap;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Media Query */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 1.5rem, 640px);
  }

  main.container {
    padding: 3.5rem 0 4rem;
  }
}
/* GERAL: Fim */

/* NAVEGAÇÃO: Início */
.topbar {
  padding: 1.25rem 0;
  border-bottom: 2px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem 0.9rem;
  
}

.topbar-logo {
  font: italic 700 1.1rem var(--font-mark);
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: right;
  padding: 0.5rem 1rem;
  font: 0.72rem var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  transition: var(--transition-link);
  cursor: pointer;
}

.button-ghost {
  color: var(--muted);
  background: transparent;
}

.button-ghost:hover {
  color: var(--text);
}

.theme-btn {
  width: 2.3rem;
  height: 2.3rem;
  padding: 0;
}

.icon-sun,
.icon-moon {
  display: none;
  font-size: 1.15rem;
  line-height: 1;
}

[data-theme="dark"] .icon-moon,
[data-theme="light"] .icon-sun {
  display: inline;
}

/* Media Query */
@media (max-width: 520px) {
  .topbar-inner {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }

  .topbar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
  }
}
/* NAVEGAÇÃO: Fim */

/* CONTEÚDO: Início */
/* HEADER: Início */
.hero {
  margin: 6rem 0;
}

.hero-name {
  margin-bottom: 1.15rem;
  font-size: clamp(2.8rem, 8vw, 4.25rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.hero-sub {
  max-width: 26rem;
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
}

/* Media Query */
@media (max-width: 520px) {
  .hero {
    margin-bottom: 4rem;
  }
}
/* HEADER: Fim */

/* SEÇÃO: Início */
.content-section {
  margin-bottom: 4.5rem;
}

.section-header {
  margin-bottom: 1.75rem;
}

.section-title {
  font: 500 0.75rem var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-divider {
  width: 100%;
  height: 2px;
  margin-top: 0.75rem;
  background-color: var(--border);
}

/* SUB-SEÇÃO: Início */
.sub-label {
  display: block;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--subtle);
}

.sub-label:first-of-type {
  margin-top: 0;
}

.item-list {
  --expected-rows: 1;
  --row-min-block-size: 3.1rem;
  min-block-size: calc(var(--expected-rows) * var(--row-min-block-size));
  margin: 0;
  padding: 0;
}

.item-list--2 { --expected-rows: 2; }
.item-list--3 { --expected-rows: 3; }

.item-list--timeline {
  --row-min-block-size: 4.5rem;
}

.item-row {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

a.item-row:hover {
  opacity: 0.8;
  transform: translateY(-4px);
}

.item-name {
  flex: 1;
  font-size: 1.0625rem;
  line-height: 1.4;
}

.item-name em {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.92rem;
  font-style: italic;
  color: var(--muted);
}

.item-tag {
  flex-shrink: 0;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtle);
}

.tag-pessoal { color: var(--tag-pessoal); }
.tag-desafio { color: var(--tag-desafio); }
.tag-estudo { color: var(--tag-estudo); }
.tag-profissional { color: var(--tag-profissional); }
.tag-experimento { color: var(--tag-experimento); }

.static-row {
  cursor: default;
}

.item-empty {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--subtle);
  font-style: italic;
}

@media (max-width: 520px) {
  .item-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
}
/* SUB-SEÇÃO: Fim */
/* SEÇÃO: Fim */
/* CONTEÚDO: Fim */


/* RODAPÉ: Início */
.footer {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy,
.footer-link {
  font: 0.6875rem var(--font-mono);
  letter-spacing: 0.04em;
}

.footer-copy {
  color: var(--text);
}

.copyleft {
  display: inline-block;
  transform: scaleX(-1);
}

.footer-link {
  margin-left: 0.5rem;
  color: var(--subtle);
}

.footer-link:hover {
  color: var(--text);
}

/* Media Query */
@media (max-width: 520px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem 1rem;
  }

  .footer-link {
    margin-left: 0;
  }
}
/* RODAPÉ: Fim */