/* Loftorama · site público. Neutro, quente, editorial; imagens em primeiro plano. Mobile primeiro. */
:root {
  --paper: #f4efe8;
  --paper-2: #ebe4da;
  --ink: #1f1b16;
  --muted: #847a6e;
  --line: #ddd4c8;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --sans: ui-sans-serif, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
a {
  color: inherit;
}
img {
  display: block;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* cabeçalho */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 16px;
  background: rgba(244, 239, 232, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 17px var(--mono);
  letter-spacing: -0.3px;
  text-decoration: none;
}
.mark {
  width: 11px;
  height: 11px;
  border: 2px solid var(--ink);
  transform: rotate(45deg);
  display: inline-block;
}
.mark.big {
  width: 16px;
  height: 16px;
  margin: 4px auto 14px;
  display: block;
}
.back {
  font: 13px var(--mono);
  text-decoration: none;
  color: var(--muted);
  margin-right: auto;
}
.top .logo:first-child {
  margin-right: auto;
}
.prefs {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 20px;
  padding: 5px 11px;
  font: 12px var(--mono);
  letter-spacing: 0.5px;
}

/* catálogo */
.catalog {
  max-width: 935px;
  margin: 0 auto;
}
.intro {
  padding: 28px 20px 22px;
  text-align: center;
}
.intro h1 {
  font: 600 clamp(22px, 5.5vw, 30px) / 1.2 var(--sans);
  letter-spacing: -0.6px;
  margin: 0 0 10px;
}
.intro p {
  margin: 0 auto;
  max-width: 460px;
  color: var(--muted);
}
.hint {
  font: 12px var(--mono);
  color: var(--muted);
  letter-spacing: 0.3px;
  margin-top: 14px !important;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
}
.tile {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-2);
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
}
.tile:active img {
  opacity: 0.85;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 60px 20px;
}

/* publicação: 3 slides lado a lado; em telas estreitas, deslizar com degradê no fim */
.post {
  max-width: 1680px;
  margin: 0 auto;
  padding-bottom: 12px;
  --spot: #c6f25e; /* mesmo verde-limão do Studio: destaca sobre fotos quentes */
  --spot-ink: #10130b;
}
.post.loading {
  min-height: 70vh;
}
.stage {
  position: relative;
}
.stage::before,
.stage::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 56px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
  z-index: 2;
}
.stage::after {
  right: 0;
  background: linear-gradient(to right, rgba(244, 239, 232, 0), var(--paper) 92%);
}
.stage::before {
  left: 0;
  background: linear-gradient(to left, rgba(244, 239, 232, 0), rgba(244, 239, 232, 0.85));
  width: 28px;
}
.stage.more::after,
.stage.less::before {
  opacity: 1;
}
.carousel {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* margem lateral = (tela − lâmina) / 2: centraliza também a primeira e a última */
  padding: 12px 6vw 0;
  scrollbar-width: none;
  outline: none;
}
.carousel::-webkit-scrollbar {
  display: none;
}
.slide {
  position: relative;
  flex: 0 0 88vw;
  margin: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always; /* um deslize = uma imagem; nunca para no meio */
  transition: opacity 0.25s;
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
  border-radius: 6px;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  border-radius: 6px;
}
.slide .num {
  position: absolute;
  right: 8px;
  top: 8px;
  font: 11px var(--mono);
  color: #fff;
  background: rgba(31, 27, 22, 0.55);
  padding: 2px 7px;
  border-radius: 10px;
}
@media (min-width: 640px) {
  .carousel {
    padding: 12px 19vw 0;
  }
  .slide {
    flex-basis: 62vw;
  }
}
/* celular e tablet: uma imagem principal; vizinhas esmaecidas e só a legenda dela */
@media (max-width: 959px) {
  .slide:not(.current) {
    opacity: 0.45;
  }
  .legend section:not(.current) {
    display: none;
  }
}
@media (min-width: 960px) {
  .carousel {
    padding: 12px 12px 0;
    gap: 6px;
  }
  .slide {
    scroll-snap-align: start;
  }
  /* as 3 imagens cabem inteiras */
  .slide {
    flex-basis: calc((100% - 12px) / 3);
  }
}

