/* FranciSpot — pastel-Franciscus-thema */
:root {
  --bg: #fff8e7;
  --bg-card: #ffffff;
  --ink: #2d2520;
  --ink-soft: #5a4a3f;
  --brand: #5d4037;
  --brand-2: #8d6e63;
  --accent: #d4a373;
  --line: #e8ddc9;
  --good: #4caf50;
  --max: 720px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: Georgia, 'Iowan Old Style', 'Source Serif Pro', serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero {
  text-align: center;
  padding: 32px 16px 16px;
  background: linear-gradient(135deg, #fff8e7 0%, #f3e5c4 100%);
  border-bottom: 2px solid var(--line);
}

.hero h1 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.emoji {
  font-size: 1.8rem;
  margin-right: 8px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.tagline {
  margin: 8px 0 24px;
  font-size: 1rem;
  color: var(--ink-soft);
  font-style: italic;
}

.mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 0 8px;
}

.mode-tabs button {
  background: var(--bg-card);
  border: 2px solid var(--line);
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

.mode-tabs button:hover {
  border-color: var(--brand-2);
  color: var(--brand);
}

.mode-tabs button.active {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

main {
  flex: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 24px 16px;
}

.card {
  background: var(--bg-card);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 32px 24px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(93, 64, 55, 0.08);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  animation: fade-in 0.4s ease;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.card .quote {
  font-size: 1.4rem;
  line-height: 1.5;
  font-style: italic;
  color: var(--brand);
  margin: 0;
}

.card .quote::before { content: '"'; }
.card .quote::after { content: '"'; }

.card .attribution {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.card .content-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

.card .big-emoji {
  font-size: 4rem;
  margin: 0 0 12px;
}

.card .animal-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 8px;
}

.card .animal-fact {
  font-size: 1rem;
  color: var(--ink-soft);
  margin: 0;
}

.loading {
  color: var(--ink-soft);
  font-style: italic;
}

.actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

button.primary,
button.secondary {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: 12px;
  border: 2px solid;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
}

button.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

button.primary:hover {
  background: var(--brand-2);
  border-color: var(--brand-2);
}

button.secondary {
  background: var(--bg-card);
  border-color: var(--line);
  color: var(--ink);
}

button.secondary:hover {
  border-color: var(--brand-2);
  color: var(--brand);
}

.facts {
  background: var(--bg-card);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.facts h2 {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 1.2rem;
}

.facts ul {
  margin: 0;
  padding-left: 20px;
}

.facts li {
  margin-bottom: 6px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.facts strong {
  color: var(--brand);
}

.citation {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.citation a {
  color: var(--brand-2);
}

.caveat {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
  text-align: center;
  margin-top: 12px;
}

footer {
  text-align: center;
  padding: 16px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-top: 2px solid var(--line);
  background: var(--bg-card);
}

footer a {
  color: var(--brand);
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .card { padding: 24px 18px; }
  .card .quote { font-size: 1.2rem; }
  .actions { flex-direction: column; }
  .actions button { width: 100%; }
}