/* o1 Labs blog. Editorial system shared with the Social Media Clips page:
   Fraunces for display, Poppins for text, DM Sans for the shared site nav.
   Hard 2px rules, cream paper, one signal colour. No soft shadows. */

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

:root {
  --ink: #14140f;
  --ink-soft: #4a4a42;
  --paper: #f7f4ec;
  --paper-2: #efeadd;
  --signal: #ffcc00;
  --line: #d9d2c0;
  --rule: 2px solid var(--ink);
  --sans: 'DM Sans', 'Helvetica Neue', sans-serif;
  --serif: 'Fraunces', Georgia, serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Poppins, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  padding-top: 60px;
}

a { color: inherit; }

/* ===== SHARED SITE NAV, same geometry as the homepage and clips page ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 36px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid transparent; line-height: normal;
  transition: background .4s, backdrop-filter .4s, border-color .4s, box-shadow .4s, padding .4s;
}
.nav a, .menu-overlay a { line-height: normal; }
.nav.over-light {
  background: rgba(247, 244, 236, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: rgba(20, 20, 15, 0.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 8px 30px rgba(20,20,15,.06);
}
.nav-logo {
  font-family: var(--sans); font-size: 17px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; text-decoration: none; color: var(--ink); transition: color .3s;
}
.nav-right { display: flex; align-items: center; gap: 26px; }
.nav-lang {
  font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 1.2px;
  text-transform: uppercase; cursor: pointer; text-decoration: none;
  color: var(--ink); transition: opacity .3s;
}
.nav-lang:hover { opacity: .6; }
.nav-lang.active { opacity: .45; }
.nav-icons { display: none; align-items: center; gap: 18px; }
.hamburger {
  width: 22px; height: 14px; display: flex; flex-direction: column;
  justify-content: space-between; cursor: pointer;
}
.hamburger span {
  display: block; width: 100%; height: 1.5px; background: var(--ink);
  transition: all .4s cubic-bezier(.16,1,.3,1);
}
.hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.menu-overlay {
  position: fixed; inset: 0; z-index: 99; background: var(--paper);
  display: flex; flex-direction: column; padding: 110px 44px 44px;
  transform: translateY(-100%); transition: transform .7s cubic-bezier(.16,1,.3,1);
}
.menu-overlay.active { transform: translateY(0); }
.menu-nav-links { padding-top: 8px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.menu-nav-link {
  font-family: var(--serif); font-weight: 400; font-size: 44px; color: var(--ink);
  text-decoration: none; padding: 10px 0; transition: opacity .3s; line-height: 1.08;
  letter-spacing: -.02em;
}
.menu-nav-link:hover { opacity: .4; }
.menu-footer-links { display: flex; gap: 28px; padding-top: 32px; border-top: 1px solid var(--line); }
.menu-footer-link {
  font-family: var(--sans); font-size: 10px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 1.8px; color: var(--ink-soft); text-decoration: none; transition: opacity .3s;
}
.menu-footer-link:hover { opacity: .5; }

@media (max-width: 900px) { .nav-right .nav-lang { display: none; } .nav-icons { display: flex; } }
@media (max-width: 768px) {
  body { padding-top: 56px; }
  .nav { padding: 16px 22px; }
  .menu-overlay { padding: 100px 28px 28px; }
  .menu-nav-link { font-size: 34px; }
}

/* ===== SHARED STICKY BREADCRUMB, same as the Social Media Clips page =====
   Sits directly under the fixed nav so people always have a way back. */
.crumb {
  position: sticky; top: 60px; z-index: 60;
  border-bottom: var(--rule); background: var(--paper-2);
  padding: 11px 0; font-size: 14px;
}
.crumb .crumb-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 28px;
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.crumb.narrow .crumb-inner { max-width: 720px; }
.crumb a { text-decoration: none; color: var(--ink-soft); transition: color .2s; }
.crumb a:hover { color: var(--ink); }
.crumb .sep { color: var(--line); }
.crumb .here { font-weight: 600; }
@media (max-width: 768px) { .crumb { top: 56px; } }
/* anchors have to clear the fixed nav plus the sticky crumb */
.has-crumb section[id], .has-crumb div[id] { scroll-margin-top: 118px; }

/* ===== BLOG INDEX ===== */
.blog-head {
  max-width: 1080px; margin: 0 auto; padding: 72px 28px 44px;
  border-bottom: var(--rule);
}
.blog-eyebrow {
  font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 600; color: var(--ink-soft); display: block; margin-bottom: 22px;
}
.blog-h1 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02; letter-spacing: -.03em; max-width: 16ch;
}
.blog-h1 em {
  font-style: normal;
  background: linear-gradient(transparent 52%, var(--signal) 52%, var(--signal) 86%, transparent 86%);
  padding: 0 2px;
}
.blog-intro {
  margin-top: 24px; font-size: clamp(17px, 2vw, 20px);
  max-width: 60ch; color: var(--ink-soft);
}

