:root {
  --ink: #302423;
  --muted: #746562;
  --paper: #fff7ef;
  --panel: #ffffff;
  --line: #ead6c4;
  --brand: #f36b21;
  --brand-dark: #d84921;
  --accent: #ff7a1a;
  --gold: #f0b84f;
  --shadow: 0 18px 60px rgba(126, 61, 24, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 24px 20px 10px;
}

.site-header.compact {
  padding-bottom: 18px;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  min-width: max-content;
}

.brand-logo {
  height: 58px;
  object-fit: contain;
  width: auto;
}

.language-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.language-nav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  padding: 7px 10px;
}

.language-nav a.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.language-picker-link {
  border-color: rgba(243, 107, 33, 0.38) !important;
  color: var(--brand-dark) !important;
  font-weight: 800;
}

main {
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 20px 56px;
}

.hero {
  background:
    linear-gradient(120deg, rgba(216, 73, 33, 0.92), rgba(48, 36, 35, 0.82)),
    url("https://images.unsplash.com/photo-1495521821757-a1efb6729352?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  border-radius: 8px;
  color: #fff;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  margin: 18px 0 30px;
  min-height: 380px;
  padding: clamp(28px, 6vw, 72px);
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 8vw, 92px);
  font-weight: 700;
  line-height: 0.94;
  margin: 6px 0 18px;
}

.hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  margin: 0;
  max-width: 580px;
}

.eyebrow {
  color: #f4d58a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.search {
  align-self: end;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 8px;
  padding: 8px;
}

.search input {
  border: 0;
  color: var(--ink);
  flex: 1;
  font-size: 15px;
  min-width: 0;
  outline: 0;
  padding: 0 14px;
}

.search button {
  background: linear-gradient(135deg, var(--accent), var(--brand-dark));
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  padding: 14px 18px;
}

.category-showcase {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 239, 224, 0.92)),
    radial-gradient(circle at 12% 18%, rgba(255, 122, 26, 0.18), transparent 32%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 46px rgba(126, 61, 24, 0.10);
  margin: -8px 0 30px;
  overflow: hidden;
  padding: 20px;
}

.category-showcase-head {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.category-showcase-head .eyebrow {
  color: var(--brand-dark);
  margin: 0 0 6px;
}

.category-showcase-head h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3.5vw, 36px);
  line-height: 1.05;
  margin: 0;
}

.category-menu {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.category-menu.compact-menu {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 34px rgba(126, 61, 24, 0.08);
  display: flex;
  gap: 10px;
  margin: 4px 0 22px;
  overflow-x: auto;
  padding: 10px;
  scrollbar-width: thin;
}

.category-tile {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 250, 245, 0.98), rgba(255, 242, 231, 0.98));
  border: 1px solid rgba(234, 214, 196, 0.92);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 10px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  min-height: 74px;
  padding: 14px;
  position: relative;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.category-menu.compact-menu .category-tile {
  flex: 0 0 auto;
  min-height: 56px;
  min-width: 180px;
  padding: 10px 12px;
}

.category-tile:hover {
  border-color: rgba(243, 107, 33, 0.42);
  box-shadow: 0 14px 30px rgba(126, 61, 24, 0.12);
  transform: translateY(-2px);
}

.category-tile.active {
  background:
    linear-gradient(135deg, rgba(255, 122, 26, 0.98), rgba(216, 73, 33, 0.98));
  border-color: rgba(216, 73, 33, 0.22);
  color: #fff;
}

.category-mark {
  background:
    linear-gradient(135deg, #fff4e5, #ffd5b9);
  border-radius: 50%;
  display: inline-block;
  height: 42px;
  position: relative;
  width: 42px;
}

.category-mark::before {
  background: linear-gradient(135deg, var(--accent), var(--brand-dark));
  border-radius: 10px 10px 14px 14px;
  content: "";
  height: 20px;
  left: 11px;
  position: absolute;
  top: 13px;
  transform: rotate(-8deg);
  width: 20px;
}

.all-tile .category-mark::before {
  border-radius: 50%;
  height: 19px;
  left: 12px;
  top: 12px;
  transform: none;
  width: 19px;
}

.category-tile.active .category-mark {
  background: rgba(255, 255, 255, 0.20);
}

.category-tile.active .category-mark::before {
  background: #fff;
}

.category-name {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  min-width: 0;
}

.category-menu small {
  align-items: center;
  background: rgba(48, 36, 35, 0.08);
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  justify-content: center;
  min-width: 28px;
  padding: 6px 8px;
}

.category-tile.active small {
  background: rgba(255, 255, 255, 0.22);
}

.category-showcase-v2 {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 238, 224, 0.96)),
    radial-gradient(circle at 0% 0%, rgba(255, 122, 26, 0.20), transparent 36%),
    radial-gradient(circle at 100% 100%, rgba(216, 73, 33, 0.12), transparent 34%);
  border: 1px solid rgba(234, 214, 196, 0.95);
  padding: clamp(18px, 3vw, 26px);
}

