/* ============================================
   SPARK MEDIA BLOG — shared stylesheet
   Reuses the exact design tokens from the main site.
   Linked by every file in /blog/ — edit once, all pages update.
   ============================================ */

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

:root{
  --ink:#15181e;
  --ink-soft:#4b5563;
  --paper:#f4f6fa;
  --blue:#0f6fa8;
  --blue-deep:#0a3b5c;
  --blue-soft:#dbe7f0;
  --yellow:#9cc9e8;
  --coral:#155f8e;
  --mint:#4a8bb0;
  --muted:#5b6472;
  --border-ink:#15181e;
  --font-display:'Bebas Neue',sans-serif;
  --font-body:'DM Sans',sans-serif;
  --font-hand:'Caveat',cursive;
  --shadow-sm:4px 4px 0 var(--border-ink);
  --shadow-md:7px 7px 0 var(--border-ink);
  --shadow-soft:0 14px 30px -12px rgba(10,20,40,.22);
  --card-border:1.5px solid rgba(21,24,30,.14);
}

html{ scroll-behavior:smooth; }

body{
  background:var(--paper); color:var(--ink); font-family:var(--font-body); font-weight:500;
  overflow-x:hidden; -webkit-font-smoothing:antialiased;
}

h1,h2,h3{ font-family:var(--font-display); text-transform:uppercase; letter-spacing:.01em; line-height:.96; }

a{ color:inherit; }

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

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

/* ── NAV (identical to main site) ── */
nav{
  position:fixed; top:6px; left:0; right:0; z-index:500;
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 5vw; background:rgba(244,246,250,.92); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  box-shadow:0 2px 0 rgba(11,19,48,.08);
}
.nav-logo{ display:flex; align-items:center; gap:10px; text-decoration:none; }
.nav-logo img{ height:34px; width:auto; }
.nav-links{ display:flex; gap:30px; list-style:none; }
.nav-links a{
  font-weight:700; font-size:.88rem; letter-spacing:.02em; text-decoration:none; color:var(--ink);
  position:relative; padding-bottom:4px;
}
.nav-links a.active{ color:var(--blue); }
@media (max-width:860px){ .nav-links{ display:none; } }
.nav-cta{ font-size:.85rem !important; padding:11px 20px !important; }

/* ── FOOTER (identical to main site) ── */
footer{
  background:var(--ink); color:rgba(238,243,255,.6); padding:36px 6vw; margin-top:100px;
  display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
}
.footer-copy{ font-size:.82rem; }
.footer-links{ display:flex; gap:22px; list-style:none; }
.footer-links a{ font-size:.78rem; text-decoration:none; color:rgba(238,243,255,.6); font-weight:700; letter-spacing:.04em; text-transform:uppercase; transition:color .2s; }
.footer-links a:hover{ color:var(--yellow); }
@media (max-width:600px){
  footer{ flex-direction:column; text-align:center; gap:18px; }
  .footer-links{ justify-content:center; flex-wrap:wrap; row-gap:10px; }
}

/* ── shared bits ── */
.eyebrow{
  font-family:var(--font-hand); font-size:1.5rem; color:var(--blue);
  display:inline-flex; align-items:center; gap:10px; margin-bottom:10px;
}
.pill-tag{
  display:inline-flex; align-items:center; gap:8px;
  font-size:.75rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase;
  background:#fff; border:1.5px solid var(--border-ink); border-radius:100px; padding:7px 16px;
  box-shadow:3px 3px 0 var(--border-ink);
}
.pill-tag .dot{ width:8px; height:8px; border-radius:50%; background:var(--coral); }
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--font-body); font-weight:800; font-size:.92rem;
  letter-spacing:.02em; text-decoration:none; cursor:pointer;
  padding:15px 28px; border:2px solid var(--border-ink); border-radius:100px;
  background:var(--yellow); color:var(--ink);
  box-shadow:var(--shadow-sm);
  transition:transform .18s ease, box-shadow .18s ease, background .2s, color .2s;
}
.btn:hover{ transform:translate(-2px,-2px); box-shadow:6px 6px 0 var(--border-ink); background:var(--coral); color:#fff; }
.btn:active{ transform:translate(2px,2px); box-shadow:2px 2px 0 var(--border-ink); }
.spark-ico{ width:.95em; height:.95em; vertical-align:-0.12em; display:inline-block; margin:0 1px; filter:drop-shadow(0 1px 1px rgba(0,0,0,.22)); }

/* ── BLOG LANDING ── */
.blog-hero{ padding:150px 6vw 40px; text-align:center; }
.blog-hero h1{ font-size:clamp(42px,7vw,86px); margin-top:14px; }
.blog-hero p{ max-width:560px; margin:20px auto 0; color:var(--ink-soft); font-size:1.08rem; line-height:1.6; }

.post-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:28px;
  padding:60px 6vw 0; max-width:1180px; margin:0 auto;
}
@media (max-width:900px){ .post-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:620px){ .post-grid{ grid-template-columns:1fr; } }

