/* Portfólio da Artificial Manufactory. Marca: ícone preto, "Artificial" em sans, "Manufactory" em serifa. */
:root {
  --page: #f6f6f4;
  --panel: #ffffff;
  --ink: #0b0b0b;
  --ink-2: #2a2a26;
  --muted: #5e5e58;
  --dim: #85857e;
  --line: rgba(0, 0, 0, 0.09);
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --wrap: min(1120px, calc(100vw - 3rem));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}
@media (max-width: 640px) {
  :root {
    --wrap: calc(100vw - 2rem);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--page);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1,
h2,
h3,
p,
ul,
dl,
dd,
figure {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
}
img,
svg {
  display: block;
  max-width: 100%;
}
::selection {
  background: rgba(0, 0, 0, 0.12);
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: fixed;
  z-index: 200;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--page);
  font-size: 0.875rem;
  text-decoration: none;
  clip-path: inset(50%);
}
.skip-link:focus {
  clip-path: none;
}

/* ---------- Marca ---------- */
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.lockup img {
  width: 1.75rem;
  height: 1.75rem;
}
.lockup b {
  font-weight: 700;
  letter-spacing: -0.02em;
}
.lockup i {
  font: 400 1.12em/1 var(--serif);
  letter-spacing: -0.01em;
}
.lockup.small {
  font-size: 0.9rem;
}
.lockup.small img {
  width: 1.25rem;
  height: 1.25rem;
}

/* ---------- Menu ---------- */
.nav {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 246, 244, 0.85);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}
.nav-inner {
  display: flex;
  width: var(--wrap);
  height: 3.75rem;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease;
}
.nav-links a:hover {
  color: var(--ink);
}
@media (max-width: 480px) {
  .nav-links {
    gap: 1rem;
    font-size: 0.8125rem;
  }
  .nav .lockup {
    font-size: 0.95rem;
  }
  .nav .lockup img {
    width: 1.5rem;
    height: 1.5rem;
  }
}
@media (max-width: 560px) {
  .nav-links a:not([href="#contato"]) {
    display: none;
  }
}

/* ---------- Abertura ---------- */
.intro {
  display: grid;
  width: var(--wrap);
  margin: 0 auto;
  padding: 6rem 0 1rem;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .intro {
    padding-top: 8rem;
  }
}
.intro-mark {
  width: 3.5rem;
  height: 3.5rem;
}
.intro h1 {
  max-width: 17em;
  font-size: clamp(2.1rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.042em;
  text-wrap: balance;
}
.intro p {
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.175rem);
  text-wrap: pretty;
}

/* ---------- Seções ---------- */
.section {
  width: var(--wrap);
  margin: 0 auto;
  padding-top: 6rem;
}
.label {
  margin-bottom: 1.5rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Trabalhos em destaque */
.featured {
  display: grid;
  gap: 2rem 1.25rem;
}
@media (min-width: 760px) {
  .featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.work {
  display: grid;
  gap: 1rem;
  text-decoration: none;
}
.work-shot {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  aspect-ratio: 16 / 10;
}
.work-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 600ms var(--ease);
}
.work:hover .work-shot img {
  transform: scale(1.02);
}
.work-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}
.work h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.work p {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
.work-kind {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.3rem;
  padding-top: 0.2rem;
  color: var(--dim);
  font-size: 0.8125rem;
}
.work-kind svg,
.contact-line svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 150ms ease;
}
.work:hover .work-kind {
  color: var(--ink);
}
.work:hover .work-kind svg {
  transform: translate(1px, -1px);
}

/* Índice de projetos */
.index {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
}
.row {
  display: grid;
  gap: 0.35rem 2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 860px) {
  .row {
    grid-template-columns: 15rem minmax(0, 1fr) 12rem;
    align-items: baseline;
  }
}
.row h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.row p {
  max-width: 38rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
.row-meta {
  color: var(--dim);
  font-size: 0.8125rem;
}
@media (min-width: 860px) {
  .row-meta {
    text-align: right;
  }
}

/* Sobre */
.about-body {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .about-body {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 4rem;
  }
}
.about-lede {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.5;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}
.skills div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.skills div:first-child {
  padding-top: 0.2rem;
}
.skills dt {
  font-weight: 500;
}
.skills dd {
  color: var(--muted);
}

/* Contato */
.contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  font-size: clamp(0.95rem, 3.9vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}
.contact-line a {
  overflow-wrap: anywhere;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 300ms var(--ease);
}
.contact-line a:hover {
  background-size: 100% 1px;
}

/* Rodapé */
.footer {
  margin-top: 7rem;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  width: var(--wrap);
  margin: 0 auto;
  padding: 1.75rem 0 2.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--dim);
  font-size: 0.8125rem;
}

/* Entrada suave */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.rise {
  animation: rise 0.7s var(--ease) backwards;
  animation-delay: var(--d, 0s);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
