@import url("https://fonts.googleapis.com/css2?family=Anton&family=Permanent+Marker&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap");

:root {
  --bg: #14110d;
  --panel: #1e1a15;
  --card: #f4efe3;
  --ink: #16130f;
  --ivory: #f4efe3;
  --mute: #6a6258;
  --mute-on-dark: #d9cbb3;
  --gold: #d4a32a;
  --gold-deep: #b8871c;
  --line: #3a332b;
  --display: "Anton", Impact, sans-serif;
  --body: "Space Mono", ui-monospace, monospace;
  --mark: "Permanent Marker", "Comic Sans MS", cursive;
  --serif: var(--display);
  --sans: var(--body);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.75;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold);
  text-underline-offset: 0.22em;
}

a:hover {
  color: #f0d27a;
}

.skip {
  position: absolute;
  left: -999px;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  padding: 1.6rem 0 1.2rem;
  text-align: center;
}

.brand {
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory);
}

.brand small {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--mark);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--gold);
}

nav.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.3rem;
}

nav.menu a {
  color: var(--mute-on-dark);
  text-decoration: none;
  font-size: 1.05rem;
}

nav.menu a:hover,
nav.menu a[aria-current="page"] {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--ivory);
  padding: 0.4rem 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #000 center/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 17, 13, 0.35), rgba(20, 17, 13, 0.82));
}

.hero .wrap {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0;
}

.hero h1 {
  margin: 0 auto 1.1rem;
  max-width: 18ch;
  font-family: var(--display);
  font-size: clamp(2.8rem, 6.4vw, 5.2rem);
  font-weight: 400;
  line-height: 1.02;
  color: #fff;
}

.hero .lead {
  margin: 0 auto;
  max-width: 62ch;
  font-size: 1.12rem;
  color: #efe4cc;
}

.trust {
  background: var(--gold);
  padding: 1.6rem 0;
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.1rem 1.6rem;
}

.trust a,
.trust span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  color: #111;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trust img {
  height: 52px;
  width: auto;
  filter: none;
  background: #111;
  border-radius: 6px;
}

.catalog,
.page,
.notes,
.foot,
.wrap.fund {
  width: min(var(--max), calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.catalog {
  padding: 3.2rem 0 3.6rem;
}

.catalog-head {
  text-align: center;
  margin: 0 auto 2.2rem;
  max-width: 62ch;
}

.catalog-head h2 {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 400;
  color: #fff;
}

.catalog-head p {
  margin: 0;
  color: var(--mute-on-dark);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  align-items: stretch;
  overflow: visible;
  padding: 0.4rem 0 1.4rem;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.25rem 1.2rem 1.2rem;
  background: var(--card);
  color: var(--ink);
  border: 1px solid #e0d5c0;
  overflow: visible;
  isolation: isolate;
  transform: translateY(0) scale(1);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, border-color 0.35s ease, background 0.35s ease;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card::before {
  content: "";
  position: absolute;
  inset: -20% -40%;
  background: linear-gradient(115deg, transparent 35%, rgba(212, 163, 42, 0.42) 50%, transparent 65%);
  transform: translateX(-70%);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover,
.card:focus-within {
  z-index: 3;
  transform: translateY(-16px) scale(1.035);
  background: #fff8e8;
  border-color: var(--gold);
  box-shadow: 0 26px 42px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(212, 163, 42, 0.35);
}

.card:hover::before,
.card:focus-within::before {
  animation: card-shine 0.7s ease forwards;
}

.card:hover::after,
.card:focus-within::after {
  transform: scaleX(1);
}

@keyframes card-shine {
  0% {
    opacity: 0;
    transform: translateX(-70%);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(70%);
  }
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.card .mark {
  width: 150px;
  height: 44px;
  object-fit: contain;
  object-position: left center;
  transition: transform 0.4s ease;
}

.card:hover .mark,
.card:focus-within .mark {
  transform: scale(1.12) rotate(-2deg);
}

.card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.card p {
  margin: 0 0 1rem;
  color: var(--mute);
  flex: 1;
}

.nota {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--mark);
  font-size: 1.45rem;
  color: var(--ink);
  white-space: nowrap;
}

.nota::before {
  content: "★";
  color: var(--gold-deep);
  font-size: 1rem;
}

.follow,
.btn,
.btn.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1rem;
  background: var(--gold);
  color: #16130f;
  border: 0;
  text-decoration: none;
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.card .follow {
  width: 100%;
  transition: background 0.3s ease, transform 0.3s ease;
}

.card:hover .follow,
.card:focus-within .follow {
  transform: translateY(-3px);
  background: var(--gold-deep);
  color: #fff;
}

.card-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-height: 0;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(8px);
  transition: max-height 0.4s ease, opacity 0.35s ease, margin 0.35s ease, transform 0.35s ease;
}

.card:hover .card-extra,
.card:focus-within .card-extra {
  max-height: 72px;
  margin: 0 0 0.85rem;
  opacity: 1;
  transform: translateY(0);
}

.card-extra span {
  padding: 0.18rem 0.5rem;
  border: 1px solid var(--gold-deep);
  font-family: var(--mark);
  font-size: 0.82rem;
  color: var(--gold-deep);
  line-height: 1.2;
}

.follow:hover,
.btn:hover {
  background: var(--gold-deep);
  color: #fff;
}

.btn.ghost {
  background: transparent;
  color: var(--ivory);
  border: 1px solid var(--ivory);
}

@media (min-width: 981px) {
  .grid .card:last-child:nth-child(3n + 1) {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.4rem;
  }

  .grid .card:last-child:nth-child(3n + 1) .card-top {
    margin: 0;
  }

  .grid .card:last-child:nth-child(3n + 1) h3 {
    margin: 0;
  }

  .grid .card:last-child:nth-child(3n + 1) p {
    flex: 1 1 280px;
    margin: 0;
  }

  .grid .card:last-child:nth-child(3n + 1) .follow {
    width: auto;
    min-width: 168px;
  }

  .grid .card:last-child:nth-child(3n + 1) .card-extra {
    flex: 1 1 100%;
  }
}

.notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  padding: 0 0 3.4rem;
}

.notes article {
  margin: 0;
  padding: 1.4rem 1.35rem;
  background: var(--panel);
  border: 1px solid var(--line);
}

.notes h2 {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--gold);
}

.notes p,
.notes li {
  margin: 0 0 0.7rem;
  color: var(--mute-on-dark);
}

.notes p:last-child,
.notes ul:last-child,
.notes li:last-child {
  margin-bottom: 0;
}

.notes ul {
  margin-bottom: 0;
}

.page {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: 2.4rem 0 3rem;
}

.page h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  color: #fff;
}