.category-board {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.category-card {
  align-items: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 246, 238, 0.98));
  border: 1px solid rgba(234, 214, 196, 0.96);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(126, 61, 24, 0.10);
  color: var(--ink);
  display: grid;
  gap: 14px;
  grid-template-columns: 68px minmax(0, 1fr);
  min-height: 98px;
  overflow: hidden;
  padding: 14px;
  position: relative;
}

.category-card::after {
  background: linear-gradient(180deg, rgba(255, 122, 26, 0.18), rgba(216, 73, 33, 0.03));
  content: "";
  inset: 0 0 0 auto;
  position: absolute;
  width: 44px;
}

.category-card:hover {
  border-color: rgba(243, 107, 33, 0.55);
  box-shadow: 0 18px 44px rgba(126, 61, 24, 0.16);
  transform: translateY(-2px);
}

.category-card.active {
  background:
    linear-gradient(145deg, rgba(255, 122, 26, 0.98), rgba(216, 73, 33, 0.98));
  border-color: rgba(216, 73, 33, 0.42);
  color: #fff;
}

.category-visual {
  align-items: center;
  background:
    linear-gradient(145deg, #fff7ed, #ffd4b4);
  border-radius: 8px;
  display: inline-flex;
  height: 68px;
  justify-content: center;
  position: relative;
  width: 68px;
  z-index: 1;
}

.category-visual::before {
  content: none;
}

.category-visual span {
  display: none;
}

.category-visual img {
  height: 54px;
  object-fit: contain;
  width: 54px;
}

.category-card.active .category-visual {
  background: rgba(255, 255, 255, 0.18);
}

.category-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.category-copy strong {
  font-size: 18px;
  font-weight: 950;
  line-height: 1.12;
}

.category-copy em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.category-card.active .category-copy em {
  color: rgba(255, 255, 255, 0.82);
}

.compact-menu.category-board {
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 34px rgba(126, 61, 24, 0.08);
  display: flex;
  gap: 10px;
  margin: 4px 0 22px;
  overflow-x: auto;
  padding: 10px;
  scrollbar-width: thin;
}

.compact-menu .category-card {
  flex: 0 0 240px;
  min-height: 72px;
  padding: 10px;
}

.compact-menu .category-visual {
  height: 52px;
  width: 52px;
}

.compact-menu .category-visual img {
  height: 42px;
  width: 42px;
}

.compact-menu .category-copy strong {
  font-size: 15px;
}

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

.recipe-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 36px rgba(52, 45, 35, 0.08);
  overflow: hidden;
}

.card-image {
  aspect-ratio: 4 / 3;
  background: #f0e7da;
  display: block;
  overflow: hidden;
}

.card-image img,
.detail-hero > img,
.step-card img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.card-body {
  padding: 18px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.chips span {
  background: #fff0df;
  border-radius: 999px;
  color: #9b3e1d;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 9px;
}

.recipe-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.08;
  margin: 0 0 9px;
}

.recipe-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 16px;
}

.time-row,
.stat-grid {
  display: grid;
  gap: 8px;
  margin: 0;
}

.time-row {
  grid-template-columns: repeat(3, 1fr);
}

.time-row div,
.stat-grid div {
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  font-weight: 800;
  margin: 3px 0 0;
}

.text-link {
  color: var(--brand-dark);
  display: inline-block;
  font-weight: 800;
  margin-top: 18px;
}

.detail-hero {
  align-items: stretch;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 48%);
  margin: 18px 0 28px;
  overflow: hidden;
}

.detail-hero > div {
  padding: clamp(24px, 5vw, 56px);
}

.detail-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
  margin: 0 0 18px;
}

.detail-hero p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.detail-hero > img {
  min-height: 520px;
}

.stat-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 28px;
}

.content-columns {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(240px, 34%) minmax(0, 1fr);
}

.content-columns h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  margin: 0 0 16px;
}

.ingredient-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  list-style: none;
  margin: 0 0 28px;
  padding: 8px 18px;
}

