/* ============================================
   OMNYUM — Design Tokens (shared with homepage)
   ============================================ */
:root {
  --black: #0A0A0A;
  --red: #DC2626;
  --red-dark: #B91C1C;
  --white: #FFFFFF;
  --grey-text: #525252;
  --grey-muted: #A3A3A3;
  --grey-line: #E8E6E1;
  --grey-faint: #F5F3EE;

  --font-display: "Lato", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: "Lato", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Archivo", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-logo: "Archivo", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1440px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

em { font-style: italic; color: var(--red); font-weight: inherit; }

/* ============================================
   Navigation (shared with homepage)
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--grey-line);
}
.nav-logo {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--black);
  display: inline-flex;
  align-items: baseline;
}
.nav-logo .y { color: var(--red); }
.nav-logo .suffix {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--grey-text);
  text-transform: uppercase;
  margin-left: 0.6rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.88rem;
  color: var(--black);
  transition: color 0.2s var(--ease-out);
}
.nav-links a:hover { color: var(--red); }
.nav-cta {
  padding: 0.7rem 1.3rem;
  background: var(--red);
  color: var(--white) !important;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 2px;
  transition: background 0.2s var(--ease-out);
}
.nav-cta:hover { background: var(--red-dark); }

.nav-mobile-toggle {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  flex-direction: column;
  gap: 0.3rem;
  justify-content: center;
  align-items: center;
  z-index: 102;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-mobile-toggle span {
  display: block;
  width: 1.5rem;
  height: 1.5px;
  background: var(--black);
  transition: transform 0.3s var(--ease-out), opacity 0.2s var(--ease-out);
}
.nav-mobile-toggle.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-mobile-toggle.open span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: 100%; max-width: 380px;
    height: 100vh; height: 100dvh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 4rem var(--gutter);
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease-expo);
    border-left: 1px solid var(--grey-line);
    z-index: 101;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.5rem; font-family: var(--font-display); font-weight: 700; }
  .nav-mobile-toggle { display: flex; }
}

/* ============================================
   Article Layout
   ============================================ */
.article-hero {
  padding-top: clamp(7rem, 14vh, 10rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--grey-line);
}
.article-hero .container {
  max-width: 860px;
}
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-text);
  margin-bottom: 2.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.breadcrumb a {
  color: var(--grey-text);
  transition: color 0.2s var(--ease-out);
}
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep {
  color: var(--grey-muted);
  font-weight: 400;
}
.breadcrumb .current {
  color: var(--black);
}

.article-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-text);
  margin-bottom: 2rem;
}
.article-meta .category {
  color: var(--red);
  font-weight: 600;
}
.article-meta .sep { color: var(--grey-muted); }

.article-hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: 1.5rem;
}
.article-dek {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  line-height: 1.55;
  color: var(--grey-text);
  max-width: 60ch;
  margin-top: 1.5rem;
}
.article-byline {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--grey-line);
  display: flex;
  gap: 1rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-text);
}
.article-byline .by {
  color: var(--black);
  font-weight: 600;
}

.article-body {
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.article-body .container {
  max-width: 720px;
}
.article-body h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--black);
  margin: 3rem 0 1.25rem;
}
.article-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.8vw, 1.4rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--black);
  margin: 2.25rem 0 0.85rem;
}
.article-body p {
  font-size: clamp(1.05rem, 1.15vw, 1.15rem);
  line-height: 1.75;
  color: var(--black);
  margin-bottom: 1.35rem;
}
.article-body p + p { margin-top: 0; }
.article-body ul, .article-body ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}
.article-body li {
  font-size: clamp(1.05rem, 1.15vw, 1.15rem);
  line-height: 1.7;
  color: var(--black);
  margin-bottom: 0.6rem;
  padding-left: 0.5rem;
}
.article-body li::marker { color: var(--red); }
.article-body strong {
  font-weight: 900;
  color: var(--black);
}
.article-body a {
  color: var(--red);
  border-bottom: 1px solid var(--red);
  padding-bottom: 1px;
  transition: color 0.2s var(--ease-out);
}
.article-body a:hover { color: var(--red-dark); }

.article-body blockquote {
  margin: 2.5rem 0;
  padding: 2rem 2.5rem;
  border-left: 3px solid var(--red);
  background: var(--grey-faint);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--black);
}
.article-body blockquote em {
  font-style: italic;
  color: var(--red);
  font-weight: 700;
}

.article-body .callout-box {
  margin: 2.5rem 0;
  padding: 1.75rem 2rem;
  border: 1px solid var(--black);
  background: var(--white);
}
.article-body .callout-box .callout-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  display: block;
  margin-bottom: 0.75rem;
}
.article-body .callout-box p {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.6;
}
.article-body .callout-box p + p { margin-top: 0.75rem; }