.post-card{
  display:block; text-decoration:none; color:inherit;
  background:#fff; border:var(--card-border); border-radius:20px; padding:28px;
  box-shadow:var(--shadow-soft); transition:transform .2s, box-shadow .2s;
}
.post-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-md); }
.post-date{ font-family:var(--font-hand); font-size:1.15rem; color:var(--blue); }
.post-card h2{
  font-size:1.6rem; margin-top:8px; text-transform:none; letter-spacing:0; line-height:1.15;
  font-family:var(--font-display); text-transform:uppercase;
}
.post-excerpt{ margin-top:12px; color:var(--ink-soft); font-size:.95rem; line-height:1.55; }
.post-readmore{ margin-top:18px; font-weight:800; font-size:.85rem; color:var(--blue); display:inline-flex; align-items:center; gap:6px; }

/* ── ARTICLE PAGE ── */
.article{ padding:150px 6vw 0; }
.article-head{ max-width:760px; margin:0 auto 50px; text-align:center; }
.article-head h1{ font-size:clamp(34px,6vw,64px); margin-top:14px; }
.article-date{ font-family:var(--font-hand); font-size:1.2rem; color:var(--blue); margin-top:16px; display:block; }

.article-body{ max-width:680px; margin:0 auto; font-size:1.12rem; line-height:1.85; color:var(--ink); }
.article-body p{ margin-bottom:1.4em; }
.article-body p:last-of-type{ margin-bottom:0; }
.article-body strong{ color:var(--blue-deep); }

.tag-row{ max-width:680px; margin:46px auto 0; display:flex; flex-wrap:wrap; gap:8px; }
.tag-chip{
  font-size:.72rem; font-weight:800; letter-spacing:.03em; text-transform:uppercase;
  background:var(--blue-soft); color:var(--blue-deep); border-radius:100px; padding:6px 14px;
}

