:root {
  --bg: #ebebeb;
  --ink: #070707;
  --orange: #ff4f1a;
  --yellow: #eab01c;
  --cyan: #18b8dc;
  --green: #0b8e69;
  --leaf: #13a57a;
  --ocean: #1f95ff;
  --container: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body,
h1,
h2,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

body {
  min-height: 100vh;
  font-family: "Baloo 2", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.35;
  position: relative;
  overflow-x: clip;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 3px solid var(--ink);
  background: rgba(235, 235, 235, 0.9);
  backdrop-filter: blur(8px);
}

.topbar-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: "Bree Serif", serif;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.4rem;
  letter-spacing: 0.01em;
}

.brand strong {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cta-small {
  text-decoration: none;
  color: var(--ink);
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 14px;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  box-shadow: 3px 3px 0 var(--ink);
}

.topbar-nav {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

.topbar-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  position: relative;
}

.topbar-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease-out;
}

.topbar-nav a:hover::after,
.topbar-nav a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  padding-block: clamp(2.2rem, 3vw, 3rem) clamp(3rem, 4vw, 4.2rem);
}

.hero-inner {
  text-align: center;
}

.hero-flyer {
  margin: 0 auto 1.6rem;
  width: clamp(220px, 38vw, 320px);
  border: 4px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--ink);
  background: #fff;
  transform: rotate(-2deg);
  transition: transform 220ms ease-out;
}

.hero-flyer:hover {
  transform: rotate(0deg);
}

.hero-flyer img {
  display: block;
  width: 100%;
  height: auto;
}

.eyebrow {
  font-family: "Bree Serif", serif;
  color: var(--yellow);
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 0.4rem;
  text-shadow: 2px 2px 0 var(--ink);
}

.eyebrow strong {
  font-weight: 700;
  letter-spacing: 0.04em;
}

h1 {
  font-family: "Bree Serif", serif;
  font-size: clamp(2.3rem, 7vw, 5.2rem);
  color: var(--orange);
  line-height: 0.95;
  text-wrap: balance;
}

h1::before,
h1::after {
  content: "✶";
  color: var(--orange);
  margin-inline: 0.5rem;
}

.hero-copy {
  font-size: clamp(1.1rem, 2.2vw, 2rem);
  font-weight: 700;
  max-width: 28ch;
  margin: 1.2rem auto 2rem;
  color: var(--orange);
}

.event-card {
  max-width: 920px;
  margin: 0 auto;
  border: 4px solid var(--ink);
  background: #fff;
  box-shadow: 8px 8px 0 var(--ink);
}

.event-card-header {
  background: var(--yellow);
  padding: 1rem;
  border-bottom: 4px solid var(--ink);
  font-family: "Bree Serif", serif;
  font-size: clamp(1.7rem, 3vw, 2.75rem);
  text-transform: uppercase;
}

.event-card-grid {
  display: grid;
  grid-template-columns: 2fr 1.25fr 1fr;
}

.event-cell {
  min-height: 160px;
  padding: 1rem;
  border-right: 4px solid var(--ink);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.6rem;
}

.event-cell:last-child {
  border-right: 0;
}

.event-cell-location {
  background: var(--orange);
}

.event-cell-date {
  background: var(--cyan);
}

.event-cell-note {
  background: var(--green);
}

.event-cell p {
  margin: 0;
  font-size: clamp(1.15rem, 1.5vw, 1.9rem);
  font-weight: 700;
  max-width: 20ch;
}

.event-cell-date p {
  display: grid;
  text-align: center;
  line-height: 1.1;
  gap: 0.2rem;
}

.event-cell-date strong {
  font-size: clamp(1.5rem, 2.8vw, 2.9rem);
  font-family: "Bree Serif", serif;
}

.event-cell-date span {
  font-size: clamp(1.55rem, 2.2vw, 2.5rem);
}

.event-cell-note p {
  font-size: clamp(1.4rem, 2.3vw, 2.3rem);
  text-wrap: balance;
}

.icon-wrap {
  width: clamp(44px, 5vw, 60px);
  aspect-ratio: 1;
}

.icon-wrap svg {
  width: 100%;
  height: 100%;
  fill: var(--ink);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero-actions a {
  text-decoration: none;
  border: 3px solid var(--ink);
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 0.7rem 1.4rem;
  box-shadow: 3px 3px 0 var(--ink);
}

.btn-primary {
  background: var(--orange);
  color: var(--ink);
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
}

.section {
  padding-block: clamp(2.6rem, 4vw, 4rem);
}

h2 {
  font-family: "Bree Serif", serif;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
}

.games-inner {
  text-align: center;
  position: relative;
}

.games-kicker {
  display: inline-block;
  font-family: "Bree Serif", serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
  box-shadow: 2px 2px 0 var(--ink);
  margin-bottom: 0.65rem;
}

.games h2 {
  text-align: center;
  color: var(--orange);
  margin-bottom: 0.6rem;
}

.games-intro {
  max-width: 540px;
  margin: 0 auto 1.6rem;
  text-align: center;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.5;
}

.games-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.games-column {
  border: 3px solid var(--ink);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: 5px 5px 0 var(--ink);
  text-align: left;
}

.games-column:nth-child(1) {
  background: #fff0db;
}

.games-column:nth-child(2) {
  background: #dff5ff;
}

.games-column:nth-child(3) {
  background: #dff7ea;
}

.games-column h3 {
  font-family: "Bree Serif", serif;
  font-size: 1.2rem;
  line-height: 1.15;
  margin-bottom: 0.7rem;
  color: var(--ink);
}

.games-list {
  display: grid;
  gap: 0.5rem;
}

.games-list li {
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  padding: 0.65rem 0.8rem 0.65rem 2rem;
  font-size: 1.04rem;
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--ink);
  position: relative;
}

