:root {
  --ink: #251d19;
  --paper: #f3dfbf;
  --paper-soft: #fff3d9;
  --rust: #b9572d;
  --gold: #f0c64a;
  --cream: #fff7e8;
  --charcoal: #1d1715;
  --muted: #6f5a4c;
  --line: rgba(37, 29, 25, 0.16);
  --shadow: 0 24px 70px rgba(29, 23, 21, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 4%, rgba(240, 198, 74, 0.34), transparent 26rem),
    linear-gradient(135deg, var(--paper), #efd2a4 45%, #e5b379);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.33;
  background-image:
    linear-gradient(rgba(37, 29, 25, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 29, 25, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
}

.site-header::before {
  position: absolute;
  inset: 8px -12px;
  z-index: -1;
  content: "";
  border: 1px solid rgba(255, 247, 232, 0.2);
  border-radius: 999px;
  background: rgba(37, 29, 25, 0.9);
  box-shadow: 0 10px 30px rgba(37, 29, 25, 0.18);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: max-content;
  color: var(--cream);
  font-weight: 800;
  text-decoration: none;
}

.brand-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255, 247, 232, 0.22);
}

.nav {
  gap: 4px;
}

.nav a {
  border-radius: 999px;
  color: rgba(255, 247, 232, 0.84);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 10px 13px;
  text-decoration: none;
}

.nav a:hover {
  color: var(--cream);
  background: rgba(255, 247, 232, 0.12);
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  min-height: clamp(320px, 44svh, 460px);
  margin: 0 auto;
  padding: 42px 0 30px;
}

.hero-copy {
  max-width: 980px;
}

.eyebrow,
.card-kicker {
  margin: 0 0 12px;
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Archivo Black", Impact, sans-serif;
  line-height: 0.96;
  text-transform: uppercase;
}

h1 {
  max-width: 10ch;
  margin-bottom: 22px;
  font-size: clamp(2.35rem, 10vw, 7.7rem);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.15rem, 5vw, 4.5rem);
}

h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.lead {
  max-width: 690px;
  color: #4f3f35;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.hero-notice {
  max-width: 760px;
  margin: 20px 0 0;
  padding: 16px 18px;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-left: 8px solid var(--rust);
  border-radius: 4px;
  background: rgba(255, 247, 232, 0.68);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 0 18px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--cream);
  background: var(--ink);
  box-shadow: 7px 7px 0 var(--rust);
}

.button.secondary {
  background: rgba(255, 247, 232, 0.44);
}

.button.disabled {
  width: fit-content;
  color: rgba(255, 247, 232, 0.66);
  border-color: rgba(255, 247, 232, 0.24);
  cursor: not-allowed;
  background: rgba(255, 247, 232, 0.08);
  pointer-events: none;
}

.button.disabled:hover {
  transform: none;
}

.hero-art {
  position: relative;
  margin: 0;
}

.hero-art::before {
  position: absolute;
  inset: 8% -6% -8% 10%;
  z-index: -1;
  content: "";
  border-radius: 50%;
  background: var(--rust);
  transform: rotate(-9deg);
}

.hero-art img {
  display: block;
  width: 100%;
  max-height: min(680px, 72svh);
  border: 8px solid var(--ink);
  border-radius: 4px;
  object-fit: cover;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.info-strip,
.section,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.info-strip {
  scroll-margin-top: 172px;
}

.anchor-target {
  scroll-margin-top: 132px;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
}

.info-strip div {
  padding: 22px;
  background: var(--gold);
}

.info-strip strong,
.info-strip span {
  display: block;
}

.info-strip strong {
  margin-bottom: 6px;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.info-strip span {
  color: #503a22;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.section {
  padding: clamp(64px, 9vw, 112px) 0;
}

.two-column {
  display: grid;
  grid-template-columns: 0.88fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding-bottom: clamp(18px, 2.5vw, 32px);
}

#cronograma {
  padding-top: clamp(10px, 1.5vw, 20px);
}

.text-block {
  color: #46372e;
  font-size: 1.04rem;
  line-height: 1.75;
}

.text-block p:last-child,
.section-heading p:last-child,
.registration-card p:last-of-type,
.site-footer p {
  margin-bottom: 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading p:last-child {
  color: #5b473b;
  font-size: 1.04rem;
  line-height: 1.65;
}

.timeline,
.registration-grid {
  display: grid;
  gap: 16px;
}

.timeline {
  grid-template-columns: repeat(3, 1fr);
}

.timeline article,
.registration-card {
  border: 2px solid var(--ink);
  border-radius: 4px;
}

.timeline article {
  min-height: 230px;
  padding: 22px;
  background: rgba(255, 247, 232, 0.48);
}

.timeline span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  color: var(--cream);
  border-radius: 50%;
  font-weight: 800;
  background: var(--rust);
}

.timeline p,
.registration-card p {
  color: #584438;
  line-height: 1.6;
}

.registration {
  width: 100%;
  padding-right: max(16px, calc((100% - 1120px) / 2));
  padding-left: max(16px, calc((100% - 1120px) / 2));
  background: var(--charcoal);
  color: var(--cream);
}

.registration .eyebrow,
.registration .section-heading p:last-child,
.registration-card p {
  color: rgba(255, 247, 232, 0.75);
}

.registration-grid {
  grid-template-columns: repeat(2, 1fr);
}

.registration-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(185, 87, 45, 0.34), transparent 42%),
    rgba(255, 247, 232, 0.06);
}

.registration-card h3 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0 44px;
  color: #3e3028;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.instagram-link svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.email-link {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.instagram-link:hover span,
.email-link:hover {
  text-decoration: underline;
}

@media (max-width: 860px) {
  .site-header {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .site-header::before {
    border-radius: 18px;
  }

  .nav {
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    min-width: max-content;
  }

  .hero,
  .two-column,
  .timeline,
  .registration-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  h1 {
    max-width: 9ch;
  }

  .hero-art {
    width: min(460px, 100%);
    margin: 10px auto 0;
  }

  .info-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero,
  .info-strip,
  .section,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  .brand span {
    font-size: 0.96rem;
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .button {
    width: 100%;
  }

  .hero-art img {
    max-height: 470px;
    border-width: 6px;
  }
}
