:root {
  color-scheme: dark;
  --red: #7c0606;
  --red-deep: #620504;
  --gold: #e7c76a;
  --cream: #fff3dd;
}

* { box-sizing: border-box; }

html { min-width: 280px; background: var(--red); }

body {
  position: relative;
  margin: 0;
  color: var(--cream);
  background: radial-gradient(ellipse at 50% 20%, #a4140c 0%, var(--red) 62%, var(--red-deep) 100%);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-text-size-adjust: 100%;
}

/* A textura é decorativa; a cor de fundo permanece definida sem imagens. */
body::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .1;
  pointer-events: none;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.45' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}

a { color: inherit; }

a:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 6px;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 12px 18px;
  transform: translateY(-180%);
  border-radius: 4px;
  color: var(--red-deep);
  background: var(--cream);
}

.skip-link:focus { transform: none; }

.page {
  position: relative;
  max-width: 864px;
  margin-inline: auto;
  padding: 38px 32px 22px;
}

.intro { text-align: center; }

.event-logo {
  display: block;
  width: min(100%, 430px);
  height: auto;
  margin: 0 auto 22px;
}

.thanks {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}

.ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--gold);
  font-size: 19px;
}

.ornament span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.ornament span:last-child { transform: rotate(180deg); }

h1 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(25px, 4vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  text-wrap: balance;
}

.instruction {
  margin: 12px 0 28px;
  font-size: 16px;
  line-height: 1.5;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 728px;
  margin-inline: auto;
}

.media-card {
  position: relative;
  display: block;
  container-type: inline-size;
  min-width: 0;
  overflow: hidden;
  border-radius: 15px;
  background: #c90027;
  box-shadow: 0 7px 18px #3500004d;
  text-decoration: none;
  -webkit-tap-highlight-color: #e7c76a40;
}

/* Imagens completas no recorte fornecido; ícones e textos permanecem nítidos e editáveis. */
.card-photo {
  display: block;
  width: 100%;
  height: auto;
}

.card-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 12px clamp(10px, 4cqw, 18px) clamp(16px, 6cqw, 23px);
  color: #fff;
  text-align: center;
  text-transform: uppercase;
}

.card-icon {
  display: block;
  flex: 0 0 auto;
  width: clamp(40px, 15cqw, 56px);
  height: clamp(40px, 15cqw, 56px);
  margin-bottom: clamp(12px, 4.8cqw, 18px);
  filter: drop-shadow(0 2px 3px #47000026);
}

.card-action {
  display: block;
  font-size: clamp(12px, 4.4cqw, 17px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .16em;
}

.card-title {
  display: block;
  margin-top: clamp(6px, 2.4cqw, 9px);
  font-size: clamp(16px, 6.4cqw, 25px);
  font-weight: 800;
  line-height: 1.2;
}

.footer { margin-top: 28px; text-align: center; }
.footer .ornament { margin: 0 0 24px; }
.oma-link { display: inline-block; border-radius: 3px; }
.oma-link img { display: block; width: 126px; height: auto; }
.footer p { margin: 18px 0 0; font-size: 12px; line-height: 1.5; }

.sponsors { margin-top: 24px; }
.sponsors h2 {
  margin: 0 0 24px;
  color: var(--gold);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
}
.sponsors-image {
  display: block;
  width: 100%;
  max-width: 728px;
  height: auto;
  margin-inline: auto;
  border-radius: 12px;
}

@media (hover: hover) {
  .media-card:hover { outline: 2px solid var(--gold); outline-offset: 4px; }
}

@media (max-width: 560px) {
  .page { padding: 28px 22px 22px; }
  .event-logo { max-width: 360px; margin-bottom: 18px; }
  .thanks { max-width: 330px; margin-inline: auto; font-size: 16px; }
  .intro .ornament { margin: 20px 0; }
  .instruction { margin-bottom: 24px; }
  .media-grid { grid-template-columns: minmax(0, 1fr); max-width: 360px; gap: 20px; }
  .footer { margin-top: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
