: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);
}

* {
  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,
textarea {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input: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 {
  min-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;
  overflow: hidden;
  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: 1 / 1.04;
  object-fit: cover;
  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: center;
  margin: 0;
  padding: 18px clamp(22px, 3.2vw, 38px);
  background: var(--paper);
  box-shadow: none;
}

.section-copy {
  margin-bottom: 10px;
}

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

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

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

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

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

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

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

.field b {
  color: #b42318;
}

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

textarea {
  resize: vertical;
}

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

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

button {
  border: 0;
  padding: 9px 15px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

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

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

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

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

  .hero {
    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-template-columns: 1fr;
  }
}
