/* King of Painters — entry site
   Palette: white and light blue, with a brighter mid-blue for headers/accents,
   and yellow on the prize and main buttons.
   Fonts are self-hosted. */

@font-face {
  font-family: "Bodoni Moda";
  src: url("../assets/fonts/bodoni-moda-variable.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bodoni Moda";
  src: url("../assets/fonts/bodoni-moda-italic-variable.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("../assets/fonts/inter-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #142033;
  --ink-soft: #3d4a63;
  --white: #ffffff;
  --paper: #f4f8ff;
  --ice: #eaf3ff;
  --line: #c9ddff;
  --blue: #2f74ea;
  --blue-deep: #1f63d8;
  --blue-mid: #3d82f0;
  --blue-bright: #5b9cff;
  --blue-soft: #8eb8ff;
  --blue-pale: #d6e7ff;
  --yellow: #ffd200;
  --yellow-hover: #ffe14a;
  --yellow-deep: #d79a00;
  --on-yellow: #142033;
  --prize: #d79a00;
  --danger: #b42318;
  --ok: #0f7a4a;
  --header-h: 4.75rem;
  --radius: 14px;
  --wrap: 70rem;
  --shadow: 0 12px 32px rgba(31, 99, 216, 0.10);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

html, body { margin: 0; padding: 0; }

body {
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-underline-offset: 0.15em; }
a:hover { color: var(--blue-mid); }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--yellow);
  color: var(--on-yellow);
  padding: 0.6rem 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--blue-mid);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: var(--ink);
  flex: 0 1 auto;
  min-width: 0;
}

.brand-logo {
  width: min(11.5rem, 46vw);
  height: auto;
}

.brand-tagline {
  font-family: "Bodoni Moda", "Times New Roman", serif;
  font-style: italic;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--prize);
  margin-top: 0.15rem;
  line-height: 1.2;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
}

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

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover { color: var(--blue-deep); }

.site-nav a[aria-current="page"] { color: var(--blue-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { color: inherit; }

.btn-yellow {
  background: var(--yellow);
  color: var(--on-yellow);
  box-shadow: 0 6px 18px rgba(255, 210, 0, 0.22);
}

.btn-yellow:hover {
  background: var(--yellow-hover);
  color: var(--on-yellow);
}

.btn-yellow:active { transform: translateY(1px); }

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.9rem; }
.btn-lg { padding: 0.95rem 1.8rem; font-size: 1.1rem; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
}

.btn-ghost:hover { color: var(--blue-deep); border-color: var(--blue-mid); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 80% 55% at 50% 30%, #d6e7ff 0%, #eaf3ff 45%, #ffffff 78%);
  color: var(--ink);
  text-align: center;
  padding: 3.2rem 0 4.2rem;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2rem;
  width: 70%;
  height: 4rem;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(91, 156, 255, 0.28), transparent 70%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; max-width: 52rem; }

.hero-logo {
  width: min(36rem, 92%);
  margin: 0 auto 0.35rem;
}

.hero-tagline {
  font-family: "Bodoni Moda", "Times New Roman", serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.25rem, 3.2vw, 1.85rem);
  color: var(--prize);
  margin: 0 0 1.6rem;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-family: "Bodoni Moda", "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 4.8vw, 3.15rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  color: var(--ink);
  text-wrap: balance;
}

.prize-sum {
  color: var(--prize);
  font-weight: 800;
  white-space: nowrap;
}

.logline {
  font-family: "Bodoni Moda", "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  margin: 0 0 1.1rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.hero-lead {
  max-width: 34rem;
  margin: 0 auto 1.7rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.hero-meta {
  margin: 1.1rem 0 0;
  color: var(--blue-deep);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }

.section-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin: 0 0 0.5rem;
}

.section h2 {
  font-family: "Bodoni Moda", "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 0.85rem;
  color: var(--ink);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 38rem;
  margin: 0 0 2rem;
}

.section-navy {
  background: var(--ice);
  color: var(--ink);
}

.section-navy h2 { color: var(--ink); }
.section-navy .lede { color: var(--ink-soft); }
.section-navy .section-kicker { color: var(--blue-deep); }

.section-paper { background: var(--paper); }

/* How it works / the show */
.steps {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.4rem;
  box-shadow: 0 1px 0 rgba(6, 8, 14, 0.04);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--on-yellow);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}

.step h3 {
  font-family: "Bodoni Moda", "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.step p { margin: 0; color: var(--ink-soft); }

.show-points {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin: 2rem 0 0;
}

.point {
  border-left: 3px solid var(--yellow);
  padding: 0.15rem 0 0.15rem 1rem;
}

.point strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
  color: var(--ink);
}

.point p { margin: 0; color: var(--ink-soft); }

/* Prize */
.prize-card {
  display: grid;
  gap: 0.3rem;
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--blue-soft);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.prize-card .amount {
  font-family: "Bodoni Moda", "Times New Roman", serif;
  font-weight: 800;
  font-size: clamp(3rem, 10vw, 4.6rem);
  color: var(--prize);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0.2rem 0 0.4rem;
}

