/* Balance Notes — Quiet editorial design for everyday life with diabetes */

:root {
  --primary: #1e6fae;
  --primary-dark: #14507f;
  --primary-soft: #7fb6e0;
  --warm: #b26a2c;
  --navy: #14283c;
  --background: #f4f8fb;
  --surface: #ffffff;
  --panel: #e9f1f8;
  --border: #d9e5ef;
  --border-soft: #e8f0f7;
  --text: #182838;
  --text-soft: #33475c;
  --muted: #5e7386;
  --shadow-sm: 0 1px 2px rgba(20,40,60,0.05);
  --shadow: 0 2px 6px rgba(20,40,60,0.06), 0 10px 28px rgba(20,40,60,0.05);
  --radius: 12px;
  --radius-lg: 18px;
  --container: 1120px;
}

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

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

body {
  font-family: 'Public Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: 'Newsreader', 'Times New Roman', Georgia, serif;
  font-weight: 500;
  line-height: 1.18;
  color: var(--text);
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 40;
}

a { color: var(--primary); }
img { max-width: 100%; display: block; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============= COMPLIANCE STRIP ============= */
.compliance-strip {
  background: var(--navy);
  color: #dcebf7;
  font-size: 13px;
  line-height: 1.45;
  padding: 9px 0;
  text-align: center;
}

/* ============= HEADER ============= */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

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

.brand {
  font-family: 'Newsreader', serif;
  font-size: 25px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 40;
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

/* The brand mark is a simple ring — a quiet nod to the blue circle. */
.brand-mark {
  width: 30px;
  height: 30px;
  border: 4px solid var(--primary);
  border-radius: 50%;
  display: inline-block;
  flex: none;
}

.brand-tail { color: var(--primary); font-style: italic; }

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s;
}

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

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ============= HERO (centered, ring watermark) ============= */
.hero {
  position: relative;
  padding: 88px 0 76px;
  text-align: center;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 560px; height: 560px;
  top: -260px; left: -180px;
}

.hero::after {
  width: 420px; height: 420px;
  bottom: -220px; right: -140px;
  border-color: var(--border-soft);
}

.hero-inner {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 58px);
  margin-bottom: 20px;
  font-variation-settings: "opsz" 56;
}

.hero p.subhead {
  font-size: 19px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 620px;
  margin: 0 auto 28px;
}

.note-box {
  max-width: 660px;
  margin: 0 auto 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-soft);
  text-align: left;
}

.hero-cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============= BUTTONS ============= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: var(--primary);
  color: #f4f8fb;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-dark);
  border: 1px solid var(--primary);
}

.btn-outline:hover { background: var(--primary); color: #f4f8fb; }

/* ============= SECTIONS ============= */
section { padding: 72px 0; }

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 12px;
  font-variation-settings: "opsz" 44;
}

.section-lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 580px;
  margin-bottom: 44px;
}

/* ============= FEATURED (three equal cards) ============= */
.featured {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.featured-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 880px) {
  .featured-row { grid-template-columns: 1fr; gap: 24px; }
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--primary-soft);
}

.card-tone {
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-soft);
}

.card-tone svg { color: var(--primary-dark); opacity: 0.75; }

.tone-dawn { background: #dcebf7; }
.tone-sand { background: #f3ebdc; }
.tone-dusk { background: #e2e7f2; }

.article-card .card-body {
  padding: 24px 26px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 12px;
  align-items: center;
}

.pill {
  color: var(--warm);
  font-weight: 700;
}

.card-meta .dot,
.article-meta-top .dot {
  width: 3px; height: 3px; background: var(--muted); border-radius: 50%;
}

.article-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  line-height: 1.28;
  font-variation-settings: "opsz" 30;
}

.card-excerpt {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.card-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

/* ============= PRINCIPLES BAND (navy) ============= */
.principles {
  background: var(--navy);
  color: #e5eef6;
}

.principles .section-eyebrow { color: var(--primary-soft); }

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}

@media (max-width: 820px) {
  .principles-grid { grid-template-columns: 1fr; gap: 28px; }
}

.principle .ring {
  width: 22px;
  height: 22px;
  border: 3px solid var(--primary-soft);
  border-radius: 50%;
  margin-bottom: 16px;
}

.principle h3 {
  color: #f4f8fb;
  font-size: 21px;
  margin-bottom: 10px;
  font-variation-settings: "opsz" 28;
}

.principle p {
  color: rgba(229,238,246,0.72);
  font-size: 15px;
  line-height: 1.65;
}

/* ============= INTRO BAND (about + expectations card) ============= */
.intro-band {
  background: var(--background);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 820px) {
  .intro-grid { grid-template-columns: 1fr; gap: 32px; }
}

.intro-text h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  margin-bottom: 16px;
  font-variation-settings: "opsz" 44;
}

.intro-text p {
  color: var(--text-soft);
  margin-bottom: 16px;
  font-size: 16.5px;
}

.expectations-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
}

.expectations-card h4 {
  font-family: 'Public Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 16px;
}

.expectations-card ul { list-style: none; }

