/* Atlas Health Daily — Mobile-first Light Theme */
/* Clean editorial whitepage CSS */

:root {
  --bg: #ffffff;
  --text: #1f2937;
  --text-muted: #4b5563;
  --text-light: #6b7280;
  --accent: #0f766e;
  --accent-dark: #0d5f58;
  --border: #e5e7eb;
  --card-bg: #f9fafb;
  --disclaimer-bg: #fef3c7;
  --disclaimer-border: #d97706;
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

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

html, body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding-right: 16px;
  padding-left: 16px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 22px;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--accent);
}

/* Hero / Cover Section */
.article-hero {
  margin: 32px 0 16px;
}

.article-cover {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: block;
}

/* Article Header */
.article-header {
  margin-bottom: 28px;
}

.article-title {
  font-family: var(--font-serif);
  font-size: 2.15rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.article-meta .author {
  font-weight: 600;
  color: var(--text);
}

.article-meta .dot {
  color: var(--border);
}

/* Main Content */
.article-body {
  font-size: 1.02rem;
  line-height: 1.75;
}

.article-body p {
  margin-bottom: 18px;
}

.article-body h2 {
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  margin: 40px 0 14px;
  line-height: 1.3;
}

.article-body h2:first-child {
  margin-top: 16px;
}

.article-body ul,
.article-body ol {
  margin: 14px 0 20px;
  padding-left: 22px;
}

.article-body li {
  margin-bottom: 7px;
}

.article-body strong {
  font-weight: 600;
}

/* Inline Callouts */
.callout {
  background: var(--card-bg);
  border-left: 4px solid var(--accent);
  padding: 14px 18px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
}

.callout p {
  margin: 0;
  font-size: 0.97rem;
}

/* Medical Disclaimer — Strong */
.disclaimer-box {
  background: var(--disclaimer-bg);
  border: 1px solid var(--disclaimer-border);
  border-radius: 8px;
  padding: 20px;
  margin: 32px 0 24px;
  font-size: 0.92rem;
  line-height: 1.65;
}

.disclaimer-box strong {
  display: block;
  color: #92400e;
  font-size: 0.98rem;
  margin-bottom: 7px;
}

/* Footer */
.site-footer {
  margin-top: 48px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-light);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: underline;
}

/* Responsive - Mobile First */
@media (max-width: 420px) {
  .article-title {
    font-size: 1.85rem;
  }

  .nav {
    gap: 16px;
  }

  .nav a {
    font-size: 0.9rem;
  }
}

@media (min-width: 768px) {
  .article-title {
    font-size: 2.5rem;
  }

  .container {
    max-width: 700px;
  }
}

/* Accessibility: better focus styles */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
