/* Talky — shared site styles */

:root {
  --brand: #0f4c81;
  --brand-dark: #0a3359;
  --accent: #ffb703;
  --bg: #ffffff;
  --bg-soft: #f3f6f9;
  --text: #1a1f2b;
  --muted: #566573;
  --border: #e4ebf1;
  --radius: 10px;
  --shadow: 0 6px 20px rgba(15, 76, 129, 0.08);
  --maxw: 1100px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease, color 120ms ease;
}
a:hover { border-bottom-color: var(--brand); }

img { max-width: 100%; height: auto; display: block; }

/* ----- Header ----- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}
.site-header .logo {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--brand);
  border-bottom: none;
}
.site-header .logo span.dot { color: var(--accent); }
.site-header nav a {
  margin-left: 24px;
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
}
.site-header nav a.active { color: var(--brand); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.site-header nav a:hover { color: var(--brand); border-bottom-color: var(--accent); }

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

main { padding: 56px 0 72px; }

/* ----- Hero ----- */
.hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #ffffff;
  padding: 80px 0 90px;
}
.hero h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -0.015em;
  max-width: 720px;
}
.hero p.lead {
  font-size: 1.2rem;
  max-width: 680px;
  color: #d6e4f0;
  margin: 0 0 32px;
}
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}
.btn-primary {
  background: var(--accent);
  color: #1a1f2b;
  border-bottom: none;
}
.btn-primary:hover {
  background: #ffc82c;
  border-bottom: none;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: #ffffff;
  border-bottom: 1px solid #ffffff;
}

/* ----- Sections ----- */
section.block {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
section.block.alt { background: var(--bg-soft); }
section.block h2 {
  font-size: 1.85rem;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
section.block p.section-lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 780px;
  margin: 0 0 32px;
}

/* ----- Feature grid ----- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 24px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--brand);
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ----- Page title (interior pages) ----- */
.page-title {
  border-bottom: 1px solid var(--border);
  padding: 56px 0 40px;
  background: var(--bg-soft);
}
.page-title h1 {
  font-size: 2.2rem;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.page-title p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 720px;
}

/* ----- Article content ----- */
article.content {
  max-width: 760px;
  margin: 0 auto;
}
article.content h2 {
  font-size: 1.45rem;
  margin: 36px 0 12px;
  color: var(--brand);
  letter-spacing: -0.005em;
}
article.content h2:first-child { margin-top: 0; }
article.content p {
  margin: 0 0 18px;
  font-size: 1.02rem;
}
article.content ul {
  padding-left: 22px;
  margin: 0 0 18px;
}
article.content ul li {
  margin-bottom: 10px;
}

/* Callout box */
.callout {
  background: var(--bg-soft);
  border-left: 4px solid var(--accent);
  padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 22px 0;
  font-size: 1rem;
  color: var(--text);
}

/* Pill badge */
.badge {
  display: inline-block;
  background: #e8f0f8;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Source list */
.source-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.source-list li {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 16px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.source-list li:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}
.source-list .meta {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  font-weight: 600;
}
.source-list h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.35;
}
.source-list h3 a {
  color: var(--text);
  border-bottom: none;
}
.source-list h3 a:hover { color: var(--brand); border-bottom: none; }
.source-list .citation {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  font-family: "Georgia", serif;
}

/* ----- Footer ----- */
.site-footer {
  background: #0a1626;
  color: #c6d2e1;
  padding: 36px 0;
  font-size: 0.9rem;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.site-footer a { color: #a8c4e4; }
.site-footer a:hover { color: #ffffff; border-bottom-color: #ffffff; }

/* ----- Responsive ----- */
@media (max-width: 780px) {
  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: 2rem; }
  .hero p.lead { font-size: 1.05rem; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .site-header .container { flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-header nav a { margin-left: 0; margin-right: 16px; }
  section.block { padding: 48px 0; }
  .page-title { padding: 44px 0 28px; }
  .page-title h1 { font-size: 1.7rem; }
}
