/* ============================================================
   STRAIGHT TO THE RECIPE — style.css
   One stylesheet for the whole site. Edit colors here.
   ============================================================ */
:root {
  --red: #d1342f;       /* header / accents */
  --yellow: #f7c548;    /* highlight */
  --green: #2f7d4f;     /* badge */
  --ink: #25211c;       /* near-black text */
  --cream: #fff8ec;     /* page background */
  --white: #ffffff;
}
* { margin:0; padding:0; box-sizing:border-box; }
body { background:var(--cream); color:var(--ink); font-family:system-ui,-apple-system,'Segoe UI',sans-serif; }
a { color:inherit; }

/* ---------- Header ---------- */
.top { background:var(--red); color:var(--cream); display:flex; justify-content:space-between; align-items:center; padding:16px 36px; flex-wrap:wrap; gap:10px; }
.logo { font-size:24px; font-weight:900; letter-spacing:-1px; text-transform:uppercase; text-decoration:none; }
.logo span { color:var(--yellow); }
.top nav a { color:var(--cream); text-decoration:none; margin-left:22px; font-weight:700; font-size:14px; }
.top nav a:hover { color:var(--yellow); }
.checker { height:14px; background:repeating-conic-gradient(var(--ink) 0% 25%, var(--cream) 0% 50%) 0 0/28px 28px; }

/* ---------- Hero ---------- */
.hero { text-align:center; padding:64px 24px 48px; }
.hero h1 { font-size:clamp(36px,6.5vw,72px); font-weight:900; letter-spacing:-2px; line-height:1.02; text-transform:uppercase; max-width:860px; margin:0 auto; }
.hero h1 mark { background:var(--yellow); padding:0 10px; }
.hero p { margin:22px auto 0; max-width:560px; font-size:17px; line-height:1.55; }
.badge { display:inline-block; margin-top:26px; background:var(--green); color:var(--cream); padding:12px 30px; border-radius:999px; font-weight:800; font-size:15px; transform:rotate(-2deg); box-shadow:4px 4px 0 var(--ink); }

/* ---------- Category filter ---------- */
.filters { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; padding:8px 24px 34px; }
.filters button { background:var(--white); border:2px solid var(--ink); border-radius:999px; padding:8px 18px; font-weight:800; font-size:13px; cursor:pointer; box-shadow:3px 3px 0 var(--ink); }
.filters button:hover { transform:translate(-1px,-1px); box-shadow:4px 4px 0 var(--ink); }
.filters button.on { background:var(--yellow); }

/* ---------- Recipe grid ---------- */
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:26px; padding:8px 40px 70px; max-width:1200px; margin:0 auto; }
.card { background:var(--white); border:3px solid var(--ink); border-radius:14px; box-shadow:6px 6px 0 var(--ink); overflow:hidden; text-decoration:none; display:flex; flex-direction:column; }
.card:hover { transform:translate(-2px,-2px); box-shadow:8px 8px 0 var(--ink); }
.card .img { height:130px; display:flex; align-items:center; justify-content:center; font-size:48px; border-bottom:3px solid var(--ink); }
.card .body { padding:18px 20px 22px; }
.card .tag { font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:2px; color:var(--red); }
.card h3 { font-size:19px; font-weight:900; margin:8px 0 6px; letter-spacing:-.3px; line-height:1.15; }
.card p { font-size:13.5px; line-height:1.45; }

