@import url('/colors_and_type.css');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-sans); background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: inherit; }

/* ============================================================
 * Sticky nav — identical visual rules to landing's .aa-nav
 * Copied from styles.css so blog is CSS-self-contained but
 * looks 1:1 with the React-rendered nav on the root site.
 * ============================================================ */
.aa-nav { position: sticky; top: 0; z-index: 50; background: var(--bg-card); border-bottom: 1px solid var(--border); }
.aa-nav-inner { max-width: 1180px; margin: 0 auto; padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.aa-brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--text); }
.aa-brand img { height: 88px; width: auto; }
.aa-nav-links { display: flex; align-items: center; gap: 2rem; margin-left: auto; }
.aa-nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text); text-decoration: none; transition: color 0.15s; }
.aa-nav-links a:hover { color: var(--text-muted); }
.aa-nav-links a[aria-current="page"] { font-weight: 700; }
.aa-nav-right { display: flex; align-items: center; gap: 1.5rem; }
.aa-lang { display: flex; align-items: center; gap: 0.6rem; }
.aa-lang-link { font-size: 0.9rem; font-weight: 500; color: var(--text-dim); text-decoration: none; transition: color 0.15s; }
.aa-lang-link:hover { color: var(--text); }
.aa-lang-link.active, .aa-lang-link[aria-current="true"] { color: var(--text); font-weight: 700; }
.aa-nav-mobile-btn { display: none; background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 0.25rem; }
.aa-nav-drawer { display: none; flex-direction: column; gap: 0.85rem; padding: 1rem 1.5rem; background: var(--bg-card); border-bottom: 1px solid var(--border); }
.aa-nav-drawer.visible { display: flex; }
.aa-nav-drawer a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }

/* ============================================================
 * Footer — identical visual rules to landing's .aa-footer
 * ============================================================ */
.aa-footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 2.5rem 1.5rem 2rem; margin-top: 4rem; }
.aa-footer-inner { max-width: 1080px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.aa-footer-brand { display: flex; align-items: center; gap: 0.6rem; }
.aa-footer-brand img { height: 56px; width: auto; }
.aa-footer-copy { font-size: 0.75rem; color: var(--text-dim); }
.aa-footer-links { display: flex; gap: 1.5rem; }
.aa-footer-links a { font-size: 0.78rem; color: var(--text-muted); text-decoration: none; }
.aa-footer-links a:hover { color: var(--text); }

/* ============================================================
 * Article hero (blog-specific — quieter than landing's hero)
 * ============================================================ */
.hero { background: var(--bg); padding: 4rem 2rem 2rem; text-align: center; }
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; padding: 0.45rem 1.1rem; font-size: 0.72rem; font-weight: 600; color: var(--text); margin-bottom: 1.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
.hero h1 { font-family: var(--font-display); font-size: 2.75rem; font-weight: 400; line-height: 1.15; color: var(--text); margin-bottom: 1.25rem; letter-spacing: -0.015em; }
.hero-sub { font-size: 1.05rem; color: var(--text-muted); max-width: 580px; margin: 0 auto; line-height: 1.65; }

/* ============================================================
 * Article body
 * ============================================================ */
.article { max-width: 680px; margin: 0 auto; padding: 2rem 1.5rem 2rem; }
.article-meta { font-size: 0.75rem; color: var(--text-dim); margin-bottom: 2.5rem; text-align: center; }
.article-meta .byline { font-weight: 500; color: var(--text-muted); margin-bottom: 0.25rem; }
.article-meta .byline a { color: var(--text); text-decoration: none; }
.article-meta .byline a:hover { text-decoration: underline; }
.article-meta .dates { font-size: 0.72rem; color: var(--text-dim); margin-bottom: 0.25rem; }
.article-meta .cat { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }

.article h2 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 400; line-height: 1.25; margin: 2.5rem 0 1rem; letter-spacing: -0.01em; color: var(--text); }
.article h3 { font-size: 1.05rem; font-weight: 600; margin: 1.75rem 0 0.75rem; color: var(--text); }
.article p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 1.1rem; }
.article ul, .article ol { margin: 0 0 1.1rem 1.5rem; }
.article li { font-size: 0.95rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 0.4rem; }
.article strong { color: var(--text); font-weight: 600; }
.article a { color: var(--accent); text-decoration: underline; }
.article a:hover { color: var(--accent-hover); }
.article em { font-style: italic; }

.callout { background: var(--info-bg); border: 1px solid var(--info-border); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.75rem 0; }
.callout p { margin: 0 0 0.6rem; font-size: 0.92rem; color: var(--text); line-height: 1.65; }
.callout p:last-child { margin-bottom: 0; }
.callout ul, .callout ol { margin: 0.5rem 0 0 1.25rem; }
.callout li { font-size: 0.92rem; color: var(--text); }

blockquote { border-left: 3px solid var(--border); padding: 0.5rem 0 0.5rem 1.25rem; margin: 1.5rem 0; font-style: italic; color: var(--text-muted); }
blockquote cite { display: block; margin-top: 0.5rem; font-size: 0.8rem; color: var(--text-dim); font-style: normal; }

/* ============================================================
 * CTA + related
 * ============================================================ */
.cta-section { text-align: center; padding: 3rem 2rem; max-width: 600px; margin: 2.5rem auto 0; background: var(--bg-input); border-radius: var(--radius-lg); }
.cta-section h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; margin-bottom: 0.75rem; color: var(--text); }
.cta-section p { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.65; }
.cta-btn { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--btn-bg); color: var(--btn-fg); border: none; border-radius: 999px; padding: 0.85rem 2rem; font-size: 0.95rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: background 0.15s; }
.cta-btn:hover { background: var(--btn-bg-hover); color: var(--btn-fg); }

.related { max-width: 680px; margin: 3rem auto 0; padding: 2rem 1.5rem; border-top: 1px solid var(--border); }
.related-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-dim); font-weight: 600; margin-bottom: 1rem; }
.related ul { list-style: none; margin: 0; padding: 0; }
.related li { padding: 0.55rem 0; font-size: 0.9rem; }
.related li a { color: var(--text); text-decoration: none; font-weight: 500; }
.related li a:hover { color: var(--accent); text-decoration: underline; }

/* ============================================================
 * Blog index
 * ============================================================ */
.blog-index { max-width: 800px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.blog-group { margin-bottom: 3rem; }
.blog-group-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-dim); font-weight: 600; margin-bottom: 0.75rem; }
.blog-list { list-style: none; padding: 0; }
.blog-list li { padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
.blog-list li:last-child { border-bottom: none; }
.blog-list li a { color: var(--text); text-decoration: none; font-size: 0.95rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.blog-list li a:hover { color: var(--accent); }
.blog-list li .arrow { color: var(--text-dim); font-size: 0.8rem; }

/* ============================================================
 * Responsive — match landing's breakpoints
 * ============================================================ */
@media (max-width: 880px) {
  .hero h1 { font-size: 2.2rem; }
  .aa-brand img { height: 64px; }
}
@media (max-width: 640px) {
  .aa-nav-links { display: none; }
  .aa-nav-mobile-btn { display: block; }
  .aa-nav-inner { padding: 0.75rem 1rem; gap: 1rem; }
  .aa-brand img { height: 48px; }
  .hero { padding: 2.5rem 1.25rem 1.5rem; }
  .hero h1 { font-size: 1.7rem; }
  .article h2 { font-size: 1.4rem; }
  .aa-footer-inner { flex-direction: column; text-align: center; }
}
