/* QuickBites — warm kitchen magazine */

:root {
  --rice: #FFF8F1;
  --tomato: #C23B22;
  --olive: #6B7F3B;
  --text: #2C1810;
  --text-muted: #5c4030;
  --border: rgba(44, 24, 16, 0.12);
  --shadow: 0 12px 40px rgba(44, 24, 16, 0.08);
  --radius: 10px;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Karla", system-ui, sans-serif;
  --font-badge: "Space Grotesk", system-ui, sans-serif;
  --shell: min(1120px, calc(100% - 2rem));
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--rice);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--tomato);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: #9a2f1a; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 2.85rem); }
h2 { font-size: clamp(1.45rem, 2.5vw, 1.85rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.badge-font { font-family: var(--font-badge); }

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.wrap {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: var(--tomato);
  color: #fff;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}

.brand:hover { color: var(--text); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--tomato);
  color: var(--rice);
  font-family: var(--font-badge);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 18rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.nav a {
  font-family: var(--font-badge);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--tomato);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font-badge);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--tomato);
  color: #fff;
}

.btn-primary:hover {
  background: #9a2f1a;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--olive);
  border-color: var(--olive);
}

.btn-ghost:hover {
  background: var(--olive);
  color: #fff;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero */
.hero {
  padding: 3rem 0 2.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(194, 59, 34, 0.08), transparent),
    radial-gradient(ellipse 60% 50% at 5% 90%, rgba(107, 127, 59, 0.1), transparent),
    var(--rice);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 0 0 0.75rem;
}

.brand-hero {
  margin-bottom: 0.5rem;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 38rem;
}

.hero-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.panel-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tomato);
  margin: 0 0 1rem;
}

.hero-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-menu li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
}

.hero-menu li:last-child { border-bottom: none; }

.hero-menu .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--olive);
  flex-shrink: 0;
}

.panel-foot {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 2.5rem 0 3rem;
}

.section-tight {
  padding-top: 0;
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-head h2 {
  margin-bottom: 0.35rem;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
}

.page-hero {
  padding: 2.75rem 0 1.5rem;
}

.page-hero .lede {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 42rem;
}

/* Recipe card grid */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.recipe-grid-compact {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.recipe-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(44, 24, 16, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.recipe-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.recipe-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.recipe-card-media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(107, 127, 59, 0.15), rgba(194, 59, 34, 0.12));
}

.recipe-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-card-placeholder {
  width: 100%;
  height: 100%;
  background:
    url('../img/placeholders/recipe.svg') center / cover no-repeat,
    linear-gradient(160deg, #fff5ea, #f0e8dc);
}

.recipe-card-badges {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.recipe-card-badges span {
  background: rgba(44, 24, 16, 0.82);
  color: var(--rice);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: 4px;
}

.recipe-card-body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.recipe-card-cat {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 0.45rem;
}

.recipe-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
  transition: color 0.15s;
}

.recipe-card:hover h3 { color: var(--tomato); }

.recipe-card-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Topic row */
.topic-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.topic-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--text);
}

.topic-row a:hover {
  border-color: var(--olive);
  color: var(--olive);
}

.topic-row span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Recipe list */
.recipe-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.recipe-list li {
  border-bottom: 1px solid var(--border);
}

.recipe-list a {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 1rem 0;
  text-decoration: none;
  color: var(--text);
}

.recipe-list a:hover .recipe-list-title { color: var(--tomato); }

.recipe-list-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.recipe-list-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.cat-block {
  margin-bottom: 3rem;
}

.cat-title {
  padding-bottom: 0.65rem;
  margin-bottom: 1.25rem;
  border-bottom: 3px solid var(--tomato);
  display: inline-block;
}

/* Article */
.article-hero {
  padding-top: 2.5rem;
}

.article-hero h1 {
  max-width: 18ch;
}

.recipe-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0.75rem;
}

.recipe-badge {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.recipe-badge strong {
  color: var(--olive);
  margin-right: 0.25rem;
}

.article-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.recipe-hero-image {
  margin: 1.5rem auto 0;
}

.recipe-hero-image img,
.recipe-hero-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.recipe-hero-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

/* Prose */
.prose {
  font-size: 1.05rem;
  line-height: 1.7;
}

.prose > *:first-child { margin-top: 0; }

.prose h2 {
  margin-top: 2rem;
  color: var(--text);
}

.prose h2#ingredients,
.prose h2#steps {
  margin-top: 0;
  font-size: 1.35rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--olive);
}

.prose ul, .prose ol {
  margin: 0 0 1.25em;
  padding-left: 1.35em;
}

.prose li { margin-bottom: 0.4em; }

.prose li::marker { color: var(--tomato); }

