/* Shared recipe styling — kept lean, matches the blog/talk register. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-inset: #f3f4f6;
  --text: #1a1a1a;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --accent: #0f766e;
  --accent-light: #ccfbf1;
  --border: #e5e7eb;
  --warning: #d97706;
  --warning-light: #fef3c7;
  --radius: 12px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

nav.recipe-nav {
  position: sticky;
  top: 0;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 0 1.5rem;
}
.recipe-nav-inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
}
.recipe-nav .logo {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}
.recipe-nav .nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}
.recipe-nav .nav-back:hover { color: var(--accent); }
.recipe-nav .nav-back svg { width: 14px; height: 14px; }

main.recipe {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

main.recipe h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

main.recipe .subtitle {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 2rem;
  max-width: 640px;
}

main.recipe .recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
main.recipe .recipe-meta strong { color: var(--text-secondary); font-weight: 600; }

main.recipe h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

main.recipe h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

main.recipe p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

main.recipe a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
main.recipe a:hover { text-decoration-thickness: 2px; }

main.recipe ul, main.recipe ol {
  margin: 0 0 1.25rem 1.5rem;
}
main.recipe li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

main.recipe code {
  font-family: 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: 0.875em;
  background: var(--surface-inset);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--text);
}

main.recipe pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.25rem 0;
  font-size: 0.85rem;
  line-height: 1.55;
}
main.recipe pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

main.recipe table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.92rem;
}
main.recipe th {
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0.7rem 0.9rem;
  background: var(--surface-inset);
  border-bottom: 1px solid var(--border);
}
main.recipe td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
main.recipe tr:last-child td { border-bottom: 0; }

main.recipe blockquote {
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-light);
  color: var(--text);
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
}
main.recipe blockquote p:last-child { margin-bottom: 0; }

.callout {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  font-size: 0.92rem;
}
.callout strong { font-weight: 700; }
.callout.gotcha {
  background: var(--warning-light);
  border-left: 3px solid var(--warning);
  color: #78350f;
}
.callout.note {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.recipe-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.recipe-footer h3 { color: var(--text); margin-top: 0; }
.recipe-footer ul { margin: 0.5rem 0 1.25rem 1.5rem; }

.bio {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  main.recipe { padding: 2.5rem 1.25rem 4rem; }
  main.recipe h1 { font-size: 1.85rem; }
  main.recipe h2 { font-size: 1.35rem; }
  main.recipe pre { font-size: 0.78rem; padding: 0.85rem 0.95rem; }
}
