/* ==========================================================================
   Fonts (variable, self-hosted)
   ========================================================================== */

@font-face {
  font-family: "Urbanist";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/urbanist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Urbanist";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/urbanist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
  --bg: #000;
  --bg-hover: #0c0c0b;
  --header-bg: rgb(0 0 0 / 0.85);

  --text: #f5f5f3;
  --text-muted: #9a9a96;
  --text-subtle: #8a8a86;
  --text-faint: #777773;
  --text-dim: #6b6b67;

  --line: #232320;
  --line-soft: #1a1a18;
  --line-card: #2a2a27;
  --line-tag: #2e2e2b;
  --line-hover: #4a4a45;

  --accent: #d4f425;
  --accent-hover: #e5ff5c;

  --font-sans: "Urbanist", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --container: 1120px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 62px;
  --section-space: clamp(88px, 11vw, 144px);
  --ease: 0.15s ease;
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color-scheme: dark;
  scroll-padding-top: calc(var(--header-h) + 32px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
p,
ol {
  margin: 0;
}

ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--ease);
}

a:hover {
  color: var(--accent-hover);
}

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

::selection {
  background: var(--accent);
  color: var(--bg);
}

.sprite {
  display: none;
}

.icon {
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--accent {
  color: var(--accent);
  stroke: var(--accent);
  stroke-width: 1.8;
}

.accent {
  color: var(--accent);
}

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

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Um único ritmo vertical: o espaço entre seções vem do gap do <main>. */
main {
  display: flex;
  flex-direction: column;
  gap: var(--section-space);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Header ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}

.logo {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

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

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-block: 10px;
  margin-block: -10px;
  font-size: 16px;
  color: var(--text-muted);
}

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

/* Footer ------------------------------------------------------------------ */

.site-footer {
  margin-top: var(--section-space);
  padding-bottom: clamp(44px, 6vw, 68px);
  text-align: center;
}

.site-footer::before {
  content: "";
  display: block;
  margin-bottom: 44px;
  border-top: 1px solid var(--line);
}

.site-footer__brand {
  font-size: 17px;
  color: var(--text-subtle);
}

.site-footer__copy {
  margin-top: 12px;
  font-size: 16px;
  color: var(--text-faint);
}

/* ==========================================================================
   Components
   ========================================================================== */

/* Button ------------------------------------------------------------------ */

.button {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 19px 34px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-size: 18px;
  font-weight: 600;
  transition: transform var(--ease), background-color var(--ease);
}

.button:hover {
  background: var(--accent-hover);
  color: var(--bg);
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

/* Tag --------------------------------------------------------------------- */

.tag {
  padding: 6px 13px;
  border: 1px solid var(--line-tag);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-subtle);
}

/* ==========================================================================
   Sections
   ========================================================================== */

/* Hero -------------------------------------------------------------------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: clamp(80px, 12vw, 150px);
}

.hero__kicker {
  max-width: 34ch;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 2;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.hero__title {
  margin-top: 28px;
  font-size: clamp(64px, 11vw, 140px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--text);
}

.hero__title > span {
  display: inline-block;
}

.hero__lead {
  max-width: 34ch;
  margin-top: 36px;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: pretty;
}

.hero .button {
  margin-top: 52px;
}

.hero__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-size: 16px;
  color: var(--text-muted);
}

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

/* Sobre ------------------------------------------------------------------- */

.prose {
  max-width: 62ch;
  margin-top: 36px;
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.65;
  color: var(--text-muted);
}

.prose p {
  text-wrap: pretty;
}

.prose p + p {
  margin-top: 28px;
}

/* Projetos ---------------------------------------------------------------- */

.projects {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.projects > li {
  border-bottom: 1px solid var(--line);
}

.project {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 8px 20px;
  align-items: baseline;
  padding-block: 34px;
  color: inherit;
  transition: background-color var(--ease);
}

.project:hover {
  background: var(--bg-hover);
  color: inherit;
}

.project__num {
  grid-column: 1;
  grid-row: 1 / span 2;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-dim);
}

.project__head {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  min-width: 0;
}

.project__name {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.project__arrow {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: start;
  color: var(--text-muted);
  transition: color var(--ease), transform var(--ease);
}

.project:hover .project__arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.project__desc {
  grid-column: 2;
  max-width: 52ch;
  margin-top: 6px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* Contato ----------------------------------------------------------------- */

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact__title {
  max-width: 16ch;
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--text);
  text-wrap: balance;
}

.contact__text {
  max-width: 44ch;
  margin-top: clamp(24px, 3vw, 32px);
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: balance;
}

.contact__action {
  margin-top: clamp(40px, 5vw, 56px);
}