.games-list li::before {
  content: "✷";
  position: absolute;
  left: 0.72rem;
  top: 50%;
  transform: translateY(-52%);
  color: var(--orange);
  font-size: 0.95rem;
  line-height: 1;
}

.sobre-inner {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 22px;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  box-shadow: 6px 6px 0 var(--ink);
}

.sobre-eyebrow {
  font-family: "Bree Serif", serif;
  color: var(--cyan);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}

.sobre-eyebrow strong {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.sobre h2 {
  color: var(--orange);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 0.9rem;
}

.sobre-copy {
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--ink);
  max-width: 560px;
  margin: 0 auto 1.4rem;
}

.sobre-copy strong {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sobre-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.sobre-pills li {
  background: var(--yellow);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 3px 3px 0 var(--ink);
}

.local-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.2rem;
  align-items: stretch;
}

.local h2 {
  margin-bottom: 0.6rem;
}

.location-text {
  font-size: 1.25rem;
  font-weight: 700;
}

.location-note {
  margin-top: 0.8rem;
  font-size: 1.05rem;
}

.map {
  min-height: 320px;
  border: 4px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--ink);
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.form-shell {
  max-width: 760px;
}

.inscricao h2 {
  margin-bottom: 0.2rem;
}

.inscricao p {
  font-size: 1.1rem;
}

.form {
  margin-top: 1rem;
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: 18px;
  padding: 1.1rem;
  display: grid;
  gap: 0.9rem;
  box-shadow: 7px 7px 0 var(--ink);
}

.field {
  display: grid;
  gap: 0.3rem;
}

.field label {
  font-weight: 700;
  font-size: 1rem;
}

.field .optional {
  font-size: 0.88em;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 0.62rem 0.78rem;
  font-family: inherit;
  font-size: 1rem;
  background: #fafafa;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 149, 255, 0.32);
}

.submit-btn {
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: var(--yellow);
  color: var(--ink);
  font-family: inherit;
  font-size: 1.08rem;
  font-weight: 800;
  padding: 0.72rem 1rem;
  box-shadow: 3px 3px 0 var(--ink);
}

.btn-loading {
  display: none;
}

.form.loading .btn-label {
  display: none;
}

.form.loading .btn-loading {
  display: inline;
}

.form.loading .submit-btn {
  opacity: 0.78;
  pointer-events: none;
}

.form-status {
  min-height: 1.3em;
  font-size: 0.95rem;
  font-weight: 700;
}

.form-status.is-success {
  color: #0f7b33;
}

.form-status.is-error {
  color: #a61e1e;
}

.form-status.is-loading::before {
  content: "";
  width: 0.75em;
  height: 0.75em;
  display: inline-block;
  margin-right: 0.45em;
  border: 2px solid rgba(7, 7, 7, 0.2);
  border-top-color: rgba(7, 7, 7, 0.75);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  vertical-align: -1px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.post-signup {
  margin-top: 1.6rem;
  display: grid;
  gap: 1.3rem;
  text-align: center;
}

.post-signup-help {
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 3px dashed var(--ink);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  margin: 0 auto;
  max-width: 520px;
}

.post-signup-help a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.follow-cta {
  display: grid;
  gap: 0.7rem;
  justify-items: center;
  padding-top: 0.4rem;
}

.follow-cta-text {
  font-size: 1rem;
  max-width: 480px;
  color: var(--ink);
}

.follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 0.65rem 1.2rem;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 120ms ease-out, box-shadow 120ms ease-out;
}

.follow-btn:hover,
.follow-btn:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
  outline: none;
}

.follow-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.follow-btn strong {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.footer {
  padding-block: 1.2rem 1.5rem;
  border-top: 3px solid var(--ink);
  background: #dfdfdf;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 700;
}

.bg-sun {
  position: absolute;
  top: -68px;
  right: -45px;
  width: 230px;
  aspect-ratio: 1;
  border: 5px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  z-index: -1;
}

.bg-sun::before,
.bg-sun::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 46px;
  border: 4px solid var(--ink);
  border-radius: 20px;
  background: var(--orange);
}

.bg-sun::before {
  right: -22px;
  top: 74px;
  transform: rotate(58deg);
}

.bg-sun::after {
  right: 5px;
  top: 162px;
  transform: rotate(24deg);
}

.bg-squiggle {
  position: absolute;
  width: 120px;
  height: 320px;
  border: 5px solid var(--ink);
  border-radius: 200px;
  background: repeating-linear-gradient(
    35deg,
    var(--orange) 0 16px,
    var(--yellow) 16px 28px
  );
  z-index: -1;
}

.bg-squiggle-left {
  left: -76px;
  top: 110px;
  transform: rotate(20deg);
}

.bg-squiggle-right {
  right: -66px;
  bottom: 220px;
  transform: rotate(-24deg);
}

@media (max-width: 920px) {
  .event-card-grid {
    grid-template-columns: 1fr;
  }

  .event-cell {
    border-right: 0;
    border-bottom: 4px solid var(--ink);
    min-height: unset;
    padding: 1rem 1rem 1.15rem;
  }

  .event-cell:last-child {
    border-bottom: 0;
  }

  .local-grid {
    grid-template-columns: 1fr;
  }

  .games-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cta-small {
    font-size: 0.94rem;
  }

  .topbar-nav {
    display: none;
  }

  h1::before,
  h1::after {
    display: none;
  }

  .hero-copy {
    margin-bottom: 1.5rem;
  }

  .bg-sun,
  .bg-squiggle {
    opacity: 0.45;
  }

  .games-showcase {
    grid-template-columns: 1fr;
  }

  .games-column {
    padding: 0.9rem;
  }
}

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