.hero {
  background: var(--peach);
  text-align: center;
  padding: var(--space-9) var(--space-8) 0;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-hero);
  z-index: 1;
}

/* Triple stripe at the bottom — three bands of var(--stripe-unit) each */
.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(3 * var(--stripe-unit));
  background: linear-gradient(
    to bottom,
    var(--coral) 0,                          var(--coral) var(--stripe-unit),
    var(--maize) var(--stripe-unit),          var(--maize) calc(2 * var(--stripe-unit)),
    var(--sage)  calc(2 * var(--stripe-unit)), var(--sage)  calc(3 * var(--stripe-unit))
  );
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  color: var(--warm-white);
  text-shadow: 3px 4px 0 color-mix(in srgb, var(--coral-dk) 25%, transparent);
  line-height: 1;
  position: relative;
  z-index: 1;
}

.hero__sub {
  color: white;
  font-weight: 700;
  font-size: var(--text-base);
  margin-top: var(--space-1);
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 3px color-mix(in srgb, var(--coral-dk) 30%, transparent);
}

.hero__search {
  position: relative;
  z-index: 1;
  max-width: var(--search-width);
  margin: 0 auto calc(var(--space-8) + 3 * var(--stripe-unit));
}

.hero__search .recipe-search-form {
  display: flex;
}

.hero__search input[type="search"] {
  flex: 1;
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 600;
  padding: 0.65em 1.1em;
  border: 3px solid var(--coral-dk);
  border-right: none;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  background: var(--warm-white);
  color: var(--ink);
  outline: none;
}

.hero__search input[type="search"]::placeholder {
  color: color-mix(in srgb, var(--ink) 40%, transparent);
}

.hero__search [type="submit"] {
  font-family: var(--font-display);
  font-size: var(--text-base);
  padding: 0.65em 1.3em;
  background: var(--coral);
  color: white;
  border: 3px solid var(--coral-dk);
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  cursor: pointer;
  letter-spacing: 0.02em;
}
