:root {
  --ink: #25231f;
  --muted: #81786d;
  --paper: #f7f2ea;
  --card: #fffdf9;
  --line: #e8dfd4;
  --accent: #8c4d2d;
  --accent-dark: #5d3222;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Avenir Next', 'Helvetica Neue', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); padding-bottom: 86px; }
button, input { font: inherit; }
button { cursor: pointer; }
.site-header { display: flex; align-items: center; justify-content: space-between; max-width: 1180px; margin: auto; padding: 22px clamp(20px, 4vw, 52px); }
.brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fffaf2; background: var(--accent-dark); font: 700 12px/1 var(--sans); letter-spacing: .06em; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; letter-spacing: .02em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 10px; letter-spacing: .04em; }
.header-actions { display: flex; gap: 8px; }
.icon-button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: transparent; font-size: 20px; }
.icon-button:hover, .icon-button:focus-visible { background: #fffaf4; border-color: var(--accent); outline: none; }
main { max-width: 1180px; margin: auto; padding: 0 clamp(20px, 4vw, 52px); }
.intro { display: flex; justify-content: space-between; align-items: center; min-height: 300px; padding: 48px 0 40px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 9px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 17px; font: 400 clamp(42px, 6vw, 76px)/.98 var(--serif); letter-spacing: -.03em; }
h1 em { color: var(--accent); font-style: italic; }
.intro-copy { max-width: 400px; margin-bottom: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.intro-stamp { display: grid; place-items: center; width: 160px; height: 160px; border: 1px solid #d6b9a5; border-radius: 50%; color: var(--accent); transform: rotate(9deg); }
.intro-stamp span { font-size: 9px; font-weight: 800; letter-spacing: .22em; }
.intro-stamp strong { margin: -7px 0; font: 56px/1 var(--serif); }
.toolbar { padding: 35px 0 21px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; }
h2 { margin-bottom: 0; font: 400 34px/1 var(--serif); }
.recipe-count { color: var(--muted); font-size: 12px; }
.filter-row { display: flex; gap: 12px; justify-content: space-between; margin-top: 23px; }
.segmented { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 24px; background: #f0e8df; }
.filter { min-width: 67px; padding: 8px 14px; border: 0; border-radius: 18px; color: var(--muted); background: transparent; font-size: 12px; }
.filter.active { color: var(--ink); background: #fffdf9; box-shadow: 0 2px 8px #5d32220d; }
.search-wrap { display: flex; align-items: center; gap: 7px; min-width: 180px; padding: 0 13px; border: 1px solid var(--line); border-radius: 24px; color: var(--muted); background: #fffaf4; }
.search-wrap input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.recipe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-bottom: 40px; }
.recipe-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--card); transition: transform .2s, box-shadow .2s; }
.recipe-card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px #5d322214; }
.recipe-photo { display: block; width: 100%; aspect-ratio: 1.3; object-fit: cover; background: #ded1c3; }
.recipe-card-body { padding: 16px 17px 17px; }
.card-topline { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.recipe-card h3 { margin: 0 0 6px; font: 400 21px/1.06 var(--serif); }
.origin { margin: 0 0 13px; color: var(--muted); font-size: 11px; }
.meta { display: flex; gap: 11px; color: var(--muted); font-size: 10px; }
.premium { padding: 5px 7px; border-radius: 4px; color: #7b4e1c; background: #f5e7c5; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.save-button { position: absolute; top: 12px; right: 12px; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; color: var(--accent); background: #fffdf9dd; font-size: 22px; line-height: 1; }
.save-button.saved { color: #c16a3f; }
.empty-state { padding: 60px 20px; text-align: center; color: var(--muted); }.empty-state strong, .empty-state span { display: block; }.empty-state strong { margin-bottom: 7px; color: var(--ink); font-family: var(--serif); font-size: 22px; }
.bottom-nav { position: fixed; z-index: 4; right: 16px; bottom: 16px; left: 16px; display: flex; justify-content: center; gap: 5px; max-width: 400px; margin: auto; padding: 7px; border: 1px solid #e1d8cd; border-radius: 31px; background: #fffdf9ee; box-shadow: 0 8px 25px #5d32221a; backdrop-filter: blur(15px); }
.nav-item { flex: 1; display: grid; place-items: center; gap: 2px; padding: 7px 12px; border: 0; border-radius: 22px; color: var(--muted); background: transparent; font-size: 10px; text-decoration: none; }.nav-item span { font-size: 17px; line-height: 1; }.nav-item.active { color: var(--accent); background: #f4e9df; }
.recipe-dialog { width: min(720px, calc(100% - 28px)); max-height: min(850px, calc(100% - 28px)); padding: 0; overflow: auto; border: 0; border-radius: 10px; color: var(--ink); background: var(--card); box-shadow: 0 24px 70px #21140d55; }.recipe-dialog::backdrop { background: #24181088; backdrop-filter: blur(3px); }.dialog-close { position: sticky; z-index: 1; top: 13px; float: right; width: 32px; height: 32px; margin: 13px; border: 0; border-radius: 50%; color: var(--ink); background: #fffdf9dd; font-size: 23px; line-height: 1; }.dialog-hero { width: 100%; aspect-ratio: 1.65; object-fit: cover; }.dialog-body { padding: 24px clamp(20px, 5vw, 42px) 36px; }.dialog-body h2 { margin: 7px 0 10px; font-size: 39px; }.dialog-subtitle { color: var(--muted); font-size: 13px; }.dialog-description { margin: 20px 0 25px; color: #5f574e; font-size: 14px; line-height: 1.7; }.detail-columns { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; }.detail-columns h3 { margin: 0 0 12px; font: 400 23px var(--serif); }.ingredient { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12px; }.ingredient span:last-child { color: var(--accent); white-space: nowrap; }.step { display: grid; grid-template-columns: 28px 1fr; gap: 10px; margin-bottom: 17px; }.step-number { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; background: var(--accent); font-size: 11px; }.step strong { display: block; margin-bottom: 4px; font-size: 13px; }.step p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }.toast { position: fixed; z-index: 8; right: 50%; bottom: 92px; padding: 10px 15px; border-radius: 22px; color: white; background: #25231fee; font-size: 12px; opacity: 0; transform: translate(50%, 10px); transition: .2s; pointer-events: none; }.toast.show { opacity: 1; transform: translate(50%, 0); }
@media (max-width: 720px) { .intro { min-height: 270px; padding-top: 30px; }.intro-stamp { width: 100px; height: 100px; }.intro-stamp strong { font-size: 38px; }.intro-stamp span { font-size: 6px; }.recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }.recipe-card h3 { font-size: 17px; }.recipe-card-body { padding: 12px; }.origin { margin-bottom: 10px; }.meta { display: block; line-height: 1.7; }.detail-columns { grid-template-columns: 1fr; gap: 25px; }.dialog-body h2 { font-size: 32px; } }
@media (max-width: 430px) { .intro { align-items: end; }.intro-stamp { flex: 0 0 auto; margin-left: 12px; }.intro-copy { font-size: 13px; }.filter-row { align-items: stretch; flex-direction: column; }.segmented { justify-content: space-between; }.filter { flex: 1; }.search-wrap { height: 40px; }.recipe-grid { grid-template-columns: 1fr 1fr; }.recipe-photo { aspect-ratio: .95; } }
