:root { --ink: #202020; --muted: #6d6a62; --paper: #fffdf6; --yellow: #ffd84d; --green: #bce8b2; --pink: #ffc4d5; --blue: #bfe2ff; --line: #202020; --shadow: 5px 5px 0 var(--line); } * { box-sizing: border-box; } html { scroll-behavior: smooth; } body { margin: 0; min-height: 100vh; color: var(--ink); background: radial-gradient(circle at 10% 8%, rgba(255,216,77,.42) 0 7%, transparent 7.2%), radial-gradient(circle at 90% 70%, rgba(188,232,178,.42) 0 8%, transparent 8.2%), var(--paper); font-family: ui-rounded, "SF Pro Rounded", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; } button { font: inherit; color: inherit; } button:focus-visible, a:focus-visible { outline: 3px solid #5c56ff; outline-offset: 3px; } .page { width: min(1100px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 34px; } header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; } .logo { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-size: 22px; font-weight: 900; letter-spacing: -.04em; } .logo-mark { display: grid; place-items: center; width: 39px; height: 39px; border: 2px solid var(--line); border-radius: 50% 50% 46% 54%; background: var(--yellow); transform: rotate(-6deg); box-shadow: 2px 2px 0 var(--line); } .header-actions { display: flex; gap: 10px; } .text-button { padding: 8px 11px; border: 0; background: transparent; font-weight: 750; cursor: pointer; } .text-button:hover { text-decoration: underline; text-underline-offset: 4px; } main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 28px; align-items: stretch; } .hero { position: relative; min-height: 640px; padding: clamp(28px, 5vw, 58px); overflow: hidden; border: 2px solid var(--line); border-radius: 34px; background: var(--yellow); box-shadow: var(--shadow); } .eyebrow { display: inline-block; padding: 7px 12px; border: 2px solid var(--line); border-radius: 999px; background: #fff; font-weight: 800; font-size: 13px; transform: rotate(-2deg); } h1 { max-width: 580px; margin: 23px 0 12px; font-size: clamp(48px, 8vw, 88px); line-height: .94; letter-spacing: -.07em; } .subtitle { max-width: 460px; margin: 0 0 24px; font-size: clamp(16px, 2vw, 19px); line-height: 1.65; } .mode-switch { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 470px; margin-bottom: 24px; } .mode { display: flex; align-items: center; gap: 10px; padding: 12px; border: 2px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.7); text-align: left; cursor: pointer; transition: transform .15s, background .15s; } .mode:hover { transform: translateY(-2px); } .mode.active { background: #fff; box-shadow: 3px 3px 0 var(--line); } .mode > span:first-child { font-size: 25px; } .mode strong, .mode small { display: block; } .mode small { margin-top: 2px; color: var(--muted); font-size: 11px; } .decide { position: relative; z-index: 2; min-width: 190px; padding: 16px 24px; border: 2px solid var(--line); border-radius: 16px; background: var(--ink); color: #fff; box-shadow: 4px 4px 0 rgba(255,255,255,.78); font-size: 18px; font-weight: 900; cursor: pointer; transition: transform .15s, box-shadow .15s; } .decide:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 rgba(255,255,255,.8); } .decide:active { transform: translate(3px,3px); box-shadow: 1px 1px 0 rgba(255,255,255,.8); } .status { position: relative; z-index: 2; min-height: 20px; margin: 16px 0 0; font-size: 13px; font-weight: 700; } .doodle { position: absolute; right: 25px; bottom: 22px; width: clamp(125px, 27%, 190px); aspect-ratio: 1; border: 3px solid var(--line); border-radius: 50%; background: #fff9e3; box-shadow: inset 0 0 0 14px #fff; transform: rotate(8deg); } .doodle::before, .doodle::after { content: ""; position: absolute; border-radius: 50%; background: var(--pink); } .doodle::before { width: 44%; height: 27%; left: 20%; top: 30%; transform: rotate(-14deg); } .doodle::after { width: 23%; height: 20%; right: 14%; bottom: 21%; background: var(--green); } .panel { display: flex; flex-direction: column; gap: 18px; } .card { padding: 24px; border: 2px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 4px 4px 0 var(--line); } .card h2 { margin: 0 0 16px; font-size: 17px; } .filters { display: grid; gap: 21px; } .filter-block + .filter-block { padding-top: 20px; border-top: 1.5px dashed #aaa59a; } .chips { display: flex; flex-wrap: wrap; gap: 9px; } .chip { padding: 9px 13px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; transition: background .15s, transform .15s; } .chip:hover { transform: translateY(-2px); } .chip.active { background: var(--green); font-weight: 800; box-shadow: 2px 2px 0 var(--line); } .result { position: relative; flex: 1; display: grid; align-content: center; min-height: 300px; background: #fff6f9; text-align: center; } .mode-badge { position: absolute; top: 16px; right: 16px; padding: 6px 9px; border-radius: 999px; background: var(--blue); font-size: 11px; font-weight: 800; } .result-icon { font-size: 58px; line-height: 1; } .result-kicker { margin: 14px 0 5px; color: var(--muted); font-size: 13px; font-weight: 700; } .result-name { margin: 0 !important; font-size: clamp(30px, 5vw, 44px) !important; letter-spacing: -.05em; } .result-meta { margin: 10px 0 0; color: var(--muted); font-size: 14px; } .result-actions { display: flex; justify-content: center; gap: 9px; margin-top: 18px; } .small-btn { padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; font-weight: 700; } .small-btn.saved { background: var(--pink); } .shuffling { animation: shuffle .55s ease both; } @keyframes shuffle { 0% { transform: rotate(0) scale(1); opacity: 1; } 35% { transform: rotate(-4deg) scale(.88); opacity: .25; } 70% { transform: rotate(3deg) scale(1.04); } 100% { transform: rotate(0) scale(1); opacity: 1; } } .collection { margin-top: 30px; } .collection-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; } .section-kicker { margin: 0 0 5px; color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .12em; } .collection-head h2 { margin: 0; font-size: 27px; } .tabs { display: flex; padding: 4px; border: 1.5px solid var(--line); border-radius: 13px; background: #f5f1e8; } .tab { padding: 8px 12px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; font-weight: 750; } .tab.active { background: #fff; box-shadow: 1px 1px 0 var(--line); } .meal-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; } .meal-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; min-width: 0; padding: 13px; border: 1.5px solid var(--line); border-radius: 15px; background: var(--paper); } .meal-item-icon { font-size: 25px; } .meal-item strong, .meal-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .meal-item small { margin-top: 3px; color: var(--muted); font-size: 11px; } .remove-item { width: 25px; height: 25px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; } .remove-item:hover { background: var(--pink); } .empty { grid-column: 1 / -1; padding: 28px; border: 1.5px dashed #aaa59a; border-radius: 15px; color: var(--muted); text-align: center; } .clear-button { margin-top: 14px; padding: 6px 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; } footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 28px; color: var(--muted); font-size: 13px; } @media (max-width: 850px) { main { grid-template-columns: 1fr; } .hero { min-height: 580px; } .meal-list { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 560px) { .page { width: min(100% - 22px, 620px); padding-top: 14px; } header { margin-bottom: 18px; } .text-button { padding-inline: 5px; font-size: 13px; } .hero { min-height: 610px; padding: 28px 22px; border-radius: 26px; } .mode-switch { grid-template-columns: 1fr; } .doodle { right: 20px; bottom: 18px; width: 130px; } .card { padding: 20px; border-radius: 20px; } .collection-head { align-items: stretch; flex-direction: column; } .tabs { align-self: flex-start; } .meal-list { grid-template-columns: 1fr; } footer { flex-direction: column; gap: 4px; } } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }