:root {
  --red: #c8102e;
  --red-deep: #7a0a1c;
  --white: #ffffff;
  --clay: #c4673f;
  --clay-tint: #f7ece6;
  --ink: #2a1a17;
  --ink-soft: #5b4540;
  --display: "Alfa Slab One", Rockwell, "Roboto Slab", Georgia, serif;
  --body: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --measure: 38rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: var(--red);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--red-deep);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--white);
  color: var(--ink);
  padding: 0.5rem 1rem;
  font-weight: 700;
}

.skip:focus {
  top: 1rem;
}

/* Top navigation */
.topo {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--red-deep);
}

.topo nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 var(--gutter);
  min-height: 3.25rem;
  overflow-x: auto;
}

.topo ul {
  display: flex;
  gap: 1.25rem;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}

.topo a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
}

.topo a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.topo :focus-visible {
  outline-color: var(--white);
}

.marca {
  font-family: var(--display);
  font-size: 1.25rem !important;
  font-weight: 400 !important;
}

@media (max-width: 40rem) {
  .topo ul {
    gap: 1rem;
  }
  .topo a {
    font-size: 0.875rem;
  }
}

/* Opening: the tin-can label */
.abertura {
  background: var(--red);
  color: var(--white);
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2rem, 6vw, 4.5rem) var(--gutter);
  align-items: center;
}

@media (min-width: 60rem) {
  .abertura {
    grid-template-columns: minmax(20rem, 2fr) 3fr;
  }
}

.rotulo {
  background: var(--white);
  color: var(--red);
  text-align: center;
  border-radius: 2.5rem;
  padding: 2rem 1.5rem 1.75rem;
  border: 4px solid var(--white);
  box-shadow: inset 0 0 0 4px var(--red), inset 0 0 0 7px var(--white), inset 0 0 0 9px var(--red);
  max-width: 30rem;
  width: 100%;
  margin: 0 auto;
}

.rotulo-topo,
.rotulo-base {
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  margin: 0;
}

.rotulo h1 {
  font-size: clamp(2.6rem, 9vw, 4.25rem);
  margin: 0.75rem 0 0.25rem;
  line-height: 0.95;
}

.rotulo-anos {
  font-family: var(--display);
  font-size: 1.75rem;
  line-height: 1;
  margin: 0.25rem 0 1rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  border-top: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  padding: 0.5rem 0;
}

.rotulo-anos span {
  font-size: clamp(4.5rem, 16vw, 7rem);
  line-height: 0.85;
}

.abertura-foto {
  margin: 0;
}

.abertura-foto img {
  width: 100%;
  border-radius: 0.5rem;
  border: 6px solid var(--white);
}

.abertura-foto figcaption {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
}

/* Origin */
.origem {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
  max-width: 76rem;
  margin: 0 auto;
  align-items: start;
}

@media (min-width: 60rem) {
  .origem {
    grid-template-columns: 1fr 1fr;
  }
}

.origem-texto {
  max-width: var(--measure);
}

.origem-texto p:first-of-type::first-letter {
  font-family: var(--display);
  float: left;
  font-size: 3.6rem;
  line-height: 0.8;
  margin: 0.35rem 0.5rem 0 0;
  color: var(--red);
}

.origem-foto {
  margin: 0;
}

.origem-foto img {
  width: 100%;
  filter: sepia(0.15);
}

figcaption {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin-top: 0.5rem;
}

.abertura figcaption {
  color: var(--white);
}

/* Timeline: a clay court strip with a white baseline */
.linha {
  background: var(--clay-tint);
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
}

.linha > h2,
.linha-intro {
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
}

.linha-intro {
  max-width: 64rem;
  margin-bottom: 2.5rem;
}

.anos {
  list-style: none;
  margin: 0 auto;
  padding: 0 0 0 2.25rem;
  max-width: 64rem;
  position: relative;
}

.anos::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1rem;
  background: var(--clay);
  border-left: 0.4rem solid var(--clay);
  box-shadow: inset 3px 0 0 var(--white);
}

.anos li {
  position: relative;
  display: grid;
  gap: 0.75rem 2rem;
  padding-bottom: 3rem;
}

.anos li:last-child {
  padding-bottom: 0;
}

.anos li::before {
  content: "";
  position: absolute;
  left: -2.25rem;
  top: 1rem;
  width: 1.75rem;
  height: 3px;
  background: var(--white);
}

@media (min-width: 48rem) {
  .anos li {
    grid-template-columns: 9rem minmax(0, 28rem) minmax(0, 1fr);
    align-items: start;
  }
}

.anos h3 {
  font-size: clamp(2.25rem, 6vw, 3rem);
  color: var(--red);
}

