/* Cores e formas vêm da identidade do Contraponto: blocos chapados,
   cantos retos, marca-texto amarelo e etiquetas pretas. */
:root {
  --green: #145a3b;
  --green-deep: #0e4530;
  --yellow: #ffd21e;
  --ink: #1b1a16;
  --cream: #f2e9d8;
  --paper: #fbf6e8;
  --whats: #25d366;
  --whats-ink: #05301a;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.label {
  display: inline-block;
  margin: 0;
  padding: 5px 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Abertura */
.hero { background: var(--green); color: var(--paper); }

.topbar,
.intro,
main {
  max-width: 1320px;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo { display: block; height: 64px; width: auto; margin-left: -10px; }

.insta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 3px solid var(--yellow);
}
.insta svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.insta .insta__dot { fill: currentColor; stroke: none; }
.insta:hover { color: var(--yellow); }

.intro { padding-top: 44px; padding-bottom: 64px; }
.intro .label { background: var(--yellow); color: var(--ink); }
.intro h1 {
  margin: 18px 0 20px;
  max-width: 16ch;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(40px, 7vw, 88px);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.intro mark {
  background: var(--yellow);
  color: var(--ink);
  padding: 0 0.12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.intro__text { margin: 0; max-width: 520px; font-size: 19px; opacity: 0.92; }

.notice {
  margin: 0;
  padding: 14px 28px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 500;
  text-align: center;
}

/* Grade */
main { padding-top: 48px; padding-bottom: 88px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 28px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  scroll-margin-top: 24px;
}
.card.is-target { box-shadow: 0 0 0 6px var(--yellow); }

.card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--ink);
  cursor: pointer;
}
.card__media img,
.card__media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.card__media video { object-fit: contain; background: #000; }

/* O botão de tocar é o "ponto" da marca. */
.card__play {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--yellow);
  transition: transform 0.15s ease;
}
.card__play::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 20px;
  border-style: solid;
  border-width: 12px 0 12px 18px;
  border-color: transparent transparent transparent var(--ink);
}
.card__media:hover .card__play { transform: scale(1.1); }

.card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 20px; }
.card__date { align-self: flex-start; }

.card__title {
  margin: 12px 0 18px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__actions { display: grid; gap: 8px; margin-top: auto; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 16px;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s ease, background 0.15s ease;
}
.btn svg { width: 22px; height: 22px; flex: none; }

.btn--whats { background: var(--whats); color: var(--whats-ink); }
.btn--whats svg { fill: currentColor; }
.btn--whats:hover { filter: brightness(0.93); }
.btn--whats.is-ready { background: var(--yellow); color: var(--ink); }

.btn--download { background: var(--ink); color: var(--paper); }
.btn--download:hover { background: var(--green); }

.btn[disabled] { opacity: 0.65; cursor: progress; }

.empty {
  margin: 0;
  padding: 56px 24px;
  background: var(--paper);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  text-align: center;
}

.footer {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 28px;
  background: var(--ink);
  color: var(--paper);
}
.footer img { display: block; }
.footer p { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 20px; }
.footer a { margin-left: auto; font-weight: 700; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 5px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 15px;
  z-index: 20;
}

@media (max-width: 640px) {
  .topbar, .intro, main { padding-left: 16px; padding-right: 16px; }
  .logo { height: 50px; margin-left: -8px; }
  .insta span { display: none; }
  .insta { border-bottom: 0; }
  .insta svg { width: 28px; height: 28px; }
  .intro { padding-top: 28px; padding-bottom: 44px; }
  .intro__text { font-size: 17px; }
  main { padding-top: 24px; padding-bottom: 56px; }
  .grid { grid-template-columns: 1fr; gap: 24px; }
  .card__media { aspect-ratio: 4 / 5; }
  .footer { flex-wrap: wrap; padding: 22px 16px; }
}
