@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Kalam:wght@400;700&display=swap');

:root {
  --paper: #f5efe4;
  --paper-deep: #e9decc;
  --ink: #302a24;
  --muted: #786e62;
  --tomato: #b85e43;
  --tomato-dark: #93452f;
  --green: #66785b;
  --white: #fffdf8;
  --line: #e3d8c8;
  --shadow: 0 12px 35px rgba(65, 47, 31, .08);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; line-height: 1.6; }
a { color: var(--tomato-dark); }
a:hover { color: var(--tomato); }
.site-header { border-bottom: 1px solid var(--line); background: rgba(255,253,248,.82); }
.header-inner { max-width: 1080px; margin: auto; padding: 18px 24px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.brand { color: var(--ink); text-decoration:none; font-size: 1.55rem; font-weight:700; letter-spacing:-.06em; }
.brand span { color: var(--tomato); }
.tagline-small { color:var(--muted); font-size:.83rem; }
.nav { display:flex; gap:18px; align-items:center; font-size:.94rem; }
.nav a { text-decoration:none; color:var(--ink); }
.wrap { max-width: 920px; margin: auto; padding: 36px 24px 70px; }
.hero { padding: 32px 0 30px; }
.eyebrow { color:var(--green); font-weight:700; text-transform:uppercase; letter-spacing:.12em; font-size:.73rem; }
h1,h2,h3 { line-height:1.18; letter-spacing:-.035em; }
h1 { font-size: clamp(2.4rem, 7vw, 4.5rem); margin:10px 0 12px; }
h2 { font-size:1.75rem; margin:0 0 12px; }
h3 { font-size:1.2rem; }
.hero .script { font-family:Kalam,cursive; color:var(--tomato); font-size:clamp(1.25rem,3vw,1.8rem); margin:0; }
.intro { max-width:620px; color:var(--muted); font-size:1.05rem; }
.section-head { display:flex; justify-content:space-between; align-items:end; gap:18px; margin:25px 0 15px; }
.recipe-list { display:grid; gap:14px; }
.recipe-card { display:grid; grid-template-columns: 170px 1fr; gap:20px; background:var(--white); border:1px solid var(--line); border-radius:18px; padding:14px; text-decoration:none; color:inherit; box-shadow:var(--shadow); transition:transform .15s ease; }
.recipe-card:hover { transform:translateY(-2px); color:inherit; }
.recipe-card img { width:100%; height:135px; object-fit:cover; border-radius:12px; background:var(--paper-deep); }
.recipe-card h3 { margin:5px 0 7px; }
.recipe-card p { color:var(--muted); margin:0; }
.meta { color:var(--muted); font-size:.82rem; }
.empty { padding:28px; background:var(--white); border:1px dashed var(--line); border-radius:16px; color:var(--muted); }
.btn, button { display:inline-flex; align-items:center; justify-content:center; border:0; border-radius:999px; padding:11px 18px; background:var(--tomato); color:white; font:600 .95rem "DM Sans",sans-serif; text-decoration:none; cursor:pointer; }
.btn:hover, button:hover { background:var(--tomato-dark); color:white; }
.btn.secondary { background:var(--paper-deep); color:var(--ink); }
.btn.small { padding:8px 13px; font-size:.85rem; }
.recipe-hero { margin:0 0 26px; }
.recipe-hero img { width:100%; max-height:430px; object-fit:cover; border-radius:20px; background:var(--paper-deep); }
.recipe-title { margin:8px 0; }
.recipe-layout { display:grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr); gap:28px; align-items:start; }
.paper-card { background:var(--white); border:1px solid var(--line); border-radius:18px; padding:22px; box-shadow:var(--shadow); margin-bottom:18px; }
.paper-card h2 { font-size:1.35rem; }
.ingredients { list-style:none; padding:0; margin:0; }
.ingredients li { padding:8px 0; border-bottom:1px solid var(--line); }
.ingredients li:last-child { border-bottom:0; }
.steps { padding-left:22px; }
.steps li { padding:0 0 14px 5px; }
.note { border-left:4px solid var(--green); padding:12px 15px; background:#f0f1e9; border-radius:0 12px 12px 0; margin:12px 0; }
.source-box { background:#f5eee5; border-radius:14px; padding:16px; margin:20px 0; }
.source-box p { margin:5px 0; }
.form-card { background:var(--white); border:1px solid var(--line); border-radius:18px; padding:22px; margin:18px 0; }
label { display:block; font-weight:600; margin:12px 0 5px; }
input, textarea, select { width:100%; padding:11px 12px; border:1px solid #d7cbbb; border-radius:10px; background:#fffefa; color:var(--ink); font:inherit; }
textarea { min-height:100px; resize:vertical; }
input:focus, textarea:focus, select:focus { outline:2px solid #d9a28d; border-color:var(--tomato); }
.form-row { display:grid; grid-template-columns:1fr 2fr auto; gap:10px; align-items:end; }
.repeat-row { display:grid; grid-template-columns:1fr 2fr auto; gap:10px; margin:8px 0; align-items:end; }
.repeat-row button { padding:9px 12px; background:#e8ddd0; color:var(--ink); }
.form-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:18px; }
.alert { padding:13px 16px; border-radius:12px; background:#f6e7d9; margin:15px 0; }
.alert.success { background:#e8efe3; }
.admin-table { width:100%; border-collapse:collapse; background:var(--white); border-radius:14px; overflow:hidden; }
.admin-table th,.admin-table td { padding:12px; border-bottom:1px solid var(--line); text-align:left; }
.admin-table th { background:#eee5d8; }
.footer { border-top:1px solid var(--line); color:var(--muted); text-align:center; padding:28px 20px; font-size:.85rem; }
.small-muted { color:var(--muted); font-size:.88rem; }
.login-box { max-width:460px; margin:35px auto; }
.inline { display:inline; }
@media (max-width:650px) {
 .header-inner { align-items:flex-start; flex-direction:column; padding:16px 18px; }
 .nav { flex-wrap:wrap; gap:13px; }
 .wrap { padding:26px 17px 55px; }
 .recipe-card { grid-template-columns:1fr; gap:12px; }
 .recipe-card img { height:190px; }
 .recipe-layout { grid-template-columns:1fr; }
 .form-row,.repeat-row { grid-template-columns:1fr 1fr auto; }
 .section-head { align-items:flex-start; flex-direction:column; }
}
