:root {
  --purple: #5521b5;
  --purple-dark: #36117f;
  --purple-soft: #eee7ff;
  --yellow: #ffcb3d;
  --orange: #f47b20;
  --green: #45a527;
  --blue: #1581c4;
  --ink: #211936;
  --muted: #685f79;
  --paper: #fffdf8;
  --white: #fff;
  --line: #dfd5f2;
  --shadow: 0 18px 50px rgba(54, 17, 127, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
img { max-width: 100%; }
a { color: inherit; }
.shell { width: min(1180px, calc(100% - 36px)); margin-inline: auto; }
.narrow { max-width: 800px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(85, 33, 181, .12);
  background: rgba(255, 253, 248, .94);
  backdrop-filter: blur(12px);
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  color: var(--purple);
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  font-weight: 950;
  line-height: .9;
  letter-spacing: -.05em;
  text-decoration: none;
}
.brand span {
  display: block;
  margin-top: 8px;
  color: var(--orange);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 800;
  text-decoration: none;
}
.nav a:hover,
.nav a.active { color: var(--purple); background: var(--purple-soft); }

.contest-hero {
  overflow: hidden;
  padding: clamp(38px, 7vw, 82px) 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 203, 61, .34), transparent 25%),
    radial-gradient(circle at 90% 5%, rgba(244, 123, 32, .2), transparent 28%),
    linear-gradient(135deg, #5521b5 0 36%, #6e32ca 36% 48%, #fff9ea 48%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(520px, 1.18fr);
  align-items: start;
  gap: clamp(34px, 6vw, 74px);
}
.hero-copy {
  position: sticky;
  top: 120px;
  padding-top: 40px;
  color: var(--white);
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero-copy .eyebrow { color: var(--yellow); }
.hero-copy h1,
.simple-hero h1,
.success-page h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: .96;
  letter-spacing: -.055em;
}
.hero-copy h1 span { color: var(--yellow); }
.hero-copy > p:not(.eyebrow) {
  max-width: 520px;
  margin: 24px 0;
  color: #eee7ff;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.55;
}
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font: inherit;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button-primary { color: var(--white); background: linear-gradient(135deg, var(--purple), #7b31d4); }
.button-secondary { color: var(--purple-dark); background: var(--yellow); }
.button:hover { filter: brightness(1.03); transform: translateY(-1px); }

.entry-card {
  overflow: hidden;
  border: 1px solid rgba(85, 33, 181, .13);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.privacy-promise {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 4px 14px;
  align-items: center;
  padding: 20px 24px;
  color: #173d31;
  background: linear-gradient(135deg, #fff4b8, #dcfff1);
  border-bottom: 2px solid #8ed8bc;
  line-height: 1.45;
}
.privacy-promise::before {
  content: "\2713";
  grid-row: 1 / 3;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: #16865f;
  box-shadow: 0 5px 14px rgba(22, 134, 95, .24);
  font-size: 1.45rem;
  font-weight: 950;
}
.privacy-promise strong {
  font-size: 1.18rem;
  font-weight: 950;
  letter-spacing: -.015em;
}
.privacy-promise span {
  font-size: .94rem;
  font-weight: 650;
}
.entry-heading { padding: 26px 26px 0; }
.entry-heading h2,
.section-heading h2,
.contact-panel h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}
.entry-heading > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: .86rem; }
.contest-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 24px 26px 30px;
}
.field { display: grid; align-content: start; gap: 7px; }
.field-wide,
.contact-fields { grid-column: 1 / -1; }
.field > span,
.contact-fields legend {
  color: var(--ink);
  font-size: .86rem;
  font-weight: 850;
}
.field b,
.contact-fields b { color: #c83535; }
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  padding: 13px 14px;
  outline: 0;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(85, 33, 181, .1);
}
.field small,
.contact-fields > p {
  margin: 0;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.4;
}
.answer-field input {
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: 1.35rem;
  font-weight: 950;
}
.contact-fields { min-width: 0; margin: 0; border: 0; padding: 0; }
.two-column-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 10px; }
.field-error,
.form-status { min-height: 1.2em; margin: 5px 0 0; color: #b42318; font-size: .82rem; font-weight: 750; }
.form-status:empty,
.field-error:empty { min-height: 0; }
.honeypot { position: absolute; left: -10000px; }

.section { padding-block: clamp(54px, 8vw, 92px); }
.section-heading { max-width: 760px; margin: 0 auto 28px; text-align: center; }
.section-heading > p:last-child {
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}
.art-frame {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.art-frame img { display: block; width: 100%; height: auto; }
.art-frame span {
  display: block;
  padding: 12px 18px;
  color: var(--purple);
  font-size: .82rem;
  font-weight: 850;
  text-align: center;
}
.sponsor-section { background: #f3efff; }
.sponsor-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  border-radius: 20px;
  padding: 22px 24px;
  background: var(--white);
}
.sponsor-cta strong { font-size: 1.15rem; }
.sponsor-cta p { margin: 6px 0 0; color: var(--muted); }

.simple-hero {
  min-height: calc(100vh - 150px);
  padding: clamp(60px, 10vw, 120px) 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 203, 61, .3), transparent 25%),
    linear-gradient(160deg, #fff 0 55%, #eee7ff);
  text-align: center;
}
.simple-hero .narrow > p:not(.eyebrow),
.contact-panel > p:not(.eyebrow),
.success-page > p:not(.eyebrow) {
  margin: 22px auto;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}
.button-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.contact-band { background: var(--purple-dark); }
.contact-panel {
  border-radius: 26px;
  padding: clamp(26px, 5vw, 50px);
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.contact-actions a {
  display: grid;
  gap: 5px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  text-decoration: none;
}
.contact-actions span { color: var(--muted); font-size: .8rem; font-weight: 750; text-transform: uppercase; }
.contact-actions strong { color: var(--purple); overflow-wrap: anywhere; }

.success-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.success-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: 24px;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-size: 2.6rem;
  font-weight: 950;
}
.site-footer { padding: 24px 0; color: #dcd2f5; background: var(--purple-dark); }
.footer-inner { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 24px; font-size: .85rem; }
.footer-inner a { text-decoration: none; }

@media (max-width: 900px) {
  .contest-hero {
    background:
      radial-gradient(circle at 10% 5%, rgba(255, 203, 61, .25), transparent 20%),
      linear-gradient(180deg, var(--purple) 0 24%, #fff9ea 24%);
  }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { position: static; padding: 0 0 10px; text-align: center; }
  .hero-copy > p:not(.eyebrow) { margin-inline: auto; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 24px, 1180px); }
  .header-inner { min-height: 70px; gap: 6px; }
  .brand { flex: 0 1 auto; font-size: 1.35rem; white-space: nowrap; }
  .brand span { display: none; }
  .nav { flex: 0 1 auto; gap: 0; }
  .nav a { padding: 8px 6px; font-size: .72rem; }
  .contest-hero { padding-top: 30px; }
  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 12vw, 3.25rem);
    overflow-wrap: break-word;
  }
  .entry-card,
  .art-frame,
  .contact-panel { border-radius: 18px; }
  .privacy-promise { padding: 16px 18px; }
  .entry-heading { padding: 22px 18px 0; }
  .contest-form { grid-template-columns: 1fr; padding: 20px 18px 24px; }
  .field-wide,
  .contact-fields { grid-column: auto; }
  .two-column-fields,
  .contact-actions { grid-template-columns: 1fr; }
  .sponsor-cta { align-items: stretch; flex-direction: column; text-align: center; }
  .sponsor-cta .button { width: 100%; }
}

@media (max-width: 360px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding-block: 12px; }
  .nav { width: 100%; justify-content: space-between; }
}
