@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #fbf7f1;
  --surface: #ffffff;
  --surface-2: #f6efe5;
  --text: #2a1d14;
  --text-2: #4d3c30;
  --muted: #7b6a5c;
  --border: #ece2d4;
  --border-strong: #ddcdb8;
  --brand: #e2492f;
  --brand-dark: #c23a22;
  --brand-soft: #fdebe5;
  --herb: #2f8f4e;
  --herb-soft: #e7f5ec;
  --radius: 18px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --shadow-sm: 0 1px 2px rgba(42, 29, 20, .05);
  --shadow: 0 1px 2px rgba(42, 29, 20, .04), 0 8px 24px -12px rgba(42, 29, 20, .16);
  --shadow-lg: 0 2px 4px rgba(42, 29, 20, .04), 0 24px 50px -20px rgba(120, 50, 20, .28);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; background: var(--surface-2); padding: .1em .35em; border-radius: 6px; }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid rgba(226, 73, 47, .4); outline-offset: 2px; border-radius: 8px; }

/* ---------- Header ---------- */
.site-header { background: rgba(251, 247, 241, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 750; font-size: 1.2rem; letter-spacing: -.03em; }
.brand:hover { color: var(--text); text-decoration: none; }
.brand b { color: var(--brand); font-weight: 850; }
.mark { width: 34px; height: 34px; flex: none; }
.main-nav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { color: var(--text-2); font-weight: 600; font-size: .92rem; padding: 7px 12px; border-radius: 10px; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current] { background: var(--brand-soft); color: var(--brand-dark); text-decoration: none; }
@media (max-width: 760px) {
  .header-inner { height: auto; padding: 10px 0; flex-wrap: wrap; gap: 6px; }
  .main-nav { margin-left: 0; width: 100%; }
  .main-nav a { padding: 6px 10px; font-size: .88rem; }
}

/* ---------- Buttons & fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 650; font-size: .95rem; line-height: 1; cursor: pointer; border: 1px solid transparent; border-radius: 12px; padding: 11px 16px; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -8px rgba(226, 73, 47, .8); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; text-decoration: none; }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); text-decoration: none; }
.icon-btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); cursor: pointer; align-self: flex-end; }
.icon-btn:hover { background: var(--surface-2); }
.text-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; }
.text-link .icon { width: 16px; height: 16px; }
.field { display: inline-flex; flex-direction: column; gap: 5px; font-size: .8rem; font-weight: 650; color: var(--muted); text-align: left; min-width: 0; }
.field-block { display: flex; width: 100%; }
.field-inline { flex-direction: row; align-items: center; gap: 8px; }
.field input, .field select, .field textarea { font: inherit; font-size: 1.05rem; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; padding: 11px 13px; min-width: 0; }
.field-inline select { font-size: .92rem; padding: 7px 30px 7px 10px; }
.field select { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b6a5c' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
.field textarea { width: 100%; resize: vertical; line-height: 1.55; font-size: .98rem; font-weight: 500; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(226, 73, 47, .14); }
.hint { color: var(--muted); font-size: .84rem; margin: 0; }

/* ---------- Hero & converter ---------- */
.tool-hero { padding: 26px 0 34px; background: radial-gradient(800px 320px at 85% -60px, rgba(255, 122, 89, .16), transparent 70%), radial-gradient(700px 300px at 0% 0%, rgba(126, 217, 87, .12), transparent 70%); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: .84rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.crumbs .icon { width: 14px; height: 14px; }
.tool-hero h1 { font-size: clamp(2rem, 5vw, 2.9rem); overflow-wrap: anywhere; }
.lede { color: var(--text-2); font-size: 1.08rem; margin: 10px 0 0; max-width: 64ch; }
.answer-line { font-size: 1.12rem; margin: 12px 0 0; color: var(--text-2); }
.answer-line b { color: var(--text); background: linear-gradient(transparent 62%, rgba(255, 191, 31, .45) 62%); }
.tool { margin-top: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 24px; box-shadow: var(--shadow-lg); }
@media (max-width: 560px) { .tool { padding: 18px 14px; border-radius: 20px; } }
.conv { max-width: 860px; }
.conv .field-block { margin-bottom: 14px; }
.conv-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.conv-amount input { width: 130px; }
.conv-eq { font-size: 2rem; font-weight: 300; color: var(--muted); padding: 0 4px 6px; }
.conv-out { display: flex; flex-direction: column; min-width: 200px; flex: 1; }
.conv-big { font-family: var(--serif); font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 700; color: var(--brand-dark); line-height: 1.1; margin: 0; }
.conv-sub { color: var(--muted); font-weight: 600; font-size: .92rem; margin-top: 4px; }
.conv-center { text-align: center; margin: 18px 0 8px; font-size: clamp(1.4rem, 4vw, 2rem); }
.conv-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border-strong); }
.conv-link { margin-top: 12px; }
@media (max-width: 560px) { .conv-eq { display: none; } .conv-out { min-width: 100%; } .conv-amount input { width: 110px; } }

