:root {
  --color-background-primary: #ffffff;
  --color-background-secondary: #f7f5f0;
  --color-background-info: #dbeafe;
  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-text-tertiary: #94a3b8;
  --color-text-info: #1e40af;
  --color-border-tertiary: #e2e8f0;
  --color-border-secondary: #cbd5e1;
  --border-radius-md: 10px;
  --border-radius-lg: 14px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: #ece9e0;
  color: var(--color-text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

a {
  color: inherit;
  text-decoration: none;
}

a.card-link {
  display: block;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

a.card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Color tiles. Each pairs a soft tint with a darker readable text color. */
.c-purple { background: #ede9fe; color: #4c1d95; }
.c-teal   { background: #ccfbf1; color: #115e59; }
.c-amber  { background: #fef3c7; color: #92400e; }
.c-pink   { background: #fce7f3; color: #9d174d; }
.c-blue   { background: #dbeafe; color: #1e40af; }
.c-coral  { background: #ffe4e6; color: #9f1239; }
.c-green  { background: #dcfce7; color: #166534; }
.c-gray   { background: #eef2f7; color: #334155; }

/* Stub-page hero uses same tints, just full-width */
.app-hero {
  border-radius: var(--border-radius-lg);
  padding: 2rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.app-hero .icon {
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius-md);
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-hero h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 600;
}

.app-hero p {
  margin: 0;
  font-size: 14px;
  opacity: 0.85;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 1.25rem;
}

.back-link:hover {
  color: var(--color-text-primary);
}

.stub-panel {
  background: var(--color-background-primary);
  border-radius: var(--border-radius-lg);
  border: 0.5px solid var(--color-border-tertiary);
  padding: 1.5rem;
}

.stub-panel h2 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 500;
}

.stub-panel p {
  margin: 0 0 1rem;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.stub-panel ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.stub-panel li {
  margin-bottom: 6px;
}
