:root {
  --bg: #f5efe6;
  --bg-deep: #ede4d3;
  --terra: #c75d3c;
  --terra-deep: #a04a30;
  --sage: #7d8c6a;
  --sage-deep: #5d6b4d;
  --mustard: #d4a04a;
  --ink: #2c241c;
  --ink-soft: #5c4f42;
  --paper: #fefaf2;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(199, 93, 60, 0.08), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(125, 140, 106, 0.1), transparent 40%);
}
nav {
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: rgba(245, 239, 230, 0.85);
  backdrop-filter: blur(20px);
  z-index: 50;
  border-bottom: 1px solid rgba(44, 36, 28, 0.08);
}
.logo {
  font-family: "DM Serif Display", serif;
  font-size: 24px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}
.logo span {
  color: var(--terra);
  font-style: italic;
}
.site-footer {
  text-align: center;
  padding: 40px 24px;
  color: var(--ink-soft);
  font-size: 14px;
}
.site-footer__links {
  margin-bottom: 12px;
}
.site-footer__links a {
  color: var(--ink-soft);
  text-decoration: none;
}
.site-footer__links a:hover {
  color: var(--ink);
}
.site-footer__signin {
  color: var(--terra);
  font-weight: 600;
}
.site-footer__copy {
  margin-bottom: 8px;
}
.site-footer__org a {
  color: var(--terra);
  font-weight: 500;
  text-decoration: none;
}
.site-footer__org a:hover {
  text-decoration: underline;
}
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--terra);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.nav-signin {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.nav-signin:hover {
  color: var(--terra);
}
.nav-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}
.breadcrumb {
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 0 48px;
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  gap: 8px;
  align-items: center;
}
.breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--terra);
}
.breadcrumb .sep {
  opacity: 0.4;
}
.recipe-head {
  max-width: 1200px;
  margin: 32px auto 48px;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.badge-row {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.badge {
  background: var(--terra);
  color: white;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge.outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(44, 36, 28, 0.2);
}
h1 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
h1 i {
  color: var(--terra);
}
.lede {
  font-size: 19px;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 520px;
  margin-bottom: 28px;
}
.author-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mustard);
  display: grid;
  place-items: center;
  font-family: "DM Serif Display", serif;
  font-size: 18px;
  color: white;
}
.author-info {
  font-size: 14px;
}
.author-info strong {
  display: block;
  font-weight: 600;
}
.author-info span {
  color: var(--ink-soft);
  font-size: 13px;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--paper);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(44, 36, 28, 0.06);
  margin-bottom: 24px;
}
.stat-cell {
  border-right: 1px solid rgba(44, 36, 28, 0.08);
  padding: 0 16px;
  text-align: center;
}
.stat-cell:last-child {
  border-right: none;
}
.stat-cell .icon {
  font-size: 18px;
  margin-bottom: 6px;
  opacity: 0.7;
}
.stat-cell .v {
  font-family: "DM Serif Display", serif;
  font-size: 22px;
  line-height: 1;
}
.stat-cell .l {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-top: 4px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--terra);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover {
  background: var(--terra-deep);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(44, 36, 28, 0.2);
  padding: 14px 20px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-ghost:hover {
  background: var(--paper);
  border-color: var(--ink);
}
.recipe-image {
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(44, 36, 28, 0.3);
  background: var(--paper);
}
.recipe-image svg {
  width: 100%;
  height: 100%;
  display: block;
}
.rating-block {
  background: var(--paper);
  border-radius: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(44, 36, 28, 0.06);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.rating-stars {
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--mustard);
}
.rating-stars .e {
  color: rgba(44, 36, 28, 0.15);
}
.rating-stars.is-ratable {
  cursor: pointer;
}
.rating-text {
  font-size: 14px;
  color: var(--ink-soft);
}
.rating-text strong {
  color: var(--ink);
  font-weight: 700;
}
.body-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px 80px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}
.ingredients {
  background: var(--paper);
  border-radius: 24px;
  padding: 32px;
  border: 1px solid rgba(44, 36, 28, 0.06);
  position: sticky;
  top: 96px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(44, 36, 28, 0.08);
}
.panel-head h2 {
  font-family: "DM Serif Display", serif;
  font-size: 28px;
  letter-spacing: -0.01em;
}
.servings {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}
.servings button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(44, 36, 28, 0.2);
  background: var(--bg);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s;
}
.servings button:hover {
  background: var(--terra);
  color: white;
  border-color: var(--terra);
}
.servings strong {
  font-family: "DM Serif Display", serif;
  font-size: 18px;
  color: var(--ink);
  min-width: 24px;
  text-align: center;
}
.ing-list {
  list-style: none;
}
.ing-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(44, 36, 28, 0.1);
  font-size: 15px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.ing-list li:last-child {
  border-bottom: none;
}
.ing-list li input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--ink-soft);
  border-radius: 6px;
  cursor: pointer;
  margin-top: 2px;
  flex-shrink: 0;
  transition: all 0.15s;
  position: relative;
}
.ing-list li input[type="checkbox"]:checked {
  background: var(--sage);
  border-color: var(--sage);
}
.ing-list li input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  inset: 0;
  color: white;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.ing-list li input:checked ~ .ing-text {
  text-decoration: line-through;
  opacity: 0.5;
}
.ing-text strong {
  color: var(--terra);
  font-weight: 600;
}
.ing-section-title {
  font-family: "DM Serif Display", serif;
  font-size: 20px;
  margin: 20px 0 8px;
}
.ing-section-title:first-child {
  margin-top: 0;
}
.instructions h2 {
  font-family: "DM Serif Display", serif;
  font-size: 36px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.instructions > p {
  color: var(--ink-soft);
  margin-bottom: 32px;
  font-size: 16px;
}
.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(44, 36, 28, 0.08);
}
.step-num {
  font-family: "DM Serif Display", serif;
  font-size: 48px;
  line-height: 1;
  color: var(--terra);
  font-style: italic;
}
.step-content h3 {
  font-family: "DM Serif Display", serif;
  font-size: 22px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.step-content p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}
