:root {
  --background: #f7f4ee;
  --foreground: #1f2933;
  --muted: #667085;
  --surface: #ffffff;
  --line: #ded5c6;
  --ink: #263121;
  --leaf: #61784f;
  --berry: #9a4d43;
  --cream: #fff8ec;
}

* {
  box-sizing: border-box;
}

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

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

.shell {
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 1280px;
  min-height: 100vh;
  padding: clamp(16px, 3vw, 28px);
}

.hero {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.hero-copy,
.visual-panel,
.panel,
.offer-strip,
.ops-strip article,
.intent-strip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(38, 49, 33, 0.09);
}

.hero-copy {
  align-content: center;
  display: grid;
  gap: 18px;
  min-height: 430px;
  padding: clamp(22px, 5vw, 48px);
}

.eyebrow {
  color: var(--leaf);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2.35rem, 7vw, 5.3rem);
  line-height: 0.98;
  max-width: 880px;
}

.hero-copy p,
.offer-strip p,
.ops-strip p,
.legal p {
  color: var(--muted);
  line-height: 1.65;
}

.button-row,
.offer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary,
.secondary,
button {
  align-items: center;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 44px;
  padding: 0 15px;
  text-decoration: none;
}

.primary,
button {
  background: var(--ink);
  border: 1px solid var(--ink);
  color: #ffffff;
}

.secondary {
  background: #f8ece8;
  border: 1px solid #d9b9b2;
  color: #7a352d;
}

.disabled-link {
  cursor: not-allowed;
  opacity: 0.68;
}

.visual-panel {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 248, 236, 0.5), transparent 26%),
    linear-gradient(145deg, #596b4a 0%, #263121 62%, #172016 100%);
  color: #fff8ec;
  display: grid;
  gap: 18px;
  min-height: 430px;
  overflow: hidden;
  padding: clamp(18px, 4vw, 36px);
}

.recipe-card,
.caption-card {
  background: rgba(255, 248, 236, 0.14);
  border: 1px solid rgba(255, 248, 236, 0.28);
  border-radius: 8px;
  padding: 16px;
}

.recipe-card span,
.caption-card p {
  color: #f4c7a8;
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.recipe-card strong {
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.12;
}

.book-spread {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}

.book-spread span {
  min-height: 150px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(38, 49, 33, 0.08), rgba(38, 49, 33, 0.22)),
    var(--cream);
}

.offer-strip,
.output-head,
.fineprint {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.offer-strip {
  padding: 18px;
}

.offer-actions {
  justify-content: flex-end;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
}

.panel {
  padding: 18px;
}

.controls,
.output {
  align-content: start;
  display: grid;
  gap: 14px;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 0.84rem;
  font-weight: 850;
  gap: 7px;
}

input,
select,
textarea {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--foreground);
  min-height: 44px;
  padding: 0 12px;
  width: 100%;
}

textarea {
  min-height: 136px;
  padding: 10px 12px;
  resize: vertical;
}

.output article {
  background: #fbfaf6;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

pre {
  color: #424b57;
  font-family: inherit;
  line-height: 1.58;
  margin: 10px 0 0;
  white-space: pre-wrap;
}

.fineprint {
  color: var(--muted);
  font-size: 0.86rem;
}

.fineprint a,
.legal a {
  color: var(--berry);
  font-weight: 900;
  text-decoration: none;
}

.ops-strip {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ops-strip article {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.offer-pill {
  background: #eef4e8;
  border: 1px solid #cad8bd;
  border-radius: 999px;
  color: #4d623e;
  font-size: 0.74rem;
  font-weight: 900;
  padding: 5px 9px;
  width: fit-content;
}

.intent-strip {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(220px, 0.55fr) 1fr;
  padding: 16px;
}

.intent-links {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.intent-links a {
  align-items: center;
  background: #eef4e8;
  border: 1px solid #cad8bd;
  border-radius: 8px;
  color: #4d623e;
  display: flex;
  font-weight: 900;
  justify-content: center;
  min-height: 44px;
  padding: 8px;
  text-align: center;
  text-decoration: none;
}

.legal {
  display: grid;
  gap: 14px;
  margin: 0 auto;
  max-width: 780px;
  min-height: 100vh;
  padding: clamp(28px, 6vw, 72px) 20px;
}

.legal h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.legal ul {
  color: var(--muted);
  line-height: 1.65;
}

.seo-page {
  max-width: 980px;
}

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

.seo-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(38, 49, 33, 0.09);
  padding: 16px;
}

.seo-card h2,
.seo-card h3 {
  line-height: 1.18;
}

.seo-card ul {
  margin: 10px 0 0;
}

@media (max-width: 900px) {
  .hero,
  .grid,
  .ops-strip,
  .intent-strip,
  .intent-links,
  .seo-grid {
    grid-template-columns: 1fr;
  }

  .offer-strip,
  .output-head,
  .fineprint {
    align-items: flex-start;
    flex-direction: column;
  }
}