.prize-card .plus {
  color: var(--blue-deep);
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.prize-card h3 {
  font-family: "Bodoni Moda", "Times New Roman", serif;
  font-size: 1.5rem;
  margin: 0 0 0.8rem;
  text-wrap: balance;
}

.prize-card p {
  margin: 0 auto;
  max-width: 32rem;
  color: var(--ink-soft);
}

.fine-print {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Sponsors */
.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.sponsor-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 7.5rem;
  padding: 1rem;
  border: 2px dashed #c5cad8;
  border-radius: var(--radius);
  background: var(--white);
  color: #7a8194;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.sponsor-slot img {
  max-height: 4.5rem;
  width: auto;
  max-width: 80%;
  margin: 0 auto;
  object-fit: contain;
}

/* ---------- Form ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.form-intro { margin: 0 0 1.4rem; color: var(--ink-soft); }

.form-grid {
  display: grid;
  gap: 1.05rem;
  grid-template-columns: 1fr;
}

.field { display: flex; flex-direction: column; gap: 0.35rem; }

.field label,
.field-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.hint {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="file"],
select,
textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  width: 100%;
}

input[type="file"] {
  background: var(--white);
  padding: 0.65rem;
}

textarea { min-height: 7rem; resize: vertical; }

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
  border-color: var(--blue-mid);
  background: var(--white);
}

.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  background: var(--paper);
  cursor: pointer;
  font-weight: 600;
}

.choice:has(input:checked) {
  border-color: var(--blue-mid);
  background: #eef3ff;
  box-shadow: inset 0 0 0 1px var(--blue-mid);
}

.choice input { accent-color: var(--blue-mid); width: 1.1rem; height: 1.1rem; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.check input {
  accent-color: var(--blue-mid);
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions { margin-top: 0.4rem; }

.form-actions .btn { width: 100%; min-height: 3.1rem; }

.form-note {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.form-error,
.field-error {
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0;
}

.form-error[hidden],
.field-error[hidden],
.form-success[hidden] { display: none; }

.form-banner {
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
  font-weight: 600;
}

.form-banner.error {
  background: #fdecea;
  color: var(--danger);
  border: 1px solid #f3c0ba;
}

.form-success {
  text-align: center;
  padding: 2rem 1rem;
}

.form-success h2 { margin-bottom: 0.6rem; }
.form-success p { color: var(--ink-soft); }

/* ---------- Legal pages ---------- */
.legal-hero {
  background: var(--ice);
  color: var(--ink);
  padding: 2.5rem 0 2.2rem;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  font-family: "Bodoni Moda", "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 0.4rem;
}

.legal-hero p { margin: 0; color: var(--ink-soft); }

.draft-banner {
  background: #fff4cc;
  color: var(--on-yellow);
  border: 1px solid var(--yellow-deep);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin: 0 0 1.75rem;
  font-size: 0.98rem;
}

.legal {
  padding: 2.4rem 0 4rem;
}

.legal-inner { max-width: 44rem; }

.legal h2 {
  font-family: "Bodoni Moda", "Times New Roman", serif;
  font-size: 1.45rem;
  margin: 2rem 0 0.6rem;
}

.legal h2:first-of-type { margin-top: 0; }

.legal ol, .legal ul { padding-left: 1.2rem; }
.legal li { margin: 0.4rem 0; }
.legal p { margin: 0.6rem 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ice);
  color: var(--ink-soft);
  padding: 2.6rem 0 2rem;
  font-size: 0.95rem;
  border-top: 3px solid var(--blue-mid);
}

.footer-grid {
  display: grid;
  gap: 1.6rem;
}

.footer-brand .brand-logo { width: 11rem; }

.footer-tagline {
  font-family: "Bodoni Moda", "Times New Roman", serif;
  font-style: italic;
  color: var(--prize);
  margin: 0.35rem 0 0.8rem;
}

.footer-grid strong { color: var(--ink); }
.site-footer a { color: var(--blue-deep); }
.site-footer a:hover { color: var(--ink); }

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.1rem;
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
}

.footer-legal {
  border-top: 1px solid var(--line);
  margin-top: 1.6rem;
  padding-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.footer-legal p { margin: 0; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .show-points { grid-template-columns: 1fr 1fr; }
  .form-grid.two { grid-template-columns: 1fr 1fr; }
  .form-actions .btn { width: auto; min-width: 14rem; }
  .prize-card { padding: 2.6rem 2rem; }
}

@media (min-width: 900px) {
  .hero { padding: 4.2rem 0 5.2rem; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .sponsors-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .form-card { padding: 2.1rem 2.2rem; }
}

@media (max-width: 799px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 0.75rem 0.4rem;
    border-bottom: 1px solid var(--paper);
  }
  .site-nav .btn { margin-top: 0.6rem; width: 100%; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}


@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  @page {
    size: A4;
    margin: 12mm 10mm;
  }
  .site-header {
    position: static;
    background: #fff;
  }
  .skip-link,
  .nav-toggle,
  .site-nav { display: none !important; }
  .step,
  .prize-card,
  .sponsor-slot,
  .point,
  .site-footer {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  textarea { min-height: 3.2rem; }
  .section { padding: 2.2rem 0; }
}