.page h2 {
  margin: 1.8rem 0 0.7rem;
  font-family: var(--display);
  font-size: 1.85rem;
  color: var(--gold);
}

.page p,
.page li {
  color: var(--mute-on-dark);
  font-size: 1.05rem;
}

.lista,
.page ul,
.page ol,
.notes ul {
  margin: 0.9rem 0 1.35rem;
  padding: 0;
  list-style: none;
}

.lista li,
.page ul li,
.page ol li,
.notes ul li {
  position: relative;
  padding: 0.72rem 0 0.72rem 1.7rem;
  border-bottom: 1px dashed var(--line);
}

.page ol {
  counter-reset: passo;
}

.page ol li {
  counter-increment: passo;
}

.lista li::before,
.page ul li::before,
.notes ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 0.7rem;
  color: var(--gold);
  font-family: var(--mark);
  font-size: 1.05rem;
  line-height: 1;
}

.page ol li::before {
  content: counter(passo);
  position: absolute;
  left: 0;
  top: 0.72rem;
  color: var(--gold);
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1;
}

.tabela-wrap {
  width: 100%;
  margin: 1.15rem 0 1.6rem;
  overflow-x: auto;
  border: 1px solid var(--gold);
}

.tabela {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.tabela th,
.tabela td {
  padding: 0.78rem 0.95rem;
  text-align: left;
  vertical-align: top;
}

.tabela th {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.03em;
  background: var(--gold);
  color: #16130f;
}

.tabela td {
  border-bottom: 1px solid var(--line);
  color: var(--mute-on-dark);
}

.tabela tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.04);
}

.tabela tbody tr:last-child td {
  border-bottom: 0;
}

.tabela a {
  color: var(--gold);
}

.folha {
  width: 100%;
  margin: 0 0 2.6rem;
}

.folha h2 {
  margin: 0 0 0.9rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 400;
  color: #fff;
  text-align: center;
}

.scroll-line {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 100%;
  height: 4px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.js .await {
  opacity: 0;
  transform: translateY(28px);
}

.js .await.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease var(--d, 0ms), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms);
}

.js .card.await {
  transform: translateY(36px) scale(0.97);
}

