/* Shared styles for Blog pages (blog.html + blog-*.html posts) — mirrors index.html design tokens */
:root {
  --bg: #F5F1EA;
  --bg-tex: #EFE9DC;
  --panel: #F5F1EA;
  --panel-2: #EDE7DA;
  --ink: #1C1C1E;
  --ink-soft: #3A3A3E;
  --muted: #8A8580;
  --line: rgba(11,43,74,.14);
  --line-strong: rgba(11,43,74,.3);

  --navy: #0B2B4A;
  --navy-fg: #F5F1EA;
  --sage: #6B8E7F;
  --rust: #A0522D;

  --gold: #C69749;
  --gold-dark: #8A6B2E;
  --gold-tint: rgba(198,151,73,.14);
  --gold-ink: #6B5023;

  --hero-bg: #0B2B4A;
  --hero-fg: #F5F1EA;
  --hero-soft: rgba(245,241,234,.72);

  --note: #8A6B2E;
  --note-border: #C69749;
  --note-bg: rgba(198,151,73,.1);
  --dev: #A0522D;
  --dev-bg: rgba(160,82,45,.07);

  --radius: 3px;
  --radius-sm: 2px;

  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1C1E; --bg-tex: #222225; --panel: #1C1C1E; --panel-2: #26262A;
    --ink: #F5F1EA; --ink-soft: #D6D2C8; --muted: #9C9790;
    --line: rgba(245,241,234,.14); --line-strong: rgba(245,241,234,.28);
    --gold: #D6A85C; --gold-dark: #D6A85C; --gold-tint: rgba(214,168,92,.16); --gold-ink: #D6A85C;
  }
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: clip; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; padding: 0; max-width: 100%;
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.006em;
  line-height: 1.65;
}
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); text-wrap: balance; margin: 0; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
@media (max-width: 640px) { .wrap { padding-left: 20px; padding-right: 20px; } }

.eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-dark);
}

/* ---------- nav (same as index.html) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: 1180px; margin: 0 auto; padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-photo-wrap { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); border: 1px solid var(--line-strong); flex-shrink: 0; overflow: hidden; display: inline-block; }
.brand-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.wordmark { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.wordmark span { color: var(--muted); font-family: var(--font-body); font-weight: 400; font-size: 13.5px; }
.nav-links { display: flex; gap: 26px; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-weight: 500; border-bottom: 2px solid transparent; padding-bottom: 3px; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); border-color: var(--gold); }
.nav-phone {
  display: flex; align-items: center; gap: 7px; font-family: var(--font-body); font-weight: 600;
  font-size: 13.5px; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums;
}
.nav-phone-dot { width: 24px; height: 24px; border-radius: 999px; background: var(--gold-tint); color: var(--gold-ink); display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.nav-divider { width: 1px; height: 20px; background: var(--line-strong); }
.lang-switch { display: flex; align-items: center; gap: 2px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 3px; flex-shrink: 0; }
.lang-btn {
  font-family: var(--font-body); font-weight: 700; font-size: 11.5px; line-height: 1; border: none;
  border-radius: var(--radius-sm); padding: 6px 10px; background: none; color: var(--muted); cursor: pointer;
}
.lang-btn.active { background: var(--navy); color: var(--navy-fg); }
.lang-btn:hover:not(.active) { color: var(--ink); }
.nav-toggle { display: none; }
.nav-cta {
  font-family: var(--font-body); font-size: 13.5px; font-weight: 700;
  background: var(--navy); color: var(--navy-fg); text-decoration: none;
  padding: 10px 18px; border-radius: var(--radius-sm); white-space: nowrap;
}
.nav-cta:hover { opacity: .88; }
@media (max-width: 860px) {
  .nav-phone span:last-child, .nav-divider { display: none; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: inline-flex; background: none; border: 1px solid var(--line-strong); color: var(--ink);
    border-radius: var(--radius-sm); padding: 7px 12px; font-family: var(--font-body); font-weight: 600; font-size: 12.5px;
  }
  .nav-links.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg);
    border-bottom: 1px solid var(--line); flex-direction: column; padding: 12px 20px 18px; gap: 14px;
  }
  .nav-inner { gap: 10px; }
  .nav-right { gap: 8px; }
  .nav-cta { padding: 9px 14px; font-size: 12.5px; }
  .nav-phone { display: none; }
}
@media (max-width: 420px) {
  .wordmark span { display: none; }
  .nav-inner { padding: 12px 16px; }
}

/* ---------- section shell ---------- */
section.block { padding: 72px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 84px; }
.block-head { margin-bottom: 40px; }
.block-head h2 { font-size: clamp(27px, 4vw, 36px); margin-top: 10px; }
.block-head h2:first-child { margin-top: 0; }
.block-head p.lede { margin-top: 14px; font-size: 16.5px; color: var(--ink-soft); max-width: 58ch; }

