:root {
  color-scheme: light;
  --ink: #142016;
  --muted: #526059;
  --green: #4d9737;
  --gold: #d99a12;
  --lime: #a8ca32;
  --cream: #fff9e8;
  --paper: #ffffff;
  --line: #dfe7d7;
  --focus: #1d4ed8;
  --shadow: 0 18px 44px rgba(20, 32, 22, 0.14);
  --soft: #f7faf2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a,
button,
input,
select,
textarea {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(600px, 1.22fr);
}

.hero {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100svh;
  height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px 28px;
  background:
    linear-gradient(135deg, rgba(77, 151, 55, 0.88), rgba(217, 154, 18, 0.76)),
    radial-gradient(circle at 82% 18%, rgba(168, 202, 50, 0.95), transparent 30%),
    var(--green);
  color: #fff;
  text-align: center;
}

.hero-copy {
  width: min(430px, 100%);
}

.site-logo {
  width: clamp(86px, 11vw, 130px);
  height: auto;
  margin: 0 auto 10px;
  filter: drop-shadow(0 10px 22px rgba(20, 32, 22, 0.28));
}

.eyebrow {
  margin: 0 0 8px;
  color: currentColor;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2.1rem, 4.1vw, 3.8rem);
  line-height: 0.96;
}

.hero p:not(.eyebrow) {
  max-width: 520px;
  margin: 12px auto 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(0.94rem, 1.25vw, 1.06rem);
  line-height: 1.38;
}

.winner-preview {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.16);
  text-align: center;
}

.winner-preview h2 {
  margin: 0;
  color: #fff;
  font-size: 1.02rem;
  line-height: 1.05;
}

.award-ranks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.award-ranks figure {
  position: relative;
  margin: 0;
  background: #fff;
}

.award-ranks span {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 1;
  min-width: 38px;
  padding: 4px 7px;
  background: var(--gold);
  color: #1c1708;
  font-size: 0.9rem;
  font-weight: 900;
}

.award-ranks img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center top;
}

.winner-preview p {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.8rem;
  line-height: 1.24;
}

.form-section {
  width: 100%;
  min-height: 100svh;
  display: grid;
  align-content: start;
  gap: 10px;
  margin: 0;
  padding: 18px clamp(22px, 3.2vw, 38px);
  background: var(--paper);
  box-shadow: none;
}

.rules-panel,
.parent-only,
.wizard-step {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--soft);
  box-shadow: 0 14px 30px rgba(20, 32, 22, 0.06);
}

.rules-panel,
.consent-group {
  max-height: 42svh;
  overflow: auto;
}

.rules-panel h2,
.parent-only h2,
.wizard-step h3,
.rules-panel h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.15;
}

.rules-panel p,
.parent-only p,
.rules-panel li {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.rules-panel ol {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
}

.section-copy {
  margin-bottom: 0;
}

.section-copy .eyebrow {
  color: var(--green);
}

.deadline-note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.3;
}

h2 {
  max-width: 760px;
  font-size: clamp(1.38rem, 2vw, 1.9rem);
  line-height: 1.05;
}

.nomination-form {
  display: grid;
  gap: 9px;
}

.wizard-progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wizard-progress button {
  position: relative;
  width: 100%;
  min-height: 54px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 7px 8px 8px;
  border: 1px solid var(--line);
  background: #f5f7f1;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.wizard-progress button:hover {
  transform: translateY(-1px);
  border-color: rgba(77, 151, 55, 0.45);
}

.wizard-progress button span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.wizard-progress button[aria-current="step"] {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 22px rgba(77, 151, 55, 0.22);
}

.wizard-progress button[aria-current="step"] span {
  background: #fff;
  color: var(--green);
}

.wizard-progress button[data-state="complete"] {
  border-color: rgba(77, 151, 55, 0.42);
  background: rgba(77, 151, 55, 0.1);
  color: var(--green);
}

.wizard-progress button[data-state="complete"] span {
  background: var(--green);
  color: #fff;
}

.wizard-step[hidden] {
  display: none;
}

.wizard-step {
  min-height: 350px;
  animation: wizard-enter 260ms ease both;
  outline: none;
}

.wizard-step[data-direction="back"] {
  animation-name: wizard-back;
}

