/* Just Real Health Facts — shared stylesheet */

:root {
  --navy: #0f1f3d;
  --navy-2: #3c4a63;
  --accent: #0f766e;
  --accent-dk: #0b5b54;
  --line: #e4e7ec;
  --soft: #f6f8fa;
  --ink: #23314c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  color: var(--navy);
  background: #ffffff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 720px; }

/* ---- nav ---- */
.site-nav {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.brand {
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-links { display: flex; gap: 1.4rem; list-style: none; }
.nav-links a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--accent); }

/* ---- hero ---- */
.hero {
  text-align: center;
  padding: 4rem 0 3.25rem;
  border-bottom: 1px solid var(--line);
}
.hero .eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.14;
}
.hero p {
  margin-top: 0.85rem;
  font-size: clamp(1rem, 2.4vw, 1.22rem);
  color: var(--navy-2);
}

/* ---- sections ---- */
section { padding: 3.25rem 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.section-head .note { font-size: 0.9rem; color: var(--navy-2); }

/* ---- article cards ---- */
.cards {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.article-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem;
  background: #fff;
}
.article-card .tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.article-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0.55rem 0 0.4rem;
  line-height: 1.35;
}
.article-card p { font-size: 0.93rem; color: var(--navy-2); }
.placeholder { background: var(--soft); border-style: dashed; }

/* ---- category tiles ---- */
.tiles {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.tile {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.15rem 1.2rem;
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.tile:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(15, 31, 61, 0.07);
}
.tile h3 { font-size: 1rem; font-weight: 700; }
.tile p { font-size: 0.86rem; color: var(--navy-2); margin-top: 0.25rem; }

/* ---- newsletter ---- */
.newsletter {
  background: var(--navy);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  color: #fff;
}
.newsletter h2 { font-size: 1.45rem; font-weight: 800; }
.newsletter p { color: #c4cedd; margin-top: 0.5rem; font-size: 0.98rem; }
.newsletter form {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}
.newsletter input {
  flex: 1;
  min-width: 220px;
  max-width: 340px;
  padding: 0.8rem 1rem;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 0.95rem;
  font-family: inherit;
}
.newsletter button {
  padding: 0.8rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 9px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.newsletter button:hover { background: var(--accent-dk); }
.newsletter .fine { font-size: 0.78rem; color: #9aa7bd; margin-top: 0.85rem; }

/* ---- content pages ---- */
.page { padding: 3rem 0 1rem; }
.page h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
}
.page .meta { color: var(--navy-2); font-size: 0.9rem; margin-top: 0.6rem; }
.prose { padding: 1.5rem 0 3rem; }
.prose h2 { font-size: 1.3rem; font-weight: 800; margin: 2rem 0 0.7rem; }
.prose p { margin-bottom: 1rem; color: var(--ink); }
.prose ul { margin: 0 0 1rem 1.2rem; }
.prose li { margin-bottom: 0.4rem; color: var(--ink); }
.callout {
  background: var(--soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  color: var(--navy-2);
}

/* ---- footer ---- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--soft);
  padding: 2.5rem 0;
  margin-top: 2rem;
}
.site-footer .disclosure {
  font-size: 0.86rem;
  color: var(--navy-2);
  max-width: 640px;
}
.site-footer .foot-links {
  display: flex;
  gap: 1.2rem;
  list-style: none;
  margin: 1.1rem 0;
  flex-wrap: wrap;
}
.site-footer .foot-links a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.site-footer .copyright { font-size: 0.82rem; color: var(--navy-2); }

@media (max-width: 540px) {
  .site-nav .wrap { min-height: 58px; }
  .brand { font-size: 1rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.88rem; }
  section { padding: 2.5rem 0; }
  .newsletter { padding: 2rem 1.25rem; }
}
