:root {
  color-scheme: light;
  --paper: #f7f3ea;
  --cream: #fffcf5;
  --ink: #24362b;
  --muted: #536054;
  --green: #263e2e;
  --green-deep: #1f3326;
  --sage: #e9ede0;
  --rust: #a44731;
  --rust-wash: #f6e7dd;
  --rule: #d7d4c6;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --measure: 1190px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
html[lang="zh-Hans"] { --serif: "Noto Serif CJK SC", "Songti SC", SimSun, serif; }
button, input { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid #a84b37;
  outline-offset: 4px;
}
[hidden] { display: none !important; }
.wrap { width: min(calc(100% - 64px), var(--measure)); margin-inline: auto; }
.skip-link { position: absolute; top: 5px; left: 5px; transform: translateY(-150%); padding: 10px; background: var(--cream); z-index: 3; }
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--rule); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 700; font-size: 0.98rem; }
.brand-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; background: var(--green); border-radius: 50%; flex: none; }
.brand-mark span { width: 17px; height: 10px; border: 1.5px solid #f7f0d8; border-radius: 1px 1px 12px 12px; position: relative; }
.brand-mark span::after { content: ""; position: absolute; width: 10px; height: 1px; top: -5px; left: 3px; border-top: 1px solid #f7f0d8; transform: rotate(-16deg); }
.navigation { display: flex; align-items: center; gap: clamp(14px, 3vw, 39px); }
.navigation a { font-size: 0.89rem; font-weight: 600; padding: 22px 0 20px; border-bottom: 2px solid transparent; color: var(--muted); text-decoration: none; white-space: nowrap; }
.navigation a[aria-current] { color: var(--ink); border-color: var(--rust); }
.languages { display: inline-flex; border: 1px solid var(--rule); padding: 3px; border-radius: 28px; flex: none; }
.languages button { border: 0; background: transparent; border-radius: 23px; font-weight: 650; padding: 5px 10px; font-size: 0.78rem; white-space: nowrap; min-height: 35px; }
.languages button[aria-pressed="true"] { background: var(--green); color: var(--cream); }
.hero { min-height: 370px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; background: var(--green); color: var(--cream); margin-top: 32px; border-radius: 22px; }
.hero-copy { padding: clamp(30px, 5vw, 65px); align-self: center; }
.eyebrow { margin: 0 0 14px; letter-spacing: 0.13em; font-size: 0.72rem; font-weight: 750; }
.hero .eyebrow { color: #e9c6ae; }
.hero h1 { font-family: var(--serif); font-size: clamp(3rem, 6vw, 5.6rem); line-height: 0.95; letter-spacing: -0.058em; font-weight: 400; margin: 0; }
html[lang="zh-Hans"] .hero h1 { font-size: clamp(2.55rem, 4.7vw, 4.4rem); letter-spacing: -0.06em; line-height: 1.14; }
.hero-copy > p:not(.eyebrow) { color: #eceddf; max-width: 375px; margin: 21px 0; }
.hero-image { background: #36483a url("hero.jpg") center 55% / cover no-repeat; min-height: 275px; }
.primary-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 45px; padding: 10px 17px; border-radius: 6px; background: #f2e0c6; color: var(--green-deep); font-weight: 750; font-size: 0.88rem; text-decoration: none; }
.primary-link:hover { background: #ffeacd; }
.workspace { padding-block: clamp(35px, 6vw, 62px) 58px; min-height: 510px; outline: none; }
.section-header { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 23px; }
.section-header h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.45rem, 5vw, 4.2rem); font-weight: 400; line-height: 1; letter-spacing: -0.045em; }
.section-header p { margin: 8px 0 0; color: var(--muted); }
.date-field { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-weight: 650; font-size: 0.82rem; }
.date-field input { max-width: 165px; min-height: 42px; padding: 6px 9px; border: 1px solid var(--rule); border-radius: 6px; background: var(--cream); }
.week-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.week-switch { display: inline-flex; border-radius: 8px; background: #ebe8dd; padding: 4px; gap: 3px; }
.week-switch button { font-weight: 750; padding: 8px 15px; border: 1px solid transparent; border-radius: 5px; background: transparent; min-height: 42px; font-size: 0.91rem; }
.week-switch button[aria-pressed="true"] { background: var(--cream); border-color: var(--rule); }
.period { color: var(--muted); font-size: 0.88rem; font-weight: 650; }
.dates { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 17px 0 25px; }
.date-button { min-height: 67px; border: 1px solid var(--rule); border-radius: 8px; background: var(--cream); padding: 6px 3px; display: grid; place-content: center; text-align: center; }
.date-button:hover { border-color: var(--green); }
.date-button[aria-pressed="true"] { color: var(--cream); background: var(--green); border-color: var(--green); }
.date-button strong { font-weight: 750; font-size: 0.93rem; }
.date-button span { font-size: 0.78rem; opacity: 0.87; }
.day-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 12px; }
.day-heading h3 { margin: 0; font-family: var(--serif); font-size: clamp(1.65rem, 4vw, 2.6rem); font-weight: 400; letter-spacing: -0.025em; }
.day-heading span { font-size: 0.84rem; color: var(--muted); font-weight: 650; }
.day-note { margin: 0 0 16px; display: flex; align-items: baseline; gap: 9px; padding: 12px 15px; background: var(--sage); border-left: 3px solid #738768; border-radius: 0 7px 7px 0; font-size: 0.91rem; }
.day-note strong { flex: none; }
.meals { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); align-items: stretch; gap: 12px; }
.meal-card { text-align: start; display: flex; flex-direction: column; align-items: start; padding: 20px; border: 1px solid var(--rule); border-radius: 10px; background: var(--cream); min-width: 0; gap: 10px; }
.meal-card:hover { border-color: #65745f; }
.meal-card.dinner { background: #e7ebdf; border-color: #c4ceb9; }
.meal-label { letter-spacing: .09em; text-transform: uppercase; color: var(--rust); font-weight: 750; font-size: 0.72rem; }
.meal-name { font-family: var(--serif); font-size: clamp(1.4rem, 2.65vw, 2.05rem); font-weight: 400; line-height: 1.12; letter-spacing: -0.035em; }
.meal-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 0.82rem; line-height: 1.4; color: var(--muted); }
.meal-protein { font-size: 0.82rem; font-weight: 650; overflow-wrap: anywhere; }
.open-label { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 0.83rem; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; padding-top: 6px; }
.shop-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.shop-trip { background: var(--cream); border: 1px solid var(--rule); border-radius: 10px; padding: 20px; }
.shop-trip h3, .guide-card h3 { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: 1.8rem; letter-spacing: -0.02em; line-height: 1.2; }
.trip-kicker { font-size: 0.78rem; font-weight: 750; color: var(--rust); margin: 0 0 7px; }
.shop-trip ul { list-style: none; padding: 0; margin: 0; }
.shop-trip li + li { border-top: 1px solid #e8e3d7; }
.shop-trip label { display: flex; gap: 12px; min-height: 44px; align-items: start; padding: 9px 0; font-size: 0.93rem; cursor: pointer; }
.shop-trip input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--green); flex: none; }
.shop-trip input:checked + span { text-decoration: line-through; color: var(--muted); }
.shop-trip li span { overflow-wrap: anywhere; }
.guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.guide-card { background: var(--cream); border: 1px solid var(--rule); border-radius: 10px; padding: 20px; }
.guide-card p { margin: 0 0 10px; }
.guide-card a { font-size: 0.87rem; font-weight: 650; text-underline-offset: 3px; margin-inline-end: 12px; }
.site-footer { border-top: 1px solid var(--rule); }
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; padding: 18px 0 27px; gap: 8px 14px; color: var(--muted); font-size: 0.83rem; }
#footer-brand { font-weight: 750; }
dialog { width: min(760px, calc(100% - 26px)); max-height: calc(100% - 26px); padding: 0; border: 1px solid var(--rule); border-radius: 14px; background: var(--cream); color: var(--ink); box-shadow: 0 16px 90px #0b1c1260; }
dialog::backdrop { background: #17271db3; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-shell { padding: clamp(21px, 5vw, 40px); }
.close-button { float: right; margin: -3px -3px 6px 10px; border: 1px solid var(--rule); border-radius: 50%; background: var(--paper); font-size: 1.65rem; line-height: 1; display: grid; place-items: center; width: 44px; height: 44px; }
#recipe-title { margin: 5px 0 13px; font-family: var(--serif); letter-spacing: -0.04em; font-size: clamp(2rem, 4.8vw, 3.15rem); font-weight: 400; line-height: 1.1; }
.recipe-meta { margin: 0 0 17px; color: var(--muted); }
.recipe-note { margin: 0 0 17px; padding: 10px 13px; border-radius: 7px; background: var(--sage); }
.recipe-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 24px; align-items: start; }
.recipe-grid h3 { font-size: 1rem; margin: 0 0 8px; }
.ingredients { list-style: none; padding: 0; margin: 0; font-size: 0.92rem; }
.ingredients li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid #e8e3d7; padding: 6px 0; }
.ingredients .amount { color: var(--muted); font-weight: 600; text-align: end; }
.recipe-steps { margin: 0; padding-inline-start: 1.32rem; font-size: 0.94rem; }
.recipe-steps li { padding-inline-start: 4px; margin-bottom: 9px; }
.recipe-steps li::marker { color: var(--rust); font-weight: 750; }
@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .topbar { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding-top: 10px; }
  .brand { font-size: 0.86rem; }
  .brand-mark { width: 28px; height: 28px; }
  .languages { grid-column: 2; grid-row: 1; }
  .navigation { grid-column: 1 / -1; justify-content: start; gap: 24px; }
  .navigation a { padding: 12px 0 8px; }
  .hero { margin-top: 17px; min-height: auto; grid-template-columns: 1fr; border-radius: 15px; }
  .hero-copy { padding: 30px 24px; }
  .hero-copy > p:not(.eyebrow) { margin-block: 14px 17px; }
  .hero-image { min-height: 190px; max-height: 270px; aspect-ratio: 2.4; background-position: center 58%; }
  .meals { grid-template-columns: 1fr; gap: 8px; }
  .meal-card { padding: 15px 17px; gap: 6px; }
  .meal-name { font-size: 1.5rem; }
  .shop-list, .guide { grid-template-columns: 1fr; }
  .date-button { min-height: 56px; }
  .dates { gap: 4px; margin-bottom: 18px; }
  .date-button strong { font-size: 0.78rem; }
  .date-button span { font-size: 0.7rem; }
  .day-note { flex-wrap: wrap; gap: 0 6px; }
}
@media (max-width: 540px) {
  .recipe-grid { grid-template-columns: 1fr; gap: 18px; }
  .date-field { font-size: 0.8rem; }
}
@media print {
  .site-header, .hero, .site-footer, .week-controls, .dates, .close-button { display: none; }
  body, dialog { color: #000; background: #fff; }
  .workspace { padding: 0; }
  dialog[open] { max-height: none; width: 100%; border: 0; max-width: none; position: fixed; inset: 0; }
  body:has(dialog[open]) main { visibility: hidden; }
}
.note-link { border: 0; background: transparent; color: var(--green-deep); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; padding: 2px 0; margin-inline-start: 3px; }
.shop-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 13px; color: var(--muted); font-size: 0.87rem; }
.shop-actions button { background: transparent; border: 1px solid var(--rule); border-radius: 7px; min-height: 44px; padding: 6px 11px; font-weight: 650; }
.shop-actions button:disabled { opacity: 0.58; cursor: default; }
