calorie-ai-android/web/public/styles.css
2026-05-19 17:13:41 +02:00

80 lines
2.9 KiB
CSS

:root {
color-scheme: light;
--bg: #f8f4ec;
--ink: #26372d;
--muted: #5b635c;
--card: #ffffff;
--line: #e5ddcf;
--green: #2f7d59;
--orange: #da9648;
--blue: #6177c4;
--soft: #eef3ee;
}
* { box-sizing: border-box; }
body {
margin: 0;
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
background: radial-gradient(circle at top left, #fff8df, transparent 30rem), var(--bg);
color: var(--ink);
}
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0; }
.hero { display: grid; grid-template-columns: 1fr minmax(220px, 320px); gap: 20px; align-items: stretch; margin-bottom: 20px; }
.eyebrow { color: var(--green); font-weight: 800; letter-spacing: .12em; margin: 0 0 8px; text-transform: uppercase; }
h1 { font-size: clamp(2.7rem, 8vw, 6rem); line-height: .9; margin: 0; }
h2 { margin: 0 0 16px; font-size: 1.15rem; }
p { color: var(--muted); line-height: 1.5; }
.today-card, .panel {
border: 1px solid var(--line);
border-radius: 24px;
background: rgba(255,255,255,.88);
box-shadow: 0 24px 60px rgba(48, 38, 20, .08);
}
.today-card { padding: 24px; display: grid; align-content: center; gap: 8px; }
.today-card strong { font-size: 2.3rem; color: var(--green); }
.today-card small { color: var(--muted); }
.grid { display: grid; gap: 20px; margin-bottom: 20px; }
.two { grid-template-columns: 1.2fr .8fr; }
.three { grid-template-columns: minmax(260px, .8fr) minmax(320px, 1.1fr); }
.wide { grid-column: auto; }
.panel { padding: 22px; }
label { display: grid; gap: 7px; margin-bottom: 14px; color: var(--muted); font-weight: 700; }
input, textarea {
width: 100%;
border: 1px solid #dbd3c5;
border-radius: 14px;
background: #fcfaf6;
color: var(--ink);
font: inherit;
padding: 12px 13px;
}
textarea { resize: vertical; }
button {
border: 0;
border-radius: 14px;
background: var(--green);
color: white;
cursor: pointer;
font: inherit;
font-weight: 800;
padding: 12px 15px;
}
button.secondary { background: #e9e3d7; color: var(--ink); }
button:disabled { opacity: .55; cursor: wait; }
.preview { width: 100%; max-height: 280px; object-fit: cover; border-radius: 18px; margin: 4px 0 14px; border: 1px solid var(--line); }
.status { min-height: 1.5em; margin-bottom: 0; }
.status.error { color: #a43434; }
.status.ok { color: var(--green); }
.muted { color: var(--muted); font-size: .9rem; }
.chart-panel canvas { width: 100%; height: auto; }
.entries { display: grid; gap: 12px; }
.entry { border: 1px solid var(--line); border-radius: 18px; padding: 14px; background: #fffdf8; }
.entry strong { display: block; margin-bottom: 5px; }
.entry small { color: var(--muted); display: block; margin-top: 4px; }
.row-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@media (max-width: 860px) {
.hero, .two, .three { grid-template-columns: 1fr; }
.shell { width: min(100% - 20px, 1180px); padding: 20px 0; }
}