/* news.aidalee.com — landing page + section index */
:root {
  --bg: #f7f5ef;
  --bg-card: #ffffff;
  --bg-section: #fffdf7;
  --text: #1a1a1a;
  --text-soft: #555;
  --text-mute: #888;
  --border: #e6e0d0;
  --border-soft: #efe9d8;
  --accent-ai: #7c3aed;
  --accent-news: #0ea5e9;
  --link: #1a56db;
  --link-hover: #0f3a99;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1814;
    --bg-card: #25221c;
    --bg-section: #2a2620;
    --text: #f0ebde;
    --text-soft: #c8c1ad;
    --text-mute: #8c8675;
    --border: #3d372d;
    --border-soft: #342e25;
    --accent-ai: #c298e0;
    --accent-news: #7dd3fc;
    --link: #8ab4f8;
    --link-hover: #aecbfa;
  }
}
* { box-sizing: border-box; }
html { font-size: 17px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 820px; margin: 0 auto; padding: 3rem 1.25rem 4rem; }
header.hero { margin-bottom: 2.5rem; text-align: center; }
header.hero h1 { margin: 0; font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; }
header.hero .tag { color: var(--text-soft); margin-top: 0.4rem; font-size: 0.95rem; }
header.hero .updated { color: var(--text-mute); margin-top: 0.6rem; font-size: 0.85rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.06); border-color: var(--text-mute); }
.card .icon { font-size: 2.2rem; line-height: 1; }
.card h2 { margin: 0.7rem 0 0.4rem 0; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; }
.card .card-ai h2 { color: var(--accent-ai); }
.card .card-news h2 { color: var(--accent-news); }
.card p { margin: 0.4rem 0 0.8rem 0; color: var(--text-soft); font-size: 0.95rem; }
.card .latest {
  font-size: 0.85rem;
  color: var(--text-mute);
  border-top: 1px dashed var(--border);
  padding-top: 0.7rem;
  margin-top: 0.8rem;
}
.card .latest strong { color: var(--text-soft); }
.card .latest a { color: var(--link); text-decoration: none; }
.card .latest a:hover { text-decoration: underline; }
.card .empty-state { font-style: italic; opacity: 0.7; }

footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--text-mute); font-size: 0.85rem; }
footer a { color: var(--text-soft); }

/* Theme toggle */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 1rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1;
  transition: border-color 0.12s ease, color 0.12s ease;
}
.theme-toggle:hover { border-color: var(--text-mute); color: var(--text); }
.theme-row { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 0.6rem; }
.theme-row .hint { color: var(--text-mute); font-size: 0.8rem; }

/* Light mode (default) */
:root {
  --bg: #f7f5ef;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-soft: #555;
  --text-mute: #888;
  --border: #e6e0d0;
  --accent-ai: #7c3aed;
  --accent-news: #0ea5e9;
  --link: #1a56db;
  --link-hover: #0f3a99;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1814;
    --bg-card: #25221c;
    --text: #f0ebde;
    --text-soft: #c8c1ad;
    --text-mute: #8c8675;
    --border: #3d372d;
    --accent-ai: #c298e0;
    --accent-news: #7dd3fc;
    --link: #ffb86b;
    --link-hover: #ffc98a;
  }
}
:root[data-theme="dark"] {
  --bg: #1a1814;
  --bg-card: #25221c;
  --text: #f0ebde;
  --text-soft: #c8c1ad;
  --text-mute: #8c8675;
  --border: #3d372d;
  --accent-ai: #c298e0;
  --accent-news: #7dd3fc;
  --link: #ffb86b;
  --link-hover: #ffc98a;
}
:root[data-theme="light"] {
  --bg: #f7f5ef;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-soft: #555;
  --text-mute: #888;
  --border: #e6e0d0;
  --accent-ai: #7c3aed;
  --accent-news: #0ea5e9;
  --link: #1a56db;
  --link-hover: #0f3a99;
}

@media (max-width: 600px) {
  html { font-size: 16px; }
  .container { padding: 1.5rem 0.9rem 3rem; }
  header.hero h1 { font-size: 1.6rem; }
  .cards { grid-template-columns: 1fr; }
}
