/* recipe-page.css — the look of the static recipe pages (/r/…, /fr/r/…).
   Copied to public/r/_assets/recipe.css by scripts/build-recipe-pages.mjs; edit it HERE.
   Colours mirror tailwind.config.js: linen #EBE2D0, parchment #EEE4C8, aubergine #2A1F2A,
   aubergine-soft #3A2C39, persimmon #D9663F, marigold #D8973A.
   Fonts: Crimson Pro and Lora, SIL Open Font License 1.1, self-hosted from @fontsource — no request
   leaves familiarfamily.fr (the site privacy policy relies on that). */
@font-face { font-family: "Crimson Pro"; src: url("crimson-pro-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("lora-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("lora-latin-wght-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root { --linen: #EBE2D0; --parchment: #EEE4C8; --ink: #2A1F2A; --ink-soft: #3A2C39; --persimmon: #D9663F; --marigold: #D8973A; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--linen); color: var(--ink); font: 1.125rem/1.65 "Lora", Georgia, serif; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--marigold); text-decoration-thickness: 3px; text-underline-offset: 5px; }
a:hover { text-decoration-color: var(--persimmon); }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.rp-top { max-width: 760px; margin: 0 auto; padding: 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.rp-brand { font: 600 1.35rem/1 "Crimson Pro", Georgia, serif; text-decoration: none; }
.rp-lang { min-height: 44px; display: inline-flex; align-items: center; font: 700 0.9rem/1 "Lora", Georgia, serif; border: 2px solid var(--ink); border-radius: 999px; padding: 12px 16px; text-decoration: none; }
.rp { max-width: 760px; margin: 0 auto; padding: 8px 16px 48px; }
.rp-banner { background: var(--parchment); border: 2px solid var(--ink); border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; }

h1 { font: 700 clamp(2.2rem, 7vw, 3.4rem)/1.08 "Crimson Pro", Georgia, serif; margin: 8px 0 12px; }
h2 { font: 700 1.6rem/1.2 "Crimson Pro", Georgia, serif; margin: 32px 0 12px; }
.rp-lede { font-style: italic; color: var(--ink-soft); margin: 0 0 20px; }

.rp-photo { margin: 0 0 18px; }
.rp-photo img { display: block; width: 100%; height: auto; border: 2px solid var(--ink); border-radius: 14px; box-shadow: 6px 6px 0 var(--ink); background: var(--parchment); }
.rp-photo figcaption { font-size: 0.8rem; color: var(--ink-soft); margin-top: 12px; }

.rp-facts { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.rp-facts li { border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px; font-size: 0.9rem; background: var(--parchment); }

.rp-cta { background: var(--parchment); border: 2px solid var(--ink); border-radius: 16px; box-shadow: 5px 5px 0 var(--ink); padding: 16px 18px; margin: 8px 0; }
.rp-cta p { margin: 0 0 10px; }
.rp-cta-title { font: 700 1.3rem/1.25 "Crimson Pro", Georgia, serif; }
/* Aubergine on persimmon is 4.46:1 — AA only as LARGE text, hence 1.2rem bold (CLAUDE.md contrast rule). */
.rp-play { display: inline-block; background: var(--persimmon); color: var(--ink); font-weight: 700; font-size: 1.25rem; text-decoration: none; border: 2px solid var(--ink); border-radius: 999px; padding: 12px 20px; box-shadow: 3px 3px 0 var(--ink); }
.rp-play:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }

.rp-ingredients, .rp-tips { padding-left: 1.2em; }
.rp-ingredients li, .rp-tips li { margin: 6px 0; }
.rp-amount { font-weight: 600; }
.rp-steps { padding-left: 1.4em; }
.rp-steps li { padding-left: 4px; margin: 10px 0; }
.rp-nutrition, .rp-credit { font-size: 0.9rem; color: var(--ink-soft); }

.rp-related ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.rp-related a { display: block; text-decoration: none; }
.rp-related img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 2px solid var(--ink); border-radius: 10px; margin-bottom: 6px; }
.rp-related span { text-decoration: underline; text-decoration-color: var(--marigold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.rp-all { margin-top: 28px; font: 600 1.25rem/1.3 "Crimson Pro", Georgia, serif; }

.rp-index-list { columns: 2 220px; padding-left: 1.1em; }
.rp-index-list li { break-inside: avoid; margin: 6px 0; }

.rp-footer { max-width: 760px; margin: 0 auto; padding: 24px 16px 40px; font-size: 0.9rem; border-top: 2px dashed var(--ink-soft); }

@media (prefers-reduced-motion: reduce) { .rp-play:hover { transform: none; } }
