:root {
  --bg: #f5f5f0;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #555;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --border: #e0e0e0;
  --shadow: rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212;
    --surface: #1e1e1e;
    --text: #e8e8e8;
    --text-secondary: #aaa;
    --accent: #60a5fa;
    --accent-hover: #93bbfc;
    --border: #333;
    --shadow: rgba(0, 0, 0, 0.3);
  }
}

:root[data-theme="dark"] {
  --bg: #121212;
  --surface: #1e1e1e;
  --text: #e8e8e8;
  --text-secondary: #aaa;
  --accent: #60a5fa;
  --accent-hover: #93bbfc;
  --border: #333;
  --shadow: rgba(0, 0, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.home {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
}

.home-header {
  text-align: center;
  padding: 60px 0 40px;
}

.home-header h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.home-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  align-content: start;
  flex: 1;
}

.menu-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  cursor: pointer;
}

.menu-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px var(--shadow);
  transform: translateY(-2px);
}

.menu-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.menu-label {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.menu-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.home-footer {
  text-align: center;
  padding: 40px 0 20px;
  font-size: 12px;
  color: var(--text-secondary);
}

@media (max-width: 480px) {
  .home-header {
    padding: 40px 0 28px;
  }

  .home-header h1 {
    font-size: 24px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }
}