.share-row{
  max-width:680px; margin:40px auto 0; padding-top:30px; border-top:2px dashed rgba(21,24,30,.15);
  display:flex; align-items:center; gap:14px; flex-wrap:wrap;
}
.share-label{ font-family:var(--font-hand); font-size:1.2rem; color:var(--blue); margin-right:4px; }
.share-btn{
  width:40px; height:40px; border-radius:50%; border:1.5px solid var(--border-ink);
  display:flex; align-items:center; justify-content:center; text-decoration:none; color:var(--ink);
  background:#fff; transition:transform .18s, background .18s, color .18s;
  font-size:.85rem; font-weight:800;
}
.share-btn:hover{ transform:translateY(-3px); background:var(--blue); color:#fff; border-color:var(--blue); }
.share-btn.copied{ background:var(--coral); color:#fff; border-color:var(--coral); }

.article-cta{
  max-width:680px; margin:60px auto 0; padding:36px; text-align:center;
  background:var(--blue-deep); border-radius:24px; color:#fff;
}
.article-cta p{ font-family:var(--font-hand); font-size:1.3rem; margin-bottom:18px; color:var(--blue-soft); }

.back-link{
  display:inline-flex; align-items:center; gap:8px; max-width:680px; margin:50px auto 0;
  font-weight:800; font-size:.85rem; text-decoration:none; color:var(--ink-soft); width:100%;
}
.back-link:hover{ color:var(--blue); }


/* ── HEADER STYLING (poster-style headline: eyebrow, big headline w/ blue accent, standfirst, read cue) ── */
.accent{ color:var(--blue); }
.eyebrow svg{ width:20px; height:20px; flex-shrink:0; }
.article-head{ max-width:860px; margin:0 auto 46px; text-align:left; }
.article-head h1, .blog-hero h1{ font-size:clamp(42px,8.4vw,104px); line-height:.94; margin-top:4px; }
.standfirst{ margin-top:22px; font-size:1.15rem; line-height:1.5; color:var(--ink-soft); max-width:620px; font-weight:500; }
.head-meta{ display:flex; align-items:center; gap:22px; flex-wrap:wrap; margin-top:16px; }
.read-cue{ display:inline-flex; align-items:center; gap:10px; font-weight:500; font-size:1rem; text-decoration:none; color:var(--ink); }
.cue-ico{ width:22px; height:22px; border-radius:50%; background:var(--blue); display:inline-flex; align-items:center; justify-content:center; transition:transform .2s; }
.cue-ico svg{ width:11px; height:11px; }
.read-cue:hover .cue-ico{ transform:translateY(3px); }
.article-date{ margin-top:0; display:inline; font-size:1.15rem; }
.article-body, .tag-row, .share-row, .article-cta, .back-link{ max-width:860px; }
.article-body p{ max-width:680px; }
.article-body{ scroll-margin-top:100px; }
.tag-row{ margin-top:46px; }
.blog-hero{ text-align:left; max-width:1180px; margin:0 auto; padding:150px 6vw 0; }
.blog-hero p{ margin:22px 0 0; max-width:560px; }


/* ── MOBILE ── */
.hamburger{ display:none; width:44px; height:44px; background:none; border:none; cursor:pointer; flex-direction:column; justify-content:center; align-items:center; gap:5px; }
.hamburger span{ width:24px; height:2.5px; background:var(--ink); border-radius:2px; transition:transform .25s, opacity .2s; }
.hamburger.open span:nth-child(1){ transform:translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity:0; }
.hamburger.open span:nth-child(3){ transform:translateY(-7.5px) rotate(-45deg); }
.nav-mobile-panel{ display:none; position:fixed; top:76px; left:5vw; right:5vw; z-index:499; background:#fff; border:var(--card-border); border-radius:18px; box-shadow:var(--shadow-soft); padding:6px 18px; flex-direction:column; }
.nav-mobile-panel.open{ display:flex; }
.nav-mobile-panel a{ padding:15px 4px; text-decoration:none; font-weight:800; font-size:.85rem; text-transform:uppercase; letter-spacing:.03em; color:var(--ink); border-bottom:1px dashed rgba(21,24,30,.15); }
.nav-mobile-panel a:last-child{ border-bottom:none; }
@media (max-width:860px){ .hamburger{ display:flex; } nav{ gap:8px; } .nav-cta{ margin-left:auto; } }
@media (min-width:901px){ .nav-mobile-panel{ display:none !important; } }
@media (max-width:600px){
  .article{ padding-top:108px; }
  .blog-hero{ padding-top:108px; }
  .post-grid{ padding-top:36px; gap:20px; }
  .article-head{ margin-bottom:34px; }
  .article-body{ font-size:1.06rem; line-height:1.8; }
  .share-btn{ width:44px; height:44px; }
  .article-cta{ padding:28px 20px; }
  .read-cue{ padding:10px 0; }
  footer{ margin-top:70px; }
}


/* ── LONG-FORM PAGES (privacy etc.) ── */
.article-body h2{ font-size:clamp(26px,4vw,34px); margin:2.1em 0 .55em; line-height:1; max-width:680px; }
.article-body ul{ margin:0 0 1.4em 1.25em; max-width:680px; }
.article-body li{ margin-bottom:.55em; padding-left:.2em; }
.article-body a{ color:var(--blue); font-weight:700; text-underline-offset:3px; }
.article-body a:hover{ color:var(--blue-deep); }


/* ── nav parity with the main site ── */
.nav-links a{ font-size:.82rem; font-weight:800; letter-spacing:.03em; text-transform:uppercase; padding-bottom:3px; position:relative; }
.nav-links a::after{ content:''; position:absolute; left:0; bottom:0; width:0; height:3px; background:var(--yellow); transition:width .25s ease; }
.nav-links a:hover::after, .nav-links a.active::after{ width:100%; }
.nav-links a.active{ color:var(--ink); }
.hamburger{ width:auto; height:auto; padding:6px; gap:5px; }
.hamburger span{ width:26px; height:3px; }
.hamburger.open span:nth-child(1){ transform:translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(3){ transform:translateY(-8px) rotate(-45deg); }
@media (max-width:900px){
  .nav-links{ display:none; }
  .nav-cta{ display:none; }
  .hamburger{ display:flex; margin-left:auto; }
  .nav-mobile-panel{
    display:flex; flex-direction:column; gap:2px; top:70px; padding:14px;
    background:#fff; border:2.5px solid var(--border-ink); border-radius:20px; box-shadow:var(--shadow-md);
    transform:translateY(-12px); opacity:0; pointer-events:none; transition:all .25s ease;
  }
  .nav-mobile-panel.open{ transform:translateY(0); opacity:1; pointer-events:auto; }
  .nav-mobile-panel a{ padding:12px 10px; border-bottom:1px dashed rgba(11,19,48,.15); font-size:.85rem; }
}
