/* =========================================================
   1. TOKENS / BASE
========================================================= */

:root {
  --bg: #f8f7f3;
  --text: #191919;
  --muted: #5d5a55;
  --line: rgba(25, 25, 25, 0.12);

  --max-width: 720px;
  --pad-x: 28px;

  --space-xl: 9rem;
  --space-lg: 6rem;
  --space-md: 3rem;
  --space-sm: 1.25rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}

/* =========================================================
   2. LINKS
========================================================= */

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(25, 25, 25, 0.18);
  transition: border-color 180ms ease, opacity 180ms ease;
}

a:hover {
  border-color: rgba(25, 25, 25, 0.45);
  opacity: 0.9;
}

/* =========================================================
   3. HEADER / MENU
========================================================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: rgba(248, 247, 243, 0.78);
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem var(--pad-x);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  font-family: "Inter", sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

.topbar a {
  border-bottom: none;
  color: var(--muted);
}

.topbar a:hover {
  color: var(--text);
  opacity: 1;
}

.topbar a.active {
  color: var(--text);
}

.topbar .brand {
  margin-right: 1.2rem;
  color: var(--text);
}

/* =========================================================
   4. HERO
========================================================= */

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--pad-x);
}

.hero-inner {
  max-width: 860px;
}

.hero h1 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(2.6rem, 5.2vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.signature {
  margin-top: 2rem;
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* =========================================================
   5. LAYOUT
========================================================= */

.page {
  padding: 0 var(--pad-x) var(--space-xl);
}

.section {
  max-width: var(--max-width);
  margin: 0 auto calc(var(--space-xl) * 0.85);
}

/* largura consistente das páginas internas */
.section.narrow {
  max-width: 620px;
}

.section.intro {
  margin-top: 1rem;
}

/* =========================================================
   6. TIPOGRAFIA
========================================================= */

strong {
  font-weight: 600;
}

.body-text p strong {
  letter-spacing: -0.01em;
}

.eyebrow {
  margin-bottom: 0.9rem;
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--muted);
  opacity: 0.65;
}

.body-text {
  font-size: clamp(1.4rem, 1.8vw, 1.7rem);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.body-text p {
  margin: 0 0 1.35rem;
  font-weight: 400;
}

.section.narrow .body-text {
  font-weight: 400;
  letter-spacing: 0.01em;
}

.body-text h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(2.2rem, 3.2vw, 2.8rem);
  line-height: 1.2;
  margin: 0 0 2.2rem;
  letter-spacing: -0.01em;
}

/* textos longos */
.text-meta {
  margin-bottom: 2rem;
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  color: var(--muted);
}

.text-body {
  font-size: clamp(1.55rem, 1.95vw, 1.8rem);
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.text-body p {
  margin: 0 0 1.35rem;
}

/* =========================================================
   7. HOME / BLOCOS
========================================================= */

.paths {
  display: grid;
  gap: 3.5rem;
}

.path {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.path h2,
.continuity h2,
.closing h2 {
  margin: 0 0 0.75rem;
  font-family: "Inter", sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--muted);
}

.path p,
.continuity p,
.closing p {
  font-size: clamp(1.3rem, 1.7vw, 1.55rem);
  line-height: 1.4;
}

.continuity,
.closing {
  max-width: 640px;
}

/* =========================================================
   8. LINKS / LISTAS
========================================================= */

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.4rem;
  margin-top: 1rem;
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  line-height: 1.4;
}

/* =========================================================
   9. FOOTER
========================================================= */

.footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer a {
  border-bottom: none;
  color: var(--muted);
}

.footer a:hover {
  color: var(--text);
  opacity: 1;
}

/* =========================================================
   10. RESPONSIVO
========================================================= */

@media (min-width: 900px) {
  .paths {
    gap: 4.25rem;
  }
}

@media (max-width: 640px) {
  :root {
    --space-xl: 6.5rem;
    --space-lg: 4.5rem;
    --space-md: 2.25rem;
    --pad-x: 22px;
  }

  .topbar-inner {
    gap: 0.9rem;
    font-size: 0.78rem;
    flex-wrap: wrap;
  }

  .hero {
    min-height: 82vh;
  }

  .body-text {
    font-size: clamp(1.28rem, 6vw, 1.5rem);
    line-height: 1.48;
  }

  .body-text h1 {
    font-size: clamp(2rem, 8vw, 2.4rem);
    line-height: 1.15;
    margin-bottom: 1.8rem;
  }

  .text-body {
    font-size: clamp(1.35rem, 5.2vw, 1.55rem);
    line-height: 1.5;
  }

  .link-list {
    flex-direction: column;
    gap: 0.7rem;
    align-items: flex-start;
  }
}