/* ---------- buttons ---------- */
.btn-primary {
  background: var(--navy); color: var(--navy-fg); text-decoration: none;
  padding: 15px 27px; border-radius: var(--radius-sm); font-weight: 700; font-size: 16px;
  border: none; cursor: pointer; font-family: var(--font-body); display: inline-block;
}
.btn-primary:hover { opacity: .88; }
.btn-outline {
  background: transparent; color: var(--ink); text-decoration: none;
  padding: 14px 25px; border-radius: var(--radius-sm); font-weight: 700; font-size: 16px;
  border: 1.5px solid var(--line-strong); font-family: var(--font-body); display: inline-block;
}

/* ---------- blog listing ---------- */
.blog-hero { padding: 56px 0 8px; }
.blog-hero h1 { font-size: clamp(30px, 4.5vw, 44px); line-height: 1.15; }
.blog-hero p { margin-top: 14px; font-size: 17px; color: var(--ink-soft); max-width: 60ch; text-wrap: pretty; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
@media (max-width: 860px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .post-grid { grid-template-columns: 1fr; } }
.post-card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-decoration: none; transition: border-color .15s;
}
.post-card:hover { border-color: var(--gold); }
.post-card-tag {
  align-self: flex-start; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold-ink); background: var(--gold-tint);
  padding: 5px 10px; border-radius: var(--radius-sm);
}
.post-card h3 { font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.post-card p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.post-card-meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.post-card-more { font-size: 13.5px; font-weight: 600; color: var(--gold-dark); }

/* ---------- blog post article ---------- */
.article-head { max-width: 68ch; }
.article-head h1 { font-size: clamp(28px, 4.2vw, 40px); line-height: 1.2; margin-top: 12px; }
.article-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.article-body { max-width: 68ch; margin-top: 36px; font-size: 16.5px; color: var(--ink-soft); line-height: 1.85; }
.article-body h2 { font-size: 22px; color: var(--ink); margin-top: 36px; margin-bottom: 4px; }
.article-body p { margin-top: 16px; text-align: justify; text-justify: inter-word; hyphens: auto; }
.article-body ul { margin-top: 16px; padding-left: 22px; }
.article-body li { margin-top: 8px; }
.article-body p:first-child { margin-top: 0; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--gold-dark); text-decoration: none; margin-bottom: 24px; }
.article-disclaimer {
  max-width: 68ch; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted); line-height: 1.6;
}
.article-cta {
  max-width: 68ch; margin-top: 32px; background: var(--hero-bg); border-radius: var(--radius);
  padding: 26px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.article-cta b { color: var(--hero-fg); font-size: 16px; font-family: var(--font-display); }
.article-cta p { color: var(--hero-soft); font-size: 14px; margin-top: 4px; }
.article-cta .btn-primary { background: var(--gold); color: var(--hero-bg); flex-shrink: 0; }

/* ---------- footer (same as index.html) ---------- */
footer { padding: 44px 0 60px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.footer-sig { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.footer-sig span { color: var(--gold-dark); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.footer-col a { font-size: 14px; color: var(--ink-soft); text-decoration: none; }
.footer-col a:hover { color: var(--gold-dark); }
.footer-col span.value { font-size: 14px; color: var(--ink-soft); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 20px; }
.disclaimer { max-width: 70ch; font-size: 12.5px; color: var(--muted); line-height: 1.6; }