/* Colors from the app's theme (core/ui RadunaTheme). */
:root {
  --primary: #2170d5;
  --on-primary: #ffffff;
  --secondary-container: #ffe08b;
  --background: #f9f9ff;
  --surface: #ffffff;
  --text: #191c20;
  --muted: #43474e;
  --outline: #e2e2e9;
  --error: #ba1a1a;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #4d90e0;
    --on-primary: #001a3d;
    --secondary-container: #574400;
    --background: #111318;
    --surface: #1d2024;
    --text: #e2e2e9;
    --muted: #c4c6d0;
    --outline: #43474e;
    --error: #ffb4ab;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
}

a { color: var(--primary); }

.site-header, .site-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 12px 16px;
}

.site-header { justify-content: space-between; }
.site-footer { flex-wrap: wrap; border-top: 1px solid var(--outline); font-size: 14px; }
.site-footer a { color: var(--muted); }

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
}

.brand img { border-radius: 8px; }
.lang { font-size: 14px; }

h1 { font-size: 28px; line-height: 1.2; margin: 4px 0 12px; }
h2 { font-size: 20px; margin: 28px 0 8px; }

.card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 16px;
  overflow: hidden;
}

.card-body { padding: 20px; }
.cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.kicker { margin: 0; color: var(--muted); font-size: 14px; }
.facts { margin: 4px 0; color: var(--muted); }
.description { white-space: pre-line; overflow-wrap: anywhere; }

.badge {
  display: inline-block;
  margin: 8px 0 0;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--secondary-container);
  font-weight: 600;
  font-size: 14px;
}

.get-app { margin-top: 20px; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button.primary { background: var(--primary); color: var(--on-primary); }
.button.danger { background: var(--error); border-color: var(--error); color: #fff; }
.button:disabled { opacity: 0.5; cursor: default; }
.note { color: var(--muted); font-size: 14px; }

.legal h2 { font-size: 18px; }
.legal li { margin: 4px 0; }
.draft { padding: 12px 16px; border-radius: 12px; background: var(--secondary-container); }

form { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
label { font-weight: 600; }

input {
  font: inherit;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--outline);
  background: var(--surface);
  color: var(--text);
}

.error { color: var(--error); }
[hidden] { display: none !important; }
