/* Global AIS Digest - modern card-based, blue */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', sans-serif;
  background: #f5f7fb;
  color: #1f2937;
  line-height: 1.6;
}

.topbar {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  color: #ffffff;
  padding: 18px 0;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.15);
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
}

.brand-logo {
  width: 38px;
  height: 38px;
  background: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e40af;
  font-weight: 800;
  font-size: 18px;
}

.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: -0.3px; }
.brand-tag { font-size: 11px; opacity: 0.85; }

nav.primary { display: flex; gap: 6px; }

nav.primary a {
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s;
}

nav.primary a:hover { background: rgba(255,255,255,0.15); color: #ffffff; }

.hero {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 48px 0;
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.hero h1 {
  font-size: 36px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
  letter-spacing: -0.6px;
}

.hero p {
  font-size: 17px;
  color: #475569;
  max-width: 680px;
  margin: 0 auto;
}

main { padding: 48px 0; }

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

.section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #2563eb;
  letter-spacing: 1.2px;
  margin-bottom: 18px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 26px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s, box-shadow 0.18s;
  border: 1px solid #eef1f6;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(30, 64, 175, 0.12);
}

.card-tag {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  align-self: flex-start;
}

.card h3 {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 10px;
}

.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: #2563eb; }

.card p {
  font-size: 14.5px;
  color: #475569;
  flex: 1;
  margin-bottom: 14px;
}

.card-meta {
  font-size: 12px;
  color: #94a3b8;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

article.post {
  max-width: 780px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 14px;
  padding: 48px 56px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

article.post .post-tag {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

article.post h1 {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

article.post .post-meta {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e5e7eb;
}

article.post p {
  font-size: 16.5px;
  color: #334155;
  margin-bottom: 18px;
}

article.post h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1e40af;
  margin: 26px 0 12px;
}

article.post ul { margin: 0 0 18px 22px; color: #334155; }
article.post ul li { margin-bottom: 8px; }

article.post blockquote {
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  padding: 14px 20px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  color: #1e3a8a;
  font-style: italic;
}

.about-wrap {
  max-width: 780px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 14px;
  padding: 48px 56px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.about-wrap h1 {
  font-size: 30px;
  color: #0f172a;
  margin-bottom: 20px;
  font-weight: 800;
}

.about-wrap h3 { font-size: 18px; color: #1e40af; margin: 22px 0 10px; }
.about-wrap p { margin-bottom: 14px; color: #334155; }

footer.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 32px 0;
  margin-top: 60px;
  text-align: center;
  font-size: 13px;
}

footer.site-footer a { color: #93c5fd; text-decoration: none; }