.post-grid {
  max-width: 1080px; margin: 0 auto; padding: 0 28px 80px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
}
.post-card {
  display: flex; flex-direction: column; text-decoration: none;
  padding: 30px 26px 28px; border-bottom: var(--rule); border-right: 1px solid var(--line);
  transition: background .18s ease;
}
.post-card:nth-child(2n) { border-right: 0; }
.post-card:hover { background: var(--paper-2); }
.post-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.post-cat {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: var(--signal); color: var(--ink); padding: 3px 9px;
}
.post-date, .post-read { font-size: 12.5px; color: var(--ink-soft); }
.post-title {
  font-family: var(--serif); font-weight: 600; font-size: 25px; line-height: 1.14;
  letter-spacing: -.02em; margin-bottom: 12px;
}
.post-excerpt { font-size: 15px; color: var(--ink-soft); flex: 1; margin-bottom: 20px; }
.post-more {
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
}
.post-more svg {
  width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2;
  transition: transform .18s ease;
}
.post-card:hover .post-more svg { transform: translateX(4px); }

/* ===== ARTICLE ===== */
.article { max-width: 720px; margin: 0 auto; padding: 52px 28px 40px; }
.back {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 34px; transition: color .2s;
}
.back:hover { color: var(--ink); }
.back svg { width: 16px; height: 16px; }

.article-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.article-title {
  font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 5.2vw, 54px);
  line-height: 1.04; letter-spacing: -.03em; margin-bottom: 34px;
}
.article-title em {
  font-style: normal;
  background: linear-gradient(transparent 52%, var(--signal) 52%, var(--signal) 86%, transparent 86%);
  padding: 0 3px;
}

/* narration player */
.listen-wrap {
  display: flex; flex-direction: column; gap: 9px;
  margin: 0 0 42px; padding: 18px 20px;
  background: var(--paper-2); border: var(--rule); max-width: 560px;
}
.listen-audio { width: 100%; height: 36px; display: block; }
.listen-note {
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; color: var(--ink-soft);
}
@media (max-width: 640px) { .listen-wrap { max-width: 100%; } }

.article-body { font-size: 17.5px; line-height: 1.72; }
.article-body h2 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(23px, 3vw, 31px);
  line-height: 1.16; letter-spacing: -.02em; margin: 44px 0 16px;
}
.article-body p { margin-bottom: 20px; color: var(--ink-soft); }
.article-body ul { list-style: none; margin: 0 0 24px; }
.article-body li {
  position: relative; padding-left: 22px; margin-bottom: 11px; color: var(--ink-soft);
}
.article-body li::before {
  content: ""; position: absolute; left: 0; top: .68em;
  width: 9px; height: 2px; background: var(--ink);
}
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body a {
  color: var(--ink); text-decoration: none;
  background: linear-gradient(transparent 88%, var(--signal) 88%);
  transition: background .18s ease;
}
.article-body a:hover { background: linear-gradient(transparent 0, var(--signal) 0); }

/* sourcing note */
.post-note {
  margin-top: 44px; padding: 20px 22px;
  border: var(--rule); background: var(--paper-2);
  font-size: 15px; line-height: 1.65; color: var(--ink-soft);
}
.post-note strong { color: var(--ink); }
.post-note a { color: inherit; }

.article-disclaimer { font-size: 14px; color: var(--ink-soft); margin-top: 26px; }

.article-foot { margin-top: 52px; padding-top: 34px; border-top: var(--rule); }
.article-cta {
  display: inline-flex; align-items: center; gap: 11px; text-decoration: none;
  background: var(--ink); color: var(--paper); font-weight: 600; font-size: 16px;
  padding: 15px 28px; border: 2px solid var(--ink); transition: .14s;
}
.article-cta:hover { background: var(--signal); color: var(--ink); }
.article-cta svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ===== FOOTER ===== */
.bfooter { border-top: var(--rule); padding: 34px 0; margin-top: 60px; }
.bfooter-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.bfooter-logo {
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
}
.bfooter-nav { display: flex; gap: 24px; }
.bfooter-link {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
  color: var(--ink-soft); text-decoration: none; transition: color .2s;
}
.bfooter-link:hover { color: var(--ink); }

@media (max-width: 820px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-card { border-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .post-card, .post-more svg, .menu-overlay { transition: none; }
}


/* real wordmark in the nav */
  .nav-logo{display:inline-flex;align-items:center;line-height:0;text-decoration:none}
  .nav-logo img{height:22px;width:auto;display:block}
