:root {
  color-scheme: light;
  --demo-paper: #f4f1eb;
  --demo-panel: #fffdfa;
  --demo-ink: #29252a;
  --demo-muted: #665e65;
  --demo-brand: #75465d;
  --demo-line: rgba(57, 45, 54, 0.15);
  --demo-saffron: #a8792a;
  font-family: Inter, "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  color: var(--demo-ink);
  background: var(--demo-paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  padding: 0 24px 48px;
  background: var(--demo-paper);
  color: var(--demo-ink);
}

a {
  color: inherit;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--demo-brand);
  outline-offset: 4px;
}

.wrap {
  width: min(100%, 1480px);
  margin-inline: auto;
}

mealie-atelier-card {
  display: block;
  margin-inline: -12px;
}

.demo-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--demo-line);
}

.demo-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--demo-ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 760;
  letter-spacing: -0.04em;
}

.demo-brand-mark {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--demo-brand) 34%, var(--demo-line));
  border-radius: 13px;
  color: var(--demo-brand);
  background: color-mix(in srgb, var(--demo-brand) 7%, white);
}

.demo-brand-mark svg {
  width: 20px;
  height: 20px;
}

.demo-language {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--demo-line);
  border-radius: 999px;
}

.demo-language a {
  min-width: 42px;
  min-height: 35px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--demo-muted);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  transition:
    color var(--ds-motion-fast, 140ms) var(--ds-motion-ease, ease),
    background-color var(--ds-motion-fast, 140ms) var(--ds-motion-ease, ease);
}

.demo-language a[aria-current="page"] {
  color: white;
  background: var(--demo-brand);
}

.demo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.43fr);
  align-items: end;
  gap: 44px;
  padding: clamp(44px, 7vw, 82px) 0 36px;
}

.demo-eyebrow {
  margin: 0 0 14px;
  color: var(--demo-brand);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.demo-hero h1,
.demo-directory h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.demo-hero h1 {
  max-width: 900px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.99;
}

.demo-hero > div > p:last-child {
  max-width: 66ch;
  margin: 18px 0 0;
  color: var(--demo-muted);
  font-size: 17px;
  line-height: 1.65;
}

.demo-promise {
  max-width: 300px;
  padding: 20px 0 5px 20px;
  border-left: 2px solid var(--demo-saffron);
  color: var(--demo-muted);
  font-size: 14px;
  line-height: 1.6;
}

.demo-promise strong {
  display: block;
  margin-bottom: 6px;
  color: var(--demo-ink);
  font-size: 15px;
}

.demo-local-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--demo-muted);
  font-size: 12px;
  line-height: 1.5;
}

.demo-local-note svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--demo-brand);
}

.demo-directory {
  margin: 54px 0 0;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--demo-line);
  border-radius: 26px;
  background: var(--demo-panel);
}

.demo-directory h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.demo-directory-intro {
  max-width: 68ch;
  color: var(--demo-muted);
  line-height: 1.65;
}

.demo-recipe-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.demo-recipe {
  overflow: hidden;
  border: 1px solid var(--demo-line);
  border-radius: 18px;
  background: #fff;
  transition:
    border-color var(--ds-motion-base, 220ms) var(--ds-motion-ease, ease),
    box-shadow var(--ds-motion-base, 220ms) var(--ds-motion-ease, ease),
    transform var(--ds-motion-base, 220ms) var(--ds-motion-ease, ease);
}

.demo-recipe:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--demo-brand) 38%, var(--demo-line));
  box-shadow: 0 14px 32px rgba(49, 37, 43, 0.07);
}

.demo-recipe summary {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 118px;
  cursor: pointer;
  list-style: none;
}

.demo-recipe summary::-webkit-details-marker {
  display: none;
}

.demo-recipe img {
  display: block;
  width: 126px;
  height: 118px;
  object-fit: cover;
  transition: transform var(--ds-motion-image, 680ms) var(--ds-motion-ease, ease);
}

.demo-recipe summary:hover img {
  transform: scale(1.035);
}

.demo-recipe-summary-copy {
  display: grid;
  gap: 6px;
  padding: 12px 16px 12px 0;
}

.demo-recipe h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.demo-recipe-meta {
  color: var(--demo-muted);
  font-size: 12px;
}