.anos img {
  width: 100%;
  border: 5px solid var(--white);
  box-shadow: 0 1px 0 var(--clay);
}

.anos p {
  font-weight: 600;
  max-width: 22rem;
}

.depoimento {
  margin: 4rem auto 0;
  max-width: 64rem;
  display: grid;
  gap: 1.5rem 2.5rem;
  align-items: center;
  background: var(--red-deep);
  color: var(--white);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border-radius: 1.5rem;
}

@media (min-width: 48rem) {
  .depoimento {
    grid-template-columns: minmax(0, 18rem) 1fr;
  }
}

.depoimento-foto {
  width: 100%;
  max-width: 18rem;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--white);
  margin: 0 auto;
}

.depoimento h3 {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
}

.depoimento-papel {
  font-family: var(--display);
  font-size: 1.375rem;
  margin: 0.25rem 0 1rem;
}

.faixa {
  border-top: 2px solid rgba(255, 255, 255, 0.5);
  padding-top: 1rem;
  margin-top: 1.25rem;
}

.faixa h4 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.375rem;
  margin: 0 0 0.25rem;
}

.faixa p {
  margin-bottom: 0.75rem;
}

.faixa audio {
  width: 100%;
  max-width: 28rem;
}

.faixa a {
  color: var(--white);
}

/* How it works */
.como {
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
  max-width: 76rem;
  margin: 0 auto;
}

.como-intro {
  max-width: var(--measure);
  margin-bottom: 2.5rem;
}

.como-lista {
  display: grid;
  gap: 2rem 3rem;
}

@media (min-width: 48rem) {
  .como-lista {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.como-lista > section {
  border-top: 4px solid var(--red);
  padding-top: 1rem;
  max-width: var(--measure);
}

.como-lista h3 {
  margin-bottom: 0.5rem;
}

/* Gallery */
.galeria {
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
  background: var(--white);
  border-top: 1px solid var(--clay-tint);
  max-width: 82rem;
  margin: 0 auto;
}

.galeria h3 {
  margin: 2.5rem 0 1rem;
  color: var(--red-deep);
}

.galeria-intro {
  color: var(--ink-soft);
}

.grade {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr));
  gap: 0.5rem;
}

.grade button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--clay-tint);
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0.25rem;
}

.grade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grade button:hover img {
  opacity: 0.88;
}

/* Lightbox */
.visor {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 96vw;
  max-height: 96vh;
}

.visor::backdrop {
  background: rgba(42, 26, 23, 0.92);
}

.visor-foto {
  margin: 0;
}

.visor-foto img {
  max-width: 96vw;
  max-height: 86vh;
  width: auto;
  margin: 0 auto;
}

.visor-fechar {
  display: block;
  margin: 0.75rem auto 0;
  font: 600 1rem var(--body);
  background: var(--white);
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
  cursor: pointer;
}

/* Results */
.resultados {
  background: var(--red);
  color: var(--white);
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
}

.resultados h2 {
  color: var(--white);
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
}

.caminhos {
  display: grid;
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 48rem) {
  .caminhos {
    grid-template-columns: 1fr 1fr;
  }
}

.caminho {
  border: 2px solid var(--white);
  border-radius: 1.5rem;
  padding: 1.5rem;
}

.caminho h3 {
  margin-bottom: 0.5rem;
}

.botao {
  display: inline-block;
  margin-top: 0.5rem;
  background: var(--white);
  color: var(--red-deep);
  font-weight: 700;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--white);
}

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

.botao-contorno {
  background: transparent;
  color: var(--white);
}

.botao-contorno:hover {
  background: var(--red-deep);
}

.resultados :focus-visible {
  outline-color: var(--white);
}

/* Footer */
.rodape {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem var(--gutter);
  background: var(--red-deep);
  color: var(--white);
  font-size: 0.9375rem;
}

.rodape img {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.rodape p {
  margin: 0;
  max-width: var(--measure);
}

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

.pontos {
  border-collapse: collapse;
  margin: 0.5rem 0 1rem;
  min-width: 16rem;
}

.pontos th,
.pontos td {
  padding: 0.35rem 0.75rem 0.35rem 0;
  border-bottom: 1px solid var(--clay-tint);
  text-align: left;
}

.pontos thead th {
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.pontos tbody th {
  font-weight: 600;
}

.pontos td {
  font-family: var(--display);
  color: var(--red);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.diretoria {
  margin-top: 3.5rem;
  border-top: 4px solid var(--red);
  padding-top: 1rem;
}

.diretoria ul {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  columns: 2 18rem;
  column-gap: 3rem;
}

.diretoria li {
  padding: 0.2rem 0;
  break-inside: avoid;
}
