@font-face {
  font-family: Cinzel;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/cinzel-700.woff2") format("woff2");
}
@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/montserrat-500.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --bg-2: #f8f5ef;
  --ink: #15181f;
  --muted: #5c6472;
  --gold: #c5a059;
  /* Dourado legivel como TEXTO sobre branco (5.2:1). O --gold puro da apenas
     2.4:1 e so deve ser usado em preenchimento e acento. */
  --gold-ink: #8a6520;
  /* Fio estrutural neutro: bordas e divisores nao carregam a cor da marca;
     o dourado fica reservado para acento. */
  --line: rgba(21, 24, 31, 0.12);
  --max: 1080px;
  --prose: 68ch;
  --serif: Cinzel, Georgia, serif;
  --sans: Montserrat, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.65 Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-ink); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
h1, h2, h3, .brand-name, .hero-name, .footer-brand {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
}
h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin: 1.6em 0 0.5em; }
h3 { font-size: 1.1rem; color: var(--gold-ink); }

.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.prose { width: min(var(--prose), calc(100% - 2rem)); }
.kicker {
  margin: 0 0 0.6rem;
  color: var(--gold-ink);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.lead { font-size: 1.15rem; color: var(--muted); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { position: relative; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  width: 58px;
  height: 40px;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--line);
  line-height: 1;
}
.brand-name {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.icon-substack {
  display: block;
  flex-shrink: 0;
  width: 1em;
  height: 1em;
}
.btn-substack {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.btn-header {
  padding: 0.62rem 0.95rem;
  white-space: nowrap;
}
.site-nav {
  display: none;
  position: absolute;
  inset: 76px 0 auto;
  flex-direction: column;
  gap: 0;
  padding: 0.6rem 0 1.1rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.site-nav.is-open { display: flex; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.85rem 1.2rem;
}
.site-nav a[aria-current="page"], .site-nav a:hover { color: var(--gold-ink); }
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] {
  color: var(--gold-ink);
  border-color: var(--gold-ink);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.hero {
  padding: 3.6rem 0 4.2rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.4rem 2.8rem;
  align-items: center;
}
.hero-portrait { margin: 0; }
.hero-portrait img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 58% 42%;
}
.hero-sub {
  margin: 0;
  color: var(--gold-ink);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-family: var(--sans);
  font-weight: 500;
}
.hero-name {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  margin: 0.55rem 0 0;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero-line {
  margin: 1.7rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  justify-content: flex-start;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.78rem 1.35rem;
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-gold {
  background: var(--gold);
  color: #15181f;
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-ink);
  color: var(--bg);
  border-color: var(--gold-ink);
}
.btn-ghost:hover {
  border-color: var(--gold-ink);
  color: var(--gold-ink);
}

/* Foco visivel para teclado: o site nao tinha nenhum. */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--gold-ink);
  outline-offset: 3px;
}

.section { padding: 3.6rem 0; border-top: 1px solid var(--line); }
.section-lead {
  margin: 0 0 1.8rem;
  color: var(--muted);
  max-width: 36rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.4rem;
  align-items: center;
}
.grid-2-rev { grid-template-columns: 0.95fr 1.05fr; }
.photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.photo-wide { aspect-ratio: 16/10; }

/* Roadmap: trilho horizontal com marcos numerados; vira vertical no stack/mobile. */
.roadmap {
  list-style: none;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 0;
  margin: 2.2rem 0 0;
}
.roadmap li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2.55rem 1.1rem 0 0;
}
.roadmap li::before {
  content: "";
  position: absolute;
  top: 1.62rem;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.roadmap li:last-child::before { display: none; }
.rm-node {
  position: absolute;
  top: 1.62rem;
  left: 0;
  width: 9px;
  height: 9px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--bg);
  transform: translate(-1px, -50%);
}
.rm-step {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.rm-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.rm-meta {
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.28rem;
}
/* O destino nao tem logo: o padding extra alinha o nome com os demais marcos. */
.roadmap li.rm-dest {
  padding-right: 0;
  padding-top: 4.47rem;
}
.rm-dest .rm-node {
  width: 13px;
  height: 13px;
  background: var(--gold);
  border-color: var(--gold);
}
.rm-dest .rm-name {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.rm-mark {
  display: block;
  height: 24px;
  width: auto;
  max-width: 52px;
  margin: 0;
  object-fit: contain;
  opacity: 0.55;
  filter: grayscale(1) contrast(0.95) brightness(0.75);
  transition: opacity 0.28s ease, filter 0.28s ease;
}
.rm-badge {
  position: relative;
  display: inline-block;
  margin: 0 0 0.42rem;
  cursor: help;
}
.rm-badge:hover .rm-mark,
.rm-badge:focus-visible .rm-mark {
  opacity: 1;
  filter: none;
}
.rm-badge:focus-visible { outline: 1px solid var(--gold-ink); outline-offset: 4px; }
.rm-tip {
  position: absolute;
  bottom: calc(100% + 0.55rem);
  left: 0;
  z-index: 5;
  width: max-content;
  max-width: 15rem;
  padding: 0.5rem 0.7rem;
  background: var(--ink);
  color: #f4f1ea;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-transform: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s;
}
.rm-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0.7rem;
  border: 5px solid transparent;
  border-top-color: var(--ink);
}
.rm-badge:hover .rm-tip,
.rm-badge:focus-visible .rm-tip {
  opacity: 1;
  visibility: visible;
}

.rm-honor {
  display: flex;
  flex-direction: column;
  margin-top: 0.55rem;
  line-height: 1.2;
}
.rm-honor-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.64rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold-ink);
  white-space: nowrap;
}
.rm-honor-sub {
  font-family: var(--sans);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.16rem;
  white-space: nowrap;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.card {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  transition: border-color 0.2s ease;
}
.card:hover { border-color: var(--gold); }
.card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; margin-bottom: 1rem; }
.card h3 { margin: 0 0 0.4rem; color: var(--ink); letter-spacing: 0.02em; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.page { padding: 3rem 0 4rem; }
.page-head { margin-bottom: 2rem; }
.page-head .lead { margin-top: 1.15rem; }
.post-hero { margin: 0 0 1.6rem; }
.cta-row { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

.substack-band {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 2.4rem 0;
}
.substack-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.substack-band-copy {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.4rem 0 2.8rem;
  text-align: center;
}
.footer-brand {
  margin: 0;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}
.footer-copy { color: var(--muted); font-size: 0.88rem; }
.site-footer nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.1rem 0;
}
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-footer nav a:hover { color: var(--gold-ink); }

blockquote {
  margin: 1.4rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--gold);
  color: var(--muted);
}

