/* AperturaSinistro Blog Styles
   Consistent with main site: navy (#0E2A47), coral (#FF5A36), green (#12876A) */

:root {
  --ink: #0E2A47;
  --ink-2: #0A2138;
  --accent: #FF5A36;
  --accent-text: #C5391A;
  --trust: #12876A;
  --bg: #F2F6FB;
  --surface: #FFFFFF;
  --text: #14202E;
  --muted: #5C6B7A;
  --line: #E2E9F1;
  --radius: 14px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 820px; margin: 0 auto; padding: 0 22px; }

/* Header */
.blog-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,33,56,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.blog-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 60px;
}
.blog-brand {
  display: flex; align-items: center; gap: .5rem;
  color: #fff; font-weight: 800; font-size: 1.1rem;
  text-decoration: none;
}
.blog-brand b { color: var(--accent); }
.blog-brand svg { width: 24px; height: 24px; flex-shrink: 0; }
.blog-header nav { display: flex; gap: 1.2rem; }
.blog-header nav a {
  color: rgba(255,255,255,.8); font-weight: 500; font-size: .93rem;
  text-decoration: none;
}
.blog-header nav a:hover,
.blog-header nav a[aria-current="page"] { color: #fff; }

/* Blog Hero */
.blog-hero {
  background: radial-gradient(700px 300px at 50% -30%, rgba(255,90,54,.12), transparent 60%),
              linear-gradient(160deg, var(--ink), var(--ink-2));
  color: #fff;
  padding: 3rem 0 3.5rem;
}
.blog-hero .eyebrow {
  display: inline-block;
  font-size: .75rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #ffb8a5;
  margin-bottom: .5rem;
}
.blog-hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.12; letter-spacing: -.01em;
}
.blog-hero .lead {
  color: rgba(255,255,255,.82); font-size: 1.05rem;
  margin-top: .6rem; max-width: 58ch;
}

/* Blog List */
.blog-list {
  padding: 3rem 22px;
  display: grid;
  gap: 1.2rem;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: 0 1px 3px rgba(13,38,71,.06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13,38,71,.1);
}
.blog-card time {
  font-size: .82rem; color: var(--muted);
  display: block; margin-bottom: .4rem;
}
.blog-card h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.25rem; line-height: 1.2; margin-bottom: .5rem;
}
.blog-card h2 a {
  color: var(--ink); text-decoration: none;
}
.blog-card h2 a:hover { color: var(--accent-text); }
.blog-card p {
  color: var(--muted); font-size: .95rem;
  margin-bottom: .8rem; line-height: 1.55;
}
.read-more {
  color: var(--accent-text); font-weight: 600; font-size: .92rem;
  text-decoration: none;
}
.read-more:hover { text-decoration: underline; }

/* Article Page */
.blog-article {
  padding: 3rem 22px;
}
.article-header {
  margin-bottom: 2rem;
}
.article-date {
  font-size: .85rem; color: var(--muted);
  display: block; margin-bottom: .5rem;
}
.article-header h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  line-height: 1.15; color: var(--ink);
  letter-spacing: -.01em;
}
.article-content p {
  font-size: 1.05rem; line-height: 1.75;
  margin-bottom: 1.3rem; color: var(--text);
}
.article-content h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.4rem; color: var(--ink);
  margin: 2rem 0 .7rem;
}
.article-content h3 {
  font-weight: 700; color: var(--ink);
  font-size: 1.15rem; margin: 1.5rem 0 .5rem;
}
.source {
  margin-top: 2rem; padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: .85rem; color: var(--muted);
}
.source a { color: var(--accent-text); }
.article-footer {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.btn-back {
  color: var(--accent-text); font-weight: 600;
  text-decoration: none; font-size: .95rem;
}
.btn-back:hover { text-decoration: underline; }

/* Footer */
.blog-footer {
  background: var(--ink-2);
  color: rgba(255,255,255,.65);
  padding: 2rem 0; font-size: .88rem;
  margin-top: 2rem;
}
.blog-footer a { color: rgba(255,255,255,.85); }

/* Responsive */
@media (max-width: 600px) {
  .blog-list { padding: 2rem 16px; gap: 1rem; }
  .blog-card { padding: 1.2rem 1.3rem; }
  .blog-article { padding: 2rem 16px; }
}
