/* ============================================================
   ZOOYLO — "The Den" blog styles (extends zooylo.css)
   ============================================================ */

/* shared top bar reuse */
.site-top { position: sticky; top: 0; z-index: 80; background: rgba(251,247,240,.84); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-top.scrolled { border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 16px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--ink-soft); padding: 9px 12px; border-radius: var(--r-pill); white-space: nowrap; }
.nav-links a:hover { color: var(--ink); background: var(--surface-sunk); text-decoration: none; }
.nav-links a.active { color: var(--brand-hover); background: var(--brand-tint); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 48px; height: 48px; border-radius: var(--r-md); border: 2px solid var(--line-strong); background: var(--surface); cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
.nav-toggle i { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; display: block; }
@media (max-width: 1140px) {
  .nav-links { position: absolute; top: 74px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px; gap: 4px; box-shadow: var(--sh-2); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; font-size: 16px; white-space: normal; }
  .nav-toggle { display: flex; }
  .nav-right .desktop-only { display: none; }
}

/* Offset in-page anchor jumps under the sticky header */
[id] { scroll-margin-top: 90px; }

/* ---- Category accent map ---- */
.cat-guides   { --cat: var(--sky-deep);   --cat-tint: var(--sky-tint); }
.cat-play     { --cat: var(--sage-deep);  --cat-tint: var(--sage-tint); }
.cat-access   { --cat: var(--lilac-deep); --cat-tint: var(--lilac-tint); }
.cat-design   { --cat: var(--peach-deep); --cat-tint: var(--peach-tint); }

.cat-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
  background: var(--cat-tint, var(--surface-sunk)); color: var(--cat, var(--ink-soft));
}
.cat-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ============ BLOG HERO ============ */
.blog-hero { padding: clamp(44px,6vw,80px) 0 var(--s-6); }
.blog-hero h1 { font-size: clamp(36px,5vw,58px); }

/* ============ FILTER BAR ============ */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 8px; }
.filter-btn {
  min-height: 44px; padding: 10px 18px; border-radius: var(--r-pill);
  background: var(--surface); border: 2px solid var(--line-strong);
  font-family: inherit; font-weight: 600; font-size: 14.5px; color: var(--ink-soft); cursor: pointer;
  transition: all .15s var(--ease);
}
.filter-btn:hover { border-color: var(--brand-soft); color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ============ FEATURED ============ */
.feature {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--sh-1); margin-bottom: var(--s-6);
}
@media (max-width: 820px){ .feature { grid-template-columns: 1fr; } }
.feature .f-art { min-height: 280px; display: grid; place-items: center; position: relative; overflow: hidden; }
.feature .f-art svg.big { width: 46%; height: 46%; position: relative; z-index: 1; }
.feature .f-art .blob { position: absolute; border-radius: 50%; opacity: .5; }
.feature .f-body { padding: clamp(28px,4vw,44px); display: flex; flex-direction: column; justify-content: center; }
.feature .f-body h2 { font-size: clamp(24px,3vw,34px); margin: 14px 0 12px; line-height: 1.12; }
.feature .f-body p { color: var(--ink-soft); font-size: 16px; margin-bottom: 20px; }
.feature .f-meta { display: flex; align-items: center; gap: 14px; font-size: 13.5px; color: var(--ink-faint); font-weight: 600; }

/* ============ POST GRID ============ */
.post-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s-5); }
@media (max-width: 900px){ .post-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px){ .post-grid { grid-template-columns: 1fr; } }
.post-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.post-card a.cover { display: block; text-decoration: none; }
.post-card .art { height: 168px; display: grid; place-items: center; position: relative; overflow: hidden; }
.post-card .art svg { width: 38%; height: 38%; position: relative; z-index: 1; }
.post-card .art .blob { position: absolute; border-radius: 50%; opacity: .5; }
.post-card .pc-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card h3 { font-size: 19px; line-height: 1.2; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--brand); }
.post-card .excerpt { font-size: 14.5px; color: var(--ink-soft); flex: 1; }
.post-card .pc-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-faint); font-weight: 600; margin-top: 4px; }

.empty-note { text-align: center; color: var(--ink-soft); padding: 40px; font-size: 16px; display: none; }