.demo-recipe-body {
  padding: 0 18px 18px;
  color: var(--demo-muted);
  font-size: 13px;
  line-height: 1.55;
}

.demo-recipe-body h4 {
  margin: 16px 0 7px;
  color: var(--demo-ink);
  font-size: 12px;
}

.demo-recipe-body ul,
.demo-recipe-body ol {
  padding-left: 20px;
}

.demo-credit {
  margin-top: 12px;
  font-size: 11px;
}

.demo-credit a,
.demo-footer a {
  color: var(--demo-brand);
  text-underline-offset: 3px;
}

.demo-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 4px 0;
  color: var(--demo-muted);
  font-size: 12px;
}

.demo-footer a {
  font-weight: 700;
}

.demo-cta {
  margin: 28px 0 0;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--demo-line);
  border-radius: 26px;
  background: var(--demo-panel);
}

.demo-cta-intro {
  max-width: 68ch;
}

.demo-cta-intro h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: -0.05em;
}

.demo-cta-intro > p:last-child {
  margin: 14px 0 0;
  color: var(--demo-muted);
  line-height: 1.65;
}

.demo-cta-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.demo-cta-group {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--demo-line);
  border-radius: 18px;
  background: var(--demo-paper);
}

.demo-cta-group h3 {
  margin: 0;
  font-size: 15px;
}

.demo-cta-group p {
  margin: 6px 0 16px;
  color: var(--demo-muted);
  font-size: 14px;
  line-height: 1.55;
}

.demo-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.demo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--demo-brand);
  border-radius: 12px;
  color: var(--demo-brand);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.demo-button:hover {
  background: rgba(117, 70, 93, 0.08);
}

.demo-button-primary {
  background: var(--demo-brand);
  color: #fffdfa;
}

.demo-button-primary:hover {
  background: #5f384c;
}

.demo-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.seo-recipe-body {
  padding: 0 24px 48px;
}

.seo-recipe-page {
  width: min(100%, 920px);
  margin-inline: auto;
}

.seo-recipe-page article {
  padding: clamp(28px, 6vw, 64px) 0;
}

.seo-recipe-page h1 {
  max-width: 19ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1;
}

.seo-recipe-description {
  max-width: 68ch;
  color: var(--demo-muted);
  font-size: 18px;
  line-height: 1.65;
}

.seo-recipe-meta {
  color: var(--demo-brand);
  font-size: 13px;
  font-weight: 700;
}

.seo-recipe-image {
  display: block;
  width: 100%;
  height: clamp(240px, 40vw, 520px);
  margin-top: 24px;
  border-radius: 24px;
  object-fit: cover;
  object-position: center;
}

.seo-recipe-page section {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--demo-line);
}

.seo-recipe-page section h2 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.seo-ingredient-list,
.seo-instruction-list {
  padding-left: 24px;
  color: var(--demo-muted);
  line-height: 1.75;
}

.seo-instruction-list li {
  padding: 0 0 18px 4px;
}

.seo-instruction-list h2 {
  display: inline;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 750 !important;
  letter-spacing: 0 !important;
}

.seo-step-summary {
  color: var(--demo-brand);
  font-weight: 700;
}

.seo-back-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--demo-line);
  border-radius: 999px;
  color: var(--demo-brand);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.seo-back-link:hover {
  background: color-mix(in srgb, var(--demo-brand) 7%, white);
}

@media (max-width: 760px) {
  .demo-hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .demo-promise {
    max-width: none;
  }

  .demo-recipe-list,
  .demo-cta-groups {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  body {
    padding: 0 14px 32px;
  }

  mealie-atelier-card {
    margin-inline: -7px;
  }

  .demo-header {
    min-height: 62px;
  }

  .demo-hero {
    padding-top: 42px;
  }

  .demo-hero h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .demo-hero > div > p:last-child {
    font-size: 15px;
  }

  .demo-recipe summary {
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 102px;
    gap: 12px;
  }

  .demo-recipe img {
    width: 96px;
    height: 102px;
  }

  .demo-recipe h3 {
    font-size: 18px;
  }

  .demo-recipe-summary-copy {
    padding-right: 10px;
  }

  .seo-recipe-body {
    padding: 0 14px 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
