/* =============================================
   Front Blog — Global Stylesheet
   ============================================= */

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.6;
}

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

a { color: inherit; }

/* =============================================
   HEADER
   ============================================= */

.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-logo span { color: #6C48B5; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-nav a {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.875rem;
  color: #555;
  text-decoration: none;
  transition: color 0.15s;
}

.header-nav a:hover { color: #1a1a1a; }

.nav-cta {
  background: #1a1a1a;
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 4px;
  font-weight: 600;
}

.nav-cta:hover {
  background: #333 !important;
  color: #fff !important;
}

/* =============================================
   HOME HERO
   ============================================= */

.home-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px 56px;
}

.home-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.home-hero-label {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6C48B5;
  margin-bottom: 16px;
}

.home-hero-text h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.home-hero-text h1 em { font-style: italic; }

.home-hero-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
}

.home-hero-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 4px;
}

/* =============================================
   ARTICLES SECTION
   ============================================= */

.articles-section {
  border-top: 1px solid #e5e5e5;
  padding: 48px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.articles-section-header { margin-bottom: 32px; }

.articles-section-header h2 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.article-card { }

.article-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 3px;
  margin-bottom: 16px;
}

.article-card-cat {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.78rem;
  color: #888;
  margin-bottom: 10px;
  display: block;
}

.article-card h3 {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 12px;
}

.article-card h3 a {
  color: #1a1a1a;
  text-decoration: none;
}

.article-card h3 a:hover { text-decoration: underline; }

.article-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #555;
  margin-bottom: 14px;
}

.article-card-read {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
}

.article-card-read:hover { text-decoration: underline; }

/* =============================================
   FOOTER
   ============================================= */

.site-footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .site-logo { color: #fff; }

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #888;
  margin-top: 12px;
}

.footer-links h4 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}

.footer-links ul { list-style: none; }

.footer-links ul li { margin-bottom: 10px; }

.footer-links ul li a {
  font-size: 0.9rem;
  color: #888;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links ul li a:hover { color: #fff; }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid #2e2e2e;
  padding-top: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.8rem;
  color: #555;
}

/* =============================================
   ARTICLE PAGES — HEADER
   ============================================= */

.article-header {
  background: #1a1a1a;
  color: #fff;
  padding: 52px 24px 44px;
}

.container {
  max-width: 720px;
  margin: 0 auto;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.article-cat {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6C48B5;
}

.article-read-time {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.78rem;
  color: #888;
}

.article-header h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 20px;
}

.article-header h1 em { font-style: italic; }

.article-deck {
  font-size: 1.12rem;
  line-height: 1.65;
  color: #aaa;
  margin-bottom: 20px;
}

.article-byline {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  color: #666;
}

/* =============================================
   ARTICLE PAGES — BODY
   ============================================= */

.article-hero-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.article-body h2 {
  font-size: 1.55rem;
  font-weight: 400;
  margin-top: 44px;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.article-body h3 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.article-body p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 22px;
}

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

.article-body li {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #333;
  margin-bottom: 8px;
}

.article-body a {
  color: #6C48B5;
  text-decoration: underline;
}

.article-body a:hover { color: #5a3a9e; }

.article-body strong { color: #1a1a1a; font-weight: 700; }

.article-body em { font-style: italic; }

.article-body hr {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 44px 0;
}

/* Table */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9rem;
}

.article-body th {
  text-align: left;
  border-bottom: 2px solid #1a1a1a;
  padding: 10px 14px;
  font-weight: 700;
  background: #f9f9f9;
}

.article-body td {
  padding: 10px 14px;
  border-bottom: 1px solid #e5e5e5;
  color: #333;
  vertical-align: top;
}

.article-body tr:last-child td { border-bottom: none; }

/* Article CTA Block */
.article-cta {
  background: #f7f3ee;
  border-left: 3px solid #6C48B5;
  padding: 24px 28px;
  border-radius: 4px;
  margin: 32px 0;
}

.article-cta p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 12px;
}

.article-cta a {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
}

.article-cta a:hover { text-decoration: underline; }

/* FAQ */
.faq-section { margin: 44px 0; }

.faq-section h2 {
  font-size: 1.55rem;
  font-weight: 400;
  margin-bottom: 24px;
  color: #1a1a1a;
}

.faq-item {
  border-top: 1px solid #e5e5e5;
  padding: 20px 0;
}

.faq-q {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px !important;
}

.faq-a {
  font-size: 1rem;
  line-height: 1.75;
  color: #555;
  margin-bottom: 0 !important;
}

/* Keep Reading */
.keep-reading { margin-top: 52px; }

.keep-reading h3 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 20px;
}

.keep-reading-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.keep-reading-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.15s;
}

.keep-reading-card:hover { border-color: #1a1a1a; }

.keep-reading-card img {
  width: 130px;
  height: 100%;
  min-height: 100px;
  object-fit: cover;
}

.keep-reading-card-text {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.keep-reading-card-text .cat {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
  display: block;
  margin-bottom: 8px;
}

.keep-reading-card-text h4 {
  font-size: 0.92rem;
  line-height: 1.4;
  color: #1a1a1a;
  margin-bottom: 10px;
  font-weight: 400;
}

.keep-reading-card-text span {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.78rem;
  color: #888;
}

/* =============================================
   RESPONSIVE
   ============================================= */

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

@media (max-width: 680px) {
  .home-hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .home-hero-img {
    height: 260px;
    order: -1;
  }

  .article-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }

  .keep-reading-grid { grid-template-columns: 1fr; }

  .keep-reading-card {
    grid-template-columns: 100px 1fr;
  }

  .header-nav { gap: 16px; }
}
