/* ── Uri Yablonka — minimal additions only, template colors preserved ── */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,300;0,400;0,600;0,700;0,900;1,400&display=swap');

/* Use Source Sans 3 (upgraded version of Source Sans Pro used by template) */
body, input, textarea, select {
  font-family: 'Source Sans 3', 'Source Sans Pro', Helvetica, sans-serif;
}

/* ── Article grid (articles.html) ─────────────────────────────── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.article-card {
  background: #fff;
  border: 1px solid #dde;
  border-radius: 3px;
  padding: 1.75rem;
  text-decoration: none;
  display: block;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: inherit;
}

.article-card:hover {
  border-color: #e97770;
  box-shadow: 0 2px 12px rgba(233,119,112,0.12);
}

.article-card .cat {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e97770;
  margin-bottom: 0.6rem;
  display: block;
}

.article-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #484d55;
  line-height: 1.45;
  margin-bottom: 0.65rem;
}

.article-card p {
  font-size: 0.9rem;
  color: #717479;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.article-card .meta {
  font-size: 0.73rem;
  color: #a0a4a9;
}

/* ── Article body typography (article.html) ──────────────────── */
.article-body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.9;
  color: rgba(0,0,0,0.82);
  max-width: 68ch;
}

.article-body p { margin-bottom: 1.4rem; }

.article-body h2 {
  font-family: 'Source Sans 3', 'Source Sans Pro', Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  color: #2f333b;
  margin: 2rem 0 0.75rem;
}

.article-body h3 {
  font-family: 'Source Sans 3', 'Source Sans Pro', Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #2f333b;
  margin: 1.5rem 0 0.5rem;
}

.article-body ul, .article-body ol {
  margin: 0 0 1.4rem 1.5rem;
}

.article-body li { margin-bottom: 0.4rem; }

.article-body blockquote {
  border-left: 4px solid #e97770;
  padding-left: 1.25rem;
  color: #717479;
  font-style: italic;
  margin: 1.5rem 0;
}

/* ── Article page white section ──────────────────────────────── */
#article-section {
  background: #fff;
  padding: 3.5rem 0 4rem;
}

#article-section .container { max-width: 860px; }

.article-meta-bar {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a0a4a9;
  margin-bottom: 1.5rem;
}

#article-page-title {
  font-size: clamp(1.65rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.15;
  color: #2f333b;
  margin-bottom: 1rem;
}

.article-excerpt-lead {
  font-size: 1.1rem;
  color: #717479;
  line-height: 1.7;
  border-bottom: 2px solid #e97770;
  padding-bottom: 1.75rem;
  margin-bottom: 2rem;
}

/* ── Category filter buttons ─────────────────────────────────── */
.cat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.cat-btn {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border: 1px solid #ccc;
  background: transparent;
  color: #717479;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s;
}

.cat-btn:hover, .cat-btn.active {
  border-color: #e97770;
  color: #e97770;
  background: rgba(233,119,112,0.06);
}

/* ── Article header category chip ───────────────────────────── */
.article-header-chip {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: #e97770;
  padding: 0.28rem 0.8rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}

/* ── Form feedback notifications ─────────────────────────────── */
.notify {
  padding: 0.85rem 1.25rem;
  border-radius: 3px;
  font-size: 0.9rem;
  margin-top: 0.75rem;
  display: none;
}

.notify.success {
  background: rgba(60,180,120,0.1);
  color: #3a9e6e;
  border: 1px solid #3a9e6e;
}

.notify.error {
  background: rgba(233,119,112,0.1);
  color: #c0504a;
  border: 1px solid #c0504a;
}

/* ── Policy pages ────────────────────────────────────────────── */
#policy-content {
  background: #fff;
  padding: 3.5rem 0 4rem;
}

#policy-content .container { max-width: 760px; }
#policy-content h1 { font-size: 2rem; font-weight: 900; color: #2f333b; margin-bottom: 0.4rem; }
#policy-content .policy-date { font-size: 0.75rem; color: #a0a4a9; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 2.5rem; display: block; }
#policy-content h2 { font-size: 1.05rem; font-weight: 700; color: #2f333b; margin: 2rem 0 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
#policy-content p, #policy-content li { font-size: 1rem; line-height: 1.85; color: rgba(0,0,0,0.72); margin-bottom: 1rem; }
#policy-content a { color: #e97770; }
#policy-content a:hover { color: #d96760; }

/* ── Loading state ───────────────────────────────────────────── */
.loading-msg { color: #a0a4a9; font-size: 0.95rem; }

@media (max-width: 768px) {
  .article-grid { grid-template-columns: 1fr; }
}