.ingredient-list li {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.ingredient-list li:last-child {
  border-bottom: 0;
}

.nutrition-table {
  background: #fff;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
}

.nutrition-table th,
.nutrition-table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
  text-align: start;
}

.nutrition-table th {
  color: var(--muted);
  width: 48%;
}

.steps {
  display: grid;
  gap: 18px;
}

.step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: 42px minmax(0, 1fr);
  padding: 18px;
}

.step-card span {
  align-items: center;
  background: linear-gradient(135deg, var(--accent), var(--brand-dark));
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.step-card p {
  font-size: 16px;
  line-height: 1.65;
  margin: 5px 0 0;
}

.step-card img {
  border-radius: 7px;
  grid-column: 2;
  max-height: 420px;
}

.source-line,
.empty {
  color: var(--muted);
  margin-top: 28px;
}

.source-line a {
  color: var(--brand-dark);
  font-weight: 800;
}

.ad-slot {
  align-items: center;
  background:
    repeating-linear-gradient(135deg, #fff8ef 0 12px, #ffefdf 12px 24px);
  border: 1px dashed rgba(216, 73, 33, 0.34);
  border-radius: 8px;
  color: rgba(48, 36, 35, 0.46);
  display: flex;
  font-size: 12px;
  font-weight: 900;
  justify-content: center;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ad-wide {
  min-height: 96px;
  margin: 28px 0;
}

.ad-sidebar {
  min-height: 250px;
  margin-bottom: 28px;
}

.community-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 30px;
  padding: clamp(20px, 4vw, 34px);
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading .eyebrow {
  color: var(--brand-dark);
  margin: 0 0 6px;
}

.section-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  margin: 0;
}

.community-photo-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 28px;
}

.community-photo-grid figure {
  background: #fffaf5;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  overflow: hidden;
}

.community-photo-grid img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.community-photo-grid figcaption {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.community-photo-grid strong,
.comment-card strong {
  color: var(--ink);
  font-size: 14px;
}

.community-photo-grid span,
.comment-card small {
  color: var(--muted);
  font-size: 12px;
}

.comments-list {
  display: grid;
  gap: 12px;
}

.comments-list h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  margin: 0 0 4px;
}

.comment-card {
  background: #fffaf5;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.comment-card div {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.comment-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 10px 0 0;
}

.compact-empty {
  margin: 0 0 20px;
}

.language-page {
  background:
    linear-gradient(120deg, rgba(255, 247, 239, 0.92), rgba(255, 239, 224, 0.94)),
    url("https://images.unsplash.com/photo-1542838132-92c53300491e?auto=format&fit=crop&w=1800&q=80");
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

.language-shell {
  align-items: center;
  display: grid;
  min-height: 100vh;
  padding-bottom: 60px;
  padding-top: 44px;
}

.language-brand {
  justify-content: center;
  margin-bottom: 24px;
}

.language-brand .brand-logo {
  height: 82px;
}

.language-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(234, 214, 196, 0.86);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 860px;
  padding: clamp(24px, 5vw, 44px);
  width: 100%;
}

.language-panel h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1;
  margin: 8px 0 24px;
}

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

.language-grid a {
  align-items: center;
  background: #fffaf5;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  padding: 16px 18px;
}

.language-grid a.active {
  background: linear-gradient(135deg, #fff1df, #ffe2cf);
  border-color: var(--brand);
}

.language-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

html[dir="rtl"] .language-nav,
html[dir="rtl"] .chips,
html[dir="rtl"] .category-menu {
  justify-content: flex-start;
}

@media (max-width: 900px) {
  .site-header,
  .hero,
  .detail-hero,
  .content-columns {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .recipe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-logo {
    height: 48px;
  }

  .detail-hero > img {
    min-height: 320px;
  }
}

@media (max-width: 620px) {
  main,
  .site-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero {
    padding: 28px;
  }

  .category-showcase {
    margin-top: -14px;
    padding: 16px;
  }

  .category-showcase-head {
    display: block;
  }

  .category-menu {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .category-tile,
  .category-card {
    flex: 0 0 210px;
  }

  .category-board {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .category-card {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 82px;
  }

  .category-visual {
    height: 58px;
    width: 58px;
  }

  .search,
  .recipe-grid {
    grid-template-columns: 1fr;
  }

  .search {
    display: grid;
  }

  .search input {
    min-height: 44px;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .recipe-grid {
    display: grid;
  }

  .community-photo-grid {
    grid-template-columns: 1fr;
  }

  .language-grid {
    grid-template-columns: 1fr;
  }

  .step-card,
  .step-card img {
    grid-column: 1 / -1;
  }
}
