/* MindPilot Pro — ADHD Resources shared styles
   Static, crawlable article pages. Brand-matched to the app theme. */

:root {
  --bg: hsl(40 20% 98%);
  --surface: hsl(40 20% 100%);
  --ink: hsl(0 0% 15%);
  --muted: hsl(0 0% 42%);
  --line: hsl(40 10% 88%);
  --primary: hsl(210 65% 44%);
  --primary-ink: hsl(210 85% 99%);
  --accent-soft: hsl(210 60% 96%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: hsl(0 0% 10%);
    --surface: hsl(0 0% 13%);
    --ink: hsl(0 0% 92%);
    --muted: hsl(0 0% 65%);
    --line: hsl(0 0% 22%);
    --primary: hsl(210 65% 66%);
    --primary-ink: hsl(210 30% 12%);
    --accent-soft: hsl(210 40% 16%);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.7;
  font-size: 18px;
}

a { color: var(--primary); text-underline-offset: 2px; }
a:hover { text-decoration: underline; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.site-header img { height: 38px; width: auto; display: block; }
.site-header nav a {
  margin-left: 20px;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
}
.site-header nav a:hover { color: var(--ink); }
.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--primary-ink) !important;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none !important;
  font-size: 15px;
}
.btn:hover { opacity: 0.92; }

/* Content */
main { padding: 48px 0 24px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 12px;
}
h1 { font-size: 2.15rem; line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
h2 { font-size: 1.5rem; line-height: 1.3; margin: 40px 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; margin: 28px 0 8px; }
p, ul, ol { margin: 0 0 18px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 8px; }
.meta { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
blockquote {
  margin: 24px 0;
  padding: 4px 20px;
  border-left: 3px solid var(--primary);
  color: var(--muted);
  font-style: italic;
}

/* CTA box */
.cta {
  margin: 40px 0 8px;
  padding: 28px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
}
.cta h3 { margin: 0 0 8px; font-size: 1.3rem; }
.cta p { color: var(--muted); margin: 0 0 18px; }

/* Article cards on the hub */
.card-list { display: grid; gap: 18px; margin: 8px 0 0; }
.card {
  display: block;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--primary); transform: translateY(-2px); text-decoration: none; }
.card .tag { font-size: 13px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.05em; }
.card h2 { margin: 8px 0 6px; font-size: 1.3rem; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; margin-right: 16px; }
.site-footer a:hover { color: var(--ink); }

@media (max-width: 560px) {
  body { font-size: 17px; }
  h1 { font-size: 1.8rem; }
  .site-header nav a:not(.btn) { display: none; }
}
