@font-face {
  font-family: Fredoka;
  src: url("/fonts/Fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --roxo: #7209b7;
  --rosa: #f72585;
  --verde: #06d6a0;
  --tinta: #1b1b2f;
  --branco: #fff;
  --lilas: #eadbff;
  --fundo: #f6f2fb;
  --mudo: #5d5873;
}

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

html {
  background: var(--fundo);
  color: var(--tinta);
  font-family: Fredoka, ui-rounded, system-ui, sans-serif;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--verde);
  outline-offset: 3px;
}

/* The top: the home's purple with its layer lines. */

.topo {
  position: relative;
  overflow: hidden;
  background: var(--roxo);
  color: var(--branco);
}

.topo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 60%;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 9px, rgb(255 255 255 / 0.07) 9px 18px);
  mask-image: linear-gradient(to top, #000 30%, transparent);
}

.topo-dentro {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, 70rem);
  margin: 0 auto;
  padding: 2rem 0 1.75rem;
}

.marca {
  display: block;
  width: 9rem;
  height: auto;
}

.topo h1 {
  margin-top: 1.5rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
}

.sub {
  margin-top: 0.4rem;
  color: var(--lilas);
  font-size: 1.125rem;
}

.atalhos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.atalhos a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem; /* 44 px: a finger's size */
  padding: 0 1rem;
  border: 2px solid rgb(255 255 255 / 0.5);
  border-radius: 999px;
  color: var(--branco);
  font-weight: 600;
  text-decoration: none;
}

.atalhos a:hover {
  border-color: var(--branco);
  background: rgb(255 255 255 / 0.12);
}

/* The pieces */

main {
  width: min(100% - 2.5rem, 70rem);
  margin: 2rem auto 3rem;
}

.estado {
  padding: 3rem 0;
  color: var(--mudo);
  text-align: center;
}

/* The ways out under a message (not found, no connection). */

.estado a {
  color: var(--roxo);
  font-weight: 600;
}

.estado.com-saidas {
  padding-bottom: 1.25rem;
}

.estado-saidas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding-bottom: 3rem;
}

.secao + .secao {
  margin-top: 2.5rem;
}

.secao h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.secao h2 span {
  color: var(--mudo);
  font-size: 1rem;
  font-weight: 400;
}

.grade {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.1rem;
}

/* The list of catalogs (/catalogo/ with more than one published). */

.indice {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.indice a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem 1.4rem;
  border-radius: 1rem;
  background: var(--branco);
  color: var(--tinta);
  text-decoration: none;
  box-shadow: 0 1px 3px rgb(27 27 47 / 0.07);
}

.indice a:hover {
  box-shadow: 0 0 0 2px var(--roxo);
}

.indice strong {
  font-size: 1.375rem;
  font-weight: 600;
}

.indice span,
.indice small {
  color: var(--mudo);
}

.previa {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.4rem 0.8rem;
  border-radius: 0.6rem;
  background: #fff3d1;
  color: #6b4b00;
  font-weight: 500;
}

/* How to order */

.pedir {
  background: var(--tinta);
  color: var(--branco);
}

.pedir-dentro {
  width: min(100% - 2.5rem, 70rem);
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
}

.pedir h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

.pedir ol {
  display: grid;
  gap: 0.35rem;
  margin: 1rem 0 1.5rem;
  padding-left: 1.25rem;
  color: var(--lilas);
  font-size: 1.0625rem;
}

.botao {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: var(--verde);
  color: var(--tinta);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
}

.botao:hover {
  background: var(--branco);
}

button.botao {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

/* The outlined one, for the second way out on the light page. */
.botao-contorno {
  box-shadow: inset 0 0 0 2px var(--roxo);
  background: transparent;
  color: var(--roxo);
}

.botao-contorno:hover {
  background: var(--roxo);
  color: var(--branco);
}

.obs {
  margin-top: 1.25rem;
  color: var(--lilas);
  font-size: 0.9375rem;
}

/* The card a link points at (/catalogo/natal#p7): a ring that fades. Under
   reduced motion the ring just stands there until the script takes it off. */

.cc {
  scroll-margin-top: 1rem;
}

.cc-destaque {
  animation: destaque 2.6s ease-out;
}

@keyframes destaque {
  0%, 60% { box-shadow: 0 0 0 4px var(--rosa), 0 4px 18px rgb(247 37 133 / 0.35); }
  100% { box-shadow: 0 1px 3px rgb(27 27 47 / 0.08); }
}

@media (prefers-reduced-motion: reduce) {
  .cc-destaque {
    animation: none;
    box-shadow: 0 0 0 4px var(--rosa);
  }
}

@media (max-width: 30rem) {
  .grade {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .cc-texto {
    padding: 0.8rem 0.7rem;
  }

  .cc-preco {
    font-size: 1.0625rem;
  }

  .cc-nome {
    font-size: 0.9375rem;
  }
}

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

[hidden] {
  display: none !important;
}
