:root {
  color-scheme: light;
  --cream: #f7f4ec;
  --paper: #fffdf7;
  --ink: #252822;
  --muted: #615d51;
  --forest: #19241c;
  --rust: #a63e29;
  --rust-dark: #802b1b;
  --line: #e3dbcd;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 290px; }
a { color: inherit; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 3px solid #ae533a; outline-offset: 4px; }
img { display: block; width: 100%; height: auto; }
.frame { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: absolute; z-index: 5; left: 10px; top: -70px; padding: 12px; background: var(--paper); color: var(--ink); }
.skip:focus { top: 10px; }

.top { background: var(--forest); color: #fffaf0; }
.top-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 70px; }
.brand { display: inline-flex; gap: 11px; align-items: center; font: bold 24px/1 var(--serif); text-decoration: none; }
.mark { display: grid; place-items: center; inline-size: 34px; block-size: 34px; border-radius: 50%; background: var(--rust); color: #fff5e4; font: 22px/1 var(--serif); padding-bottom: 2px; flex: none; }
nav { display: flex; align-items: center; gap: 29px; }
nav a { font-size: .91rem; text-decoration: none; }
nav a:hover, .footer-inner > a:last-child:hover { text-decoration: underline; text-underline-offset: 5px; }
nav .nav-save { display: inline-flex; align-items: center; gap: 8px; color: #f3ce9f; }

.hero { min-height: 570px; isolation: isolate; position: relative; display: flex; align-items: center; background: #2d201a; color: #fff8eb; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #160f0ceb 3%, #1e160fd1 32%, #1a120e4a 63%, #180f0a11 100%); }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; object-fit: cover; object-position: center 56%; }
.hero-content { padding-block: 80px 86px; }
.overline { display: flex; gap: 10px; align-items: center; margin: 0 0 17px; font-size: .8rem; font-weight: 750; letter-spacing: .105em; text-transform: uppercase; }
.dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; }
.hero .overline { color: #f0cfaa; }
.hero h1 { margin: 0; font: 600 clamp(4rem, 7.35vw, 7.2rem)/.87 var(--serif); letter-spacing: -.076em; }
.hero h1 em { color: #f3ae6d; font-weight: 500; }
.hero-content > p:not(.overline) { color: #faeddf; margin: 27px 0; max-width: 390px; font-size: clamp(1rem, 1.35vw, 1.16rem); line-height: 1.6; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px; color: white; background: var(--rust); border: 1px solid transparent; border-radius: 6px; text-decoration: none; font-weight: 650; }
.button:hover { background: var(--rust-dark); }
.hero-button { background: #b94c32; min-height: 51px; padding-inline: 22px; }

.catalog { padding-block: 62px 70px; scroll-margin-top: 20px; }
.catalog-heading { display: flex; gap: 30px; justify-content: space-between; align-items: end; margin-bottom: 24px; }
h2 { font: 600 clamp(2.4rem, 4.1vw, 4.2rem)/1 var(--serif); letter-spacing: -.045em; margin: 0; }
.results { color: var(--muted); font-size: .93rem; margin: 10px 0 0; }
.search { min-height: 48px; min-width: min(100%, 355px); display: flex; align-items: center; gap: 12px; padding: 0 14px; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.search:focus-within { outline: 2px solid var(--rust); outline-offset: 2px; }
.search input { width: 100%; min-width: 0; outline: none; border: 0; background: transparent; color: var(--ink); line-height: 2.6; }
.search input:focus-visible { outline: none; }
.glass, .clock { position: relative; display: inline-block; flex: none; width: 14px; height: 14px; border: 1.7px solid currentColor; border-radius: 50%; vertical-align: -1px; }
.glass::after { position: absolute; content: ""; width: 6px; height: 1.8px; background: currentColor; transform: rotate(45deg); top: 11px; left: 9px; }
.clock::after { position: absolute; content: ""; width: 4px; height: 5px; border-left: 1px solid currentColor; border-bottom: 1px solid currentColor; top: 1.8px; left: 4.7px; }
.filters { display: flex; align-items: flex-start; gap: 12px; justify-content: space-between; margin-bottom: 22px; }
.filter-list { display: flex; gap: 8px; flex-wrap: wrap; }
.filter, .region-select select { color: #514b3f; font-weight: 620; font-size: .92rem; min-height: 42px; padding: 6px 15px; border: 1px solid var(--line); border-radius: 100px; background: var(--paper); }
.filter:hover { border-color: #b07962; }
.filter[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: #fffaf0; }
.region-select { position: relative; flex: none; }
.region-select select { appearance: none; padding-right: 32px; }
.region-select::after { pointer-events: none; position: absolute; content: ""; width: 7px; height: 7px; border: solid; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); top: 15px; right: 15px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.card:hover { box-shadow: 0 8px 24px #422f1511; }
.card-picture { display: block; overflow: hidden; aspect-ratio: 1.75; background: #693d25; }
.card-picture img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.card:hover .card-picture img { transform: scale(1.025); }
.card-content { display: flex; flex: 1; flex-direction: column; padding: 21px 22px 15px; }
.card-overline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .78rem; font-weight: 690; margin: 0; }
.card-overline span:first-child { color: var(--rust-dark); }
.card-overline .dot { width: 4px; height: 4px; align-self: center; color: #a9947e; }
.card h3 { font: 600 clamp(1.39rem, 1.95vw, 2rem)/1.09 var(--serif); letter-spacing: -.035em; margin: 10px 0; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--rust-dark); text-decoration: underline; text-underline-offset: 4px; }
.card-content > p { color: var(--muted); font-size: .95rem; line-height: 1.47; margin: 0 0 18px; }
.card-meta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 5px; border-top: 1px solid #eee7da; font-size: .85rem; color: var(--muted); }
.card-meta > span, .recipe-meta span { display: inline-flex; align-items: center; gap: 7px; }
.save-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-width: 39px; min-height: 37px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #6f5141; }
.save-button:hover, .save-button[aria-pressed="true"] { color: var(--rust-dark); background: #f4e5d6; }
.save-button.labelled { padding-inline: 12px; min-height: 45px; border-color: #dfcbb9; font-weight: 600; }
.bookmark { display: inline-block; position: relative; width: 12px; height: 16px; background: currentColor; clip-path: polygon(0 0,100% 0,100% 100%,50% 70%,0 100%); }
.bookmark::after { content: ""; position: absolute; inset: 1.5px 1.5px 2px; background: var(--paper); clip-path: inherit; }
.nav-save .bookmark::after { background: var(--forest); }
.save-button[aria-pressed="true"] .bookmark::after { display: none; }
.empty { text-align: center; padding: 48px 20px; background: var(--paper); border: 1px dashed #c8b7a3; border-radius: 12px; }
.empty h3 { margin: 0; font: 600 1.65rem var(--serif); }
.empty p { color: var(--muted); }

.halal { display: grid; grid-template-columns: 1fr .65fr; gap: 55px; background: #e9ede2; border: 1px solid #d7ddce; border-radius: 12px; padding: 39px 43px; margin-bottom: 67px; scroll-margin-top: 24px; }
.halal h2 { font-size: clamp(2.1rem, 3.6vw, 3.55rem); }
.halal p, .halal li { line-height: 1.6; color: #434e43; }
.halal .overline { color: #416449; }
.halal p:last-child { margin-bottom: 0; }
.sources { align-self: center; }
.sources summary { cursor: pointer; font-weight: 700; }
.sources a { text-underline-offset: 3px; }
.site-footer { background: var(--forest); color: #fffaf0; }
.footer-inner { min-height: 94px; }
.footer-inner p, .footer-inner > a:last-child { font-size: .9rem; color: #e2dfd1; }
.footer-inner > a:last-child { text-decoration: none; }

.detail { padding-block: 35px 73px; }
.return { display: inline-block; margin-bottom: 30px; color: var(--rust-dark); font-size: .93rem; font-weight: 650; text-underline-offset: 4px; }
.detail-hero { padding: 32px 36px; background: #eee8da; border: 1px solid var(--line); border-radius: 12px; }
.detail-hero.with-photo { padding: 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(0, .9fr); align-items: stretch; overflow: hidden; }
.detail-hero.with-photo .detail-heading { padding: 33px 36px; }
.detail-hero img { height: 100%; object-fit: cover; }
.detail h1 { font: 600 clamp(2.8rem, 5.7vw, 5.1rem)/.99 var(--serif); letter-spacing: -.065em; margin: 12px 0 13px; }
.detail-intro { max-width: 48ch; }
.detail-intro, .recipe-meta { color: var(--muted); line-height: 1.6; }
.recipe-meta, .recipe-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.recipe-actions { margin-top: 19px; gap: 10px; }
.print { min-height: 45px; font-weight: 600; border: 1px solid #dfcbb9; border-radius: 6px; background: transparent; padding-inline: 12px; color: #6f5141; }
.print:hover { background: #f4e5d6; }
.detail-body { display: grid; grid-template-columns: minmax(250px, .67fr) minmax(0, 1.3fr); gap: 45px; margin-top: 39px; }
.detail-body h2 { font-size: clamp(1.85rem, 3vw, 2.75rem); margin-bottom: 20px; }
.ingredient-box { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 25px; align-self: start; }
.ingredient-box ul { list-style: none; padding: 0; margin: 0; }
.ingredient-box li + li { border-top: 1px solid var(--line); }
.ingredient-box label { display: flex; align-items: baseline; gap: 10px; padding: 12px 0; cursor: pointer; }
.ingredient-box input { accent-color: var(--rust-dark); margin: 0; flex: none; width: 15px; height: 15px; }
.ingredient-box input:checked + span { color: var(--muted); text-decoration: line-through; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 22px; }
.steps li { counter-increment: step; display: flex; align-items: start; gap: 14px; padding-block: 12px; border-bottom: 1px solid var(--line); line-height: 1.6; }
.steps li::before { content: counter(step); flex: none; display: grid; place-items: center; width: 32px; height: 32px; color: var(--rust-dark); background: #eedfce; border-radius: 100%; font-weight: 750; line-height: 1; }
.steps p { margin: 0; }
.tip { padding: 16px 20px; border-radius: 7px; border-left: 4px solid #8d563c; background: #eee8da; }
.tip h3 { margin: 0 0 4px; font: 600 1.25rem var(--serif); }
.tip p { margin: 0; color: var(--muted); line-height: 1.55; }

@media (max-width: 900px) {
  .frame { width: min(100% - 48px, 1280px); }
  .hero { min-height: 505px; }
  .hero-image { object-position: 60% center; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-body { gap: 25px; }
}
@media (max-width: 610px) {
  .frame { width: calc(100% - 32px); }
  .top-inner { min-height: 64px; gap: 9px; }
  .brand { font-size: 17px; gap: 7px; }
  .mark { inline-size: 27px; block-size: 27px; font-size: 18px; }
  nav { gap: 12px; }
  nav a { font-size: .79rem; }
  nav a:nth-child(2) { display: none; }
  nav .nav-save { gap: 4px; }
  nav .bookmark { width: 9px; height: 13px; }
  .hero { min-height: 464px; }
  .hero-content { padding-block: 75px 62px; }
  .hero h1 { font-size: clamp(2.85rem, 12.4vw, 5rem); letter-spacing: -.072em; }
  .hero-image { object-position: 64% center; }
  .hero::after { background: linear-gradient(90deg, #1b110edb, #1c100b50), linear-gradient(0deg, #211611dc, transparent 85%); }
  .hero-content > p:not(.overline) { max-width: 310px; margin-block: 22px; }
  .catalog { padding-block: 43px 50px; }
  .catalog-heading, .filters { align-items: stretch; flex-direction: column; gap: 14px; }
  .card-content { padding-inline: 16px; }
  .filter, .region-select select { min-height: 40px; padding-inline-start: 12px; font-size: .86rem; }
  .cards { gap: 12px; }
  .card h3 { font-size: 1.34rem; }
  .card-content > p { font-size: .88rem; }
  .halal { grid-template-columns: 1fr; gap: 24px; padding: 26px 20px; margin-bottom: 45px; }
  .detail { padding-block: 22px 47px; }
  .detail-hero.with-photo, .detail-body { grid-template-columns: 1fr; }
  .detail-hero.with-photo .detail-heading, .detail-hero, .ingredient-box { padding: 23px 18px; }
  .detail-hero.with-photo { padding: 0; }
  .detail-hero img { max-height: 305px; }
  .footer-inner { flex-wrap: wrap; justify-content: flex-start; column-gap: 18px; row-gap: 4px; padding-block: 18px; }
  .footer-inner p { display: none; }
  .footer-inner > a:last-child { margin-left: auto; }
}
@media (max-width: 380px) { .cards { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
@media print {
  :root { background: white; }
  .top, .site-footer, .return, .recipe-actions, .detail-hero img { display: none !important; }
  .frame { width: 100%; }
  .detail { padding: 0; }
  .detail-hero, .detail-body { display: block !important; border: 0; }
  .detail-hero.with-photo .detail-heading, .detail-hero, .ingredient-box { padding: 0; }
  .ingredient-box { border: 0; margin-bottom: 20px; }
  .ingredient-box label, .steps li { padding-block: 4px; }
  .detail h1 { font-size: 27pt; }
  .detail-body h2 { font-size: 19pt; }
}