/* ---------- Recipe page ---------- */
.recipe-wrap { background:var(--white); border-top:3px solid var(--ink); padding:52px 40px 64px; }
.recipe-inner { max-width:840px; margin:0 auto; }
.crumb { font-size:13px; font-weight:700; margin-bottom:20px; }
.crumb a { color:var(--red); text-decoration:none; }
.recipe-inner h1 { font-size:clamp(28px,4.5vw,40px); font-weight:900; letter-spacing:-1px; text-transform:uppercase; line-height:1.05; display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.title-thumb { width:76px; height:76px; object-fit:cover; border:3px solid var(--ink); border-radius:12px; box-shadow:4px 4px 0 var(--ink); flex-shrink:0; }
.meta { font-size:13px; font-weight:700; margin:14px 0 8px; color:var(--red); text-transform:uppercase; letter-spacing:1px; }
.intro-joke { font-size:15px; margin:10px 0 30px; padding:12px 16px; background:var(--cream); border:2px dashed var(--ink); border-radius:10px; }
.cols { display:flex; gap:48px; flex-wrap:wrap; }
.cols > div { flex:1; min-width:260px; }
.cols h4 { font-size:13px; font-weight:900; text-transform:uppercase; letter-spacing:2px; background:var(--yellow); display:inline-block; padding:4px 12px; border:2px solid var(--ink); margin-bottom:14px; }
.cols ul, .cols ol { margin-left:20px; }
.cols li { font-size:15px; line-height:1.7; margin-bottom:6px; }
.placeholder-box { background:var(--cream); border:3px dashed var(--red); border-radius:12px; padding:22px; font-size:15px; line-height:1.6; }
.placeholder-box b { color:var(--red); }
.component { margin-top:40px; padding-top:26px; border-top:3px solid var(--ink); }
.component h3 { font-size:22px; font-weight:900; text-transform:uppercase; letter-spacing:-.5px; margin-bottom:14px; }
.main-heading { font-size:22px; font-weight:900; text-transform:uppercase; letter-spacing:-.5px; margin-bottom:14px; }

/* ---------- Tips ---------- */
.tips { margin-top:40px; background:var(--cream); border:3px solid var(--ink); border-radius:12px; box-shadow:5px 5px 0 var(--ink); padding:22px 26px; }
.tips h3 { font-size:16px; font-weight:900; text-transform:uppercase; letter-spacing:2px; margin-bottom:12px; }
.tips h3 span { background:var(--yellow); padding:2px 10px; border:2px solid var(--ink); }
.tips li { font-size:15px; line-height:1.65; margin:6px 0 6px 20px; }

/* ---------- Recipe photos ---------- */
.photos { display:flex; gap:24px; flex-wrap:wrap; margin:36px 0 0; }
.photos figure { flex:1; min-width:280px; }
.photos img { width:100%; display:block; border:3px solid var(--ink); border-radius:12px; box-shadow:6px 6px 0 var(--ink); }
.photos figcaption { font-size:13px; line-height:1.5; margin-top:10px; opacity:.85; }
.photo-ai { margin-top:36px; }
.photo-ai .ai-label { display:inline-block; background:var(--yellow); color:var(--ink); font-weight:900; font-size:12px; letter-spacing:2px; text-transform:uppercase; padding:6px 14px; border:2px solid var(--ink); border-radius:4px; transform:rotate(1deg); box-shadow:3px 3px 0 var(--ink); margin-bottom:12px; }
.photo-ai img { width:100%; max-width:560px; display:block; border:3px dashed var(--red); border-radius:12px; }
.photo-ai figcaption { font-size:13px; line-height:1.5; margin-top:10px; max-width:560px; opacity:.85; }
.story-photo { margin:28px auto 4px; max-width:520px; }
.story-photo img { width:100%; display:block; border:3px solid var(--ink); border-radius:12px; box-shadow:6px 6px 0 var(--ink); }
.story-photo figcaption { font-size:13px; line-height:1.5; margin-top:10px; opacity:.8; font-style:italic; text-align:center; }

/* ---------- Quarantined ads ---------- */
.adzone { margin-top:56px; border-top:4px dashed var(--ink); padding-top:30px; }
.adzone .ad-label { display:inline-block; background:var(--ink); color:var(--cream); font-weight:900; font-size:12px; letter-spacing:2px; text-transform:uppercase; padding:6px 14px; border-radius:4px; margin-bottom:8px; }
.adzone .ad-note { font-size:13px; opacity:.7; margin-bottom:20px; }
.adzone .ad-row { display:flex; gap:20px; flex-wrap:wrap; align-items:flex-start; }
.ad-slot { background:repeating-linear-gradient(45deg,#eee,#eee 12px,#f7f7f7 12px,#f7f7f7 24px); border:2px dashed #999; border-radius:8px; display:flex; flex-direction:column; align-items:center; justify-content:center; color:#888; text-align:center; padding:10px; }
.ad-slot small { font-size:10px; letter-spacing:2px; text-transform:uppercase; margin-bottom:6px; }
.ad-slot b { font-size:14px; color:#666; }
.ad-slot span { font-size:11px; margin-top:6px; max-width:240px; line-height:1.4; }
.ad-300 { width:300px; height:250px; }
.ad-728 { flex:1; min-width:300px; height:90px; flex-direction:row; gap:14px; }
.ad-728 small { margin:0; }

/* ---------- Fake family story ---------- */
.story { margin-top:56px; border-top:4px dashed var(--ink); padding-top:34px; }
.story .warn { display:inline-block; background:var(--red); color:var(--cream); font-weight:900; font-size:12px; letter-spacing:2px; text-transform:uppercase; padding:6px 14px; border-radius:4px; transform:rotate(-1deg); box-shadow:3px 3px 0 var(--ink); margin-bottom:16px; }
.story h3 { font-size:24px; font-weight:900; text-transform:uppercase; letter-spacing:-.5px; margin-bottom:6px; }
.story .disclaimer { font-size:13px; opacity:.7; margin-bottom:22px; }
.story p { font-size:15.5px; line-height:1.75; margin-bottom:16px; max-width:680px; font-family:Georgia,'Times New Roman',serif; }
.story .the-end { font-size:13px; font-weight:800; text-transform:uppercase; letter-spacing:2px; color:var(--red); margin-top:24px; }

/* ---------- Text pages (Rules / About) ---------- */
.page { max-width:760px; margin:0 auto; padding:56px 28px 72px; }
.page h1 { font-size:clamp(32px,5vw,52px); font-weight:900; letter-spacing:-1.5px; text-transform:uppercase; line-height:1.02; }
.page h1 mark { background:var(--yellow); padding:0 8px; }
.page .sub { margin:16px 0 34px; font-size:17px; line-height:1.55; }
.rule { display:flex; gap:18px; background:var(--white); border:3px solid var(--ink); border-radius:12px; box-shadow:5px 5px 0 var(--ink); padding:20px 22px; margin-bottom:18px; }
.rule .num { font-size:28px; font-weight:900; color:var(--red); min-width:44px; }
.rule h3 { font-size:17px; font-weight:900; margin-bottom:4px; }
.rule p { font-size:14.5px; line-height:1.5; }
.page.about p { font-size:16px; line-height:1.65; margin-bottom:14px; }

/* ---------- Recipe credit ---------- */
.credit { margin-top:40px; font-size:12.5px; opacity:.65; }
.credit a { color:var(--red); }

/* ---------- Footer ---------- */
footer { background:var(--ink); color:var(--cream); text-align:center; padding:22px; font-size:13px; }
footer a { color:var(--yellow); }
