/* clowder UI — base styles (inherited from Beacon UI v2 via pdp-service front)
   Resets, typography, buttons, inputs, footer. Components live in ui.css, the shell in shell.css. */

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { color-scheme: light; }

body {
  font-family: var(--font-sans);
  font-weight: 500;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 13px;
}

a { color: inherit; }
button { font-family: inherit; }

.mono { font-family: var(--font-mono); }
.strong { font-weight: 700; }
.dim { color: var(--text-muted); }
.muted { color: var(--text-secondary); }
.wrap { white-space: normal; }
.is-bad { color: var(--red); }
.is-warn { color: var(--amber); }

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.page { flex: 1 0 auto; display: flex; flex-direction: column; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer;
  transition: all 0.15s; text-decoration: none; white-space: nowrap; font-family: inherit;
}
.btn.primary { background: var(--accent); color: var(--dark); }
.btn.primary:hover { background: var(--accent-dark); }
.btn.secondary { background: var(--bg-card); color: var(--dark); border-color: var(--border); }
.btn.secondary:hover { border-color: #D1D5DB; background: var(--bg-elevated); }
.btn.ghost { background: transparent; color: var(--text-secondary); }
.btn.ghost:hover { color: var(--dark); background: var(--bg-elevated); }
.btn.lg { padding: 16px 36px; font-size: 16px; border-radius: 12px; }
.btn.sm { padding: 5px 10px; font-size: 12px; border-radius: 8px; }

/* ── Inputs ─────────────────────────────────────────────── */
.input, .select, .textarea {
  width: 100%; padding: 10px 14px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 14px; color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input.sm { padding: 6px 10px; font-size: 12px; border-radius: 8px; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-muted);
}

/* ── Footer (public pages only) ─────────────────────────── */
.footer { flex-shrink: 0; padding: 32px 0 28px; border-top: 1px solid var(--border); background: var(--bg); }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer-logo { display: inline-flex; align-items: center; }
.footer-logo img { height: 28px; width: auto; display: block; }
.footer-meta { font-size: 12px; color: var(--text-muted); letter-spacing: 0.04em; }
