:root {
  --preto: #000000;
  --painel: #141414;
  --ouro: #c9a45c;
  --ouro-claro: #e0c386;
  --branco: #ffffff;
  --cinza: #bdbdbd;
  --azul: #00a6e8;
  --amarelo: #ffd91a;
  --verde: #3fa535;
  --fonte-titulo: "Young Serif", "Iowan Old Style", Georgia, serif;
  --fonte-texto: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --largura: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--preto);
  color: var(--branco);
  font-family: var(--fonte-texto);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--fonte-titulo); font-weight: 400; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(2rem, 5vw, 3.25rem); text-wrap: balance; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; max-width: 75ch; }

a { color: var(--azul); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--amarelo);
  outline-offset: 3px;
}

.pular {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 10;
  background: var(--ouro); color: var(--preto); padding: .6rem 1rem; border-radius: 4px;
}
.pular:focus { top: var(--gutter); }

.botao {
  display: inline-block; background: var(--ouro); color: var(--preto);
  font-weight: 600; text-decoration: none; padding: .85rem 1.5rem; border-radius: 999px;
}
.botao:hover { background: var(--ouro-claro); }

/* Abertura */
.abertura {
  max-width: var(--largura); margin: 0 auto;
  padding: 3rem var(--gutter) 4rem;
  display: grid; gap: 2.5rem; align-items: center;
}
.abertura__texto { container-type: inline-size; }
.abertura__nome { font-size: clamp(2.5rem, 16vw, 7.5rem); font-size: min(7.5rem, 17cqi); color: var(--ouro); letter-spacing: .01em; white-space: nowrap; }
.abertura__frase { font-size: clamp(1.25rem, 3vw, 1.6rem); margin: 1.25rem 0 .75rem; line-height: 1.4; }
.abertura__apoio { color: var(--cinza); margin-bottom: 1.75rem; }

.selo { position: relative; width: min(100%, 460px); justify-self: center; }
.selo__logo { width: 100%; border-radius: 50%; }
.selo__filete { position: absolute; inset: -2.5%; width: 105%; height: 105%; transform: rotate(-90deg); }
.selo__filete circle {
  fill: none; stroke: var(--ouro); stroke-width: .7;
  stroke-dasharray: 1; stroke-dashoffset: 0;
  animation: filete 2.4s cubic-bezier(.5, 0, .2, 1) both;
}
@keyframes filete { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

@media (min-width: 900px) {
  .abertura { grid-template-columns: 1.1fr .9fr; padding-top: 5rem; padding-bottom: 6rem; }
}

/* Seções */
.secao { max-width: var(--largura); margin: 0 auto; padding: 4.5rem var(--gutter); border-top: 1px solid var(--ouro); }
.secao__cabeca { margin-bottom: 3rem; }
.secao__cabeca h2 { margin-bottom: 1.25rem; }
.secao__cabeca p { color: var(--cinza); font-size: 1.125rem; }

@media (min-width: 900px) {
  .secao__cabeca { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); column-gap: 4rem; align-items: start; }
  .secao__cabeca h2 { grid-column: 1; grid-row: 1 / span 6; margin-bottom: 0; }
  .secao__cabeca p { grid-column: 2; max-width: none; }
}

