@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --bg: #f3ead4;
  --bg-deep: #e8d8b5;
  --ink: #172821;
  --muted: #617068;
  --leaf: #0e5a44;
  --leaf-2: #157552;
  --leaf-soft: #dceee4;
  --palm: #e8893a;
  --palm-soft: #fff0c9;
  --lime: #d4e86a;
  --paper: #fffaf1;
  --line: #e3d4b4;
  --danger: #9a321f;
  --danger-soft: #ffe5df;
  --ok: #176342;
  --ok-soft: #dff4e8;
  --shadow: 0 18px 40px rgba(23, 40, 33, 0.08);
  --radius: 22px;
  --display: "Fraunces", Georgia, serif;
  --sans: "Nunito", "Segoe UI", sans-serif;
  --side: 248px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(1200px 500px at -10% -10%, #f7d9a8 0%, transparent 50%),
    radial-gradient(900px 420px at 110% 0%, #cfe8cf 0%, transparent 46%),
    var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--leaf); }
button, input, select, textarea { font: inherit; }
h1, h2, h3, .display { font-family: var(--display); letter-spacing: -0.03em; }

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus { left: 12px; top: 12px; background: white; padding: 8px 12px; z-index: 20; }

.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: var(--side);
  flex-shrink: 0;
  background: linear-gradient(180deg, #0c4635 0%, #0e5a44 55%, #124c38 100%);
  color: #e8f6ee;
  padding: 26px 18px 90px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 26px;
  color: white;
  text-decoration: none;
  margin-bottom: 28px;
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: cover;
  background: #fff4dc;
}
.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cfe5d8;
  text-decoration: none;
  padding: 11px 12px;
  border-radius: 12px;
  margin: 4px 0;
  font-weight: 700;
}
.side-nav a:hover, .side-nav a.active {
  background: rgba(255,255,255,0.12);
  color: white;
}
.side-nav .ico {
  width: 28px;
  text-align: center;
}
.demo-chip {
  margin-top: 18px;
  background: rgba(212,232,106,0.16);
  color: var(--lime);
  border: 1px solid rgba(212,232,106,0.28);
  border-radius: 14px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.45;
}

.app-main {
  flex: 1;
  min-width: 0;
  padding: 28px 4% 110px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.eyebrow { color: var(--muted); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--leaf);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.hero, .panel, .card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero {
  padding: 32px;
  margin: 18px 0;
  background:
    linear-gradient(135deg, rgba(220,238,228,0.92), rgba(255,250,241,0.88)),
    var(--paper);
}
.hero.photo {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
  overflow: hidden;
}
.hero.photo img {
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  border-radius: 18px;
}
.hero h1, .hero .display { font-size: clamp(32px, 5vw, 56px); margin: 0 0 10px; }
.muted { color: var(--muted); line-height: 1.55; }
.price { color: var(--palm); font-weight: 800; }

.button, button.button {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--leaf);
  color: white;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.button:hover { background: #0b4735; }
.button.palm { background: var(--palm); }
.button.ghost {
  background: #edf6f0;
  color: var(--leaf);
}
.button.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.cards, .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { padding: 18px; }
.card.action { color: inherit; text-decoration: none; transition: transform .15s ease, border-color .15s; }
.card.action:hover { transform: translateY(-3px); border-color: var(--leaf); }
.food-photo, .food {
  border-radius: 16px;
  overflow: hidden;
  background: var(--palm-soft);
  min-height: 140px;
}
.food-photo img { width: 100%; height: 150px; object-fit: cover; }
.food { font-size: 48px; display: grid; place-items: center; height: 120px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; font-weight: 800; }
.field input, .field select, .field textarea, .input, select, textarea, input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"] {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #d6e3db;
  border-radius: 12px;
  background: white;
}
.wide { grid-column: 1 / -1; }
.panel { padding: 22px; margin: 18px 0; }

.tag {
  display: inline-block;
  background: var(--leaf-soft);
  color: var(--leaf);
  border-radius: 99px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}
.progress {
  height: 10px;
  background: #eadfc6;
  border-radius: 99px;
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--leaf), #2a9b6c);
}

.notice, .error, .success {
  padding: 12px 14px;
  border-radius: 12px;
  margin: 12px 0;
}
.error { background: var(--danger-soft); color: var(--danger); }
.success { background: var(--ok-soft); color: var(--ok); }
.notice { background: var(--palm-soft); color: #7a4a12; }

.mobile-nav {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: #0e5a44;
  color: white;
  border-radius: 20px;
  padding: 8px;
  z-index: 30;
  box-shadow: 0 12px 30px rgba(14,90,68,0.28);
}
.mobile-nav a {
  flex: 1;
  color: #d5eee2;
  text-decoration: none;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  padding: 8px 2px;
  border-radius: 14px;
}
.mobile-nav a.active { background: rgba(255,255,255,0.12); color: white; }
.mobile-nav span { display: block; font-size: 18px; }

.landing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 6%;
}
.landing-nav .links { display: flex; gap: 18px; align-items: center; font-weight: 800; }
.landing-nav .links a { text-decoration: none; color: var(--ink); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.stat { padding: 20px; background: var(--paper); border-radius: 18px; border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--display); font-size: 32px; }

.market-strip {
  height: 10px;
  background: repeating-linear-gradient(90deg, #0e5a44 0 40px, #e8893a 40px 70px, #d4e86a 70px 90px, #f3ead4 90px 120px);
}

.empty {
  text-align: center;
  padding: 48px 20px;
  background: var(--paper);
  border-radius: var(--radius);
}

@media (max-width: 900px) {
  .sidebar { display: none; }
  .app-main { padding: 18px 16px 120px; }
  .hero.photo, .cards, .grid-3, .grid-2, .form, .stat-row { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
  .mobile-nav { display: flex; }
  .landing-nav .links a:not(.button) { display: none; }
}