/* ============ NEWSLETTER STRIP ============ */
.news-strip { background: linear-gradient(160deg, var(--brand-tint), var(--sage-tint)); border-radius: var(--r-xl); padding: clamp(32px,5vw,56px); text-align: center; margin-top: var(--s-8); }
.news-form { max-width: 460px; margin: 22px auto 0; display: flex; gap: 10px; }
@media (max-width: 520px){ .news-form { flex-direction: column; } }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-head { padding: clamp(36px,5vw,64px) 0 var(--s-5); }
.breadcrumb { font-size: 14px; font-weight: 600; color: var(--ink-faint); margin-bottom: 20px; }
.breadcrumb a { color: var(--ink-soft); } .breadcrumb a:hover { color: var(--brand); }
.article-head h1 { font-size: clamp(30px,4.4vw,50px); line-height: 1.08; max-width: 18ch; margin: 16px 0 18px; }
.article-head .standfirst { font-size: clamp(18px,2vw,21px); color: var(--ink-soft); max-width: 60ch; line-height: 1.55; }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.byline .av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.byline .av svg { width: 72%; height: 72%; }
.byline .bi b { font-size: 14.5px; display: block; }
.byline .bi span { font-size: 13px; color: var(--ink-faint); }
.byline .read { margin-left: auto; font-size: 13px; color: var(--ink-faint); font-weight: 600; }

.article-hero-art { height: clamp(220px,32vw,360px); border-radius: var(--r-xl); display: grid; place-items: center; position: relative; overflow: hidden; margin-bottom: var(--s-7); }
.article-hero-art svg.big { width: 30%; height: 50%; position: relative; z-index: 1; }
.article-hero-art .blob { position: absolute; border-radius: 50%; opacity: .55; }

.article-layout { display: grid; grid-template-columns: 220px 1fr; gap: clamp(28px,4vw,56px); align-items: start; }
@media (max-width: 860px){ .article-layout { grid-template-columns: 1fr; } .toc { display: none; } }
.toc { position: sticky; top: 96px; }
.toc h4 { font-family: var(--font-body); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.toc a { display: block; font-size: 14px; color: var(--ink-soft); padding: 7px 0 7px 14px; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--brand); text-decoration: none; border-color: var(--brand-soft); }
.toc a.active { color: var(--brand-hover); border-color: var(--brand); font-weight: 600; }

/* prose */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(24px,3vw,32px); margin-top: 1.8em; margin-bottom: .1em; scroll-margin-top: 96px; }
.prose h3 { font-size: 21px; margin-top: 1.5em; }
.prose p { font-size: 18px; line-height: 1.72; color: var(--ink); }
.prose ul, .prose ol { padding-left: 24px; color: var(--ink); font-size: 18px; line-height: 1.7; }
.prose li { margin: .5em 0; }
.prose li::marker { color: var(--brand-soft); }
.prose strong { font-weight: 700; }
.prose a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brand-soft); }

.callout {
  background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--brand);
  border-radius: var(--r-md); padding: 20px 24px; margin: 1.8em 0;
}
.callout.warm { border-left-color: var(--peach-deep); }
.callout .ct { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.callout .ct svg { width: 26px; height: 26px; }
.callout p { font-size: 16px !important; color: var(--ink-soft); }

.guide-quote {
  display: flex; gap: 18px; align-items: center;
  background: var(--cat-tint, var(--brand-tint)); border-radius: var(--r-lg); padding: 24px 26px; margin: 1.8em 0;
}
.guide-quote .gq-av { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.7); display: grid; place-items: center; flex: none; }
.guide-quote .gq-av svg { width: 76%; height: 76%; }
.guide-quote p { font-family: var(--font-display); font-weight: 500; font-size: 19px !important; color: var(--ink); margin: 0 !important; line-height: 1.4; }

.takeaways { background: var(--surface-warm); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 28px; margin: 2em 0; }
.takeaways h3 { margin-top: 0; font-size: 19px; }
.takeaways ul { list-style: none; padding: 0; margin: 14px 0 0; }
.takeaways li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; margin: 12px 0; color: var(--ink-soft); }
.takeaways li .ck { width: 24px; height: 24px; border-radius: 50%; background: var(--sage-tint); color: var(--sage-deep); display: grid; place-items: center; font-size: 12px; flex: none; margin-top: 2px; }

.article-foot { margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.disclaimer { background: var(--surface-sunk); border-radius: var(--r-md); padding: 18px 22px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; margin-top: var(--s-6); }

/* related */
.related { margin-top: var(--s-8); }
.related h3 { font-size: 22px; margin-bottom: var(--s-5); }

/* footer reused */
.foot { border-top: 1px solid var(--line); padding: var(--s-8) 0 var(--s-6); margin-top: var(--s-8); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-6); }
@media (max-width: 760px){ .foot-grid { grid-template-columns: 1fr; gap: var(--s-5); } }
.foot .foot-h { font-family: var(--font-body); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 14px; }
.foot a { display: block; color: var(--ink-soft); font-size: 15px; padding: 5px 0; }
.foot a:hover { color: var(--brand); }
.scope-note { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-faint); line-height: 1.6; }
