// The recipe: Bedstemors flæskesteg — roast pork with crackling, rødkål and // brunede kartofler. Ten steps, each with an animated kitchen phase and an // optional countdown (in real seconds; demo mode runs them 60× faster). export type Phase = | 'dry' | 'bed' | 'oven' | 'cabbage' | 'potatoes' | 'caramel' | 'crisp' | 'rest' | 'carve' | 'serve'; export interface Step { title: string; danish: string; minutes: number; // 0 = no timer for this step phase: Phase; text: string; } export const STEPS: Step[] = [ { title: 'Dry the crackling', danish: 'Sværen skal være tør', minutes: 0, phase: 'dry', text: 'Pat the skin of a 1.5 kg pork roast bone-dry and score it in a crosshatch, knife tip down to the fat — never through it. Rub coarse salt deep into every cut. Grandma\u2019s trick: leave it uncovered in the fridge overnight. Dry skin is crispy skin; there is no shortcut.', }, { title: 'Make its bed', danish: 'On the rack, fat side up', minutes: 0, phase: 'bed', text: 'Set the roast fat side up on a rack over a roasting pan with 2 dl of water in the bottom. The water stops the drippings from burning \u2014 those drippings become gravy, and gravy is the whole point of the pan.', }, { title: 'Into the oven', danish: '200 °C, mid-rack', minutes: 90, phase: 'oven', text: 'Roast at 200 °C, roughly 1 hour per 500 g. Every 20 minutes, baste the meat with the pan juices \u2014 do not wet the crackling. The kitchen will start to smell like December; that is your timer.', }, { title: 'Simmer the red cabbage', danish: 'Rødkål med æble', minutes: 40, phase: 'cabbage', text: 'Simmer the rødkål with a quartered apple, a knob of butter and a pinch of sugar while the roast works. Old-school: braise your own cabbage for an hour. Honest-school: the good jarred kind, warmed properly. Grandma won\u2019t tell.', }, { title: 'Boil the potatoes', danish: 'Små kartofler, let møre', minutes: 20, phase: 'potatoes', text: 'Boil small potatoes in salted water until just tender \u2014 they still have to survive a roll in hot caramel. Drain well and keep them warm under a cloth.', }, { title: 'Brun the potatoes', danish: 'Brunede kartofler', minutes: 8, phase: 'caramel', text: 'Melt sugar in a pan until it turns the colour of a hazelnut, swirl in butter, then roll in the potatoes until every one wears an amber coat. Do not stir with a spoon \u2014 swirl with the pan, or you get sugar rocks.', }, { title: 'Crisp the crackling', danish: 'Sværen skal springe', minutes: 12, phase: 'crisp', text: 'If the crackling is still pale and soft, turn the oven to 225 °C (or grill) for the last 10\u201315 minutes. Watch it like a hawk \u2014 it goes from perfect to charcoal in one phone call. Done right it cracks like a campfire.', }, { title: 'Rest, then gravy', danish: 'Brun sovs på faconen', minutes: 10, phase: 'rest', text: 'Let the meat rest 10 minutes under foil. Pour the pan juices into a saucepan, skim off the fat, and build a dark brown gravy with a little browned roux. Salt, pepper, taste \u2014 it should taste like the roast\u2019s own diary.', }, { title: 'Carve', danish: 'Sværen først, kødet tyndt', minutes: 0, phase: 'carve', text: 'Carve the crackling into neat squares first, while it is still warm and brittle, then slice the meat thin. Every plate gets one square that cracks and one slice that doesn\u2019t need a saw.', }, { title: 'Serve', danish: 'Velbekomme!', minutes: 0, phase: 'serve', text: 'Roast and crackling on a warm plate, a spoonful of rødkål, the amber potatoes beside it, gravy in a jug that has been warmed too. Light the candles. It is Grandma\u2019s recipe now \u2014 which means yours.', }, ]; export interface Ingredient { name: string; perServing: number; // grams or ml unit: string; step: number; // which step it belongs to (1-based) } export const INGREDIENTS: Ingredient[] = [ { name: 'Pork roast, skin on', perServing: 375, unit: 'g', step: 1 }, { name: 'Coarse salt', perServing: 5, unit: 'g', step: 1 }, { name: 'Water in the pan', perServing: 0, unit: '', step: 2 }, { name: 'Red cabbage', perServing: 125, unit: 'g', step: 4 }, { name: 'Apples', perServing: 0.5, unit: '', step: 4 }, { name: 'Butter', perServing: 15, unit: 'g', step: 4 }, { name: 'Small potatoes', perServing: 375, unit: 'g', step: 5 }, { name: 'Sugar', perServing: 12, unit: 'g', step: 6 }, { name: 'Brown roux', perServing: 8, unit: 'g', step: 8 }, ]; export function formatIngredient(ing: Ingredient, servings: number): string { if (ing.name === 'Water in the pan') return '2 dl water in the pan'; if (ing.unit === '') { const n = Math.round(ing.perServing * servings * 2) / 2; return `${n % 1 === 0 ? n : n.toFixed(1)} ${ing.name.toLowerCase()}${n === 1 ? '' : 's'}`; } const g = ing.perServing * servings; if (g >= 1000) { const kg = Math.round(g / 50) * 50 / 1000; return `${kg % 1 === 0 ? kg.toFixed(0) : kg} kg ${ing.name.toLowerCase()}`; } const rounded = g >= 200 ? Math.round(g / 25) * 25 : Math.round(g / 5) * 5; return `${rounded} ${ing.unit} ${ing.name.toLowerCase()}`; }