.step-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  background: var(--bg);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--terra);
}
.notes {
  background: var(--paper);
  border-radius: 24px;
  padding: 32px;
  margin-top: 32px;
  border-left: 4px solid var(--mustard);
}
.notes h3 {
  font-family: "DM Serif Display", serif;
  font-size: 24px;
  margin-bottom: 12px;
}
.notes p {
  color: var(--ink-soft);
  line-height: 1.6;
}
.related {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 48px 80px;
  border-top: 1px solid rgba(44, 36, 28, 0.08);
}
.related h2 {
  font-family: "DM Serif Display", serif;
  font-size: 36px;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.mini-card {
  background: var(--paper);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
  border: 1px solid rgba(44, 36, 28, 0.06);
}
a.mini-card {
  text-decoration: none;
  color: inherit;
}
.mini-card:hover {
  transform: translateY(-3px);
}
.mini-card .img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.mini-card .img svg,
.mini-card .img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.mini-card .info {
  padding: 14px 16px;
}
.mini-card .info .cat {
  font-size: 11px;
  color: var(--terra);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 4px;
}
.mini-card .info h4 {
  font-family: "DM Serif Display", serif;
  font-size: 18px;
  line-height: 1.2;
}
.home-hero {
  max-width: 720px;
  margin: 48px auto 24px;
  padding: 0 48px;
  text-align: center;
}
.home-hero h1 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(32px, 4vw, 48px);
}
.home-hero p {
  color: var(--ink-soft);
  margin-top: 12px;
}
.recipe-list {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 48px 80px;
}
.recipe-list ul {
  list-style: none;
}
.recipe-list li {
  border-bottom: 1px solid rgba(44, 36, 28, 0.12);
}
.recipe-list a {
  display: block;
  padding: 20px 0;
  text-decoration: none;
  color: var(--ink);
  font-size: 20px;
  font-family: "DM Serif Display", serif;
  transition: color 0.15s;
}
.recipe-list a:hover {
  color: var(--terra);
}
.recipe-list .meta {
  font-size: 14px;
  font-family: "Outfit", sans-serif;
  color: var(--ink-soft);
  margin-top: 4px;
}
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  padding: 48px;
  text-align: center;
}
.error-page h1 {
  font-family: "DM Serif Display", serif;
  margin-bottom: 12px;
}
.error-page p {
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.error-page a {
  color: var(--terra);
  font-weight: 600;
}
@media (max-width: 900px) {
  .recipe-head,
  .body-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 24px;
  }
  nav {
    padding: 18px 24px;
  }
  .nav-links {
    display: none;
  }
  .related {
    padding: 40px 24px;
  }
  .ingredients {
    position: static;
  }
  .breadcrumb {
    padding: 0 24px;
  }
  .home-hero,
  .recipe-list {
    padding-left: 24px;
    padding-right: 24px;
  }
}