@keyframes wizard-enter {
  from {
    opacity: 0;
    transform: translateX(14px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes wizard-back {
  from {
    opacity: 0;
    transform: translateX(-14px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.grid {
  display: grid;
  gap: 9px;
}

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

.grid.three {
  grid-template-columns: 1fr 1fr 1.15fr;
}

.field {
  display: grid;
  gap: 4px;
}

.bot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field span {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
}

.field small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}

.field b {
  color: #b42318;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 7px 10px;
  background: #fff;
  color: var(--ink);
  min-height: 0;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(77, 151, 55, 0.42);
}

input:disabled,
select:disabled,
textarea:disabled {
  background: #f5f7f1;
  color: var(--muted);
  opacity: 1;
}

textarea {
  resize: vertical;
}

textarea[name="nominationReason"] {
  min-height: 72px;
}

.artwork-sample {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fbfcf8;
}

.artwork-sample h3,
.artwork-sample p,
.artwork-sample figure,
.artwork-sample figcaption {
  margin: 0;
}

.artwork-sample h3 {
  font-size: 0.95rem;
  line-height: 1.15;
}

.artwork-sample p,
.artwork-sample figcaption {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.artwork-sample figure {
  display: grid;
  gap: 4px;
  text-align: center;
}

.sample-open-button {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.sample-open-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(20, 32, 22, 0.14);
}

.sample-open-button img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #fff;
}

.sample-modal {
  width: min(760px, calc(100vw - 28px));
  max-height: calc(100svh - 28px);
  padding: 0;
  border: 0;
  background: transparent;
}

.sample-modal::backdrop {
  background: rgba(20, 32, 22, 0.64);
}

.sample-modal-content {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(20, 32, 22, 0.28);
}

.sample-modal-content h2 {
  margin: 0;
  padding-right: 44px;
  font-size: 1.05rem;
}

.sample-modal-content img {
  width: 100%;
  max-height: calc(100svh - 120px);
  object-fit: contain;
  background: #fff;
}

.sample-close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: var(--ink);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
}

.sample-close-button:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(20, 32, 22, 0.2);
}

.success-modal {
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100svh - 28px);
  padding: 0;
  border: 0;
  background: transparent;
}

.success-modal::backdrop {
  background: rgba(20, 32, 22, 0.64);
}

.success-modal-content {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 22px;
  background: #fffef7;
  box-shadow: 0 24px 60px rgba(20, 32, 22, 0.28);
}

.success-kicker,
.success-modal-content h2,
.success-modal-content p,
.success-preview {
  margin: 0;
}

.success-kicker {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.success-modal-content h2 {
  padding-right: 44px;
  font-size: 1.45rem;
  line-height: 1.05;
}

.success-modal-content p {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.35;
}

.success-nomination {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(27, 107, 49, 0.24);
  background: #eef8ef;
}

.success-nomination span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.success-nomination strong {
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.success-preview {
  display: grid;
  gap: 6px;
}

.success-preview[hidden] {
  display: none;
}

.success-preview img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #fff;
}

.success-preview figcaption {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.consent-group {
  display: grid;
  gap: 8px;
  max-height: none;
  margin: 0;
  padding: 10px;
  overflow: auto;
  border: 1px solid var(--line);
}

.consent-group legend {
  padding: 0 6px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
}

.check-field {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.check-field input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  padding: 0;
}

.form-note {
  color: #7a4a00;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.3;
}

.captcha-field {
  max-width: 360px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 0;
  min-height: 44px;
}

button {
  border: 0;
  padding: 9px 15px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
}

button:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(20, 32, 22, 0.14);
}

.secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.status {
  min-height: 1.3em;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  transition: color 160ms ease;
}

.status[data-tone="success"] {
  color: #1b6b31;
}

.status[data-tone="error"] {
  color: #b42318;
}

.review-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.review-item {
  padding: 9px;
  border: 1px solid var(--line);
  background: #fff;
}

.review-item span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.review-item strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.confirmation-panel {
  padding: 14px;
  border: 1px solid rgba(27, 107, 49, 0.24);
  background: #eef8ef;
}

.confirmation-panel[data-tone="warning"] {
  border-color: rgba(122, 74, 0, 0.28);
  background: #fff8e8;
}

.confirmation-panel span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.confirmation-panel strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1.1;
}

.confirmation-panel p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.upload-later-section {
  background: transparent;
  padding: 0;
}

.upload-later-inner {
  width: 100%;
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fffef7;
  box-shadow: 0 10px 22px rgba(20, 32, 22, 0.06);
}

.upload-later-inner > div {
  display: grid;
  gap: 6px;
}

.upload-later-inner h2 {
  font-size: 1rem;
  line-height: 1.12;
}

.upload-later-inner p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.28;
}

.upload-later-form {
  display: grid;
  gap: 8px;
}

.upload-later-grid {
  align-items: start;
}

.upload-file-field {
  min-height: 100%;
  padding: 8px;
  border: 1px dashed rgba(77, 151, 55, 0.45);
  background: linear-gradient(180deg, #ffffff, #f6fbef);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.upload-file-field:hover,
.upload-file-field:focus-within {
  transform: translateY(-1px);
  border-color: var(--green);
  box-shadow: 0 10px 20px rgba(77, 151, 55, 0.12);
}

.upload-file-field input[type="file"] {
  padding: 6px;
  background: #fff;
  cursor: pointer;
}

.upload-file-field input[type="file"]::file-selector-button {
  margin-right: 10px;
  border: 0;
  padding: 7px 10px;
  background: var(--gold);
  color: #1c1708;
  font-weight: 900;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.upload-file-field input[type="file"]::file-selector-button:hover {
  background: #efb323;
  transform: translateY(-1px);
}

.upload-later-actions {
  align-items: flex-start;
}

.upload-later-button {
  min-height: 42px;
  padding: 10px 18px;
  background:
    linear-gradient(135deg, var(--green), #2f7d28 58%, var(--gold));
  box-shadow: 0 10px 20px rgba(77, 151, 55, 0.22);
}

.upload-later-button:not(:disabled):hover {
  box-shadow: 0 14px 26px rgba(77, 151, 55, 0.28);
}

.copyright-notice {
  position: fixed;
  right: 8px;
  bottom: 6px;
  z-index: 20;
  display: flex;
  gap: 8px;
  align-items: center;
  color: rgba(20, 32, 22, 0.54);
  font-size: 0.62rem;
  line-height: 1;
}

.copyright-notice a {
  color: rgba(20, 32, 22, 0.72);
  font-weight: 800;
}

.policy-page {
  min-height: 100svh;
  padding: clamp(22px, 5vw, 64px);
  background:
    linear-gradient(135deg, rgba(77, 151, 55, 0.12), rgba(217, 154, 18, 0.14)),
    var(--cream);
}

.policy-card {
  width: min(920px, 100%);
  display: grid;
  gap: 18px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 46px);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.policy-card section {
  display: grid;
  gap: 8px;
}

.policy-card h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

.policy-card h2 {
  font-size: 1.15rem;
  line-height: 1.2;
}

.policy-card p,
.policy-card a {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.policy-card a {
  color: var(--green);
}

.policy-logo {
  width: 104px;
  height: auto;
}

.policy-home-link {
  justify-self: start;
}

.policy-updated {
  color: var(--green);
}

@media (max-width: 900px) {
  .page-shell {
    min-height: auto;
    display: block;
  }

  .hero {
    position: static;
    height: auto;
    min-height: auto;
    padding: 34px 20px 48px;
  }

  .award-ranks span {
    min-width: 34px;
    font-size: 0.82rem;
  }

  .form-section {
    width: min(980px, calc(100% - 32px));
    min-height: auto;
    margin: -28px auto 52px;
    padding: 24px 18px;
    box-shadow: var(--shadow);
  }

  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

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

  .wizard-progress button {
    min-height: 44px;
    grid-template-columns: 22px 1fr;
    justify-items: start;
  }

  .wizard-step {
    min-height: auto;
  }

  .artwork-sample {
    grid-template-columns: 1fr;
  }

  .artwork-sample figure {
    width: min(220px, 100%);
  }

  .review-summary {
    grid-template-columns: 1fr;
  }

  .upload-later-section {
    padding: 0;
  }

  .upload-later-inner {
    margin: 0 auto;
  }
}

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