.js .card.await.is-in {
  transform: translateY(0) scale(1);
}

.js .card.await.is-in:hover,
.js .card.await.is-in:focus-within {
  transform: translateY(-16px) scale(1.035);
}

.page-visual {
  width: 100%;
  max-width: none;
  margin: 0.4rem 0 0;
  border: 1px solid var(--gold);
  padding: 0.4rem;
}

.page-visual img {
  width: 100%;
  height: min(42vw, 320px);
  object-fit: cover;
}

.mail {
  display: inline-block;
  margin: 0.8rem 0 1.1rem;
  font-family: var(--mark);
  font-size: 1.7rem;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}

.caption {
  margin: 0.45rem 0.1rem 0;
  font-family: var(--mark);
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--gold);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 1.6rem;
  padding: 1.8rem 0 2.4rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem 1.4rem;
  width: 100%;
}

.foot-links a {
  color: var(--mute-on-dark);
  text-decoration: none;
}

.foot small {
  width: 100%;
  color: var(--mute-on-dark);
}

html.gate-on,
html.gate-on body {
  overflow: hidden;
  height: 100%;
}

.gate,
.cookie {
  position: fixed;
  z-index: 40;
}

.gate {
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: rgba(12, 10, 8, 0.88);
}

.gate[hidden],
.cookie[hidden] {
  display: none;
}

.gate-photo {
  position: absolute;
  inset: 0;
  background: #111 center/cover no-repeat;
  opacity: 0.28;
  pointer-events: none;
}

.gate-box {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(440px, 100%);
  padding: 2rem 1.5rem 1.6rem;
  background: #1e1a15;
  border: 1px solid var(--gold);
  text-align: center;
}

.gate-box h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: 2.2rem;
  color: #fff;
}

.gate-box p {
  color: var(--mute-on-dark);
  max-width: 38ch;
  margin: 0 auto;
}

.gate-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.4rem;
  width: 100%;
}

.gate-actions .follow,
.gate-actions .btn {
  flex: 1 1 140px;
}

.cookie {
  left: 50%;
  right: auto;
  bottom: 1.2rem;
  transform: translateX(-50%);
  width: min(520px, calc(100% - 32px));
  padding: 1rem 1.1rem;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--gold);
}

.cookie p {
  margin: 0 0 0.7rem;
  color: var(--mute);
}

.cookie a {
  color: var(--gold-deep);
}

.cookie-actions {
  display: flex;
  gap: 0.7rem;
}

.cookie .btn.ghost {
  color: var(--ink);
  border-color: var(--ink);
}

.wrap.fund {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  padding: 0 0 3.2rem;
}

.wrap.fund h2 {
  margin: 0;
  padding: 1.2rem 1.2rem 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-bottom: 0;
  font-family: var(--display);
  font-size: 1.55rem;
  color: var(--gold);
}

.wrap.fund p {
  margin: 0;
  padding: 0.7rem 1.2rem 1.2rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 0;
  color: var(--mute-on-dark);
}

@media (max-width: 980px) {
  .grid,
  .notes,
  .wrap.fund {
    grid-template-columns: 1fr;
  }

  .grid .card:last-child:nth-child(3n + 1) {
    grid-column: 1 / -1;
    flex-direction: column;
  }

  nav.menu {
    display: none;
    width: min(var(--max), calc(100% - 40px));
    padding: 0.8rem;
    background: var(--panel);
    border: 1px solid var(--line);
  }

  nav.menu.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .gate-box {
    width: min(400px, calc(100% - 8px));
    padding: 1.6rem 1.15rem 1.3rem;
  }

  .gate-box h2 {
    font-size: 1.65rem;
  }

  .gate-actions {
    flex-direction: column;
  }

  .gate-actions .follow,
  .gate-actions .btn {
    width: 100%;
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card,
  .card .mark,
  .card .follow,
  .card-extra,
  .js .await,
  .js .await.is-in,
  .js .card.await,
  .js .card.await.is-in,
  .js .card.await.is-in:hover,
  .js .card.await.is-in:focus-within {
    transition: none;
    animation: none;
    transform: none;
    opacity: 1;
  }

  .card:hover,
  .card:hover .mark,
  .card:hover .follow,
  .card:hover::after,
  .card:focus-within,
  .card:focus-within .mark,
  .card:focus-within .follow,
  .card:focus-within::after {
    transform: none;
  }

  .card:hover::before,
  .card:focus-within::before {
    animation: none;
  }
}
