:root {
  color-scheme: light;
  --ink: #4a2f24;
  --muted: #7b6255;
  --cream: #fffaf2;
  --paper: #ffffff;
  --peach: #f28b55;
  --gold: #f2b84b;
  --line: #ead8c8;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 5%, rgba(242, 184, 75, 0.22), transparent 24rem),
    radial-gradient(circle at 88% 16%, rgba(242, 139, 85, 0.18), transparent 28rem),
    var(--cream);
  line-height: 1.65;
}

a { color: inherit; }

.seo-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1120px;
  padding: 1.25rem clamp(1.1rem, 4vw, 2.5rem);
}

.seo-logo {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  text-decoration: none;
}

.seo-nav { display: flex; gap: 1rem; font-size: 0.92rem; }

.seo-shell {
  margin: 0 auto;
  max-width: 960px;
  padding: 2rem clamp(1.1rem, 4vw, 2.5rem) 5rem;
}

.breadcrumbs { color: var(--muted); font-size: 0.88rem; margin-bottom: 2rem; }
.breadcrumbs a { text-decoration-color: rgba(74, 47, 36, 0.25); }
.breadcrumbs span { margin: 0 0.45rem; }

.recipe-hero, .catalog-hero {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(234, 216, 200, 0.9);
  border-radius: 2rem;
  box-shadow: 0 22px 60px rgba(111, 67, 41, 0.1);
  padding: clamp(1.5rem, 5vw, 3.5rem);
}

.recipe-kicker { color: #a34a25; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
h1, h2, h3 { font-family: "DM Serif Display", Georgia, serif; line-height: 1.1; }
h1 { font-size: clamp(2.5rem, 8vw, 5.4rem); margin: 0.5rem 0 0.8rem; }
.english-title { color: var(--muted); font-size: clamp(1.05rem, 3vw, 1.4rem); margin: 0; }
.summary { font-size: 1.06rem; max-width: 46rem; }

.recipe-facts { display: flex; flex-wrap: wrap; gap: 0.65rem; margin: 1.4rem 0; padding: 0; }
.recipe-facts li { background: #fff0df; border-radius: 999px; list-style: none; padding: 0.42rem 0.8rem; }

.primary-action, .secondary-action {
  border-radius: 999px;
  display: inline-flex;
  font-weight: 700;
  margin: 0.3rem 0.5rem 0.3rem 0;
  padding: 0.78rem 1.15rem;
  text-decoration: none;
}
.primary-action { background: var(--ink); color: white; }
.secondary-action { border: 1px solid var(--line); background: white; }

.recipe-layout { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); margin-top: 1.5rem; }
.recipe-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 1.5rem; padding: clamp(1.25rem, 4vw, 2rem); }
.recipe-panel h2 { font-size: 1.8rem; margin-top: 0; }
.ingredients { padding-left: 1.2rem; }
.ingredients li { border-bottom: 1px dashed var(--line); padding: 0.55rem 0; }
.ingredients strong { float: right; margin-left: 1rem; }
.steps { counter-reset: steps; list-style: none; padding: 0; }
.steps li { counter-increment: steps; margin: 0 0 1rem; padding-left: 2.6rem; position: relative; }
.steps li::before { align-items: center; background: #fce3cb; border-radius: 50%; content: counter(steps); display: flex; font-weight: 700; height: 1.8rem; justify-content: center; left: 0; position: absolute; top: 0; width: 1.8rem; }
.step-section + .step-section { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1.2rem; }
.step-section h3 { font-size: 1.25rem; }
.tips { background: #fff5db; }

.related { margin-top: 2rem; }
.related-grid, .catalog-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.related-card, .catalog-card { background: white; border: 1px solid var(--line); border-radius: 1.2rem; display: block; padding: 1.1rem; text-decoration: none; }
.related-card:hover, .catalog-card:hover { border-color: var(--peach); transform: translateY(-2px); }
.related-card strong, .catalog-card strong { display: block; font-size: 1.05rem; }
.related-card small, .catalog-card small { color: var(--muted); }

.catalog-section { margin-top: 2.5rem; }
.catalog-section h2 { font-size: 2rem; }
.catalog-card p { color: var(--muted); font-size: 0.88rem; margin: 0.5rem 0 0; }

.english-details { border-top: 1px solid var(--line); margin-top: 1.4rem; padding-top: 1rem; }
.english-details summary { cursor: pointer; font-weight: 700; }
.seo-footer { color: var(--muted); margin: 0 auto; max-width: 960px; padding: 0 1.2rem 3rem; text-align: center; }

@media (max-width: 720px) {
  .seo-header { padding-top: 0.9rem; }
  .seo-nav { gap: 0.65rem; }
  .recipe-layout { grid-template-columns: 1fr; }
  .related-grid, .catalog-grid { grid-template-columns: 1fr; }
  .recipe-hero, .catalog-hero { border-radius: 1.45rem; }
  .ingredients strong { float: none; display: block; }
}

@media (prefers-reduced-motion: no-preference) {
  .related-card, .catalog-card { transition: transform 180ms ease, border-color 180ms ease; }
}
