:root {
  --bg: #0f0f11; --surface: #17171b; --border: #2a2a31;
  --text: #ececf1; --muted: #a7a7b3; --dim: #6f6f7d;
  --accent: #ff8a5b; --accent-ink: #241009;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; flex-wrap: wrap; gap: 8px; }
.brand { font-weight: 700; color: var(--text); }
.nav-links a { margin-left: 16px; color: var(--muted); font-size: 0.95rem; }
.nav-links a:hover { color: var(--accent); }

.hero-title { padding: 36px 0 8px; }
.hero-title h1 { font-size: 2rem; margin: 0 0 6px; }
.hero-title p { color: var(--muted); margin: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 24px 0; }
.card { display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px; }
.card:hover { border-color: var(--accent); text-decoration: none; }
.card h2 { margin: 0 0 6px; font-size: 1.15rem; color: var(--text); }
.card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.card-meta { margin-top: 10px; color: var(--dim); font-size: 0.8rem; display: flex; gap: 10px; }

.pill { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em;
  border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; color: var(--dim); }
.pill.public { color: #7bd88f; border-color: #2f5a3a; }
.pill.private { color: var(--muted); }

.recipe h1 { margin: 28px 0 8px; }
.recipe-meta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; color: var(--dim); font-size: 0.85rem; margin-bottom: 18px; }
.inline { display: inline; margin: 0; }
button.mini, .quick-timers button { background: transparent; border: 1px solid var(--border);
  color: var(--muted); border-radius: 8px; padding: 3px 10px; font-size: 0.82rem; cursor: pointer; }
button.mini:hover, .quick-timers button:hover { border-color: var(--accent); color: var(--accent); }

.temp-callout { background: #1c140f; border: 1px solid #4a2e1c; border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 14px 18px; margin: 20px 0; }
.temp-callout h2 { font-size: 1.05rem; margin: 0 0 8px; }
.temp-callout ul { margin: 0; padding-left: 18px; }
.temp-callout li { margin: 6px 0; }
.temp-callout .note { display: block; color: var(--muted); font-size: 0.85rem; }
.small-link { display: inline-block; margin-top: 8px; font-size: 0.85rem; }

.tools-box { background: #14171c; border: 1px solid var(--border); border-left: 3px solid #6f8cff;
  border-radius: 10px; padding: 14px 18px; margin: 24px 0; }
.tools-box h2 { font-size: 1.05rem; margin: 0 0 8px; }
.tools-box ul { margin: 0; padding-left: 18px; }
.tools-box li { margin: 7px 0; }
.tools-box .note { display: block; color: var(--muted); font-size: 0.85rem; }

.ingredients { list-style: none; padding: 0; }
.ingredients li { display: flex; align-items: baseline; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--border); }
.ingredients .qty { color: var(--muted); min-width: 92px; font-variant-numeric: tabular-nums; }
.ingredients .name { flex: 1; }
.ingredients .shop { font-size: 0.75rem; color: var(--dim); border: 1px solid var(--border); border-radius: 6px; padding: 0 7px; }
.ingredients .shop:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
.steps li { margin: 10px 0; }

.table-wrap { overflow-x: auto; margin: 22px 0; }
table.temps { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.temps th, table.temps td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.temps th { color: var(--muted); font-weight: 600; }
table.temps .num { text-align: center; font-variant-numeric: tabular-nums; }
table.temps .note { color: var(--muted); font-size: 0.88rem; }

.timer-form { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.timer-form input { background: var(--surface); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 8px 10px; }
.timer-form input#t-label { flex: 1; min-width: 140px; }
.timer-form input[type=number] { width: 84px; }
.timer-form button, .quick-timers button { padding: 8px 14px; }
.quick-timers { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.timers { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 18px 0; }
.timer { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; text-align: center; }
.timer.done { border-color: var(--accent); animation: flash 1s steps(1) infinite; }
@keyframes flash { 50% { background: #3a1c0e; } }
.timer .clock { font-size: 2rem; font-variant-numeric: tabular-nums; margin: 6px 0; }
.timer .label { color: var(--muted); }
.timer .controls { margin-top: 8px; display: flex; gap: 6px; justify-content: center; }

.my-list { list-style: none; padding: 0; }
.my-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.my-list li a { flex: 1; }

.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 20px 0; color: var(--dim); font-size: 0.85rem; }
.site-footer .disclosure { color: var(--muted); }

@media (max-width: 480px) { .nav-links a { margin-left: 10px; } }