.expectations-card li {
  font-size: 15px;
  color: var(--text-soft);
  padding: 9px 0;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.expectations-card li:last-child { border-bottom: none; }

.expectations-card .yes { color: var(--primary-dark); font-weight: 700; flex: none; }
.expectations-card .no { color: var(--warm); font-weight: 700; flex: none; }

.stat-strip {
  display: flex;
  gap: 40px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat-strip > div { padding-left: 18px; border-left: 2px solid var(--primary); }

.stat-num {
  font-family: 'Newsreader', serif;
  font-size: 34px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.1;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* ============= NEWSLETTER (light card) ============= */
.newsletter-card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 52px 48px;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 760px) {
  .newsletter-card { grid-template-columns: 1fr; padding: 36px 28px; gap: 26px; }
}

.newsletter-card h2 {
  font-size: clamp(25px, 3.4vw, 33px);
  margin-bottom: 12px;
  font-variation-settings: "opsz" 40;
}

.newsletter-card p {
  color: var(--muted);
  font-size: 16px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

@media (max-width: 480px) {
  .newsletter-form { flex-direction: column; }
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 13px 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-form input::placeholder { color: var(--muted); }

.newsletter-form input:focus { border-color: var(--primary); }

.newsletter-form button {
  background: var(--primary);
  color: #f4f8fb;
  border: none;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-form button:hover { background: var(--primary-dark); }

.form-success {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--primary-dark);
}

.form-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}

/* ============= FOOTER (navy) ============= */
.site-footer {
  background: var(--navy);
  color: #cfe0ee;
  padding: 56px 0 28px;
}

.site-footer .brand { color: #f4f8fb; }
.site-footer .brand-mark { border-color: var(--primary-soft); }
.site-footer .brand-tail { color: var(--primary-soft); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand-col { grid-column: 1 / -1; }
}

.footer-brand-col p {
  color: rgba(207,224,238,0.72);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 14px;
  max-width: 340px;
}

.footer-contact { font-size: 13px !important; }
.footer-contact a { color: var(--primary-soft); text-decoration: none; }

.footer-col h5 {
  font-family: 'Public Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #f4f8fb;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(207,224,238,0.75);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}
.footer-col a:hover { color: #f4f8fb; }

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(207,224,238,0.18);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(207,224,238,0.6);
  flex-wrap: wrap;
  gap: 12px;
}

/* ============= ARTICLE PAGE ============= */
.article-page {
  padding: 56px 0 96px;
}

.article-container {
  max-width: 710px;
  margin: 0 auto;
  padding: 0 24px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 24px;
}

.back-link:hover { color: var(--primary); }

.article-meta-top {
  display: flex;
  gap: 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 18px;
  align-items: center;
}

.article-page h1 {
  font-size: clamp(32px, 5vw, 46px);
  margin-bottom: 18px;
  font-variation-settings: "opsz" 56;
}

.article-lead {
  font-size: 20px;
  color: var(--text-soft);
  line-height: 1.55;
  margin-bottom: 40px;
}

.article-body p {
  font-size: 17px;
  margin-bottom: 22px;
  line-height: 1.75;
  color: var(--text-soft);
}

.article-body h2 {
  font-size: 28px;
  margin: 44px 0 18px;
  font-variation-settings: "opsz" 40;
}

.article-body h3 {
  font-size: 21px;
  margin: 32px 0 12px;
  font-variation-settings: "opsz" 28;
}

.article-body ul,
.article-body ol {
  margin: 18px 0 22px 22px;
}

.article-body li {
  font-size: 17px;
  margin-bottom: 10px;
  line-height: 1.7;
  color: var(--text-soft);
}

/* Pull quote: centered serif between hairlines, ring ornament */
.pull-quote {
  margin: 44px 0;
  padding: 30px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  font-family: 'Newsreader', serif;
  font-size: 21px;
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
  font-variation-settings: "opsz" 28;
  position: relative;
}

.pull-quote::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  border: 3px solid var(--primary);
  border-radius: 50%;
  margin: 0 auto 18px;
}

/* Prominent, readable disclaimer panel */
.article-footer-note {
  margin-top: 56px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-soft);
}

.article-footer-note strong { color: var(--text); }

/* ============= LEGAL / ABOUT / CONTACT ============= */
.page-header {
  padding: 60px 0 30px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: clamp(32px, 5vw, 44px);
  margin-bottom: 10px;
  font-variation-settings: "opsz" 56;
}

.page-header p {
  color: var(--muted);
  font-size: 17px;
}

.page-content {
  background: var(--surface);
  padding: 56px 0 80px;
}

.page-content-container {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-content h2 {
  font-size: 26px;
  margin: 36px 0 14px;
  font-variation-settings: "opsz" 36;
}

.page-content h2:first-child { margin-top: 0; }

.page-content h3 {
  font-size: 18px;
  margin: 24px 0 10px;
  font-family: 'Public Sans', sans-serif;
  font-weight: 600;
}

.page-content p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-soft);
}

.page-content ul,
.page-content ol {
  margin: 12px 0 18px 24px;
}

.page-content li {
  margin-bottom: 8px;
  color: var(--text-soft);
}

.last-updated {
  background: var(--panel);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px;
  display: inline-block;
}

.info-block {
  background: var(--panel);
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.6;
}

/* Contact specifics */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 32px 0;
}

@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; gap: 20px; }
}

.contact-card {
  padding: 26px;
  background: var(--background);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
}

.contact-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-family: 'Public Sans', sans-serif;
  font-weight: 600;
}

.contact-card p { font-size: 15px; margin-bottom: 4px; color: var(--text-soft); }
.contact-card a { color: var(--primary); text-decoration: none; font-weight: 500; }
.contact-card a:hover { text-decoration: underline; }

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  outline: none;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
