* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #493f4f;
  background:
    linear-gradient(135deg, rgba(255, 226, 237, 0.84), rgba(227, 247, 239, 0.86)),
    linear-gradient(rgba(255, 251, 246, 0.62), rgba(255, 255, 255, 0.84)),
    url("https://images.unsplash.com/photo-1486427944299-d1955d23e34d?auto=format&fit=crop&w=1800&q=80")
      center/cover fixed;
  font-family:
    Georgia,
    "Times New Roman",
    serif;
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 28px;
}

header {
  max-width: 760px;
  margin-bottom: 18px;
  padding: 0;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 8px;
  border: 1px solid rgba(201, 108, 139, 0.2);
  border-radius: 999px;
  padding: 7px 13px;
  color: #bd5e7d;
  background: rgba(255, 250, 253, 0.82);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  color: #55415f;
  font-size: clamp(2.2rem, 6vw, 4.25rem);
  line-height: 1;
}

.intro {
  max-width: 620px;
  color: #6b6070;
  font-family: Arial, sans-serif;
  font-size: 1.08rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.generator-panel {
  display: grid;
  grid-template-columns: minmax(280px, 440px) 1fr;
  gap: 24px;
  align-items: stretch;
}

form,
.recipe-output {
  border: 1px solid rgba(201, 108, 139, 0.18);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 250, 253, 0.94)),
    linear-gradient(135deg, rgba(255, 214, 228, 0.32), rgba(203, 239, 221, 0.28));
  box-shadow: 0 22px 60px rgba(117, 88, 103, 0.18);
}

form {
  padding: 28px;
  border-top: 6px solid #ffd6e4;
}

.form-heading {
  margin-bottom: 22px;
}

h2 {
  margin-bottom: 6px;
  color: #55415f;
  font-size: 1.65rem;
}

.form-heading p,
label,
footer,
.output-label,
.placeholder,
.examples {
  font-family: Arial, sans-serif;
}

.form-heading p {
  margin-bottom: 0;
  color: #7b7180;
  line-height: 1.45;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #5f5268;
  font-size: 0.88rem;
  font-weight: 700;
}

input {
  width: 100%;
  border: 1px solid #ead4df;
  border-radius: 999px;
  padding: 14px 18px;
  color: #493f4f;
  background: #fffafb;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

input:focus {
  border-color: #f2a7c0;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(242, 167, 192, 0.22);
}

.examples {
  margin: 10px 0 18px;
  color: #8a7f8d;
  font-size: 0.84rem;
  line-height: 1.5;
}

button {
  width: 100%;
  min-height: 50px;
  margin-top: 10px;
  border: 0;
  border-radius: 999px;
  color: #493146;
  background: linear-gradient(135deg, #ffd6e4, #cbeedd);
  font-family: Arial, sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

button:hover {
  background: linear-gradient(135deg, #ffc4d8, #b7e7d0);
  transform: translateY(-1px);
}

button:disabled {
  color: #8a7482;
  background: #f1dce4;
  cursor: wait;
  transform: none;
}

.recipe-output {
  min-height: 520px;
  padding: 32px;
  border-top: 6px solid #cbeedd;
}

.output-label {
  margin-bottom: 18px;
  color: #c96c8b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#recipe {
  color: #493f4f;
  font-size: 1.25rem;
  line-height: 1.8;
  white-space: pre-line;
}

.placeholder {
  color: #8a7f8d;
  font-size: 1rem;
}

.loading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8a7f8d;
  font-family: Arial, sans-serif;
  font-size: 1rem;
}

.loader {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(201, 108, 139, 0.2);
  border-top-color: #c96c8b;
  border-radius: 50%;
  animation: spin 800ms linear infinite;
  flex: 0 0 auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

footer {
  max-width: 780px;
  margin: 32px auto 0;
  color: #6b6070;
  font-size: 0.9rem;
  line-height: 1.7;
  text-align: center;
}

a {
  color: #b95f7c;
  font-weight: 700;
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 24px, 640px);
    padding-top: 18px;
  }

  .generator-panel {
    grid-template-columns: 1fr;
  }

  .recipe-output {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  form,
  .recipe-output {
    padding: 22px;
  }
}
