:root {
  --bg: #f7f3eb;
  --card: #fffdf8;
  --ink: #343c30;
  --dim: #696c5e;
  --line: #e3dfd2;
  --accent: #9d4934;
  --accent-dark: #7f3526;
  --green: #526149;
  --ok-bg: #eaf0e3;
  --ok-ink: #3f5735;
  --err-bg: #f9e9e0;
  --err-ink: #903b2c;
  --radius: 16px;
  --serif: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "STSong", Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 14px/1.8 system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
.page-body, .login-body { background-image: radial-gradient(#b9ac912b .6px, transparent .6px); background-size: 7px 7px; }
::selection { background: #e7c9a7; color: #343c30; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 4px; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; }
button, input, textarea { font: inherit; }
button, a, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, .btn { touch-action: manipulation; }
:focus-visible { outline: 3px solid #8c6036; outline-offset: 4px; }
input:focus, textarea:focus { border-color: var(--green); }
input, textarea { min-width: 0; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
input::placeholder, textarea::placeholder { color: #717466; opacity: 1; }
input { padding: 12px 14px; }
textarea { padding: 12px 14px; resize: vertical; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: pretty; }
h1, h2 { font-family: var(--serif); font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 50; top: 10px; left: 10px; transform: translateY(-180%); background: var(--card); padding: 10px 20px; }
.skip-link:focus { transform: none; }

/* 像一本摊开的手账：克制的线、暖纸色、留白。 */
.topbar { border-bottom: 1px solid var(--line); background: #f7f3ebf5; position: sticky; top: 0; z-index: 10; backdrop-filter: blur(16px); }
.topbar-inner { max-width: 1200px; padding: 20px 32px; margin: auto; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); flex-shrink: 0; }
.brand span { font: 600 21px/1.25 var(--serif); letter-spacing: 2px; }
.brand small { display: block; font: 9px/1.8 system-ui, sans-serif; letter-spacing: 2.4px; margin-top: 5px; }
.brand img { flex-shrink: 0; }
.search { display: flex; align-items: center; flex: 1; max-width: 310px; border: 1px solid var(--line); background: #fdfbf5; border-radius: 30px; padding: 0 5px 0 4px; }
.search input { width: 100%; padding: 8px 12px; border: 0; background: transparent; border-radius: 30px; font-size: 12px; }
.search button { padding: 6px 11px; min-height: 36px; border: 0; background: transparent; font-size: 12px; color: var(--green); white-space: nowrap; }
.topbar nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 12px; white-space: nowrap; }
.topbar nav > a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink); }
.topbar nav > a:hover { color: var(--accent); }
.who { border-left: 1px solid var(--line); padding-left: 20px; max-width: 130px; overflow: hidden; text-overflow: ellipsis; color: var(--dim); }
.container { max-width: 1200px; margin: auto; padding: 0 32px 36px; }
.eyebrow { color: var(--green); font-size: 10px; font-weight: 600; letter-spacing: 2px; line-height: 1.8; margin-bottom: 12px; }
.little-line { display: inline-block; vertical-align: middle; width: 26px; height: 1px; background: var(--accent); margin-right: 10px; }
.text-link { font-size: 12px; font-weight: 600; }
.text-link span { margin-left: 12px; }
.back-link { color: var(--dim); font-size: 12px; }
.hint { color: var(--dim); font-size: 11px; line-height: 1.9; margin: 12px 0 0; }
.hint a { text-decoration: underline; }
.dim { color: var(--dim); }
.inline { display: inline; }
form.inline { margin: 0; }

/* 首页：一张餐桌，一点烟火。插画本地内嵌，无外链素材。 */
.home-hero { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; min-height: 405px; padding: 44px 0 47px; border-bottom: 1px solid var(--line); }
.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 { font-size: clamp(30px, 3.1vw, 44px); line-height: 1.55; letter-spacing: 2px; margin: 13px 0 19px; }
.title-dot { color: var(--accent); }
.hero-description { font-size: 13px; color: var(--dim); line-height: 2.1; margin-bottom: 22px; }
.hero-art { position: relative; align-self: stretch; display: grid; align-items: center; }
.hero-art img { display: block; width: 100%; height: auto; transform: rotate(-3deg); }
.hero-caption { position: absolute; right: 22px; bottom: 23px; color: var(--green); font: 12px var(--serif); letter-spacing: 3px; transform: rotate(-4deg); }
.hero-edition { position: absolute; left: 0; bottom: 15px; font-size: 8px; letter-spacing: 2px; color: var(--dim); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h2 { font-size: 20px; margin: 0 0 12px; line-height: 1.6; }
.paste { display: grid; grid-template-columns: .9fr 1.3fr; align-items: center; gap: 28px; padding: 25px 28px; margin: 28px 0 42px; background: #f1eee3; border-color: #dedbcc; border-radius: 12px; }
.paste-heading { display: flex; align-items: center; gap: 18px; }
.paste .eyebrow { margin: 0 0 6px; font-size: 9px; }
.paste h2 { font-size: 19px; margin: 0; }
.section-number { color: var(--accent); font: italic 27px/1.5 Georgia, serif; }
.paste .section-number { display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid #c6c5b3; border-radius: 50%; font: 24px var(--serif); flex-shrink: 0; }
.paste form { display: flex; gap: 8px; }
.paste input { width: 100%; padding: 12px; font-size: 12px; }
.paste button { flex-shrink: 0; font-size: 12px; }
.paste .hint { margin-top: 8px; font-size: 10px; }
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 19px; border: 1px solid var(--line); border-radius: 7px; background: var(--card); color: var(--ink); cursor: pointer; line-height: 1.5; transition: background .18s, color .18s, transform .18s; }
button:hover, .btn:hover { background: #efecdf; color: var(--ink); }
button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: #fffdf8; font-weight: 500; }
button.primary:hover, .btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: white; }
.btn.ghost { border-color: #b9bdac; color: var(--green); background: transparent; }
.btn.ghost:hover { background: #e8ecdf; }
.linklike { background: none; border: 0; border-radius: 3px; padding: 5px 0; min-height: 32px; color: var(--dim); font-size: 12px; }
.linklike:hover { background: none; color: var(--accent); text-decoration: underline; }
.linklike.danger { color: var(--err-ink); }
.flash { padding: 12px 18px; border-radius: 8px; margin: 20px 0; font-size: 13px; border: 1px solid transparent; overflow-wrap: anywhere; }
.flash.ok { background: var(--ok-bg); color: var(--ok-ink); border-color: #d7e0cc; }
.flash.err { background: var(--err-bg); color: var(--err-ink); border-color: #e9cfc1; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 23px; }
.section-heading .eyebrow { margin-bottom: 5px; font-size: 9px; letter-spacing: 1.8px; }
.section-heading h2 { margin: 0; font-size: 25px; letter-spacing: 1px; }
.section-aside { font: 12px var(--serif); letter-spacing: 1px; color: var(--dim); }
.recipe-count { display: inline-block; vertical-align: middle; color: var(--dim); border: 1px solid var(--line); border-radius: 4px; padding: 1px 8px; margin-left: 10px; font: 11px/1.8 system-ui, sans-serif; letter-spacing: 0; white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.recipe { display: flex; flex-direction: column; padding: 0; color: var(--ink); border-radius: 12px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.recipe:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 0 12px 28px #45402e10; }
.cover { position: relative; aspect-ratio: 1.45; background: #ececdd; overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.recipe:hover .cover img { transform: scale(1.035); }
.cover-empty { display: flex; flex-direction: column; gap: 20px; align-items: center; justify-content: center; height: 100%; padding: 25px; background: radial-gradient(ellipse at 25% 15%, #f8eddb, transparent 70%), #e8ebdc; color: var(--green); font: 11px var(--serif); letter-spacing: 2px; }
.recipe:nth-child(3n+2) .cover-empty { background: radial-gradient(ellipse at 25% 15%, #f7e6db, transparent 70%), #ebe0d1; }
.recipe:nth-child(3n+3) .cover-empty { background: radial-gradient(ellipse at 25% 15%, #f9f0d4, transparent 70%), #e6e2cf; }
.plate-drawing { display: block; position: relative; width: 80px; height: 80px; flex-shrink: 0; border: 1px solid #b8ba9b; outline: 6px solid #ffffff50; border-radius: 50%; box-shadow: inset 0 0 0 9px #ffffff30, inset 0 0 0 10px #b8ba9b, 3px 6px 9px #4a503e0b; }
.plate-drawing::after { content: ""; position: absolute; height: 75px; width: 5px; right: -21px; top: 5px; border-left: 2px solid #a18260; border-right: 2px solid #a18260; transform: rotate(10deg); }
.badge { display: inline-flex; align-items: center; gap: 5px; position: absolute; left: 14px; top: 14px; background: #fffdf8ee; color: var(--green); font-size: 10px; padding: 4px 10px; border-radius: 5px; }
.badge.fail { color: var(--err-ink); }
.status-dot { width: 5px; height: 5px; background: var(--green); border-radius: 50%; animation: breathe 1.8s infinite; }
.cover-corner { position: absolute; right: 12px; bottom: 12px; width: 28px; height: 28px; border-radius: 50%; background: #fffdf8e8; text-align: center; line-height: 28px; color: var(--accent); }
.recipe .body { display: flex; flex-direction: column; flex: 1; padding: 19px 21px 15px; }
.card-overline { color: var(--dim); font-size: 10px; letter-spacing: .8px; margin-bottom: 7px; }
.recipe h3 { font: 600 20px/1.6 var(--serif); margin-bottom: 11px; overflow-wrap: anywhere; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; }
.tags span { background: #eeefe5; color: #606b53; padding: 2px 8px; border-radius: 4px; font-size: 10px; line-height: 1.8; }
.stats { display: flex; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); margin: auto 0 0; color: var(--dim); font-size: 10px; }
.card-rating { color: #8c5f29; white-space: nowrap; }
.empty { grid-column: 1 / -1; text-align: center; padding: 65px 24px; border: 1px dashed #cccbb9; border-radius: 12px; background: #fffdf854; }
.empty .plate-drawing { margin: 0 auto 35px; }
.empty h3 { font: 600 24px/1.6 var(--serif); margin-bottom: 12px; }
.empty > p:not(.eyebrow) { font-size: 12px; line-height: 2; color: var(--dim); margin-bottom: 24px; }
.empty .btn { font-size: 12px; }
.foot { max-width: 1136px; margin: 20px auto 0; border-top: 1px solid var(--line); text-align: center; color: var(--dim); padding: 32px 20px 36px; }
.footer-note { font: 15px var(--serif); letter-spacing: 3px; color: var(--green); }
.foot p { font-size: 9px; letter-spacing: 2px; margin: 13px 0 8px; }
.foot small { font-size: 9px; }

/* 菜谱是摊开的书，心得是留给下次的便笺。 */
.page-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 26px 0; }
.recipe-head { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; margin: 0 0 38px; }
.recipe-head .cover.big { aspect-ratio: 1.2; border-radius: 12px 12px 48px 12px; }
.recipe-head h1 { font-size: clamp(28px, 3vw, 41px); line-height: 1.6; letter-spacing: 1px; margin: 0 0 17px; overflow-wrap: anywhere; }
.author { font-size: 12px; color: var(--dim); margin-bottom: 25px; }
.author strong { font-weight: 500; color: var(--ink); }
.recipe-meta { display: flex; flex-wrap: wrap; gap: 16px 24px; padding: 18px 0; border-top: 1px solid var(--line); margin-bottom: 15px; }
.recipe-meta span { display: block; color: var(--dim); font-size: 10px; margin-bottom: 4px; }
.recipe-meta strong { font-size: 13px; font-weight: 500; }
.actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 24px; }
.recipe-intro { border-left: 3px solid #9ca286; margin: 0 0 40px; padding: 8px 24px; max-width: 840px; }
.intro { white-space: pre-line; margin: 0; color: #5c6455; font: 16px/2 var(--serif); }
.recipe-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.recipe-layout.recipe-layout-full { grid-template-columns: minmax(0, 1fr); }
.recipe-sidebar { display: grid; gap: 22px; }
.compact { margin-bottom: 18px; }
.compact h2 { font-size: 20px; }
.compact > .eyebrow { font-size: 8px; letter-spacing: 1px; }
table.ings { width: 100%; border-collapse: collapse; font-size: 13px; }
table.ings th, table.ings td { padding: 12px 0; border-bottom: 1px dashed var(--line); }
table.ings th { font-weight: 400; text-align: left; }
table.ings tr:last-child th, table.ings tr:last-child td { border-bottom: 0; }
table.ings .amount { width: 42%; text-align: right; padding-left: 8px; color: var(--dim); overflow-wrap: anywhere; }
.ingredients-card .hint { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.tips { background: #eeeede; border-color: #d9ddc6; border-radius: 4px 16px 16px 16px; }
.tips > p:not(.eyebrow):not(.hint) { color: #59634d; white-space: pre-line; font-size: 12px; line-height: 2; margin-bottom: 0; }
.method-card { padding: 30px 34px; }
ol.steps { list-style: none; padding: 0; margin: 0; counter-reset: cooking-step; }
ol.steps li { position: relative; counter-increment: cooking-step; padding: 24px 0 27px 43px; border-top: 1px solid var(--line); }
ol.steps li::before { content: counter(cooking-step, decimal-leading-zero); position: absolute; left: 0; top: 23px; color: var(--accent); font: italic 22px Georgia, serif; }
ol.steps li p { margin: 0 0 16px; font-size: 14px; white-space: pre-line; }
ol.steps li:last-child { padding-bottom: 0; }
ol.steps img { width: 100%; max-height: 420px; object-fit: contain; background: #f1eee6; border-radius: 8px; display: block; }
.journal-heading { padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--line); }
.journal-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.journal-compose, .journal-history { padding: 30px; }
.journal-compose > .hint { margin: -4px 0 24px; }
.entry-form label, .login-card label { display: block; font-size: 12px; font-weight: 500; margin-bottom: 7px; }
.entry-form textarea, .entry-form input[type="text"] { width: 100%; margin-bottom: 20px; font-size: 13px; }
.entry-form .row { display: flex; align-items: end; gap: 25px; flex-wrap: wrap; margin-bottom: 24px; }
.entry-form input[type="date"] { display: block; margin-top: 8px; padding: 8px 10px; font-size: 13px; }
.rating-field { border: 0; margin: 0; padding: 0; }
.rating-field legend { font-size: 12px; margin-bottom: 4px; }
.stars { display: inline-flex; flex-direction: row-reverse; position: relative; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; margin: 0; }
.stars label { font-size: 26px; line-height: 36px; color: #c5c3b2; cursor: pointer; padding: 0 3px; margin: 0; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: #9c6b2a; }
.stars input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.entry-form .upload { background: #f5f3e9; border: 1px dashed #bfc3b0; border-radius: 8px; padding: 15px; margin-bottom: 24px; }
.upload small { display: block; color: var(--dim); font-size: 10px; font-weight: 400; margin: 4px 0 12px; }
.upload input { display: block; width: 100%; padding: 0; font-size: 11px; border: 0; background: none; }
.upload input::file-selector-button { border: 1px solid var(--line); border-radius: 4px; color: var(--green); background: var(--card); padding: 7px 10px; margin-right: 10px; cursor: pointer; }
.entry-form > button { width: 100%; }
.entry { border-top: 1px solid var(--line); padding: 23px 0; }
.entry:last-child { padding-bottom: 0; }
.entry header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.entry header strong { font: 17px Georgia, serif; }
.entry header form { margin-left: auto; }
.rating { color: #9c6b2a; font-size: 11px; letter-spacing: 1px; }
.entry > p { font-size: 13px; line-height: 2; white-space: pre-line; overflow-wrap: anywhere; }
.entry .adj { background: #f0f1e7; border-radius: 6px; padding: 10px 12px; color: var(--green); }
.adj span { color: var(--dim); font-size: 10px; margin-right: 8px; }
.photos { display: flex; gap: 8px; flex-wrap: wrap; }
.photos a { display: block; width: calc((100% - 16px) / 3); aspect-ratio: 1; }
.photos img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.journal-empty { text-align: center; color: var(--dim); padding: 40px 0; }
.journal-empty .little-line { margin: 0 0 22px; }
.journal-empty p { font: 20px/2 var(--serif); }
.journal-empty small { font-size: 11px; }
.state-card { padding: 65px 28px; margin-bottom: 30px; }
.state-card .plate-drawing { margin: 0 auto 30px; }
.state-card h1 { font-size: 28px; }
.state-card > p:not(.eyebrow) { color: var(--dim); max-width: 600px; margin: 0 auto 25px; overflow-wrap: anywhere; }
.center { text-align: center; }
.center .actions { justify-content: center; }

/* 一次登录，像推开熟悉的厨房门。 */
.login-body { min-height: 100svh; display: grid; place-items: center; padding: 35px; }
.auth-layout { width: min(100%, 1050px); display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 25px 90px #4a3c2410; }
.auth-story { position: relative; padding: 32px 40px 24px; background: #eeeee0; align-self: stretch; display: flex; flex-direction: column; }
.auth-story > div { margin-top: 43px; }
.auth-story h1 { font-size: 35px; line-height: 1.7; letter-spacing: 2px; margin-bottom: 18px; }
.auth-story > div > p:not(.eyebrow) { font-size: 12px; color: var(--dim); line-height: 2; margin-bottom: 0; }
.auth-art { display: block; width: 100%; height: auto; margin: 10px 0 0; }
.auth-caption { color: var(--green); margin: 0; font: 11px var(--serif); text-align: center; letter-spacing: 1px; }
.login-card { padding: 45px 45px; width: 100%; }
.login-card h2 { font-size: 29px; line-height: 1.6; letter-spacing: 1px; margin: 0 0 10px; }
.login-card .sub { font-size: 12px; color: var(--dim); margin-bottom: 30px; line-height: 2; }
.login-card input { width: 100%; font-size: 12px; margin-bottom: 22px; }
.login-card button { width: 100%; margin-top: 5px; justify-content: space-between; padding: 14px 20px; }
.login-card .eyebrow { font-size: 9px; letter-spacing: 1.8px; }
.login-card .flash { margin-top: 0; }
.alt { margin: 24px 0 0; font-size: 11px; color: var(--dim); }
.alt a { white-space: nowrap; }
.auth-privacy { border-top: 1px solid var(--line); padding-top: 20px; margin: 32px 0 0; font-size: 10px; color: var(--dim); }

/* 书签导入说明，不藏在繁复的设置里。 */
.page-heading { padding: 35px 0 32px; }
.page-heading .back-link { display: inline-block; margin-bottom: 30px; }
.page-heading h1 { font-size: clamp(27px, 3vw, 36px); letter-spacing: 1px; margin: 0 0 15px; }
.page-heading > p:not(.eyebrow) { font-size: 13px; line-height: 2; color: var(--dim); margin-bottom: 0; }
.import-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
.bookmark-card { padding: 35px; }
.bookmark-card > .eyebrow { margin-top: 20px; }
.bookmark-card > p:not(.eyebrow), .import-notes p { font-size: 13px; color: var(--dim); }
.bookmark-slot { display: flex; flex-direction: column; align-items: center; gap: 18px; background: #f2f1e6; border: 1px dashed #c3c7b1; padding: 35px 18px; border-radius: 10px; margin: 30px 0; }
.bookmark-arrow { font-size: 11px; color: var(--green); }
.bookmark-slot small { font-size: 10px; color: var(--dim); text-align: center; }
#bm { cursor: grab; padding: 14px 25px; }
details { font-size: 12px; }
summary { cursor: pointer; color: var(--green); }
#bm-text { width: 100%; margin-top: 15px; font: 11px/1.8 monospace; overflow-wrap: anywhere; }
.import-notes { display: grid; gap: 18px; }
.import-notes .card { position: relative; padding: 25px; }
.import-notes .section-number { float: right; margin-left: 15px; font-size: 23px; }
.import-notes h2 { font-size: 20px; }
.import-notes p { margin-bottom: 0; }

/* 厨房模式：暖炭黑，大字、大按钮，不为了装饰牺牲可读性。 */
body.kitchen { background: #242b23; color: #f3efdf; }
.k-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 32px; position: sticky; top: 0; background: #242b23f5; z-index: 5; border-bottom: 1px solid #434b3d; }
.k-top .exit { color: #d4d9c2; font-size: 13px; }
.k-progress { color: #d4d9c2; font-size: 12px; font-variant-numeric: tabular-nums; }
.k-progress strong { color: #f3efdf; font-size: 20px; margin: 0 5px; }
.k-main { max-width: 850px; margin: auto; padding: 22px 30px 135px; }
.k-step { display: none; }
.k-step.active { display: block; animation: fadein .2s ease; }
.k-step-label { font-size: 11px; color: #bac7a3; letter-spacing: 2px; margin-top: 15px; }
.k-text { font: 500 clamp(23px, 3.7vw, 32px)/1.9 var(--serif); margin-top: 20px; white-space: pre-line; }
.k-step img { width: 100%; max-height: 50vh; object-fit: contain; border-radius: 10px; margin-top: 8px; }
.k-done { text-align: center; padding-top: 50px; }
.k-done .k-text { margin-bottom: 30px; }
.k-done a { color: #f3efdf; border-color: #bac7a3; background: transparent; }
.k-ctrl { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 16px; padding: 18px 24px calc(18px + env(safe-area-inset-bottom)); background: #242b23ed; border-top: 1px solid #434b3d; backdrop-filter: blur(12px); }
.k-ctrl button { flex: 1; max-width: 390px; padding: 17px; font-size: 16px; border: 1px solid #626c55; background: #30392c; color: #f3efdf; }
.k-ctrl button.primary { background: #b65a3f; border-color: #b65a3f; }
.k-ctrl button:disabled { opacity: .35; cursor: default; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes breathe { 50% { opacity: .35; } }

@media (max-width: 1000px) {
  .topbar-inner { gap: 22px; padding: 18px 25px; }
  .topbar nav { gap: 15px; }
  .who { display: none; }
  .hero-copy h1 { font-size: 34px; }
  .paste { grid-template-columns: 1fr; gap: 20px; }
  .grid { gap: 18px; }
  .recipe h3 { font-size: 18px; }
  .recipe-head { gap: 28px; }
  .recipe-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 20px; }
  .card { padding: 22px; }
  .auth-story { padding: 30px; }
  .login-card { padding: 35px; }
  .auth-story h1 { font-size: 30px; }
}
@media (max-width: 760px) {
  .topbar-inner { flex-wrap: wrap; gap: 14px 20px; padding: 15px 22px; }
  .topbar nav { margin-left: auto; gap: 16px; font-size: 11px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .brand span { font-size: 19px; }
  .brand img { width: 34px; height: 34px; }
  .brand small { font-size: 8px; }
  .container { padding: 0 22px 26px; }
  .home-hero { grid-template-columns: 1fr 1fr; min-height: 345px; padding-top: 28px; }
  .hero-copy h1 { font-size: 29px; letter-spacing: 0; }
  .hero-description { font-size: 11px; }
  .hero-art img { width: 120%; max-width: none; margin-left: -15%; }
  .hero-caption { font-size: 10px; right: 0; bottom: 24px; }
  .hero-copy .text-link { font-size: 10px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading h2 { font-size: 22px; }
  .section-aside { display: none; }
  .recipe-head { grid-template-columns: 1fr 1fr; gap: 25px; }
  .recipe-head h1 { font-size: 27px; }
  .recipe-head .cover.big { aspect-ratio: 1; }
  .recipe-head .eyebrow { font-size: 9px; }
  .recipe-meta { gap: 12px; }
  .recipe-layout { grid-template-columns: 1fr; }
  .recipe-sidebar { grid-template-columns: 1fr 1fr; align-items: start; }
  .journal-layout { gap: 20px; }
  .journal-layout .card { padding: 22px; }
  .journal-compose .row { gap: 15px; }
  .auth-layout { grid-template-columns: 1fr 1fr; }
  .auth-story { padding: 25px; }
  .auth-story h1 { font-size: 25px; }
  .login-card { padding: 30px 25px; }
  .login-card h2 { font-size: 24px; }
  .auth-story .brand span { font-size: 17px; }
  .import-layout { gap: 20px; }
}
@media (max-width: 560px) {
  html { scroll-padding-top: 145px; }
  .topbar-inner { padding: 14px 18px; gap: 12px; }
  .brand { gap: 8px; }
  .brand span { font-size: 18px; }
  .brand small { letter-spacing: 1.7px; }
  .topbar nav { gap: 12px; font-size: 12px; }
  .topbar nav button { font-size: 12px; }
  .container { padding: 0 18px 24px; }
  .search input, .paste input, .login-card input, .entry-form textarea, .entry-form input[type="text"], .entry-form input[type="date"], #bm-text { font-size: 16px; }
  .home-hero { display: block; padding: 33px 0 35px; min-height: 0; }
  .hero-copy h1 { font-size: 34px; line-height: 1.55; margin: 15px 0; }
  .hero-description { font-size: 12px; margin-bottom: 17px; }
  .hero-copy .eyebrow { font-size: 9px; }
  .hero-art { height: 215px; margin: -6px -5px 5px 38px; }
  .hero-art img { width: 100%; max-width: 340px; height: 235px; margin: -4px auto 0; object-fit: contain; }
  .hero-caption { right: 16px; bottom: 3px; font-size: 10px; }
  .hero-edition { font-size: 7px; bottom: 12px; letter-spacing: 1.3px; }
  .paste { margin: 22px 0 30px; padding: 21px 18px; gap: 18px; }
  .paste h2 { font-size: 17px; }
  .paste-heading { gap: 12px; }
  .paste .section-number { width: 34px; height: 34px; font-size: 21px; }
  .paste form { flex-wrap: wrap; }
  .paste input { flex-basis: 100%; }
  .paste button { width: 100%; }
  .section-heading { gap: 8px; margin-bottom: 18px; }
  .section-heading h2 { font-size: 21px; }
  .section-heading .eyebrow { font-size: 8px; }
  .recipe-count { font-size: 10px; margin-left: 7px; }
  .grid { gap: 16px; grid-template-columns: 1fr; }
  .recipe { display: grid; grid-template-columns: 40% minmax(0, 1fr); }
  .recipe .cover { aspect-ratio: auto; min-height: 175px; height: 100%; }
  .recipe .body { padding: 17px 14px 13px; }
  .recipe h3 { font-size: 18px; margin-bottom: 8px; }
  .recipe .tags { gap: 4px; margin-bottom: 12px; }
  .tags span { font-size: 9px; padding: 2px 6px; }
  .card-overline { font-size: 9px; }
  .stats { font-size: 9px; flex-wrap: wrap; gap: 4px; }
  .cover-empty { padding: 20px; gap: 18px; font-size: 9px; text-align: center; letter-spacing: 0; }
  .recipe .plate-drawing { width: 58px; height: 58px; }
  .recipe .plate-drawing::after { height: 55px; right: -16px; }
  .badge { left: 7px; right: 7px; top: 7px; font-size: 8px; padding: 3px 6px; }
  .cover-corner { right: 9px; bottom: 9px; width: 24px; height: 24px; line-height: 24px; }
  .empty { padding: 47px 20px; }
  .empty h3 { font-size: 21px; }
  .foot { margin: 10px 18px 0; padding: 28px 5px; }
  .footer-note { font-size: 13px; letter-spacing: 2px; }
  .foot small { font-size: 8px; }
  .page-toolbar { margin: 20px 0; }
  .recipe-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 28px; }
  .recipe-head .cover.big { aspect-ratio: 1.35; border-radius: 10px 10px 35px 10px; }
  .recipe-head .cover-empty { min-height: 220px; }
  .recipe-head h1 { font-size: 31px; }
  .author { margin-bottom: 20px; }
  .recipe-meta { gap: 24px; }
  .actions { gap: 18px; margin-top: 20px; }
  .recipe-intro { padding: 4px 18px; margin-bottom: 28px; }
  .intro { font-size: 14px; }
  .recipe-sidebar { grid-template-columns: 1fr; gap: 18px; }
  .card, .method-card { padding: 22px 20px; }
  .card h2, .compact h2 { font-size: 20px; }
  .method-card .compact .recipe-count { display: none; }
  ol.steps li { padding-left: 32px; }
  ol.steps li::before { font-size: 19px; }
  ol.steps li p { font-size: 14px; }
  .journal-heading { padding-top: 28px; margin-top: 28px; }
  .journal-heading h2 { font-size: 22px; }
  .journal-layout { grid-template-columns: 1fr; }
  .journal-compose .row { justify-content: space-between; }
  .login-body { padding: 20px 16px; align-items: start; }
  .auth-layout { grid-template-columns: 1fr; border-radius: 12px; }
  .auth-story { padding: 23px 25px; }
  .auth-story > div { margin-top: 27px; position: relative; z-index: 1; }
  .auth-story h1 { font-size: 29px; margin-bottom: 0; line-height: 1.6; }
  .auth-story > div > p:not(.eyebrow), .auth-caption { display: none; }
  .auth-art { position: absolute; width: 170px; right: -18px; bottom: -5px; margin: 0; opacity: .65; }
  .auth-story .eyebrow { font-size: 8px; }
  .login-card { padding: 30px 25px; }
  .login-card h2 { font-size: 26px; }
  .login-card .sub { margin-bottom: 25px; }
  .auth-privacy { margin-top: 25px; }
  .page-heading { padding: 25px 0; }
  .page-heading .back-link { margin-bottom: 25px; }
  .page-heading h1 { font-size: 28px; }
  .page-heading > p:not(.eyebrow) { font-size: 12px; }
  .import-layout { grid-template-columns: 1fr; }
  .bookmark-card { padding: 25px; }
  .bookmark-slot { padding: 27px 15px; }
  .k-top { padding: 15px 20px; }
  .k-main { padding: 15px 23px 130px; }
  .k-text { font-size: 25px; }
  .k-ctrl { gap: 12px; padding: 15px 18px calc(15px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