.result-grid, .oven-out { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-top: 18px; }
.result { background: var(--surface-2); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; }
.result span { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.result b { font-family: var(--serif); font-size: 1.5rem; color: var(--text); }
.result small { color: var(--muted); font-size: .8rem; }

/* Scaler */
.tool-wide { max-width: none; }
.scaler-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 800px) { .scaler-layout { grid-template-columns: minmax(0, 1fr); } }
.conv-row-left input { width: 120px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.chip { font: inherit; font-weight: 700; font-size: .9rem; border: 1px solid var(--border-strong); background: var(--surface); border-radius: 999px; padding: 6px 14px; cursor: pointer; color: var(--text-2); }
.chip:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); }
.factor { color: var(--muted); font-weight: 600; font-size: .9rem; margin: 6px 0 10px; }
.scaled { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid var(--border); }
.scaled li { padding: 8px 2px; border-bottom: 1px solid var(--border); font-weight: 550; }
.scaled li.unscaled { color: var(--muted); }

/* Pans */
.pans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
@media (max-width: 700px) { .pans { grid-template-columns: minmax(0, 1fr); } }
.pan { border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px 16px; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.pan legend { font-weight: 750; padding: 0 6px; }
.pan input { width: 80px; }
.pan-result { margin-top: 18px; }
.pan-factor { display: flex; align-items: baseline; gap: 12px; }
.pan-factor span { color: var(--muted); font-weight: 650; }
.pan-factor b { font-family: var(--serif); font-size: 2.4rem; color: var(--brand-dark); }
.tool-actions { display: flex; justify-content: flex-start; }

/* Shopping list */
.list-add { display: flex; gap: 10px; }
.list-add input { flex: 1; min-width: 0; font: inherit; font-size: 1.05rem; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 12px; }
.list-add input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(226, 73, 47, .14); }
.list-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 18px; }
.aisle { background: var(--surface-2); border-radius: 16px; padding: 12px 14px; }
.aisle h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.aisle ul { list-style: none; margin: 0; padding: 0; }
.aisle li { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--border); }
.aisle li:last-child { border-bottom: 0; }
.aisle label { display: flex; align-items: center; gap: 10px; padding: 8px 0; flex: 1; cursor: pointer; font-weight: 600; }
.aisle input { width: 20px; height: 20px; accent-color: var(--herb); flex: none; }
.aisle input:checked + span { text-decoration: line-through; color: var(--muted); }
.aisle .x { border: 0; background: none; font-size: 1.3rem; color: var(--muted); cursor: pointer; padding: 2px 6px; }
.list-empty { margin: 16px 0 0; }
.list-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------- Content ---------- */
.content { padding: 32px 0 10px; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; padding-top: 32px; }
@media (max-width: 960px) { .page-grid { grid-template-columns: minmax(0, 1fr); } }
.page-grid .content { padding-top: 0; }
.prose { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); margin-bottom: 22px; }
@media (max-width: 560px) { .prose { padding: 20px 16px; } }
.prose h2 { font-size: 1.45rem; margin: 26px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-2); line-height: 1.7; }
.prose ul { padding-left: 1.2em; }
.prose.narrow { max-width: 780px; margin: 10px 0 40px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; margin: 4px 0 14px; font-size: .97rem; }
.table th, .table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table th { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.table tbody tr:nth-child(odd) td { background: #fdfaf6; }
.table td:nth-child(2) { font-weight: 700; color: var(--text); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 14px; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding-left: 42px; min-height: 28px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; font-weight: 700; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 14px; }
.sidebar { display: grid; gap: 18px; position: sticky; top: 84px; }
@media (max-width: 960px) { .sidebar { position: static; } }
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.side-card h2 { font-size: 1.15rem; margin-bottom: 8px; }
.link-list { list-style: none; margin: 0 0 10px; padding: 0; }
.link-list li { border-bottom: 1px solid var(--border); }
.link-list li:last-child { border-bottom: 0; }
.link-list a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 2px; color: var(--text); font-weight: 600; font-size: .94rem; }
.link-list a span { color: var(--muted); font-weight: 500; }
.ad { margin: 0 0 22px; min-height: 90px; }

.ing-group { margin-bottom: 26px; }
.ing-group h2, .home-group h2, .more h2 { font-size: 1.5rem; margin-bottom: 14px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.ing-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; color: var(--text); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s, transform .15s; }
.ing-card:hover { text-decoration: none; color: var(--text); border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-1px); }
.ing-card span { color: var(--muted); font-size: .86rem; font-weight: 550; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.tool-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; color: var(--text); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
.tool-card:hover { text-decoration: none; color: var(--text); border-color: var(--brand); box-shadow: var(--shadow); }
.tool-card > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.tool-card > span:last-child span { color: var(--muted); font-size: .85rem; }
.tool-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; flex: none; }
.tool-icon .icon { width: 24px; height: 24px; }
.more { margin: 10px 0 30px; }

