/* recipehub.io — same brand as the app: coral→orange gradient, Poppins headings. */
:root {
  --bg: #FBF8F6;
  --surface: #FFFFFF;
  --text: #1F2430;
  --muted: #6B6560;
  --line: #ECE4DE;
  --primary: #F0483E;
  --primary-soft: #FDE9E4;
  --grad: linear-gradient(135deg, #FF8A3D, #F0483E);
  --radius: 18px;
  --font-display: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans TC", "Noto Sans SC", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15131A; --surface: #1F1C24; --text: #F2EEEB; --muted: #A79F99; --line: #34303A;
    --primary: #FF5A4E; --primary-soft: #3A2220;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font-body); }
a { color: var(--primary); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 700; }
h2 { font-size: 1.5rem; font-weight: 600; margin-top: 2em; }
h3 { font-size: 1.1rem; font-weight: 600; margin-top: 1.5em; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 1.15rem var(--font-display); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-header nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: .95rem; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--text); }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 40px 0 56px; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-art { aspect-ratio: 1; border-radius: 40px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 30px 60px -30px rgba(240, 72, 62, .6); }
.hero-art img { width: 58%; border-radius: 22%; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; padding-top: 16px; } .hero-art { max-width: 280px; } }

.badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; text-decoration: none; }
.badge.soft { background: var(--primary-soft); color: var(--primary); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding-bottom: 56px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); }
.emoji { font-size: 1.6rem; margin-bottom: 8px; }

.doc { padding: 24px 0 64px; }
.doc .updated { color: var(--muted); font-size: .95rem; }
.doc li { margin: .35em 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.callout { background: var(--primary-soft); border-radius: var(--radius); padding: 16px 20px; margin: 1.2em 0; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.site-footer a { color: var(--muted); }

/* Shared recipe page */
.recipe-hero { aspect-ratio: 16 / 10; border-radius: 24px; overflow: hidden; background: var(--line); margin: 8px 0 24px; }
.recipe-hero img { width: 100%; height: 100%; object-fit: cover; }
.meta { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 20px; }
.pill { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .9rem; }
.credit { color: var(--muted); font-size: .95rem; }
.ingredients { list-style: none; padding: 0; margin: 0; }
.ingredients li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; }
.ingredients .qty { font-weight: 600; min-width: 5.5em; }
.steps { padding-left: 1.3em; }
.steps li { margin: .7em 0; }
.cta { position: sticky; bottom: 16px; margin: 32px 0; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; box-shadow: 0 12px 30px -18px rgba(0,0,0,.35); }
.lang-switch { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; font-size: .9rem; }
.lang-switch a { text-decoration: none; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.lang-switch a[aria-current="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
