/* ── miqwit.eu — shared base styles ───────────────────────── */

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

:root {
  --bg:      #f5f5f5;
  --surface: #ffffff;
  --border:  #e0e0e0;
  --border-hover: #aaa;
  --text:    #1a1a1a;
  --muted:   #888;
  --accent:  #2c2c2c;
  --radius:  8px;
  --font:    'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Breadcrumb nav ─────────────────────────────────────────── */
.site-nav {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.site-nav a {
  color: var(--muted);
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--text); }
.site-nav .sep::before { content: '/'; margin: 0 0.3rem; }
.site-nav .current { color: var(--text); font-weight: 600; }

/* ── Page layout ────────────────────────────────────────────── */
.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page.wide { max-width: 800px; }

.page-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  align-self: flex-start;
}
.page-subtitle {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: -1.5rem;
  margin-bottom: 2rem;
  align-self: flex-start;
}

/* ── Menu list (app landing pages) ─────────────────────────── */
.menu {
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.menu a:hover {
  border-color: var(--border-hover);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.menu a::after {
  content: '→';
  color: var(--muted);
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ── Card ───────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  width: 100%;
}
.card + .card { margin-top: 1rem; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s;
  text-align: center;
}
.btn-dark  { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-dark:hover  { background: #444; border-color: #444; }
.btn-light { background: #eee; color: var(--text); border-color: #ddd; }
.btn-light:hover { background: #ddd; }

/* ── Form elements ──────────────────────────────────────────── */
label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
input[type="text"],
input[type="email"],
input[type="url"],
textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color 0.15s;
}
input:focus, textarea:focus { border-color: var(--accent); }

/* ── Messages ───────────────────────────────────────────────── */
.msg {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  width: 100%;
}
.msg-success { background: #eaf5ea; color: #2e7d32; }
.msg-error   { background: #fdecea; color: #c62828; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 480px) {
  .page { padding: 2rem 1rem; }
}
