:root {
  --bg: #f4e4c8;
  --bg-deep: #ddb87c;
  --panel: rgba(255, 249, 238, 0.76);
  --panel-strong: rgba(251, 242, 226, 0.92);
  --ink: #2b1b12;
  --muted: #694d35;
  --accent: #a54d23;
  --accent-deep: #753114;
  --border: rgba(89, 56, 28, 0.16);
  --shadow: 0 24px 70px rgba(72, 35, 8, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 242, 215, 0.95), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(190, 112, 47, 0.24), transparent 18%),
    linear-gradient(180deg, #f8ecd8 0%, #f1ddbd 48%, #e5c48c 100%);
  overflow-x: hidden;
}

.page-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.11;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 49, 25, 0.18) 1px, transparent 1px);
  background-size: 140px 140px;
  mix-blend-mode: multiply;
}

.shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  min-height: 80vh;
}

.hero-copy,
.panel,
.story-strip article,
.community {
  backdrop-filter: blur(14px);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 2.5rem;
  border-radius: 36px;
}

.eyebrow {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 0.95;
}

h1 {
  font-size: clamp(4rem, 11vw, 7.2rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 600;
}

.lede {
  max-width: 36rem;
  margin: 1.3rem 0 0;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff9ef;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 18px 28px rgba(127, 56, 20, 0.28);
  border: 0;
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 251, 245, 0.65);
  border: 1px solid rgba(104, 75, 47, 0.24);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 2rem 0 0;
  list-style: none;
}

.hero-stats li {
  padding-top: 1rem;
  border-top: 1px solid rgba(89, 56, 28, 0.14);
}

.hero-stats strong {
  display: block;
  font-size: 1.8rem;
  font-family: "Cormorant Garamond", serif;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-art {
  position: relative;
  min-height: 34rem;
}

.bread-orb {
  position: absolute;
  inset: 2rem 0 3rem 0;
  margin: auto;
  width: min(100%, 27rem);
  aspect-ratio: 1 / 1.08;
  border-radius: 46% 46% 42% 42%;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 221, 152, 0.95), rgba(199, 118, 46, 0.95) 58%, rgba(125, 54, 18, 0.96) 100%);
  box-shadow:
    inset 0 -22px 40px rgba(74, 33, 8, 0.28),
    inset 0 18px 26px rgba(255, 233, 189, 0.4),
    0 36px 68px rgba(100, 48, 15, 0.24);
  transform: rotate(-6deg);
  animation: loafFloat 6s ease-in-out infinite;
}

.bread-orb::before,
.bread-orb::after {
  content: "";
  position: absolute;
  inset: 8% 6%;
  border-radius: 45%;
  border: 1px solid rgba(255, 236, 191, 0.18);
}

.bread-score {
  position: absolute;
  background: linear-gradient(180deg, rgba(255, 245, 225, 0.95), rgba(201, 138, 68, 0.65));
  border-radius: 999px;
  box-shadow: inset 0 0 16px rgba(255, 245, 221, 0.6);
}

.bread-score-one {
  width: 66%;
  height: 0.95rem;
  top: 33%;
  left: 16%;
  transform: rotate(24deg);
}

.bread-score-two {
  width: 62%;
  height: 0.95rem;
  top: 48%;
  left: 17%;
  transform: rotate(18deg);
}

.bread-score-three {
  width: 50%;
  height: 0.85rem;
  top: 63%;
  left: 23%;
  transform: rotate(13deg);
}

.quote-card {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: 15rem;
  padding: 1.2rem;
  border-radius: 22px;
  background: rgba(255, 249, 240, 0.78);
  border: 1px solid rgba(96, 58, 25, 0.12);
  transform: rotate(3deg);
  box-shadow: var(--shadow);
}

.quote-card p {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
}

.quote-card span {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.story-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.story-strip article {
  padding: 1.2rem 1.25rem;
  border-radius: 24px;
}

.story-strip p {
  margin: 0.4rem 0 0;
  line-height: 1.65;
  color: var(--muted);
}

.story-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 800;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.panel,
.community {
  border-radius: 32px;
}

.panel {
  padding: 1.8rem;
}

.panel-feature {
  background:
    radial-gradient(circle at top left, rgba(255, 226, 177, 0.8), transparent 32%),
    var(--panel-strong);
}

.panel-heading {
  margin-bottom: 1.4rem;
}

.recipe-form {
  display: grid;
  gap: 1rem;
}

.recipe-form label {
  display: grid;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--ink);
}

.recipe-form input,
.recipe-form textarea,
.recipe-form select {
  width: 100%;
  border: 1px solid rgba(90, 56, 29, 0.18);
  border-radius: 18px;
  padding: 0.9rem 1rem;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 252, 247, 0.88);
}

.recipe-form textarea {
  resize: vertical;
}

.inline-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.file-field input {
  padding: 0.7rem;
  background: rgba(255, 248, 237, 0.95);
}

.form-note,
.feature-list {
  color: var(--muted);
}

.feature-list {
  display: grid;
  gap: 1rem;
  padding-left: 1.15rem;
  line-height: 1.7;
}

.community {
  margin-top: 1.5rem;
  padding: 1.8rem;
}

.recipe-feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.recipe-card {
  overflow: hidden;
  display: grid;
  min-height: 100%;
  background: rgba(255, 250, 242, 0.95);
  border: 1px solid rgba(92, 56, 24, 0.1);
  border-radius: 28px;
  box-shadow: 0 20px 40px rgba(84, 44, 15, 0.12);
  transform: translateY(18px);
  opacity: 0;
  animation: riseIn 650ms ease forwards;
}

.recipe-image-wrap {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at top, rgba(255, 223, 177, 0.75), transparent 45%),
    linear-gradient(135deg, #d89f58, #7b3f1f);
}

.recipe-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recipe-card-body {
  display: grid;
  gap: 0.9rem;
  padding: 1.2rem;
}

.recipe-card-topline {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 800;
}

.recipe-title {
  font-size: 2rem;
}

.recipe-baker,
.recipe-story,
.recipe-text {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

.recipe-section span {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

@keyframes loafFloat {
  0%,
  100% {
    transform: rotate(-6deg) translateY(0);
  }
  50% {
    transform: rotate(-4deg) translateY(-12px);
  }
}

@keyframes riseIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .hero,
  .content-grid,
  .recipe-feed,
  .story-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 1rem;
  }

  .hero-art {
    min-height: 26rem;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 1rem, 100%);
  }

  .hero-copy,
  .panel,
  .community {
    padding: 1.25rem;
    border-radius: 24px;
  }

  .inline-fields,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 21rem;
  }

  .quote-card {
    max-width: 12rem;
  }
}