.prose blockquote {
  margin: 1.5em 0;
  padding: 1rem 1.25rem;
  background: rgba(107, 127, 59, 0.08);
  border-left: 4px solid var(--olive);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.prose blockquote p:last-child { margin-bottom: 0; }

.prose code {
  font-family: var(--font-badge);
  font-size: 0.88em;
  background: rgba(44, 24, 16, 0.06);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.prose .table-wrap {
  overflow-x: auto;
  margin: 1.5em 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.prose th, .prose td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.75rem;
  text-align: left;
}

.prose th {
  background: rgba(107, 127, 59, 0.12);
  font-family: var(--font-badge);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-body {
  padding: 2rem 0 2.5rem;
  max-width: 52rem;
}

/* Two-column Ingredients | Steps */
.recipe-columns {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem 2.5rem;
  margin: 2rem 0;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(44, 24, 16, 0.05);
}

.recipe-col ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.recipe-steps ol li {
  counter-increment: step;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1rem;
}

.recipe-steps ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1.65rem;
  height: 1.65rem;
  display: grid;
  place-items: center;
  background: var(--tomato);
  color: #fff;
  font-family: var(--font-badge);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 50%;
}

.recipe-ingredients ul {
  list-style: none;
  padding-left: 0;
}

.recipe-ingredients ul li {
  padding: 0.35rem 0;
  border-bottom: 1px dotted var(--border);
}

.recipe-ingredients ul li:last-child { border-bottom: none; }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 1.5rem;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  background: rgba(194, 59, 34, 0.1);
  color: var(--tomato);
  border-radius: 4px;
}

.related h2 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

/* Ads */
.ads-slot {
  min-height: 90px;
  margin: 1.5rem auto;
  background: repeating-linear-gradient(
    -45deg,
    rgba(44, 24, 16, 0.03),
    rgba(44, 24, 16, 0.03) 8px,
    rgba(44, 24, 16, 0.06) 8px,
    rgba(44, 24, 16, 0.06) 16px
  );
  border: 1px dashed var(--border);
  border-radius: 6px;
}

/* Contact */
.contact-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-box label {
  display: block;
  font-family: var(--font-badge);
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0.75rem 0 0.35rem;
}

.contact-box input,
.contact-box textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--rice);
}

.contact-box button {
  margin-top: 1rem;
  padding: 0.65rem 1.25rem;
  background: var(--tomato);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: var(--font-badge);
  font-weight: 600;
  cursor: pointer;
}

.contact-box button:hover { background: #9a2f1a; }

.form-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 1rem;
  margin-bottom: 0;
}

.page-body { padding-bottom: 3rem; }

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 1.5rem;
  background: #fff;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.footer-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 32rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-content: start;
}

.footer-links a {
  font-family: var(--font-badge);
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--text-muted);
}

.footer-links a:hover { color: var(--tomato); }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .recipe-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand-sub { display: none; }

  .nav { gap: 0.75rem; }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .recipe-grid {
    grid-template-columns: 1fr;
  }

  .article-hero h1 { max-width: none; }
}


/* === Shared responsive & brand enhancements === */
.brand-logo,.footer-logo{display:block;height:auto;max-width:100%}
.brand .brand-logo{width:min(180px,52vw)}
.footer-logo{width:min(160px,45vw);margin-bottom:.75rem;opacity:.95}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
html{-webkit-text-size-adjust:100%;overflow-x:hidden}
body{overflow-x:hidden}
img,svg,video{max-width:100%;height:auto}
.nav a,.menu-toggle,.btn,.footer-nav a,.nav-links a{min-height:44px;display:inline-flex;align-items:center}
@media(max-width:680px){.menu-toggle{display:inline-flex}.nav.is-open,.nav-links.is-open{display:flex!important;flex-direction:column;width:100%}}
@media(max-width:480px){body{font-size:1rem}h1{font-size:clamp(1.65rem,6vw,2.35rem)}}

/* Network & cross-links */
.network-footer{padding:2rem 0;border-top:1px solid var(--line,rgba(0,0,0,.08));margin-top:0}
.network-title{font-size:.85rem;text-transform:uppercase;letter-spacing:.06em;margin:0 0 .75rem;opacity:.75;font-weight:600}
.network-links{list-style:none!important;margin:0;padding:0;display:grid;gap:.65rem;grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
.network-links li{list-style:none;margin:0;padding:0}
.network-links a{display:flex;flex-direction:column;gap:.15rem;padding:.65rem .75rem;border-radius:6px;text-decoration:none;border:1px solid var(--line,rgba(0,0,0,.08))}
.network-links strong{font-size:.95rem}
.network-links span{font-size:.8rem;opacity:.75}
.cross-links{margin:1.5rem 0;padding:1rem 1.1rem;border-left:3px solid var(--steel,var(--accent,#2F5D8C));background:rgba(0,0,0,.03);font-size:.95rem}
.cross-links a{font-weight:600}
.article-hero-img{margin:1rem 0 1.25rem;border-radius:8px;overflow:hidden;aspect-ratio:16/9;background:var(--bg-ink,#eee)}
.article-hero-img img{width:100%;height:100%;object-fit:cover}