/* História */
.linha { list-style: none; margin: 0; padding: 0 0 0 1.5rem; position: relative; display: grid; gap: 3.5rem; }
.linha::before { content: ""; position: absolute; left: 0; top: .4rem; bottom: 0; width: 2px; background: var(--ouro); }
.marco { position: relative; display: grid; gap: 1.25rem; }
.marco::before {
  content: ""; position: absolute; left: calc(-1.5rem - 5px); top: .55rem;
  width: 12px; height: 12px; border-radius: 50%; background: var(--preto); border: 2px solid var(--ouro);
}
.marco__data { font-family: var(--fonte-titulo); font-size: 1.5rem; color: var(--ouro); margin-bottom: .35rem; }
.marco h3 { margin-bottom: .75rem; }
.marco__foto { width: 100%; max-width: 520px; height: auto; border-radius: 6px; border: 1px solid #2a2a2a; }

@media (min-width: 900px) {
  .linha { padding: 0; }
  .linha::before { left: 50%; transform: translateX(-1px); }
  .marco { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
  .marco::before { left: 50%; transform: translateX(-6px); }
  .marco:nth-child(even) .marco__texto { order: 2; }
  .marco:nth-child(odd) .marco__texto { text-align: right; justify-self: end; }
  .marco:nth-child(odd) .marco__texto p { margin-left: auto; }
}

/* Estilos */
.numeros { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin: 0 0 3rem; }
.numeros div { display: flex; flex-direction: column-reverse; }
.numeros dt { color: var(--cinza); }
.numeros dd { margin: 0; font-family: var(--fonte-titulo); font-size: clamp(3rem, 9vw, 5rem); line-height: 1; color: var(--ouro); }

.estilos__sub { margin: 3rem 0 1rem; }
.estilos__nota { color: var(--cinza); font-size: .95rem; }

.barras { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.barra { display: grid; gap: .35rem; }
.barra__topo { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.barra__nome { font-size: 1.1rem; }
.barra__qtd { font-family: var(--fonte-titulo); font-size: 1.5rem; color: var(--ouro); white-space: nowrap; }
.barra__trilho { height: 18px; background: var(--painel); border-radius: 3px; overflow: hidden; }
.barra__preench { height: 100%; min-width: 6px; border-radius: 3px; }
.barra__faixas { color: var(--cinza); font-size: .9rem; }

.familia { border-top: 1px solid #2a2a2a; }
.familia:last-child { border-bottom: 1px solid #2a2a2a; }
.familia summary {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  cursor: pointer; padding: 1.1rem 0; list-style: none; font-family: var(--fonte-titulo); font-size: 1.5rem;
}
.familia summary::-webkit-details-marker { display: none; }
.familia summary::after { content: "+"; color: var(--ouro); margin-left: auto; padding-left: 1rem; }
.familia[open] summary::after { content: "–"; }
.familia__qtd { font-family: var(--fonte-texto); font-size: 1rem; color: var(--cinza); }
.familia__lista { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .6rem; }
.familia__item { display: grid; grid-template-columns: 14px 1fr auto; gap: .2rem .75rem; align-items: baseline; }
.familia__cor { width: 14px; height: 14px; border-radius: 50%; border: 1px solid #555; align-self: center; }
.familia__nome { overflow-wrap: anywhere; }
.familia__qtd-item { color: var(--ouro); white-space: nowrap; }
.familia__faixas { grid-column: 2 / -1; color: var(--cinza); font-size: .9rem; }

.estilos__reserva { color: var(--cinza); }
.estilos__app:not([hidden]) ~ .estilos__reserva { display: none; }

/* Anos */
.colunas {
  list-style: none; margin: 0; padding: 0; height: 280px;
  display: grid; grid-template-columns: repeat(15, 1fr); gap: 4px; align-items: end;
}
.coluna { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; min-width: 0; }
.coluna__qtd { font-family: var(--fonte-titulo); color: var(--ouro); font-size: .95rem; }
.coluna__barra { width: 100%; max-width: 44px; background: var(--ouro); border-radius: 3px 3px 0 0; }
.coluna__barra--vazia { background: #3a3a3a; }
.coluna__ano { color: var(--cinza); font-size: .85rem; white-space: nowrap; }
.coluna__ano-curto { display: inline; }
.coluna__ano-longo { display: none; }
@media (min-width: 720px) {
  .colunas { gap: 8px; height: 320px; }
  .coluna__ano-curto { display: none; }
  .coluna__ano-longo { display: inline; }
}

/* O que vai na panela */
.panela__app { display: grid; gap: 3rem; }
.panela__col h3 { margin-bottom: .5rem; }
.panela__nota { color: var(--cinza); font-size: .95rem; margin-bottom: 1.25rem; }
.barra__preench--ouro { background: var(--ouro); }
.recordes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; max-width: 75ch; }
.recordes li { border-left: 3px solid var(--ouro); padding-left: 1.25rem; }
.panela__recordes h3 { margin-bottom: 1rem; }
@media (min-width: 900px) {
  .panela__app { grid-template-columns: 1fr 1fr; gap: 3rem 4rem; }
  .panela__recordes { grid-column: 1 / -1; }
}

/* Panela: números e água */
.panela__topo, .panela__agua { max-width: none; }
.panela__topo .numeros { margin-bottom: 1.5rem; }
.panela__agua h3 { margin-bottom: .75rem; }
@media (min-width: 900px) {
  .panela__topo, .panela__agua { grid-column: 1 / -1; }
}

/* O que chega ao copo */
.copo__sub { margin: 3rem 0 1rem; }
.copo__sub:first-child { margin-top: 0; }
.colunas--empilhadas .coluna__barras { display: flex; flex-direction: column-reverse; width: 100%; max-width: 44px; }
.coluna__seg { width: 100%; }
.coluna__seg--garrafa { background: var(--ouro); }
.coluna__seg--keg { background: var(--azul); }
.coluna__seg:first-child { border-radius: 0; }
.coluna__barras > .coluna__seg:last-child { border-radius: 3px 3px 0 0; }
.legenda { display: flex; gap: 1.5rem; margin: 1rem 0 0; color: var(--cinza); font-size: .95rem; }
.legenda__item { display: inline-flex; align-items: center; gap: .5rem; }
.legenda__cor { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.legenda__cor--garrafa { background: var(--ouro); }
.legenda__cor--keg { background: var(--azul); }

.notas { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid #2a2a2a; }
.nota { display: grid; grid-template-columns: 1fr auto; gap: .15rem 1rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid #2a2a2a; }
.nota__nome { font-family: var(--fonte-titulo); font-size: 1.35rem; }
.nota__detalhe { color: var(--cinza); grid-column: 1; }
.nota__valor { grid-column: 2; grid-row: 1 / span 2; font-family: var(--fonte-titulo); font-size: 2.25rem; line-height: 1; color: var(--ouro); text-align: right; }

/* Cervejeiros Runners */
.patrocinio { margin: 0 0 3.5rem; text-align: center; }
.patrocinio img { width: 100%; max-width: 560px; height: auto; margin: 0 auto; }
.rotulos-cr { list-style: none; margin: 0; padding: 0; display: grid; gap: 3rem; }
.cr button { display: block; width: 100%; max-width: 420px; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 6px; overflow: hidden; }
.cr img { width: 100%; height: auto; }
.cr h3 { margin: 1.25rem 0 .5rem; }
.cr p { color: var(--cinza); margin: 0; }
@media (min-width: 900px) {
  .rotulos-cr { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; align-items: start; }
}

/* Quem faz */
.pessoas { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.5rem; }
.pessoas li { border-left: 3px solid var(--ouro); padding-left: 1.25rem; }
.pessoas h3 { margin-bottom: .35rem; }
.pessoas p { color: var(--cinza); margin: 0; }
@media (min-width: 720px) { .pessoas { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

.paulo { margin: 3rem 0 0; display: grid; gap: 1.5rem; align-items: center; }
.paulo img { width: min(100%, 280px); height: auto; }
.paulo p { color: var(--cinza); margin: 0; font-size: 1.125rem; }
@media (min-width: 720px) { .paulo { grid-template-columns: 280px 1fr; gap: 2.5rem; } }

/* Galeria */
.galeria { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 12px; }
.galeria li { break-inside: avoid; margin-bottom: 12px; }
.galeria button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 6px; overflow: hidden; }
.galeria img { width: 100%; transition: transform .25s; }
.galeria button:hover img { transform: scale(1.03); }
@media (min-width: 720px) { .galeria { columns: 3; } }
@media (min-width: 1000px) { .galeria { columns: 4; } }

.visor { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.visor::backdrop { background: rgba(0, 0, 0, .9); }
.visor img { max-width: 96vw; max-height: 90vh; width: auto; height: auto; margin: 0 auto; border-radius: 6px; }
.visor form { text-align: right; margin-bottom: .5rem; }
.visor__fechar { background: var(--ouro); color: var(--preto); border: 0; border-radius: 999px; padding: .6rem 1.25rem; font: 600 1rem var(--fonte-texto); cursor: pointer; }

/* Rodapé */
.rodape { border-top: 1px solid var(--ouro); padding: 3.5rem var(--gutter); }
.rodape__conteudo { max-width: var(--largura); margin: 0 auto; display: grid; gap: 2rem; align-items: center; }
.rodape__selo { width: 140px; border-radius: 4px; }
.rodape__nome { font-family: var(--fonte-titulo); font-size: 2rem; color: var(--ouro); margin-bottom: .25rem; }
.botao--claro { margin-top: .5rem; }
@media (min-width: 720px) { .rodape__conteudo { grid-template-columns: auto 1fr; gap: 3rem; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .selo__filete circle { animation: none; }
  .galeria img { transition: none; }
}
