:root {
  color-scheme: light;
  --ink: #25322a;
  --forest: #263a2e;
  --forest-2: #34503e;
  --cream: #f5f2e9;
  --paper: #fffdf8;
  --white: #fff;
  --coral: #e76f51;
  --coral-dark: #cb5539;
  --sage: #a7b49f;
  --line: #dedbd1;
  --muted: #6b746e;
  --shadow: 0 22px 60px rgba(37, 50, 42, .13);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--cream); }
body { margin: 0; color: var(--ink); background: var(--cream); min-height: 100vh; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .serif { font-family: Iowan Old Style, Baskerville, Georgia, serif; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 12px; font-size: 11px; font-weight: 800; letter-spacing: .17em; }
.eyebrow.warm { color: var(--coral-dark); }
.brand { display: flex; gap: 11px; align-items: center; font-family: Iowan Old Style, Georgia, serif; font-size: 21px; font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--paper); background: var(--forest); font: 700 14px/1 Inter, sans-serif; letter-spacing: -.05em; }
.brand-light .brand-mark { color: var(--forest); background: var(--paper); }

.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.1fr) minmax(420px, .9fr); }
.auth-story { position: relative; overflow: hidden; padding: 48px 7vw; color: var(--paper); background: var(--forest); display: flex; flex-direction: column; justify-content: space-between; }
.auth-story::before, .auth-story::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
.auth-story::before { width: 680px; height: 680px; right: -300px; top: -170px; box-shadow: 0 0 0 95px rgba(255,255,255,.025), 0 0 0 190px rgba(255,255,255,.018); }
.auth-story::after { width: 300px; height: 300px; left: -120px; bottom: 5%; }
.story-copy { position: relative; z-index: 1; max-width: 650px; }
.story-copy h1 { margin: 0 0 28px; font-size: clamp(50px, 6.4vw, 92px); line-height: .91; font-weight: 500; letter-spacing: -.055em; }
.story-copy h1 em { color: #f2ac90; font-weight: 500; }
.story-copy > p:last-child { max-width: 560px; font-size: 20px; line-height: 1.6; color: #d8dfd9; }
.story-chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; }
.story-chips span { padding: 10px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; font-size: 13px; color: #dce4de; background: rgba(255,255,255,.04); }
.auth-panel { display: grid; place-items: center; padding: 40px; background: var(--paper); }
.auth-box { width: min(420px, 100%); }
.auth-box h2 { margin-bottom: 7px; font-size: 48px; font-weight: 500; letter-spacing: -.035em; }
.auth-box form { margin: 32px 0 18px; display: grid; gap: 18px; }
label { display: grid; gap: 8px; color: #3d4841; font-size: 13px; font-weight: 700; }
label small { color: var(--muted); font-weight: 500; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; color: var(--ink); background: var(--white); outline: none; transition: border .18s, box-shadow .18s; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(52,80,62,.1); }
.field-help { margin: -2px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.button { min-height: 44px; border: 0; border-radius: 12px; padding: 11px 18px; font-weight: 750; transition: transform .12s, background .18s; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: white; background: var(--coral); box-shadow: 0 8px 20px rgba(231,111,81,.22); }
.button.primary:hover { background: var(--coral-dark); }
.button.secondary { color: white; background: var(--forest); }
.button.ghost { color: var(--ink); background: transparent; border: 1px solid var(--line); }
.button.wide { width: 100%; }
.button.compact { min-height: 38px; padding: 8px 13px; }
.text-button { border: 0; padding: 4px 0; color: var(--forest-2); background: transparent; font-size: 13px; font-weight: 750; }
.danger-button { border: 0; padding: 10px 0; color: #b1382d; background: transparent; text-align: left; font-weight: 700; }
.icon-button { border: 0; color: var(--muted); background: transparent; font-size: 30px; line-height: 1; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 244px 1fr; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 244px; padding: 30px 22px 20px; display: flex; flex-direction: column; color: #dce3de; background: var(--forest); z-index: 5; }
.sidebar > .brand { margin: 0 8px 42px; color: var(--white); }
.sidebar .brand-mark { color: var(--forest); background: var(--paper); }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav a { min-height: 44px; display: flex; align-items: center; gap: 13px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 650; }
.sidebar nav a span { width: 20px; color: #a9b8ae; text-align: center; font-size: 18px; }
.sidebar nav a b { margin-left: auto; display: grid; place-items: center; min-width: 23px; height: 23px; padding: 0 6px; border-radius: 999px; color: var(--forest); background: #f2b19c; font-size: 11px; }
.sidebar nav a.active, .sidebar nav a:hover { color: white; background: rgba(255,255,255,.1); }
.sidebar nav a.active span { color: #f2b19c; }
.sidebar-section { min-height: 0; margin: 28px 5px; flex: 1; overflow: auto; }
.sidebar-heading { margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; color: #9daaa2; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.sidebar-heading button { border: 0; color: #bbc5bf; background: transparent; font-size: 20px; }
#collection-nav { display: grid; gap: 2px; }
#collection-nav button { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; padding: 9px 7px; color: #dce3de; background: transparent; text-align: left; font-size: 13px; }
#collection-nav i { width: 8px; height: 8px; border-radius: 50%; }
#collection-nav small { margin-left: auto; color: #87958d; }
.sidebar-profile { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); display: grid; grid-template-columns: 36px 1fr auto; gap: 9px; align-items: center; }
.sidebar-profile span:nth-child(2) { min-width: 0; display: grid; }
.sidebar-profile strong, .sidebar-profile small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-profile strong { font-size: 12px; color: white; }
.sidebar-profile small { font-size: 10px; color: #9ba8a0; }
.sidebar-profile button { border: 0; color: #9ba8a0; background: transparent; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--forest); background: #f2b19c; font-weight: 800; }

.content-shell { grid-column: 2; min-width: 0; padding-bottom: 30px; }
.view { min-height: 100vh; padding: 42px clamp(28px, 5vw, 78px); }
.mobile-header, .mobile-nav { display: none; }
.mobile-header-actions { display: flex; align-items: center; gap: 8px; }
.mobile-settings { border: 0; color: var(--forest); background: transparent; font-size: 21px; }
.page-header { margin-bottom: 32px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.page-header h1 { margin: 0 0 6px; font-size: clamp(38px, 4vw, 58px); line-height: 1; font-weight: 500; letter-spacing: -.045em; }
.page-header p { margin: 0; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.search { min-width: 280px; position: relative; }
.search input { padding-left: 38px; background: rgba(255,255,255,.7); }
.search::before { content: "⌕"; position: absolute; left: 14px; top: 9px; z-index: 1; color: var(--muted); font-size: 22px; }

.hero { position: relative; min-height: 278px; overflow: hidden; margin-bottom: 38px; padding: 45px 48px; border-radius: 26px; color: var(--paper); background: linear-gradient(120deg, #2a4032 0%, #3e5e48 100%); box-shadow: var(--shadow); }
.hero::after { content: ""; position: absolute; width: 420px; height: 420px; right: -80px; top: -190px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; box-shadow: 0 0 0 65px rgba(255,255,255,.035), 0 0 0 130px rgba(255,255,255,.025); }
.hero-copy { position: relative; z-index: 1; max-width: 570px; }
.hero h1 { margin: 0 0 16px; font-size: clamp(42px, 5vw, 70px); line-height: .95; font-weight: 500; letter-spacing: -.045em; }
.hero h1 em { color: #f3af98; font-weight: 500; }
.hero p:not(.eyebrow) { max-width: 510px; margin-bottom: 26px; color: #dce3de; font-size: 16px; line-height: 1.55; }
.hero .button { display: inline-flex; align-items: center; }

.section-heading { margin: 0 0 18px; display: flex; align-items: baseline; justify-content: space-between; gap: 15px; }
.section-heading h2 { margin: 0; font-size: 27px; font-weight: 550; letter-spacing: -.025em; }
.section-heading button, .section-heading a { border: 0; color: var(--coral-dark); background: transparent; font-size: 12px; font-weight: 750; }
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 22px; }
.recipe-card { overflow: hidden; border: 1px solid rgba(37,50,42,.07); border-radius: 18px; background: var(--paper); box-shadow: 0 8px 25px rgba(37,50,42,.06); transition: transform .18s, box-shadow .18s; cursor: pointer; }
.recipe-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(37,50,42,.12); }
.recipe-image { position: relative; aspect-ratio: 4/3; overflow: hidden; display: grid; place-items: center; color: #718077; background: linear-gradient(135deg, #dce3d8, #ece8db); font: 500 44px Iowan Old Style, Georgia, serif; }
.recipe-image img { width: 100%; height: 100%; object-fit: cover; }
.favorite { position: absolute; right: 11px; top: 11px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; color: var(--ink); background: rgba(255,255,255,.9); box-shadow: 0 3px 12px rgba(0,0,0,.14); font-size: 17px; }
.favorite.on { color: var(--coral-dark); }
.recipe-card-body { padding: 15px 16px 17px; }
.source-label { margin-bottom: 6px; color: var(--coral-dark); font-size: 9px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.recipe-card h3 { margin: 0 0 9px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-family: inherit; font-size: 15px; line-height: 1.3; font-weight: 750; }
.recipe-meta { display: flex; gap: 13px; color: var(--muted); font-size: 11px; }
.empty-state { grid-column: 1/-1; padding: 54px 24px; border: 1px dashed #c9c8bf; border-radius: 18px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; margin-bottom: 7px; color: var(--ink); font: 500 25px Iowan Old Style, Georgia, serif; }

.quick-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quick-card { min-height: 150px; padding: 24px; border-radius: 18px; background: var(--paper); border: 1px solid rgba(37,50,42,.07); cursor: pointer; }
.quick-card b { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 16px; border-radius: 11px; color: var(--coral-dark); background: #f9ded5; }
.quick-card h3 { margin-bottom: 5px; font-family: inherit; font-size: 15px; }
.quick-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.planner-toolbar { display: flex; gap: 10px; align-items: center; }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.day-column { min-height: 530px; padding: 14px; border: 1px solid rgba(37,50,42,.08); border-radius: 17px; background: rgba(255,255,255,.55); scroll-snap-align: start; }
.day-column.today { border-color: #94a896; box-shadow: inset 0 3px var(--forest-2); }
.day-head { margin-bottom: 20px; text-align: center; }
.day-head b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.day-head span { font: 500 28px Iowan Old Style, Georgia, serif; }
.meal-slot { min-height: 117px; margin-bottom: 12px; }
.meal-slot > label { margin-bottom: 6px; color: var(--muted); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.plan-card { position: relative; padding: 12px; border-radius: 12px; background: var(--paper); box-shadow: 0 5px 15px rgba(37,50,42,.07); font-size: 12px; font-weight: 700; }
.plan-card small { display: block; margin-top: 5px; color: var(--muted); font-weight: 500; }
.plan-card button { position: absolute; top: 3px; right: 6px; border: 0; color: var(--muted); background: transparent; }
.add-meal { width: 100%; min-height: 56px; border: 1px dashed #c7cac2; border-radius: 12px; color: #879087; background: transparent; font-size: 20px; }

.grocery-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; }
.grocery-main { display: grid; gap: 22px; }
.aisle-card { overflow: hidden; border-radius: 16px; background: var(--paper); border: 1px solid rgba(37,50,42,.07); }
.aisle-card h3 { margin: 0; padding: 14px 17px; border-bottom: 1px solid #ece9e0; font-family: inherit; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; }
.grocery-item { min-height: 50px; display: grid; grid-template-columns: 26px 1fr auto 24px; gap: 10px; align-items: center; padding: 9px 16px; border-bottom: 1px solid #f0ede5; }
.grocery-item:last-child { border-bottom: 0; }
.grocery-item input { width: 19px; height: 19px; accent-color: var(--forest); }
.grocery-item.checked span { color: #929992; text-decoration: line-through; }
.grocery-item small { color: var(--muted); }
.grocery-item button { border: 0; color: #a3aaa5; background: transparent; }
.grocery-aside { align-self: start; position: sticky; top: 28px; padding: 22px; border-radius: 18px; color: var(--paper); background: var(--forest); }
.grocery-aside h3 { margin-bottom: 8px; font-size: 24px; font-weight: 500; }
.grocery-aside p { color: #cad4cc; font-size: 12px; line-height: 1.5; }
.grocery-aside form { display: grid; gap: 9px; }

.recipe-detail { max-width: 1100px; margin: 0 auto; }
.back-button { margin-bottom: 22px; border: 0; color: var(--muted); background: transparent; font-weight: 700; }
.detail-hero { display: grid; grid-template-columns: minmax(300px, .9fr) 1.1fr; gap: 45px; align-items: center; }
.detail-image { aspect-ratio: 4/3; overflow: hidden; display: grid; place-items: center; border-radius: 24px; background: #dce3d8; font: 500 80px Iowan Old Style, Georgia, serif; }
.detail-image img { width: 100%; height: 100%; object-fit: cover; }
.detail-copy h1 { margin: 0 0 16px; font-size: clamp(40px, 5vw, 68px); line-height: .95; font-weight: 500; letter-spacing: -.045em; }
.detail-copy > p { color: var(--muted); line-height: 1.6; }
.detail-actions { margin: 24px 0; display: flex; gap: 10px; flex-wrap: wrap; }
.detail-facts { display: flex; flex-wrap: wrap; gap: 26px; }
.detail-facts span { display: grid; gap: 3px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.detail-facts b { color: var(--ink); font-size: 15px; text-transform: none; letter-spacing: 0; }
.recipe-body { margin-top: 50px; display: grid; grid-template-columns: .78fr 1.22fr; gap: 60px; }
.recipe-body h2 { font-size: 30px; font-weight: 500; }
.serving-control { margin-bottom: 22px; display: flex; align-items: center; gap: 9px; }
.serving-control button { width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.ingredient-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 13px; }
.ingredient-list li { padding-bottom: 13px; border-bottom: 1px solid var(--line); line-height: 1.45; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 26px; }
.steps li { position: relative; min-height: 40px; padding-left: 55px; line-height: 1.65; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -4px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: white; background: var(--coral); font-weight: 800; }

dialog { max-width: min(760px, calc(100vw - 28px)); width: 100%; padding: 0; border: 0; border-radius: 24px; color: var(--ink); background: var(--paper); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(23,32,26,.65); backdrop-filter: blur(4px); }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 26px 30px 20px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0; font-size: 34px; font-weight: 500; }
.modal-body { padding: 26px 30px 30px; display: grid; gap: 18px; }
.import-source-tabs { display: flex; gap: 8px; padding: 18px 30px 0; }
.import-source-tabs button { border: 0; border-radius: 999px; padding: 8px 14px; color: var(--muted); background: #ebe9e1; font-size: 12px; font-weight: 750; }
.import-source-tabs button.active { color: white; background: var(--forest); }
.drop-zone { min-height: 170px; place-items: center; border: 1.5px dashed #b9beb8; border-radius: 16px; color: var(--muted); background: #f7f5ee; text-align: center; }
.drop-zone input { width: auto; border: 0; background: transparent; }
.photo-preview { max-height: 250px; max-width: 100%; margin: auto; border-radius: 14px; }
.editor-modal { max-width: min(960px, calc(100vw - 28px)); }
.split-form { grid-template-columns: 1fr 1fr; align-items: start; }
.form-column { display: grid; gap: 16px; }
.full { grid-column: 1/-1; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.warning-box { padding: 13px 14px; border-radius: 11px; color: #725527; background: #fff1ce; font-size: 12px; line-height: 1.5; }
.settings-list section { padding-bottom: 22px; border-bottom: 1px solid var(--line); display: grid; gap: 12px; }
.settings-list section:last-child { border: 0; }
.settings-list h3 { margin: 0; font-size: 23px; font-weight: 500; }
.settings-list p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.settings-list .button { justify-self: start; }

.cook-dialog { max-width: none; width: 100vw; height: 100vh; max-height: none; border-radius: 0; color: var(--paper); background: var(--forest); }
.cook-close { position: fixed; right: 24px; top: 20px; z-index: 2; width: 45px; height: 45px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: white; background: rgba(0,0,0,.15); font-size: 28px; }
#cook-content { min-height: 100%; max-width: 900px; margin: auto; padding: 8vh 8vw; display: grid; align-content: center; }
.cook-step { font: 500 clamp(34px, 5.7vw, 72px)/1.22 Iowan Old Style, Georgia, serif; }
.cook-progress { margin-bottom: 28px; color: #f3b09a; font-size: 12px; font-weight: 800; letter-spacing: .15em; }
.cook-controls { margin-top: 48px; display: flex; gap: 12px; }
.cook-controls button { border-color: rgba(255,255,255,.2); color: white; }

.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; max-width: min(440px, calc(100vw - 30px)); transform: translate(-50%, 25px); opacity: 0; pointer-events: none; padding: 12px 17px; border-radius: 999px; color: white; background: #17251c; box-shadow: var(--shadow); font-size: 13px; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 210px 1fr; }
  .sidebar { width: 210px; padding-inline: 15px; }
  .content-shell { grid-column: 2; }
  .view { padding-inline: 28px; }
  .quick-grid { grid-template-columns: 1fr; }
  .grocery-layout { grid-template-columns: 1fr; }
  .grocery-aside { position: static; order: -1; }
  .detail-hero { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-story { min-height: 42vh; padding: 28px 24px 35px; }
  .story-copy h1 { font-size: 49px; margin-top: 70px; }
  .story-copy > p:last-child { font-size: 15px; }
  .story-chips { display: none; }
  .auth-panel { padding: 38px 24px 55px; }
  .auth-box h2 { font-size: 39px; }
  .app-shell { display: block; }
  .sidebar { display: none; }
  .content-shell { padding: 0 0 78px; }
  .mobile-header { position: sticky; top: 0; z-index: 4; height: 66px; padding: env(safe-area-inset-top) 17px 0; display: flex; justify-content: space-between; align-items: center; background: rgba(245,242,233,.94); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(37,50,42,.08); }
  .mobile-header .brand { font-size: 17px; }
  .mobile-header .brand-mark { width: 32px; height: 32px; border-radius: 10px; font-size: 12px; }
  .mobile-nav { position: fixed; z-index: 9; inset: auto 0 0; min-height: 66px; padding: 7px 12px calc(7px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5,1fr); align-items: center; border-top: 1px solid rgba(37,50,42,.1); background: rgba(255,253,248,.96); backdrop-filter: blur(14px); }
  .mobile-nav a { display: grid; place-items: center; gap: 2px; color: var(--muted); font-size: 9px; font-weight: 700; }
  .mobile-nav a span { font-size: 19px; line-height: 1; }
  .mobile-nav a.active { color: var(--forest); }
  .mobile-nav button { justify-self: center; width: 48px; height: 48px; border: 0; border-radius: 50%; color: white; background: var(--coral); box-shadow: 0 7px 17px rgba(231,111,81,.3); font-size: 28px; }
  .view { min-height: auto; padding: 27px 17px; }
  .page-header { margin-bottom: 23px; display: block; }
  .page-header h1 { font-size: 41px; }
  .header-actions { margin-top: 18px; }
  .header-actions .button.primary { display: none; }
  .search { min-width: 0; width: 100%; }
  .hero { min-height: 310px; padding: 34px 26px; border-radius: 21px; }
  .hero h1 { font-size: 48px; }
  .hero::after { right: -250px; }
  .recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .recipe-card { border-radius: 14px; }
  .recipe-card-body { padding: 12px; }
  .recipe-meta { display: none; }
  .quick-grid { margin-top: 28px; }
  .week-grid { grid-template-columns: repeat(7, 82vw); }
  .day-column { min-height: 430px; }
  .recipe-body { grid-template-columns: 1fr; gap: 42px; }
  .detail-hero { gap: 24px; }
  .detail-copy h1 { font-size: 43px; }
  .detail-actions .button { flex: 1; }
  .split-form { grid-template-columns: 1fr; }
  .modal { border-radius: 20px; }
  .modal-header { padding: 22px 20px 17px; }
  .modal-body { padding: 22px 20px; }
  .import-source-tabs { padding-inline: 20px; }
  #cook-content { padding-inline: 24px; }
}

@media (max-width: 390px) {
  .recipe-grid { grid-template-columns: 1fr; }
  .recipe-image { aspect-ratio: 16/9; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.legal-page { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
.legal-page .brand { display: inline-flex; margin-bottom: 56px; }
.legal-page .brand img { width: 42px; height: 42px; border-radius: 13px; }
.legal-page h1 { margin: 10px 0 28px; font: 600 clamp(2.5rem, 8vw, 5rem)/.96 var(--display); letter-spacing: -.04em; }
.legal-page h2 { margin: 34px 0 10px; font: 600 1.65rem/1.2 var(--display); }
.legal-page p { color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.legal-page a { color: var(--ink); }