@media (max-width: 1040px) {
  .roadmap {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 1.55rem;
  }
  .roadmap li,
  .roadmap li.rm-dest { padding: 0 0 0 1.75rem; }
  .roadmap li::before {
    top: 0.5rem;
    left: 4px;
    right: auto;
    width: 1px;
    height: calc(100% + 1.55rem);
  }
  .roadmap .rm-node { top: 0.5rem; left: 4px; transform: translate(-50%, -50%); }
  .roadmap .rm-step { position: static; margin-bottom: 0.3rem; }
  .roadmap .rm-mark { height: 20px; }
}

@media (max-width: 860px) {
  .grid-2, .grid-2-rev, .cards { grid-template-columns: 1fr; }
  .brand-mark { width: 50px; height: 34px; }
  .hero { padding: 2.4rem 0 3.4rem; }
  .hero-split { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-line { margin-inline: auto; }
  .hero-portrait { order: -1; max-width: 22rem; margin-inline: auto; }
  .substack-band-inner { flex-direction: column; align-items: flex-start; }
}

.roadmap-stack {
  grid-auto-flow: row;
  grid-auto-columns: auto;
  gap: 1.55rem;
  margin: 2rem 0;
}
.roadmap-stack li,
.roadmap-stack li.rm-dest { padding: 0 0 0 1.75rem; }
.roadmap-stack li::before {
  top: 0.5rem;
  left: 4px;
  right: auto;
  width: 1px;
  height: calc(100% + 1.55rem);
}
.roadmap-stack .rm-node { top: 0.5rem; left: 4px; transform: translate(-50%, -50%); }
.roadmap-stack .rm-step { position: static; margin-bottom: 0.3rem; }
.roadmap-stack .rm-mark { height: 20px; }

@media (max-width: 560px) {
  .brand-text { display: none; }
}