/* ---------- Home ---------- */
.home-hero { padding: 50px 0 44px; background: radial-gradient(900px 420px at 90% -20%, rgba(255, 122, 89, .22), transparent 60%), radial-gradient(800px 420px at 0% 10%, rgba(126, 217, 87, .16), transparent 60%); }
.home-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; align-items: center; }
@media (max-width: 900px) { .home-hero-inner { grid-template-columns: minmax(0, 1fr); } }
.home-hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.4rem); line-height: 1.02; }
.home-hero h1 em { color: var(--brand); font-style: italic; }
.home-hero .tool { margin-top: 0; }
.kicker { display: inline-block; font-size: .82rem; font-weight: 750; color: var(--herb); background: var(--herb-soft); border-radius: 999px; padding: 5px 12px; margin-bottom: 16px; }
.home-group { margin-bottom: 30px; }
.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 2.8rem); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; background: #2a1d14; color: #cdbfb1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 28px; padding: 46px 0 28px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { font-size: .9rem; margin-top: 12px; max-width: 40ch; }
.site-footer h3 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 10px; font-family: inherit; }
.site-footer nav { display: flex; flex-direction: column; gap: 6px; }
.site-footer nav a, .footer-legal a { color: #cdbfb1; font-size: .88rem; }
.site-footer nav a:hover, .footer-legal a:hover { color: #fff; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0 26px; }
.footer-legal p { margin: 0; font-size: .84rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: #fff; font-weight: 650; font-size: .92rem; padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 50; }

@media print {
  .site-header, .site-footer, .sidebar, .ad, .tool-actions, .list-add, .list-actions, .more, .crumbs, .faq, .aisle .x { display: none !important; }
  body { background: #fff; }
  .prose, .tool { box-shadow: none; border: 0; padding: 0; }
  .tool-hero { padding: 0; background: none; }
}