.article-body .message-example {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--grey-faint);
  border-left: 2px solid var(--grey-muted);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--black);
  border-radius: 0 2px 2px 0;
}
.article-body .message-example.good {
  border-left-color: var(--red);
}
.article-body .message-example .label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--grey-text);
  display: block;
  margin-bottom: 0.4rem;
}
.article-body .message-example.good .label { color: var(--red); }

.article-body hr {
  border: none;
  height: 1px;
  background: var(--grey-line);
  margin: 3rem 0;
}

/* ============================================
   CTA Card (end of article)
   ============================================ */
.post-cta {
  margin-top: 4rem;
  padding: clamp(2.5rem, 4vw, 3.5rem);
  background: var(--black);
  color: var(--white);
  position: relative;
}
.post-cta .eyebrow-cta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}
.post-cta h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 1rem;
  max-width: 22ch;
}
.post-cta h3 em {
  color: var(--red);
  font-style: italic;
  font-weight: 900;
}
.post-cta p {
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  max-width: 48ch;
}
.post-cta .btn-primary-inverted {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  background: var(--red);
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 2px;
  transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.post-cta .btn-primary-inverted:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

/* ============================================
   Related / Back link
   ============================================ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 3rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
  font-weight: 500;
  transition: color 0.2s var(--ease-out);
}
.back-link:hover { color: var(--red); }
.back-link .arr { color: var(--red); font-family: var(--font-display); font-size: 1.1em; }

/* ============================================
   Minimal footer
   ============================================ */
.footer {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--grey-line);
  margin-top: 4rem;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--grey-muted);
  text-transform: uppercase;
}
.footer-content a {
  color: var(--grey-muted);
  transition: color 0.2s var(--ease-out);
}
.footer-content a:hover { color: var(--red); }
.footer-brand-mini {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--black);
  text-transform: none;
}
.footer-brand-mini .y { color: var(--red); }

.top-banner{background:#0A0A0A;color:#FFF;padding:0.7rem var(--gutter);text-align:center;font-family:var(--font-mono);font-size:0.78rem;letter-spacing:0.12em;text-transform:uppercase;font-weight:500;position:relative;z-index:101;display:flex;align-items:center;justify-content:center;gap:0.75rem;flex-wrap:wrap;line-height:1.5;}
.top-banner .dot-red{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--red);animation:pulseTb 2s ease-in-out infinite;}
.top-banner strong{color:var(--red);font-weight:600;}
.top-banner .sep{color:var(--grey-muted);margin:0 0.25rem;}
@keyframes pulseTb{0%,100%{opacity:1;transform:scale(1);}50%{opacity:0.6;transform:scale(0.85);}}
@media(max-width:600px){.top-banner{font-size:0.7rem;letter-spacing:0.08em;padding:0.65rem 1rem;}.top-banner .sep,.top-banner .extra{display:none;}}
body.has-banner .nav{top:44px;}
body.has-banner .article-hero,body.has-banner .hero{padding-top:calc(clamp(7rem,14vh,10rem) + 44px);}
@media(max-width:600px){body.has-banner .nav{top:40px;}body.has-banner .article-hero,body.has-banner .hero{padding-top:calc(clamp(7rem,14vh,10rem) + 40px);}}

.mobile-menu-header,.mobile-menu-footer{display:none;}
@media(max-width:860px){
  .nav-links{justify-content:flex-start!important;padding:1.5rem var(--gutter) 3rem!important;gap:0!important;}
  .mobile-menu-header{display:flex;width:100%;align-items:center;padding-bottom:2rem;margin-bottom:1rem;border-bottom:1px solid var(--grey-line);}
  .mobile-menu-logo{font-family:var(--font-logo);font-weight:700;font-size:1.3rem;letter-spacing:-0.02em;color:var(--black);display:inline-flex;align-items:baseline;}
  .mobile-menu-logo .y{color:var(--red);}
  .mobile-menu-logo .suffix{font-family:var(--font-mono);font-size:0.62rem;font-weight:500;letter-spacing:0.22em;color:var(--grey-text);text-transform:uppercase;margin-left:0.6rem;}
  .nav-links li{width:100%;padding:0.85rem 0;border-bottom:1px solid var(--grey-line);}
  .nav-links li:has(.nav-cta){border-bottom:none;padding-top:1.25rem;padding-bottom:0;}
  .nav-cta{display:inline-flex!important;width:auto;}
  .mobile-menu-footer{display:block;margin-top:auto;padding-top:1.5rem;width:100%;font-family:var(--font-mono);font-size:0.7rem;letter-spacing:0.14em;text-transform:uppercase;color:var(--grey-muted);line-height:1.6;border-bottom:none;}
  .mobile-menu-footer .pulse{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--red);margin-right:8px;animation:pulseTb 2s ease-in-out infinite;vertical-align:middle;}
}