/* pontos numerados (links) */
/* mesmo tamanho dos pontos do carrossel do Studio */
.spot {
  position: absolute;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--spot);
  color: var(--spot-ink);
  font: 700 10px var(--mono);
  text-decoration: none;
  border: 1.5px solid rgba(16, 19, 11, 0.85);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  z-index: 1;
  transition: transform 0.15s;
}
.spot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--spot);
  animation: ping 2.6s ease-out infinite;
}
.spot:hover,
.spot:focus-visible,
.spot.on {
  transform: scale(1.25);
  background: #fff;
  z-index: 3;
}
@keyframes ping {
  0% {
    transform: scale(0.7);
    opacity: 0.85;
  }
  80%,
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .spot::after {
    animation: none;
    opacity: 0;
  }
}
/* dica (como no Studio): nome curto + ação */
.tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(16, 19, 11, 0.92);
  color: #fff;
  border: 1px solid rgba(198, 242, 94, 0.5);
  border-radius: 7px;
  padding: 6px 9px;
  font: 600 12px var(--sans);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s;
}
.tip em {
  font: 400 10.5px var(--mono);
  font-style: normal;
  color: var(--spot);
  margin-left: 8px;
}
.spot.tip-left .tip {
  left: auto;
  right: -6px;
  transform: none;
}
.spot.tip-below .tip {
  bottom: auto;
  top: calc(100% + 8px);
}
.spot:hover .tip,
.spot:focus-visible .tip,
.spot.on .tip {
  opacity: 1;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 12px 16px 4px;
  min-height: 40px;
}
.dots {
  display: flex;
  gap: 6px;
}
.dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line);
}
.dots button[aria-selected="true"] {
  background: var(--ink);
}
@media (min-width: 960px) {
  .dots {
    visibility: hidden; /* tudo visível: indicador desnecessário */
  }
}
.share {
  position: absolute;
  right: 16px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 20px;
  padding: 5px 12px;
  font: 12px var(--mono);
}
.cta {
  text-align: center;
  font: 600 18px/1.35 var(--sans);
  letter-spacing: -0.3px;
  margin: 18px 20px 4px;
}
.post .hint {
  text-align: center;
  margin: 4px 0 18px !important;
}
.post h2 {
  font: 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--muted);
  margin: 0 16px 8px;
}

/* legenda: por imagem, mesmos números; hover acende o ponto */
.legend {
  display: grid;
  gap: 14px 24px;
  margin: 0 16px;
}
@media (min-width: 960px) {
  .legend {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.legend h3 {
  font: 11px var(--mono);
  color: var(--muted);
  margin: 0 0 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.legend ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.legend li {
  border-bottom: 1px solid var(--line);
}
.legend a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  text-decoration: none;
}
.legend b {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 11px var(--mono);
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
}
.legend span {
  flex: 1;
  min-width: 0;
}
.legend strong {
  display: block;
  font-weight: 500;
}
.legend small {
  display: block;
  font: 11.5px/1.4 var(--mono);
  color: var(--muted);
  margin-top: 1px;
}
.legend em {
  font-style: normal;
  color: var(--muted);
  font: 12px var(--mono);
  opacity: 0;
  transition: opacity 0.12s;
}
/* a linha inteira acende no hover (ou quando o ponto correspondente está em hover) */
.legend li {
  transition: background 0.12s;
}
.legend li.on,
.legend li:hover {
  background: rgba(198, 242, 94, 0.28);
  box-shadow: inset 3px 0 0 var(--spot-ink);
}
.legend li.on b,
.legend a:hover b {
  background: var(--spot);
  border-color: var(--spot-ink);
}
.legend li.on em,
.legend a:hover em {
  opacity: 1;
}

/* rodapé */
footer {
  max-width: 560px;
  margin: 26px auto 0;
  padding: 20px 20px calc(28px + env(safe-area-inset-bottom));
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
}
footer p {
  margin: 0 0 10px;
}
.link {
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--muted);
  font: 12px var(--mono);
}

/* lightbox */
body.blurred #app {
  filter: blur(14px);
  pointer-events: none;
  user-select: none;
}
.overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(31, 27, 22, 0.28);
}
.dialog {
  width: min(400px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  background: var(--paper);
  border-radius: 18px;
  padding: 24px 20px 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  text-align: center;
}
.dialog h2 {
  font: 600 20px/1.25 var(--sans);
  letter-spacing: -0.4px;
  margin: 0 0 6px;
}
.dialog > p {
  color: var(--muted);
  margin: 0 0 14px;
}
.dialog.text {
  text-align: left;
}
.dialog.text p {
  font-size: 14px;
}
.label {
  font: 11px var(--mono) !important;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  text-align: left;
  margin: 14px 0 6px !important;
}
.label b {
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}
.langs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.langs button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 10px;
  padding: 9px 4px;
  font-size: 14px;
}
.langs button.on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.dialog input[type="search"] {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font: 15px var(--sans);
  color: var(--ink);
}
.countries {
  list-style: none;
  margin: 6px 0 0;
  padding: 4px;
  max-height: 170px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
  background: #fff;
}
.countries li {
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 14px;
}
.countries li.on {
  background: var(--ink);
  color: var(--paper);
}
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  margin: 14px 0 4px;
}
.consent input {
  margin-top: 3px;
  accent-color: var(--ink);
}
.go {
  width: 100%;
  margin-top: 14px;
  border: 0;
  border-radius: 12px;
  padding: 13px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 15px;
}
.go:disabled {
  opacity: 0.4;
}
.dialog .link {
  margin-top: 12px;
}

@media (min-width: 700px) {
  .top {
    padding: 0 24px;
  }
  .grid {
    gap: 4px;
  }
  .intro {
    padding: 40px 20px 30px;
  }
}

/* legenda e pontos: só os que têm oferta são links; os demais não navegam */
.legend a {
  color: inherit;
}
.legend button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: default;
}
.legend button:hover b {
  background: var(--spot);
  border-color: var(--spot-ink);
}
button.spot {
  padding: 0;
  cursor: default;
}
.legend em {
  opacity: 1 !important;
  font: 10.5px var(--mono);
  color: var(--ink);
}
.disclosure-note {
  margin: 14px 16px 0;
  font: 11px/1.5 var(--mono);
  color: var(--muted);
}
